Hi,
I am running armv7/7.2 on this board.
This is how I got it to run:

from one of the images at

https://images.olimex.com/release/a20/

you extract
/usr/lib/linux-image-5.10.105-olimex/sun7i-a20-olinuxino-lime2.dtb  (or the
other one if your board is that way)

I put it in the root of the EFI (dos) partition, which is 'p1' on my image.

and you extract
/usr/lib/u-boot-olinuxino/a20-olinuxino/u-boot-sunxi-with-spl.bin

it must go onto the image you created for bsd, in the usual place.

This fixes the ethernet problem. The daily build Debian u-boot for
this board did not do the trick.

-------------

But I have one problem that defies me: I want to run from the sata
disk. So I made an identical copy of the installation on the sata
disk. However, the system needs the mmc card to boot u-boot, so I
leave that in place.

sd0 is the hard-disk.
sd1 is the mmc device.

Now the following happens:
1. u-boot is read from sd1, obviously.
2. the kernel used is sd0a:/bsd
3. but root is on sd1 !

I tried to fix it in u-boot, but bsd is obviously different from the
linux kernel. And I studied the config options for the boot kernel but
I do not seem to find a way to change the root, swap and dump
settings.

Is there any help for this?

Here is the boot log as captured from the tty0 connection:

----------------
U-Boot SPL 2021.04+olimex-1-20220413.080758 (Apr 13 2022 - 08:09:11 +0000)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Loading configuration from EEPROM: OK
Verifying data: OK
Trying to boot from MMC1


