NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-arm/57324: NetBSD 10.99.2 -current fails to detect root wedge using name on Raspberry Pi 3 official image



>Number:         57324
>Category:       port-arm
>Synopsis:       NetBSD 10.99.2 -current fails to detect root wedge using name on Raspberry Pi 3 official image
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 05 20:30:00 +0000 2023
>Originator:     Bartek Krawczyk
>Release:        10.99.2
>Organization:
>Environment:
NetBSD rpi3 10.99.2 NetBSD 10.99.2 (GENERIC64) #0: Sun Apr  2 15:06:06 UTC 2023 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm 
>Description:
10.99.2 from 02.04.2023 fails to find the root wedge using the root=NAME=netbsd-root argument passed to it from the bootloader. It works fine on 10.0_BETA. The only thing changed is the kernel itself. After answering with "dk1" during boot, it continues to boot fine (although asking about /sbin/init). This is a Raspberry Pi 3 installation using an official image of 10.0_BETA from https://nycdn.netbsd.org/pub/arm/ 

[   1.4856975] sdmmc0: SD card status: 4-bit, C10, U3, V30, A2
[   1.4967611] ld0 at sdmmc0: <0x1d:0x4144:SD   :0x02:0xd7022ac5:0x13c>
[   1.4967611] ld0: 117 GB, 15371 cyl, 255 head, 63 sec, 512 bytes/sect x 246947840 sectors
[   1.5157040] dk0 at ld0: "EFI", 163840 blocks at 32768, type: msdos
[   1.5157040] dk1 at ld0: "netbsd-root", 246743040 blocks at 196608, type: ffs
[   1.5257030] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
[   1.5857075] sdmmc1: 4-bit width, 50.000 MHz
[   1.5957106] sdmmc1: SDIO function
[   1.5957106] bwfm0 at sdmmc1 function 1
[   1.6057193] (manufacturer 0x2d0, product 0xa9a6) at sdmmc1 function 2 not configured
[   1.6157274] (manufacturer 0x2d0, product 0xa9a6, standard function interface code 0x2) at sdmmc1 function 3 not configured
[   2.0157606] uhub1 at uhub0 port 1: vendor 0424 (0x0424) product 2514 (0x2514), class 9/0, rev 2.00/b.b3, addr 2
[   2.0257620] uhub1: multiple transaction translators
[   2.8558321] uhub2 at uhub1 port 1: vendor 0424 (0x0424) product 2514 (0x2514), class 9/0, rev 2.00/b.b3, addr 3
[   2.8658342] uhub2: multiple transaction translators
[   3.2058625] uhub0: illegal enable change, port 1
[   3.2158641] swwdog0: software watchdog initialized
[   3.2258697] WARNING: 3 errors while detecting hardware; check system log.
[   3.2258697] boot device: ld0
[   3.2369263] root on ld0a dumps on ld0b
[   3.2369263] vfs_mountroot: can't open root device
[   3.2369263] cannot mount root, error = 16
[   3.2497924] root device (default ld0a):
[   4.1352268] dump device (default ld0b):
[   4.5673969] file system (default generic):
[   5.2860701] root on ld0a dumps on ld0b
[   5.2860701] vfs_mountroot: can't open root device
[   5.2860701] cannot mount root, error = 16
[   5.2981452] root device (default ld0a): uhub2: port 1 reset failed
[   5.7558228] dump device (default ld0b):
[   6.6264810] file system (default generic):
[   7.0067687] root on ld0a dumps on ld0b
[   7.0067687] vfs_mountroot: can't open root device
[   7.0067687] cannot mount root, error = 16
[   7.0187698] root device (default ld0a): dk1
[   8.4815674] dump device:
[   9.4116857] file system (default generic): ffs
[  10.5739479] root on dk1
[  10.5739479] kern.module.path=/stand/evbarm/10.99.2/modules
[  10.5870282] WARNING: no TOD clock present
[  10.5870282] vchiq0: interrupting on icu irq 66
[  10.5870282] WARNING: using filesystem time
[  10.5997254] WARNING: CHECK AND RESET THE DATE!
[  10.5997254] vcaudio0 at vchiq0: auds
[  10.6070300] audio0 at vcaudio0: playback
[  10.6170331] audio0: slinear_le:16 -> slinear_le:16 2ch 48000Hz, blk 7680 bytes (40ms) for playback
[  10.6270318] spkr0 at audio0: PC Speaker (synthesized)
[  10.6270318] wsbell at spkr0 not configured
[  12.4172682] bwfm0: CHIPACTIVE
[  12.5172821] bwfm0: address b8:27:eb:e4:30:c8
[  12.5172821] bwfm0: wl0: Mar  1 2015 07:29:38 version 7.45.18 (r538002) FWID 01-6a2c8ad4
[  12.5372856] init path (default /sbin/init):
[  12.9500747] init: trying /sbin/init


