Current-Users archive

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

Re: Raspberry Pi 3 aarch64 -current fails to find root fs label and boot.



On 05/04/2023 14:09, Michael van Elst wrote:
bbartlomiej.mail%gmail.com@localhost (Bartek Krawczyk) writes:

[   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,


[   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):

The bootloader (EFI?) tells the kernel to use ld0a and ld0b.
No idea why, maybe it doesn't support GPT?

The kernel produces wedges, and access to ld0 is forbidden
(error = 16 == EBUSY), but you can select a wedge as dkN (or by name).

To find the problem, you'd need to analyse your image and bootloader
version.


Well that would be odd as I haven't changed anything except for the netbsd.img kernel itself. It's a Raspberry Pi 3 so I don't think it's UEFI boot?
My /boot/cmdline.txt has only:
root=NAME=netbsd-root

so I'd assume this is passed on to the kernel? It detects dk1 with this label but doesn't use this information.

/boot/config.txt is:
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

and also was not touched.

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

--
Regards
Bartłomiej Krawczyk



Home | Main Index | Thread Index | Old Index