U-Boot 2021.04+olimex-1-20220413.080758 (Apr 13 2022 - 08:09:11 +0000)
Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
ID:    A20-OLinuXino-LIME2 Rev.K
SN:    00011B6E
MAC:   30:1F:9A:D0:8E:8A
I2C:   ready
DRAM:  1 GiB
MMC:   mmc@1c0f000: 0
Loading Environment from EXT4...
** Unable to use mmc 0:auto for loading the env **
Loading Environment from FAT... ** No device specified **
HDMI connected: Setting up a 1920x1080 hdmi console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
Allwinner mUSB OTG (Peripheral)
Net:   eth0: ethernet@1c50000, eth1: usb_ether
starting USB...
Bus usb@1c14000: USB EHCI 1.00
Bus usb@1c14400: USB OHCI 1.0
Bus usb@1c1c000: USB EHCI 1.00
Bus usb@1c1c400: USB OHCI 1.0
scanning bus usb@1c14000 for devices... 1 USB Device(s) found
scanning bus usb@1c14400 for devices... 2 USB Device(s) found
scanning bus usb@1c1c000 for devices... 1 USB Device(s) found
scanning bus usb@1c1c400 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  2 1 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Scanning disk m...@1c0f000.blk...
** Unrecognized filesystem type **
Found 3 disks
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
Found EFI removable media binary efi/boot/bootarm.efi
117796 bytes read in 9 ms (12.5 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Booting /efi\boot\bootarm.efi
disks: sd0*
>> OpenBSD/armv7 BOOTARM 1.19
| / - \ | / - \ | / boot>
- \ | / - \ | / - \ booting sd0a:/bsd: | / - \ | / 4942324- \ | / - \ | / -
\ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ |
/ - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / -
\ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ |
/ - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / -
\ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ |
/ - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / -
\ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ |
/ - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ +928928| / - \ | / -
\ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ |
/ - \ | / - \ | / - \ | +138760/ - \ | / - \ | / +593740- [273945\ | / - \
| / - \ | / - \ | / - \ +107+339616| / - \ | / - \ | / - \ | / - \ | / - \
| +301129/ - \ | / - \ | / - \ | / - \ | / - \ ]=0x0
EHCI failed to shut down host controller.

OpenBSD/armv7 booting ...
arg0 0xc0a2c4dc arg1 0x0 arg2 0x79df8000
Allocating page tables
IRQ stack: p0x40a5b000 v0xc0a5b000
ABT stack: p0x40a5c000 v0xc0a5c000
UND stack: p0x40a5d000 v0xc0a5d000
SVC stack: p0x40a5e000 v0xc0a5e000
Creating L1 page table at 0x40a30000
Mapping kernel
Constructing L2 page tables
undefined page type 0x2 pa 0x40000000 va 0x40000000 pages 0x2000 attr 0x8
type 0x7 pa 0x42000000 va 0x42000000 pages 0x5ef2 attr 0x8
type 0x9 pa 0x47ef2000 va 0x47ef2000 pages 0x1c attr 0x8
type 0x7 pa 0x47f0e000 va 0x47f0e000 pages 0x31eea attr 0x8
type 0x2 pa 0x79df8000 va 0x79df8000 pages 0xc attr 0x8
type 0x4 pa 0x79e04000 va 0x79e04000 pages 0x1 attr 0x8
type 0x7 pa 0x79e05000 va 0x79e05000 pages 0x1 attr 0x8
type 0x2 pa 0x79e06000 va 0x79e06000 pages 0x100 attr 0x8
type 0x1 pa 0x79f06000 va 0x79f06000 pages 0x1d attr 0x8
type 0x0 pa 0x79f23000 va 0x79f23000 pages 0x7 attr 0x8
type 0x4 pa 0x79f2a000 va 0x79f2a000 pages 0x1 attr 0x8
type 0x6 pa 0x79f2b000 va 0x79f2b000 pages 0x1 attr 0x8000000000000008
type 0x4 pa 0x79f2c000 va 0x79f2c000 pages 0x2 attr 0x8
type 0x0 pa 0x79f2e000 va 0x79f2e000 pages 0x1 attr 0x8
type 0x6 pa 0x79f2f000 va 0x79f2f000 pages 0x3 attr 0x8000000000000008
type 0x4 pa 0x79f32000 va 0x79f32000 pages 0x1 attr 0x8
type 0x6 pa 0x79f33000 va 0x79f33000 pages 0x4 attr 0x8000000000000008
type 0x0 pa 0x79f37000 va 0x79f37000 pages 0x1 attr 0x8
type 0x4 pa 0x79f38000 va 0x79f38000 pages 0x1 attr 0x8
type 0x0 pa 0x79f39000 va 0x79f39000 pages 0x1 attr 0x8
type 0x4 pa 0x79f3a000 va 0x79f3a000 pages 0x2 attr 0x8
type 0x0 pa 0x79f3c000 va 0x79f3c000 pages 0x1 attr 0x8
type 0x4 pa 0x79f3d000 va 0x79f3d000 pages 0x2 attr 0x8
type 0x2 pa 0x79f3f000 va 0x79f3f000 pages 0x502c attr 0x8
type 0x5 pa 0x7ef6b000 va 0x7ef6b000 pages 0x1 attr 0x8000000000000008
type 0x2 pa 0x7ef6c000 va 0x7ef6c000 pages 0x94 attr 0x8
type 0x4 pa 0x7f000000 va 0x7f000000 pages 0x817 attr 0x8
type 0x0 pa 0x7f817000 va 0x7f817000 pages 0x7e9 attr 0x8
pmap [ using 915336 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2022 OpenBSD. All rights reserved.
https://www.OpenBSD.org

OpenBSD 7.2 (GENERIC) #71: Thu Sep 29 11:47:02 MDT 2022
    dera...@armv7.openbsd.org:/usr/src/sys/arch/armv7/compile/GENERIC
real mem  = 970833920 (925MB)
avail mem = 942923776 (899MB)
random: good seed from bootblocks
mainbus0 at root: Olimex A20-OLinuXino-LIME2
cpu0 at mainbus0 mpidr 0: ARM Cortex-A7 r0p4
cpu0: 32KB 32b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu0: 256KB 64b/line 8-way L2 cache
cortex0 at mainbus0
psci0 at mainbus0: PSCI 0.0
agtimer0 at mainbus0: 24000 kHz
simplebus0 at mainbus0: "soc"
sxiccmu0 at simplebus0
sxipio0 at simplebus0: 175 pins
sxirtc0 at simplebus0
sxisid0 at simplebus0
ampintc0 at simplebus0 nirq 160, ncpu 2: "interrupt-controller"
"system-control" at simplebus0 not configured
"interrupt-controller" at simplebus0 not configured
"dma-controller" at simplebus0 not configured
"lcd-controller" at simplebus0 not configured
"lcd-controller" at simplebus0 not configured
"video-codec" at simplebus0 not configured
sximmc0 at simplebus0
sdmmc0 at sximmc0: 4-bit, sd high-speed, mmc high-speed, dma
"usb" at simplebus0 not configured
"phy" at simplebus0 not configured
ehci0 at simplebus0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev
2.00/1.00 addr 1
ohci0 at simplebus0: version 1.0
"crypto-engine" at simplebus0 not configured
"hdmi" at simplebus0 not configured
sxiahci0 at simplebus0: AHCI 1.1
sxiahci0: port 0: 3.0Gb/s
scsibus0 at sxiahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, WDC WDS500G1R0A, 4110>
naa.5001b448bd4a396a
sd0: 476940MB, 512 bytes/sector, 976773168 sectors, thin
ehci1 at simplebus0
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev
2.00/1.00 addr 1
ohci1 at simplebus0: version 1.0
"timer" at simplebus0 not configured
sxidog0 at simplebus0
sxits0 at simplebus0
com0 at simplebus0: dw16550
com0: console
sxitwi0 at simplebus0
iic0 at sxitwi0
axppmic0 at iic0 addr 0x34: AXP209
sxitwi1 at simplebus0
iic1 at sxitwi1
"atmel,24c16" at iic1 addr 0x50 not configured
"gpu" at simplebus0 not configured
dwge0 at simplebus0: rev 0x00, address 30:1f:9a:d0:8e:8a
ukphy0 at dwge0 phy 1: Generic IEEE 802.3u media interface, rev. 2: OUI
0x000885, model 0x0022
"hstimer" at simplebus0 not configured
"display-frontend" at simplebus0 not configured
"display-frontend" at simplebus0 not configured
"display-backend" at simplebus0 not configured
"display-backend" at simplebus0 not configured
gpio0 at sxipio0: 32 pins
gpio1 at sxipio0: 32 pins
gpio2 at sxipio0: 32 pins
gpio3 at sxipio0: 32 pins
gpio4 at sxipio0: 32 pins
gpio5 at sxipio0: 32 pins
gpio6 at sxipio0: 32 pins
gpio7 at sxipio0: 32 pins
gpio8 at sxipio0: 32 pins
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Generic OHCI root hub" rev
1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Generic OHCI root hub" rev
1.00/1.00 addr 1
simplefb0 at mainbus0: 1920x1080, 32bpp
wsdisplay0 at simplefb0 mux 1
wsdisplay0: screen 0-5 added (std, vt100 emulation)
scsibus1 at sdmmc0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <SD/MMC, SS16G, 0080> removable
sd1: 15193MB, 512 bytes/sector, 31116288 sectors
uhidev0 at uhub2 port 1 configuration 1 interface 0 "Holtek product 0x1133"
rev 1.10/2.10 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev1 at uhub3 port 1 configuration 1 interface 0 "LiteON HP Basic USB
Keyboard" rev 1.10/1.00 addr 2
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd0 at ukbd0 mux 1
wskbd0: connecting to wsdisplay0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
bootfile: sd0a:/bsd
boot device: sd0
root on sd1a (e1a77a865c43a149.a) swap on sd1b dump on sd1b
Automatic boot in progress: starting file system checks.
/dev/sd1a (e1a77a865c43a149.a): file system is clean; not checking
/dev/sd1l (e1a77a865c43a149.l): file system is clean; not checking
/dev/sd1d (e1a77a865c43a149.d): file system is clean; not checking
/dev/sd1f (e1a77a865c43a149.f): file system is clean; not checking
/dev/sd1g (e1a77a865c43a149.g): file system is clean; not checking
/dev/sd1h (e1a77a865c43a149.h): file system is clean; not checking
/dev/sd1k (e1a77a865c43a149.k): file system is clean; not checking
/dev/sd1j (e1a77a865c43a149.j): file system is clean; not checking
/dev/sd1e (e1a77a865c43a149.e): file system is clean; not checking
pf enabled
starting network
reordering libraries: done.
starting early daemons: syslogd pflogd ntpd.
starting RPC daemons:.
savecore: no core dump
checking quotas: done.
clearing /tmp
kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: sshd smtpd ftpd sndiod.
starting local daemons: cron xenodm.
Fri Oct 28 15:24:21 CEST 2022

OpenBSD/armv7 (flors.kinderkamer.) (console)

login:
-----------------

Reply via email to