The rest of the config is:

rpi3# cd /boot
rpi3# cat config.txt
#
upstream_kernel=1
#
arm_64bit=1
os_prefix=dtb/broadcom/
cmdline=../../cmdline.txt
kernel=/netbsd.img
kernel_address=0x200000
enable_uart=1
force_turbo=0

rpi3# cat cmdline.txt
root=NAME=netbsd-root

rpi3# cat /etc/fstab
# NetBSD /etc/fstab
# See /usr/share/examples/fstab/ for more examples.
NAME=netbsd-root        /               ffs     rw,noatime,log  1 1
NAME=EFI                /boot           msdos   rw      1 1
ptyfs           /dev/pts        ptyfs   rw
procfs          /proc           procfs  rw
tmpfs           /var/shm        tmpfs   rw,-m1777,-sram%25
/swap none swap sw,dp 0 0

Why is it not reading the label "netbsd-root" properly comparing to 10.0_BETA? 

After reverting back to netbsd.img kernel from 10.0_BETA official image it boots just fine:

[   3.2195873] WARNING: 3 errors while detecting hardware; check system log.
[   3.2349937] boot device: ld0
[   3.2349937] root on dk1
[   3.2404133] root file system type: ffs
[   3.2504144] kern.module.path=/stand/evbarm/10.0/modules
[   3.2504144] WARNING: no TOD clock present
[   3.2504144] vchiq0: interrupting on icu irq 66
[   3.2604506] WARNING: using filesystem time
[   3.2690829] WARNING: CHECK AND RESET THE DATE!
[   3.2735786] vcaudio0 at vchiq0: auds
[   3.2804538] audio0 at vcaudio0: playback
[   3.2804538] audio0: slinear_le:16 -> slinear_le:16 2ch 48000Hz, blk 7680 bytes (40ms) for playback
[   3.2904532] spkr0 at audio0: PC Speaker (synthesized)
[   3.3004515] wsbell at spkr0 not configured
[   4.1405815] mue0 at uhub2 port 1
[   4.1505972] mue0: SMSC (0x0424) LAN7800 USB 3.1 gigabit ethernet device (0x7800), rev 2.10/3.00, addr 4
[   4.4406211] mue0: LAN7800 id 0x7800 rev 0x2
[   4.4506233] ukphy0 at mue0 phy 1: SMSC SMSC LAN8742 10/100 media interface (OUI 0x00800f, model 0x0013), rev. 2
[   4.4653560] ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
[   4.4706820] mue0: Ethernet address b8:27:eb:b1:65:9d
[   5.0807302] bwfm0: CHIPACTIVE
[   5.1807386] bwfm0: address b8:27:eb:e4:30:c8
[   5.1807386] bwfm0: wl0: Mar  1 2015 07:29:38 version 7.45.18 (r538002) FWID 01-6a2c8ad4 

both kernels get the same parameters:

10.0_BETA:

