Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Results of more testing on Orange PI zero/one boards
I have been doing a bit more testing of orangepi-zero and orangepi-one
systems under NetBSD-9, NetBSD-10 and NetBSD-current. I reported a few
problems a few weeks ago on these two boards and wanted to report what
I have found. I am using images from armbsd.org
Both boards seem to work fine on NetBSD-9.
The orangepi-one board fails to boot successfully under NetBSD-10 or
NetBSD-current. The problem is due to the kernel not finding a root
device as the sdcard is not detected/attached.
There is a workaround: If the orangepi-one dtb on the above media is
replaced by the dtb supplied under NetBSD-9 then the board boots
correctly. Looking at the differences between the decompiled dtbs
from NetBSD-9 and NetBSD-10 there are a few significant differences
and I wonder if something is tripping up the code which parses the
in-core dtb to enumerate the device tree. If someone could point me
to where in the source tree this code lives then I could try adding
some debug code to see what is happening...
dmesg NetBSD-10 unmodified:
booting netbsd - starting in 0 seconds.
9208812+2515424+1400352 [457933+774864+600662]=0xe4c138
EHCI failed to shut down host controller.
EHCI failed to shut down host controller.
[ 1.0000000] NetBSD/evbarm (fdt) booting ...
[ 1.0000000] [ Kernel symbol table missing! ]
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003,
[ 1.0000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
2012, 2013,
[ 1.0000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021,
2022, 2023
[ 1.0000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All
rights reserved.
[ 1.0000000] NetBSD 10.0_BETA (GENERIC) #0: Sat Sep 2 13:45:27 BST
2023
[ 1.0000000] root%samsung.anduin.org.uk@localhost:/usr/obj/arm7/sys/arch/evbar
m/compile/GENERIC
[ 1.0000000] total memory = 512 MB
[ 1.0000000] avail memory = 484 MB
[ 1.0000000] armfdt0 (root)
[ 1.0000000] simplebus0 at armfdt0: Xunlong Orange Pi One
[ 1.0000000] simplebus1 at simplebus0
[ 1.0000000] simplebus2 at simplebus0
[ 1.0000000] cpus0 at simplebus0
[ 1.0000000] simplebus3 at simplebus0
[ 1.0000000] cpu0 at cpus0: Cortex-A7 r0p5 (Cortex V7A core)
[ 1.0000000] cpu0: DC enabled IC enabled WB enabled LABT branch
prediction enabled
[ 1.0000000] cpu0: L1 32KB/32B 2-way (512 set) VIPT Instruction cache
[ 1.0000000] cpu0: L1 32KB/64B 4-way (128 set) write-back-locking-C
PIPT Data cache
[ 1.0000000] cpu0: L2 512KB/64B 8-way (1024 set) write-through PIPT
Unified cache
[ 1.0000000] vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN
propagation, denormals
[ 1.0000000] cpufreqdt0 at cpu0
[ 1.0000000] cpu1 at cpus0: Cortex-A7 r0p5 (Cortex V7A core)
[ 1.0000000] cpu1: DC enabled IC enabled WB enabled LABT branch
prediction enabled
[ 1.0000000] cpu1: L1 32KB/32B 2-way (512 set) VIPT Instruction cache
[ 1.0000000] cpu1: L1 32KB/64B 4-way (128 set) write-back-locking-C
PIPT Data cache
[ 1.0000000] cpu1: L2 512KB/64B 8-way (1024 set) write-through PIPT
Unified cache
[ 1.0000000] vfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN
propagation, denormals
[ 1.0000000] cpufreqdt1 at cpu1
[ 1.0000000] cpu2 at cpus0: Cortex-A7 r0p5 (Cortex V7A core)
[ 1.0000000] cpu2: DC enabled IC enabled WB enabled LABT branch
prediction enabled
[ 1.0000000] cpu2: L1 32KB/32B 2-way (512 set) VIPT Instruction cache
[ 1.0000000] cpu2: L1 32KB/64B 4-way (128 set) write-back-locking-C
PIPT Data cache
[ 1.0000000] cpu2: L2 512KB/64B 8-way (1024 set) write-through PIPT
Unified cache
[ 1.0000000] vfp2 at cpu2: NEON MPE (VFP 3.0+), rounding, NaN
propagation, denormals
[ 1.0000000] cpufreqdt2 at cpu2
[ 1.0000000] cpu3 at cpus0: Cortex-A7 r0p5 (Cortex V7A core)
[ 1.0000000] cpu3: DC enabled IC enabled WB enabled LABT branch
prediction enabled
[ 1.0000000] cpu3: L1 32KB/32B 2-way (512 set) VIPT Instruction cache
[ 1.0000000] cpu3: L1 32KB/64B 4-way (128 set) write-back-locking-C
PIPT Data cache
[ 1.0000000] cpu3: L2 512KB/64B 8-way (1024 set) write-through PIPT
Unified cache
[ 1.0000000] vfp3 at cpu3: NEON MPE (VFP 3.0+), rounding, NaN
propagation, denormals
[ 1.0000000] cpufreqdt3 at cpu3
[ 1.0000000] gic0 at simplebus1: GIC
[ 1.0000000] armgic0 at gic0: Generic Interrupt Controller, 160
sources (150 valid)
[ 1.0000000] armgic0: 16 Priorities, 128 SPIs, 7 PPIs, 15 SGIs
[ 1.0000000] fclock0 at simplebus2: 24000000 Hz fixed clock (osc24M)
[ 1.0000000] fclock1 at simplebus2: 32768 Hz fixed clock (ext_osc32k)
[ 1.0000000] gtmr0 at simplebus0: Generic Timer
[ 1.0000000] gtmr0: interrupting on GIC irq 27
[ 1.0000000] armgtmr0 at gtmr0: Generic Timer (24000 kHz, virtual)
[ 1.0000040] sun8ih3ccu0 at simplebus1: H3 CCU
[ 1.0000040] sunxinmi0 at simplebus1: R_INTC, NMI IRQ 32
[ 1.0000040] sun8ih3rccu0 at simplebus1: H3 PRCM CCU
[ 1.0000040] sunxigpio0 at simplebus1: PIO
[ 1.0000040] gpio0 at sunxigpio0: 94 pins
[ 1.0000040] sunxigpio0: interrupting on GIC irq 43
[ 1.0000040] sunxigpio1 at simplebus1: PIO
[ 1.0000040] gpio1 at sunxigpio1: 12 pins
[ 1.0000040] sunxigpio1: interrupting on GIC irq 77
[ 1.0000040] sunxisramc0 at simplebus1: SRAM Controller
[ 1.0000040] sun6idma0 at simplebus1: DMA controller (12 channels)
[ 1.0000040] sun6idma0: interrupting on GIC irq 82
[ 1.0000040] connector0 at simplebus0: HDMI connector
[ 1.0000040] sunxisid0 at simplebus1: Security ID EFUSE
[ 1.0000040] gregulator0 at simplebus0: vdd-cpux
[ 1.0000040] fregulator0 at simplebus0: vcc3v3
[ 1.0000040] fregulator1 at simplebus0: usb0-vbus
[ 1.0000040] fregulator2 at simplebus0: vcc3v0
[ 1.0000040] fregulator3 at simplebus0: vcc5v0
[ 1.0000040] /soc/clock@1000000 at simplebus1 not configured
[ 1.0000040] /soc/mixer@1100000 at simplebus1 not configured
[ 1.0000040] /soc/lcd-controller@1c0c000 at simplebus1 not configured
[ 1.0000040] sunxirtc0 at simplebus1: RTC
[ 1.0000040] h3codec0 at simplebus1: H3 Audio Codec (analog part)
[ 1.0000040] /soc/hdmi-phy@1ef0000 at simplebus1 not configured
[ 1.0000040] /soc/dram-controller@1c62000 at simplebus1 not
configured
[ 1.0000040] /gpu-opp-table at simplebus0 not configured
[ 1.0000040] /opp_table0 at simplebus0 not configured
[ 1.0000040] sunxithermal0 at simplebus1: Thermal sensor controller
[ 1.0000040] sunxithermal0: interrupting on GIC irq 63
[ 1.0000040] sunxithermal0: cpu: alarm 90C hyst 15C shut 105C
[ 1.0000040] /soc/mailbox@1c17000 at simplebus1 not configured
[ 1.0000040] sunxiwdt0 at simplebus1: Watchdog
[ 1.0000040] sunxiwdt0: default watchdog period is 16 seconds
[ 1.0000040] /soc/deinterlace@1400000 at simplebus1 not configured
[ 1.0000040] sun8icrypto0 at simplebus1: Crypto Engine
[ 1.0000040] sun8icrypto0: interrupting on GIC irq 126
[ 1.0000040] sun8icrypto0: AES-128 self-test initiated
[ 1.0000040] sun8icrypto0: AES-128 self-test passed
[ 1.0000040] /soc/gpu@1c40000 at simplebus1 not configured
[ 1.0000040] psci0 at simplebus0: PSCI 0.1
[ 1.0000040] armpmu0 at simplebus0: Performance Monitor Unit
[ 1.0000040] gpioleds0 at simplebus0: orangepi:green:pwr
orangepi:red:status
[ 1.0000040] gpiokeys0 at simplebus0: sw4
[ 1.0000040] /soc/timer@1c20c00 at simplebus1 not configured
[ 1.0000040] /soc/video-codec@1c0e000 at simplebus1 not configured
[ 1.0000040] cpufreqdt0: rate: 1008.000 MHz, 1200000 uV
[ 1.3733143] armpmu0: interrupting on GIC irq 152
[ 1.3833044] armpmu0: interrupting on GIC irq 153
[ 1.3932985] armpmu0: interrupting on GIC irq 154
[ 1.3932985] armpmu0: interrupting on GIC irq 155
[ 1.4132998] WARNING: system needs entropy for security; see
entropy(7)
[ 1.4333117] swwdog0: software watchdog initialized
[ 1.4333117] boot device: <unknown>
[ 1.4333117] root device:
dmesg NetBSD-10 with dtb from NetBSD-9:
9208812+2515424+1400352 [457933+774864+600662]=0xe4c138
EHCI failed to shut down host controller.
EHCI failed to shut down host controller.
[ 1.0000000] NetBSD/evbarm (fdt) booting ...
[ 1.0000000] [ Kernel symbol table missing! ]
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003,
[ 1.0000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
2012, 2013,
[ 1.0000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021,
2022, 2023
[ 1.0000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All
rights reserved.
[ 1.0000000] NetBSD 10.0_BETA (GENERIC) #0: Sat Sep 2 13:45:27 BST
2023
[ 1.0000000] root%samsung.anduin.org.uk@localhost:/usr/obj/arm7/sys/arch/evbar
m/compile/GENERIC
[ 1.0000000] total memory = 512 MB
[ 1.0000000] avail memory = 484 MB
[ 1.0000000] armfdt0 (root)
[ 1.0000000] simplebus0 at armfdt0: Xunlong Orange Pi One
[ 1.0000000] simplebus1 at simplebus0
[ 1.0000000] simplebus2 at simplebus0
[ 1.0000000] cpus0 at simplebus0
[ 1.0000000] simplebus3 at simplebus0
[ 1.0000000] cpu0 at cpus0: Cortex-A7 r0p5 (Cortex V7A core)
[ 1.0000000] cpu0: DC enabled IC enabled WB enabled LABT branch
prediction enabled
[ 1.0000000] cpu0: L1 32KB/32B 2-way (512 set) VIPT Instruction cache
[ 1.0000000] cpu0: L1 32KB/64B 4-way (128 set) write-back-locking-C
PIPT Data cache
[ 1.0000000] cpu0: L2 512KB/64B 8-way (1024 set) write-through PIPT
Unified cache
[ 1.0000000] vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN
propagation, denormals
[ 1.0000000] cpufreqdt0 at cpu0
[ 1.0000000] cpu1 at cpus0: Cortex-A7 r0p5 (Cortex V7A core)
[ 1.0000000] cpu1: DC enabled IC enabled WB enabled LABT branch
prediction enabled
[ 1.0000000] cpu1: L1 32KB/32B 2-way (512 set) VIPT Instruction cache
[ 1.0000000] cpu1: L1 32KB/64B 4-way (128 set) write-back-locking-C
PIPT Data cache
[ 1.0000000] cpu1: L2 512KB/64B 8-way (1024 set) write-through PIPT
Unified cache
[ 1.0000000] vfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN
propagation, denormals
[ 1.0000000] cpufreqdt1 at cpu1
[ 1.0000000] cpu2 at cpus0: Cortex-A7 r0p5 (Cortex V7A core)
[ 1.0000000] cpu2: DC enabled IC enabled WB enabled LABT branch
prediction enabled
[ 1.0000000] cpu2: L1 32KB/32B 2-way (512 set) VIPT Instruction cache
[ 1.0000000] cpu2: L1 32KB/64B 4-way (128 set) write-back-locking-C
PIPT Data cache
[ 1.0000000] cpu2: L2 512KB/64B 8-way (1024 set) write-through PIPT
Unified cache
[ 1.0000000] vfp2 at cpu2: NEON MPE (VFP 3.0+), rounding, NaN
propagation, denormals
[ 1.0000000] cpufreqdt2 at cpu2
[ 1.0000000] cpu3 at cpus0: Cortex-A7 r0p5 (Cortex V7A core)
[ 1.0000000] cpu3: DC enabled IC enabled WB enabled LABT branch
prediction enabled
[ 1.0000000] cpu3: L1 32KB/32B 2-way (512 set) VIPT Instruction cache
[ 1.0000000] cpu3: L1 32KB/64B 4-way (128 set) write-back-locking-C
PIPT Data cache
[ 1.0000000] cpu3: L2 512KB/64B 8-way (1024 set) write-through PIPT
Unified cache
[ 1.0000000] vfp3 at cpu3: NEON MPE (VFP 3.0+), rounding, NaN
propagation, denormals
[ 1.0000000] cpufreqdt3 at cpu3
[ 1.0000000] gic0 at simplebus1: GIC
[ 1.0000000] armgic0 at gic0: Generic Interrupt Controller, 160
sources (150 valid)
[ 1.0000000] armgic0: 16 Priorities, 128 SPIs, 7 PPIs, 15 SGIs
[ 1.0000000] fclock0 at simplebus2: 24000000 Hz fixed clock (osc24M)
[ 1.0000000] fclock1 at simplebus2: 32768 Hz fixed clock (ext_osc32k)
[ 1.0000000] gtmr0 at simplebus0: Generic Timer
[ 1.0000000] gtmr0: interrupting on GIC irq 27
[ 1.0000000] armgtmr0 at gtmr0: Generic Timer (24000 kHz, virtual)
[ 1.0000040] sun8ih3ccu0 at simplebus1: H3 CCU
[ 1.0000040] sun8ih3rccu0 at simplebus1: H3 PRCM CCU
[ 1.0000040] sunxigpio0 at simplebus1: PIO
[ 1.0000040] gpio0 at sunxigpio0: 94 pins
[ 1.0000040] sunxigpio0: interrupting on GIC irq 43
[ 1.0000040] sunxigpio1 at simplebus1: PIO
[ 1.0000040] gpio1 at sunxigpio1: 12 pins
[ 1.0000040] sunxigpio1: interrupting on GIC irq 77
[ 1.0000040] sunxisramc0 at simplebus1: SRAM Controller
[ 1.0000040] sun6idma0 at simplebus1: DMA controller (12 channels)
[ 1.0000040] sun6idma0: interrupting on GIC irq 82
[ 1.0000040] connector0 at simplebus0: HDMI connector
[ 1.0000040] gregulator0 at simplebus0: vdd-cpux
[ 1.0000040] com0 at simplebus1: DesignWare APB UART, 64-byte FIFO
[ 1.0000040] com0: console
[ 1.0000040] com0: interrupting on GIC irq 32
[ 1.0000040] sunxisid0 at simplebus1: Security ID EFUSE
[ 1.0000040] fregulator0 at simplebus0: vcc3v3
[ 1.0000040] fregulator1 at simplebus0: usb0-vbus
[ 1.0000040] fregulator2 at simplebus0: vcc3v0
[ 1.0000040] fregulator3 at simplebus0: vcc5v0
[ 1.0000040] sunxiusbphy0 at simplebus1: USB PHY
[ 1.0000040] /soc/clock@1000000 at simplebus1 not configured
[ 1.0000040] /soc/mixer@1100000 at simplebus1 not configured
[ 1.0000040] /soc/lcd-controller@1c0c000 at simplebus1 not configured
[ 1.0000040] dwhdmi0 at simplebus1: HDMI TX
[ 1.0000040] dwhdmi0: couldn't find PHY
[ 1.0000040] sunxirtc0 at simplebus1: RTC
[ 1.0000040] emac0 at simplebus1: EMAC
[ 1.0000040] emac0: Ethernet address 02:81:5f:ed:f6:44
[ 1.0000040] emac0: interrupting on GIC irq 114
[ 1.0000040] ukphy0 at emac0 phy 1: OUI 0x0088a0, model 0x0000, rev.
0
[ 1.0000040] ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
auto
[ 1.0000040] h3codec0 at simplebus1: H3 Audio Codec (analog part)
[ 1.0000040] /soc/hdmi-phy@1ef0000 at simplebus1 not configured
[ 1.0000040] /opp_table0 at simplebus0 not configured
[ 1.0000040] /display-engine at simplebus0 not configured
[ 1.0000040] sunximmc0 at simplebus1: SD/MMC controller
[ 1.0000040] sunximmc0: interrupting on GIC irq 92
[ 1.0000040] motg0 at simplebus1: 'otg' mode not supported
[ 1.0000040] ehci0 at simplebus1: EHCI
[ 1.0000040] ehci0: interrupting on GIC irq 104
[ 1.0000040] ehci0: 1 companion controller, 1 port
[ 1.0000040] usb0 at ehci0: USB revision 2.0
[ 1.0000040] ohci0 at simplebus1: OHCI
[ 1.0000040] ohci0: interrupting on GIC irq 105
[ 1.0000040] ohci0: OHCI version 1.0
[ 1.0000040] usb1 at ohci0: USB revision 1.0
[ 1.0000040] ehci1 at simplebus1: EHCI
[ 1.0000040] ehci1: interrupting on GIC irq 106
[ 1.0000040] ehci1: 1 companion controller, 1 port
[ 1.0000040] usb2 at ehci1: USB revision 2.0
[ 1.0000040] ohci1 at simplebus1: OHCI
[ 1.0000040] ohci1: interrupting on GIC irq 107
[ 1.0000040] ohci1: OHCI version 1.0
[ 1.0000040] usb3 at ohci1: USB revision 1.0
[ 1.0000040] sunxiwdt0 at simplebus1: Watchdog
[ 1.0000040] sunxiwdt0: default watchdog period is 16 seconds
[ 1.0000040] /soc/gpu@1c40000 at simplebus1 not configured
[ 1.0000040] sunxithermal0 at simplebus1: Thermal sensor controller
[ 1.0000040] sunxithermal0: interrupting on GIC irq 63
[ 1.0000040] sunxithermal0: cpu: alarm 90C hyst 15C shut 105C
[ 1.0000040] psci0 at simplebus0: PSCI 0.1
[ 1.0000040] gpioleds0 at simplebus0: orangepi:green:pwr
orangepi:red:status
[ 1.0000040] gpiokeys0 at simplebus0: sw4
[ 1.0000040] sunxitimer0 at simplebus1: Timer
[ 1.0000040] /soc/video-codec@1c0e000 at simplebus1 not configured
[ 1.0000040] cpufreqdt0: rate: 1008.000 MHz, 1200000 uV
[ 1.9483598] sdmmc0 at sunximmc0
[ 1.9583456] WARNING: system needs entropy for security; see
entropy(7)
[ 1.9583456] uhub0 at usb0: NetBSD (0x0000) EHCI root hub (0x0000),
class 9/0, rev 2.00/1.00, addr 1
[ 1.9783505] uhub1 at usb1: NetBSD (0x0000) OHCI root hub (0x0000),
class 9/0, rev 1.00/1.00, addr 1
[ 1.9883500] uhub2 at usb2: NetBSD (0x0000) EHCI root hub (0x0000),
class 9/0, rev 2.00/1.00, addr 1
[ 1.9983488] uhub3 at usb3: NetBSD (0x0000) OHCI root hub (0x0000),
class 9/0, rev 1.00/1.00, addr 1
[ 2.0683532] sdmmc0: SD card status: 4-bit, C10
[ 2.0789304] ld0 at sdmmc0: <0x12:0x3456:SD:0x00:0x0000000d:0x117>
[ 2.0789304] ld0: 7624 MB, 3872 cyl, 64 head, 63 sec, 512 bytes/sect
x 15613952 sectors
[ 2.0983562] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
[ 2.5183698] swwdog0: software watchdog initialized
[ 2.5383720] boot device: ld0
[ 2.5483742] root on ld0a dumps on ld0b
[ 2.5583736] root file system type: ffs
[ 2.5683739] kern.module.path=/stand/evbarm/10.0/modules
[ 2.5683739] WARNING: preposterous TOD clock time
[ 2.5783748] WARNING: using filesystem time
[ 2.5831289] WARNING: CHECK AND RESET THE DATE!
Sat Sep 2 12:46:50 UTC 2023
Starting root file system check
Be nice if this problem culd be sorted before 10 is finalised...
The orangepi-zero board exhibits a different problem. It boots up fine
under NetBSD-9, NetBSD-10 and NetBSD-current, however the ethernet
interface only works under NetBSD-9. Under the later systems the
interface lights come on, the interface appears to be up, but no
packets will pass. The clincher is that under NetBSD-9 dhcpcd gets an
address, whereas with the others is doesn't and manual config/pinging
the gateway also fails.
Again this isn't very helpful behavior. I did try the trick of using
the NetBSD-9 dtb, but it made no difference. Maybe a problem with the
?phy? although the dmesgs for all the systems are the same:
NetBSD-9:
[ 1.0000060] emac0 at simplebus1: EMAC
[ 1.0000060] emac0: Ethernet address 02:42:6b:ec:f6:d8
[ 1.0000060] emac0: interrupting on GIC irq 114
[ 1.0000060] ukphy0 at emac0 phy 1: OUI 0x0088a0, model 0x0000, rev.
0
[ 1.0000060] ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
auto
NetBSD-10:
[ 1.0000040] emac0 at simplebus1: EMAC
[ 1.0000040] emac0: Ethernet address 02:42:6b:ec:f6:d8
[ 1.0000040] emac0: interrupting on GIC irq 114
[ 1.0000040] ukphy0 at emac0 phy 1: OUI 0x0088a0, model 0x0000, rev.
0
[ 1.0000040] ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
auto
Dave
Home |
Main Index |
Thread Index |
Old Index