January 15, 2023

NetBSD on the Orange Pi - NetBSD 9.3 first boot

U-Boot SPL 2018.11 (Jul 02 2022 - 01:48:14 +0000)
DRAM: 1024 MiB
Trying to boot from MMC1


U-Boot 2018.11 (Jul 02 2022 - 01:48:14 +0000) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi PC
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
USB4:   USB EHCI 1.00
USB5:   USB OHCI 1.0
USB6:   USB EHCI 1.00
USB7:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 4 for devices... 1 USB Device(s) found
scanning bus 6 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
201 bytes read in 1 ms (196.3 KiB/s)
## Executing script at 43100000
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
28162 bytes read in 7 ms (3.8 MiB/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
185456 bytes read in 12 ms (14.7 MiB/s)
## Starting EFI application at 42000000 ...

>> NetBSD/evbarm efiboot (arm), Revision 1.13 (Thu Aug  4 15:30:37 UTC 2022)
Press return to boot now, any other key for boot prompt
booting netbsd - starting in 0 seconds.
6757004+2071896+1385128 [404132+462448+482622]=0xb15cec
EHCI failed to shut down host controller.
EHCI failed to shut down host controller.
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, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[   1.0000000]     2018, 2019, 2020, 2021, 2022
[   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 9.3 (GENERIC) #0: Thu Aug  4 15:30:37 UTC 2022
[   1.0000000]  [email protected]:/usr/src/sys/arch/evbarm/compile/GENERIC
[   1.0000000] total memory = 1024 MB
[   1.0000000] avail memory = 1003 MB
[   1.0000000] running cgd selftest aes-xts-256 aes-xts-512 done
[   1.0000000] armfdt0 (root)
[   1.0000000] simplebus0 at armfdt0: Xunlong Orange Pi PC
[   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: 32KB/32B 2-way L1 VIPT Instruction cache
[   1.0000000] cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[   1.0000000] cpu0: 512KB/64B 8-way write-through L2 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
[   1.0000000] cpufreqdt1 at cpu1
[   1.0000000] cpu2 at cpus0
[   1.0000000] cpufreqdt2 at cpu2
[   1.0000000] cpu3 at cpus0
[   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.0000060] sun8ih3ccu0 at simplebus1: H3 CCU
[   1.0000060] sun8ih3rccu0 at simplebus1: H3 PRCM CCU
[   1.0000060] sunxigpio0 at simplebus1: PIO
[   1.0000060] gpio0 at sunxigpio0: 94 pins
[   1.0000060] sunxigpio0: interrupting on GIC irq 43
[   1.0000060] sunxigpio1 at simplebus1: PIO
[   1.0000060] gpio1 at sunxigpio1: 12 pins
[   1.0000060] sunxigpio1: interrupting on GIC irq 77
[   1.0000060] sunxisramc0 at simplebus1: SRAM Controller
[   1.0000060] sun6idma0 at simplebus1: DMA controller (12 channels)
[   1.0000060] sun6idma0: interrupting on GIC irq 82
[   1.0000060] connector0 at simplebus0: HDMI connector
[   1.0000060] com0 at simplebus1: ns16550a, working fifo
[   1.0000060] com0: console
[   1.0000060] com0: interrupting on GIC irq 32
[   1.0000060] fregulator0 at simplebus0: vcc3v3
[   1.0000060] fregulator1 at simplebus0: usb0-vbus
[   1.0000060] fregulator2 at simplebus0: vcc3v0
[   1.0000060] fregulator3 at simplebus0: vcc5v0
[   1.0000060] sunxiusbphy0 at simplebus1: USB PHY
[   1.0000060] /soc/clock@1000000 at simplebus1 not configured
[   1.0000060] /soc/mixer@1100000 at simplebus1 not configured
[   1.0000060] /soc/lcd-controller@1c0c000 at simplebus1 not configured
[   1.0000060] /soc/hdmi@1ee0000 at simplebus1 not configured
[   1.0000060] sunxirtc0 at simplebus1: RTC
[   1.0000060] emac0 at simplebus1: EMAC
[   1.0000060] emac0: Ethernet address 02:81:b3:9c:e0:c9
[   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
[   1.0000060] h3codec0 at simplebus1: H3 Audio Codec (analog part)
[   1.0000060] /soc/hdmi-phy@1ef0000 at simplebus1 not configured
[   1.0000060] /opp_table0 at simplebus0 not configured
[   1.0000060] sunxitwi0 at simplebus1: Marvell TWSI controller
[   1.0000060] sunxitwi0: interrupting on GIC irq 76
[   1.0000060] iic0 at sunxitwi0: I2C bus
[   1.0000060] sy8106a0 at iic0 addr 0x65: Silergy SY8106A regulator
[   1.0000060] /display-engine at simplebus0 not configured
[   1.0000060] sunximmc0 at simplebus1: SD/MMC controller
[   1.0000060] sunximmc0: interrupting on GIC irq 92
[   1.0000060] motg0 at simplebus1: 'otg' mode not supported
[   1.0000060] ehci0 at simplebus1: EHCI
[   1.0000060] ehci0: interrupting on GIC irq 104
[   1.0000060] ehci0: 1 companion controller, 1 port
[   1.0000060] usb0 at ehci0: USB revision 2.0
[   1.0000060] ohci0 at simplebus1: OHCI
[   1.0000060] ohci0: interrupting on GIC irq 105
[   1.0000060] ohci0: OHCI version 1.0
[   1.0000060] usb1 at ohci0: USB revision 1.0
[   1.0000060] ehci1 at simplebus1: EHCI
[   1.0000060] ehci1: interrupting on GIC irq 106
[   1.0000060] ehci1: 1 companion controller, 1 port
[   1.0000060] usb2 at ehci1: USB revision 2.0
[   1.0000060] ohci1 at simplebus1: OHCI
[   1.0000060] ohci1: interrupting on GIC irq 107
[   1.0000060] ohci1: OHCI version 1.0
[   1.0000060] usb3 at ohci1: USB revision 1.0
[   1.0000060] ehci2 at simplebus1: EHCI
[   1.0000060] ehci2: interrupting on GIC irq 108
[   1.0000060] ehci2: 1 companion controller, 1 port
[   1.0000060] usb4 at ehci2: USB revision 2.0
[   1.0000060] ohci2 at simplebus1: OHCI
[   1.0000060] ohci2: interrupting on GIC irq 109
[   1.0000060] ohci2: OHCI version 1.0
[   1.0000060] usb5 at ohci2: USB revision 1.0
[   1.0000060] ehci3 at simplebus1: EHCI
[   1.0000060] ehci3: interrupting on GIC irq 110
[   1.0000060] ehci3: 1 companion controller, 1 port
[   1.0000060] usb6 at ehci3: USB revision 2.0
[   1.0000060] ohci3 at simplebus1: OHCI
[   1.0000060] ohci3: interrupting on GIC irq 111
[   1.0000060] ohci3: OHCI version 1.0
[   1.0000060] usb7 at ohci3: USB revision 1.0
[   1.0000060] sunxiwdt0 at simplebus1: Watchdog
[   1.0000060] sunxiwdt0: default watchdog period is 16 seconds
[   1.0000060] sunxicodec0 at simplebus1: H3 Audio Codec
[   1.0000060] audio0 at sunxicodec0: playback, capture, full duplex, independent
[   1.0000060] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
[   1.0000060] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
[   1.0000060] spkr0 at audio0: PC Speaker (synthesized)
[   1.0000060] wsbell at spkr0 not configured
[   1.0000060] /soc/ir@1f02000 at simplebus1 not configured
[   1.0000060] /soc/gpu@1c40000 at simplebus1 not configured
[   1.0000060] psci0 at simplebus0: PSCI 0.1
[   1.0000060] gpioleds0 at simplebus0: orangepi:green:pwr orangepi:red:status
[   1.0000060] gpiokeys0 at simplebus0: sw4
[   1.0000060] sunxitimer0 at simplebus1: Timer
[   1.0000060] /soc/video-codec@1c0e000 at simplebus1 not configured
[   1.0000060] cpu2: Cortex-A7 r0p5 (Cortex V7A core)
[   1.0000060] cpu2: DC enabled IC enabled WB enabled LABT branch prediction enabled
[   1.6040065] cpu2: 32KB/32B 2-way L1 VIPT Instruction cache
[   1.6040065] cpu2: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[   1.6139941] cpu2: 512KB/64B 8-way write-through L2 PIPT Unified cache
[   1.6239946] vfp2 at cpu2: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[   1.6239946] cpu3: Cortex-A7 r0p5 (Cortex V7A core)
[   1.6339942] cpu3: DC enabled IC enabled WB enabled LABT branch prediction enabled
[   1.6439946] cpu3: 32KB/32B 2-way L1 VIPT Instruction cache
[   1.6439946] cpu3: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[   1.6539947] cpu3: 512KB/64B 8-way write-through L2 PIPT Unified cache
[   1.6539947] vfp3 at cpu3: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[   1.6639956] cpu1: Cortex-A7 r0p5 (Cortex V7A core)
[   1.6739952] cpu1: DC enabled IC enabled WB enabled LABT branch prediction enabled
[   1.6739952] cpu1: 32KB/32B 2-way L1 VIPT Instruction cache
[   1.6839952] cpu1: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[   1.6939952] cpu1: 512KB/64B 8-way write-through L2 PIPT Unified cache
[   1.6939952] vfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[   1.7139982] sdmmc0 at sunximmc0
[   1.7339987] uhub0 at usb0: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
[   1.7339987] uhub1 at usb2: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
[   1.7440004] uhub2 at usb4: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
[   1.7539990] uhub3 at usb1: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
[   1.7639992] uhub4 at usb7: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
[   1.7785579] uhub5 at usb3: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
[   1.7839999] uhub6 at usb6: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
[   1.7939998] uhub7 at usb5: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
[   1.8540020] sdmmc0: SD card status: 4-bit, C10, A1
[   1.8540020] ld0 at sdmmc0: <0x03:0x5344:SB16G:0x80:0xdbdd3ecd:0x143>
[   1.8652312] ld0: 15193 MB, 7717 cyl, 64 head, 63 sec, 512 bytes/sect x 31116288 sectors
[   1.8740022] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
[   2.5140145] boot device: ld0
[   2.5140145] root on ld0a dumps on ld0b
[   2.5256492] root file system type: ffs
[   2.5345937] kern.module.path=/stand/evbarm/9.3/modules
Thu Aug  4 22:05:55 UTC 2022
Starting root file system check:
/dev/rld0a: file system is clean; not checking
fdisk: Cannot determine the number of heads
Not resizing /: already correct size
Starting file system checks:
/dev/rld0e: 229 files, 48364 free (12091 clusters)
random_seed: /var/db/entropy-file: Not present
Setting tty flags.
Setting sysctl variables:
ddb.onpanic: 1 -> 0
Starting network.
Hostname: armv7
IPv6 mode: host
Configuring network interfaces:.
Adding interface aliases:.
Waiting for DAD to complete for statically configured addresses...
Starting dhcpcd.
Starting mdnsd.
Building databases: dev, utmp, utmpx.
Starting syslogd.
Mounting all file systems...
Clearing temporary files.
Updating fontconfig cache: done.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
Starting virecover.
Starting devpubd.
Starting local daemons:.
Updating motd.
Starting ntpd.
Starting sshd.
Starting postfix.
Starting inetd.
Starting cron.
Thu Aug  4 22:06:09 UTC 2022

NetBSD/evbarm (armv7) (constty)

login: root
Jan 16 03:28:13 armv7 login: ROOT LOGIN (root) on tty constty
Last login: Thu Aug  4 19:04:53 2022 on constty
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018, 2019, 2020, 2021, 2022
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 9.3 (GENERIC) #0: Thu Aug  4 15:30:37 UTC 2022

Welcome to NetBSD!

We recommend that you create a non-root account and use su(1) for root access.
armv7# ifconfig -a
emac0: flags=0x8843 mtu 1500
        capabilities=3f00
        capabilities=3f00
        enabled=0
        ec_capabilities=1
        ec_enabled=0
        address: 02:81:b3:9c:e0:c9
        media: Ethernet autoselect (100baseTX full-duplex,flowcontrol,rxpause,txpause)
        status: active
        inet6 fe80::a1d7:9f1:8675:16e1%emac0/64 flags 0x0 scopeid 0x1
        inet6 2600:8800:7200:650c:3f81:3e0:5146:f431/64 flags 0x0
        inet6 fd4d:b11d:6fb4:0:d440:8b97:4653:35ca/64 flags 0x0
        inet6 fd80:1456:1955:0:54cc:1059:9a72:1e7d/64 flags 0x0
        inet6 2600:8800:7200:650c::927/128 flags 0x0
        inet6 fd4d:b11d:6fb4::927/128 flags 0x0
        inet 192.168.0.129/24 broadcast 192.168.0.255 flags 0x0
lo0: flags=0x8049 mtu 33176
        inet6 ::1/128 flags 0x20
        inet6 fe80::1%lo0/64 flags 0x0 scopeid 0x2
        inet 127.0.0.1/8 flags 0x0
armv7#


Feedback? Questions? Drop me a line!

Tom's Computer Info / [email protected]