rpi3# ofctl /chosen
[Caching 124 nodes and 786 properties]
bootargs                62636d32 3730385f 66622e66 62776964 bcm2708_fb.fbwid
            0010:       74683d36 35362062 636d3237 30385f66   th=656 bcm2708_f
            0020:       622e6662 68656967 68743d34 31362062 b.fbheight=416 b
            0030:       636d3237 30385f66 622e6662 73776170 cm2708_fb.fbswap
            0040:       3d312064 6d612e64 6d616368 616e733d   =1 dma.dmachans=
            0050:       30783766 33352062 636d3237 30392e62   0x7f35 bcm2709.b
            0060:       6f617264 7265763d 30786130 32306433 oardrev=0xa020d3
            0070:       2062636d 32373039 2e736572 69616c3d bcm2709.serial=
            0080:       30786365 62313635 39642062 636d3237 0xceb1659d bcm27
            0090:       30392e75 6172745f 636c6f63 6b3d3438 09.uart_clock=48
            00a0:       30303030 30302062 636d3237 30392e64   000000 bcm2709.d
            00b0:       69736b5f 6c65645f 6770696f 3d323920 isk_led_gpio=29
            00c0:       62636d32 3730392e 6469736b 5f6c6564 bcm2709.disk_led
            00d0:       5f616374 6976655f 6c6f773d 3020736d _active_low=0 sm
            00e0:       73633935 78782e6d 61636164 64723d42 sc95xx.macaddr=B
            00f0:       383a3237 3a45423a 42313a36 353a3944 8:27:EB:B1:65:9D
            0100:       2076635f 6d656d2e 6d656d5f 62617365 vc_mem.mem_base
            0110:       3d307833 65633030 30303020 76635f6d =0x3ec00000 vc_m
            0120:       656d2e6d 656d5f73 697a653d 30783430 em.mem_size=0x40
            0130:       30303030 30302020 726f6f74 3d4e414d   000000 root=NAM
            0140:       453d6e65 74627364 2d726f6f 7400.... E=netbsd-root.
kaslr-seed              a13996ff 1117f038 ........ ........   .9.....8
name                    63686f73 656e00.. ........ ........   "chosen"
stdout-path             73657269 616c313a 31313532 30306e38 serial1:115200n8
            0010:       00...... ........ ........ ........   .


10.99.2 -current:

rpi3# ofctl /chosen
[Caching 124 nodes and 786 properties]
bootargs                62636d32 3730385f 66622e66 62776964 bcm2708_fb.fbwid
            0010:       74683d36 35362062 636d3237 30385f66   th=656 bcm2708_f
            0020:       622e6662 68656967 68743d34 31362062 b.fbheight=416 b
            0030:       636d3237 30385f66 622e6662 73776170 cm2708_fb.fbswap
            0040:       3d312064 6d612e64 6d616368 616e733d   =1 dma.dmachans=
            0050:       30783766 33352062 636d3237 30392e62   0x7f35 bcm2709.b
            0060:       6f617264 7265763d 30786130 32306433 oardrev=0xa020d3
            0070:       2062636d 32373039 2e736572 69616c3d bcm2709.serial=
            0080:       30786365 62313635 39642062 636d3237 0xceb1659d bcm27
            0090:       30392e75 6172745f 636c6f63 6b3d3438 09.uart_clock=48
            00a0:       30303030 30302062 636d3237 30392e64   000000 bcm2709.d
            00b0:       69736b5f 6c65645f 6770696f 3d323920 isk_led_gpio=29
            00c0:       62636d32 3730392e 6469736b 5f6c6564 bcm2709.disk_led
            00d0:       5f616374 6976655f 6c6f773d 3020736d _active_low=0 sm
            00e0:       73633935 78782e6d 61636164 64723d42 sc95xx.macaddr=B
            00f0:       383a3237 3a45423a 42313a36 353a3944 8:27:EB:B1:65:9D
            0100:       2076635f 6d656d2e 6d656d5f 62617365 vc_mem.mem_base
            0110:       3d307833 65633030 30303020 76635f6d =0x3ec00000 vc_m
            0120:       656d2e6d 656d5f73 697a653d 30783430 em.mem_size=0x40
            0130:       30303030 30302020 726f6f74 3d4e414d   000000 root=NAM
            0140:       453d6e65 74627364 2d726f6f 7400.... E=netbsd-root.
kaslr-seed              f8f620b9 0601e0a0 ........ ........   .. .....
name                    63686f73 656e00.. ........ ........   "chosen"
stdout-path             73657269 616c313a 31313532 30306e38 serial1:115200n8
            0010:       00...... ........ ........ ........   . 
>How-To-Repeat:
Install 10.0_BETA image on Raspberry Pi 3. Update kernel to -current.
>Fix:



Home | Main Index | Thread Index | Old Index