NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-arm/57545: NetBSD on arm seems unstable and prone to panics
>Number: 57545
>Category: port-arm
>Synopsis: NetBSD on arm seems unstable and prone to panics
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: port-arm-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 26 18:30:00 +0000 2023
>Originator: Dave Tyson
>Release: NetBSD 9.3
>Organization:
Anduin
>Environment:
System: NetBSD arm7.anduin.org.uk NetBSD 9.3 (GENERIC) #0: Thu Aug 4 15:30:37 UTC 2022
[ 1.0000000] mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC
Architecture: evbarm
Machine: earmv7hf
>Description:
Operating system on some arm hardware seems unstable. Boots OK but then doing simple activities
like editting a file or inserting a USB device can cause a panic.
>How-To-Repeat:
Install a NetBSD 9.3 image for a Orange Pi One from armbsd.org on an sdcard. Insert into SOC and connect serial cable. Power up. Note it boots OK and goes through the process of growing the memory card and rebooting. Login and do some simple operations like editing config files. Notice it traps.
boot 2018.11nb4 (Oct 05 2021 - 17:27:12 +0000) Allwinner Technology
CPU: Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi One
DRAM: 512 MiB
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
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 2 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...
28779 bytes read in 6 ms (4.6 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 ...
booting netbsd - starting in 5 seconds
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] mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC
[ 1.0000000] total memory = 512 MB
[ 1.0000000] avail memory = 496 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 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: 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] gregulator0 at simplebus0: vdd-cpux
[ 1.0000060] com0 at simplebus1: ns16550a, working fifo
[ 1.0000060] com0: console
[ 1.0000060] com0: interrupting on GIC irq 32
[ 1.0000060] sunxisid0 at simplebus1: Security ID EFUSE
[ 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:5f:ed:f6:44
[ 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] /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] sunxiwdt0 at simplebus1: Watchdog
[ 1.0000060] sunxiwdt0: default watchdog period is 16 seconds
[ 1.0000060] /soc/gpu@1c40000 at simplebus1 not configured
[ 1.0000060] sunxithermal0 at simplebus1: Thermal sensor controller
[ 1.0000060] sunxithermal0: interrupting on GIC irq 63
[ 1.0000060] sunxithermal0: cpu: alarm 90C hyst 15C shut 105C
[ 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] cpu3: Cortex-A7 r0p5 (Cortex V7A core)
[ 1.0000060] cpu3: DC enabled IC enabled WB enabled LABT branch prediction enabled
[ 1.0058778] cpu3: 32KB/32B 2-way L1 VIPT Instruction cache
[ 1.0058778] cpu3: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.0158684] cpu3: 512KB/64B 8-way write-through L2 PIPT Unified cache
[ 1.0258686] vfp3 at cpu3: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[ 1.0258686] cpu1: Cortex-A7 r0p5 (Cortex V7A core)
[ 1.0358685] cpu1: DC enabled IC enabled WB enabled LABT branch prediction enabled
[ 1.0458689] cpu1: 32KB/32B 2-way L1 VIPT Instruction cache
[ 1.0458689] cpu1: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.0558688] cpu1: 512KB/64B 8-way write-through L2 PIPT Unified cache
[ 1.0558688] vfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[ 1.0658700] cpu2: Cortex-A7 r0p5 (Cortex V7A core)
[ 1.0758693] cpu2: DC enabled IC enabled WB enabled LABT branch prediction enabled
[ 1.0758693] cpu2: 32KB/32B 2-way L1 VIPT Instruction cache
[ 1.0858695] cpu2: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
[ 1.0958696] cpu2: 512KB/64B 8-way write-through L2 PIPT Unified cache
[ 1.0958696] vfp2 at cpu2: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
[ 1.1158729] sdmmc0 at sunximmc0
[ 1.1358729] uhub0 at usb1: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
[ 1.1458724] uhub1 at usb0: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
[ 1.1588131] uhub2 at usb2: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
[ 1.1658732] uhub3 at usb3: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
[ 1.2558753] sdmmc0: SD card status: 4-bit, C4
[ 1.2662087] ld0 at sdmmc0: <0x03:0x5344:AALCD:0x80:0x5b6f481d:0x114>
[ 1.2662087] ld0: 30436 MB, 7729 cyl, 128 head, 63 sec, 512 bytes/sect x 62333952 sectors
[ 1.2858767] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
[ 3.5059174] rum0 at uhub2 port 1
[ 3.5059174] rum0: Ralink (0x7d1) 802.11 bg WLAN (0x3c03), rev 2.00/0.01, addr 2
[ 3.6359198] rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 00:22:b0:69:b5:78
[ 3.6459202] rum0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
[ 3.6559203] rum0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
[ 3.6659206] boot device: ld0
[ 3.6659206] root on ld0a dumps on ld0b
[ 3.6759221] root file system type: ffs
[ 3.6859215] kern.module.path=/stand/evbarm/9.3/modules
Wed Jul 26 17:10:37 UTC 2023
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)
Loaded entropy from /var/db/entropy-file.
Setting tty flags.
Setting sysctl variables:
ddb.onpanic: 1 -> 0
Starting network.
Hostname: armv7
IPv6 mode: host
Configuring network interfaces: emac0 rum0 bridge0.
Adding interface aliases:.
add net default: gateway 192.168.0.1
Waiting for DAD to complete for statically configured addresses...
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 sshd.
Starting postfix.
Starting inetd.
Starting cron.
Wed Jul 26 17:10:54 UTC 2023
NetBSD/evbarm (armv7) (constty)
login: root
Jul 26 17:11:23 armv7 login: ROOT LOGIN (root) on tty constty
Last login: Wed Jul 26 17:09:07 2023 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=0x8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
capabilities=3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>
capabilities=3f00<UDP4CSUM_Rx,UDP4CSUM_Tx>
enabled=0
ec_capabilities=1<VLAN_MTU>
ec_enabled=1<VLAN_MTU>
address: 02:81:5f:ed:f6:44
media: Ethernet autoselect (100baseTX full-duplex,flowcontrol,rxpause,txpause)
status: active
inet6 fe80::81:5fff:feed:f644%emac0/64 flags 0x0 scopeid 0x1
inet 192.168.0.254/24 broadcast 192.168.0.255 flags 0x0
rum0: flags=0x8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
ssid BTWi-fi
powersave off
bssid 6a:90:0a:4c:f7:02 chan 11
address: 00:22:b0:69:b5:78
media: IEEE802.11 autoselect (DS5 mode 11g)
status: active
inet6 fe80::222:b0ff:fe69:b578%rum0/64 flags 0x0 scopeid 0x2
lo0: flags=0x8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33176
inet6 ::1/128 flags 0x20<NODAD>
inet6 fe80::1%lo0/64 flags 0x0 scopeid 0x3
inet 127.0.0.1/8 flags 0x0
bridge0: flags=0x41<UP,RUNNING> mtu 1500
armv7# vi /etc/hostapd.conf
debug=4
interface=rum0
ssid=Penkett2
hw_mode=g
macaddr_acl=0
auth_algs=1
wpa=2
wpa_passphrase=xxxx
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
Copying file for recovery..
:wq
/etc/hostapd.conf: new file: 14 lines, 205 characters
[ 114.3086646] uvm_fault(0x91185978, c000, 2) -> e
[ 114.3086646] Fatal kernel mode data abort: 'Translation Fault (S)'
[ 114.3086646] trapframe: 0xa7eed940
[ 114.3086646] FSR=00000805, FAR=0000c110, spsr=20010013
[ 114.3086646] r0 =0000c100, r1 =00000000, r2 =901d6000, r3 =00000000
[ 114.3086646] r4 =90650250, r5 =00000000, r6 =00000000, r7 =809582f0
[ 114.3086646] r8 =00000000, r9 =a7eeda68, r10=00000000, r11=a7eed9b4
[ 114.3086646] r12=901d6000, ssp=a7eed990, slr=9065025c, pc =8037b8d4
Stopped in pid 625.1 (vi) at netbsd:uvm_pagefree+0x200: strne lr, [r0,
#0x010]
db{0}> bt
0xa7eed9b4: netbsd:uvm_pagefree+0xc
0xa7eedb54: netbsd:genfs_do_putpages+0xd00
0xa7eedb7c: netbsd:genfs_putpages+0x38
0xa7eedbbc: netbsd:VOP_PUTPAGES+0x50
0xa7eedbfc: netbsd:uvm_vnp_setsize+0xc0
0xa7eedd54: netbsd:ffs_truncate+0x5cc
0xa7eedd8c: netbsd:ufs_truncate_retry+0x58
0xa7eeddd4: netbsd:ufs_inactive+0x1e0
0xa7eeddfc: netbsd:VOP_INACTIVE+0x40
0xa7eede24: netbsd:vrelel+0x19c
0xa7eede5c: netbsd:ufs_remove+0xa4
0xa7eede84: netbsd:VOP_REMOVE+0x44
0xa7eedeec: netbsd:do_sys_unlinkat.isra.6+0x198
0xa7eedfac: netbsd:syscall+0x12c
db{0}> sync
syncing disks...
Lost carrier.
[EOT]
>Fix:
Sorry, not known.
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index