hello,
> Does this mean that OpenBSD is functional on the Lichee Pi Zero now?
> If so, I'll add it to the armv7 web page.
Not yet. We need to support both Ethernet and USB, but they are not
supported even Linux mainline. There is no official device tree
that enabled these devices.
I tried to test USB and Ethernet, there are some troubles.
USB: OHCI/EHCI can be enabled easily, but attached USB device is
not recognized. (USB port is shared by OTG and host controller,
port multiplexer issue?)
Ethernet: need to modify dwxe(4). But it got MAC address but failed to
reset MAC and could not find PHY. (clock/reset and device-tree issue?)
Here is a boot log (syscon is enabled by my dtb),
available memory is too less due to U-boot address (@0x42e00000).
Regards,
----
U-Boot SPL 2019.01 (Feb 13 2019 - 16:34:25 +0900)
DRAM: 64 MiB
Trying to boot from MMC1
U-Boot 2019.01 (Feb 13 2019 - 16:34:25 +0900) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
=> bdinfo
arch_number = 0x00000000
boot_params = 0x40000100
DRAM bank = 0x00000000
-> start = 0x40000000
-> size = 0x04000000
baudrate = 115200 bps
TLB addr = 0x43ff0000
relocaddr = 0x43f7d000
reloc off = 0x0117d000
irq_sp = 0x43d5a210
sp start = 0x43d5a200
Early malloc usage: 11c / 400
fdt_blob = 0x43d5a220
=> boot
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
7345 bytes read in 10 ms (716.8 KiB/s)
Found EFI removable media binary efi/boot/bootarm.efi
Scanning disks on usb...
Disk usb0 not ready
Disk usb1 not ready
Disk usb2 not ready
Disk usb3 not ready
Scanning disks on mmc...
MMC Device 1 not found
MMC Device 2 not found
MMC Device 3 not found
Found 3 disks
86916 bytes read in 7 ms (11.8 MiB/s)
## Starting EFI application at 41000000 ...
>> OpenBSD/armv7 BOOTARM 1.1
boot>
sd0: getdisklabel: no disk label
booting sd0a:/bsd: sd0: getdisklabel: no disk label
4533064+683860+243412+563460 [298008+120+312672+276843]=0x697d98
OpenBSD/armv7 booting ...
arg0 0xc0997d98 arg1 0x0 arg2 0x42d49000
Allocating page tables
IRQ stack: p0x409c6000 v0xc09c6000
ABT stack: p0x409c7000 v0xc09c7000
UND stack: p0x409c8000 v0xc09c8000
SVC stack: p0x409c9000 v0xc09c9000
Creating L1 page table at 0x40998000
Mapping kernel
Constructing L2 page tables
undefined page type 0x2 pa 0x40000000 va 0x40000000 pages 0x2000 attr 0x8
type 0x7 pa 0x42000000 va 0x40000000 pages 0x5e9 attr 0x8
type 0x2 pa 0x425e9000 va 0x425e9000 pages 0x74a attr 0x8
type 0x1 pa 0x42d33000 va 0x42d33000 pages 0x16 attr 0x8
type 0x6 pa 0x42d49000 va 0x42d49000 pages 0xa attr 0x8000000000000008
type 0x0 pa 0x42d53000 va 0x42d51000 pages 0x2 attr 0x8
type 0x6 pa 0x42d55000 va 0x42d55000 pages 0x1 attr 0x8000000000000008
type 0x0 pa 0x42d56000 va 0x42d51000 pages 0x1 attr 0x8
type 0x6 pa 0x42d57000 va 0x42d57000 pages 0x1 attr 0x8000000000000008
type 0x0 pa 0x42d58000 va 0x42d58000 pages 0x2 attr 0x8
type 0x2 pa 0x42d5a000 va 0x42d5a000 pages 0x1223 attr 0x8
type 0x5 pa 0x43f7d000 va 0x43f7d000 pages 0x1 attr 0x8000000000000008
type 0x2 pa 0x43f7e000 va 0x42d5a000 pages 0x82 attr 0x8
pmap [ using 888256 bytes of bsd ELF symbol table ]
board type: 0
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2019 OpenBSD. All rights reserved. https://www.OpenBSD.org
OpenBSD 6.4-current (GENERIC) #4: Wed Feb 13 19:41:19 JST 2019
[email protected]:/usr/src/sys/arch/armv7/compile/GENERIC
real mem = 39751680 (37MB)
avail mem = 28794880 (27MB)
mainbus0 at root: Lichee Pi Zero
cpu0 at mainbus0: ARM Cortex-A7 r0p5 (ARMv7)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB(32b/l,2way) I-cache, 32KB(64b/l,4way) wr-back D-cache
cortex0 at mainbus0
psci0 at mainbus0: PSCI 0.0
sxiccmu0 at mainbus0
agtimer0 at mainbus0: tick rate 24000 KHz
simplebus0 at mainbus0: "soc"
syscon0 at simplebus0: "syscon"
sxiccmu1 at simplebus0
sxipio0 at simplebus0: 52 pins
ampintc0 at simplebus0 nirq 160, ncpu 1: "interrupt-controller"
"syscon" 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
"clock" at simplebus0 not configured
sxirtc0 at simplebus0
"pinctrl" at simplebus0 not configured
"timer" at simplebus0 not configured
sxidog0 at simplebus0
com0 at simplebus0: ns16550, no working fifo
com0: console
"ethernet" at simplebus0 not configured
"interrupt-controller" 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
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, SS08G, 0080> SCSI2 0/direct removable
sd0: 7580MB, 512 bytes/sector, 15523840 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
bootfile: sd0a:/bsd
boot device: sd0
root on sd0a (25bd418bf7d14629.a) swap on sd0b dump on sd0b
WARNING: preposterous clock chip time
WARNING: CHECK AND RESET THE DATE!
Automatic boot in progress: starting file system checks.
/dev/sd0a (25bd418bf7d14629.a): file system is clean; not checking
pf enabled
starting network
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 sndiod.
starting local daemons: cron.
Wed Feb 13 20:33:58 JST 2019
OpenBSD/armv7 (lpizero.uaa.org.uk) (console)
login:
--
SASANO Takayoshi (JG1UAA) <[email protected]>