Hi
ich habe ein kleines Problem meinen RaspberryPi 3B+ über NFS zu booten. Ich hatte das ganze schon auf einer Server-Umgebung auf der Arbeit am laufen, nun versuche ich es privat auf meinem Laptop zu machen. Daher weis ich was ich hier tun muss, bekomme aber beim NFS-boot nicht weiter.
kurz zum Setup:
- Host: MacBook Pro 2015 mit MacOS 11.2.1
- Gast: Debian 10 Server via VirtualBox 6.1.16
- Debian mit Netzwerkadaper auf Netzwerkbrücke gestellt um ins Hostnetz zu kommen
- im Debian Docker 20.10.3 installier um 3 Container bereit zu stellen:
-> 3x3cut0r/isc-dhcp-server:latest
-> 3x3cut0r/tftpd-hpa:latest
-> erichough/nfs-server:latest
verwendetes Image:
https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-01-12/2021-01-11-raspios-buster-armhf-lite.zip
/tftpboot
total 45772
drwxr--r-- 3 9069 9069 4096 Feb 16 19:03 .
drwxr-xr-x 20 root root 4096 Feb 9 00:16 ..
-rwxr--r-- 1 root root 18693 Feb 16 15:55 COPYING.linux
-rwxr--r-- 1 root root 1594 Feb 16 15:55 LICENCE.broadcom
-rwxr--r-- 1 root root 25426 Feb 16 15:55 bcm2708-rpi-b-plus.dtb
-rwxr--r-- 1 root root 24774 Feb 16 15:55 bcm2708-rpi-b-rev1.dtb
-rwxr--r-- 1 root root 25163 Feb 16 15:55 bcm2708-rpi-b.dtb
-rwxr--r-- 1 root root 24896 Feb 16 15:55 bcm2708-rpi-cm.dtb
-rwxr--r-- 1 root root 26101 Feb 16 15:55 bcm2708-rpi-zero-w.dtb
-rwxr--r-- 1 root root 24908 Feb 16 15:55 bcm2708-rpi-zero.dtb
-rwxr--r-- 1 root root 26301 Feb 16 15:55 bcm2709-rpi-2-b.dtb
-rwxr--r-- 1 root root 26450 Feb 16 15:55 bcm2710-rpi-2-b.dtb
-rwxr--r-- 1 root root 28567 Feb 16 15:55 bcm2710-rpi-3-b-plus.dtb
-rwxr--r-- 1 root root 27948 Feb 16 15:55 bcm2710-rpi-3-b.dtb
-rwxr--r-- 1 root root 26257 Feb 16 15:55 bcm2710-rpi-cm3.dtb
-rwxr--r-- 1 root root 47484 Feb 16 15:55 bcm2711-rpi-4-b.dtb
-rwxr--r-- 1 root root 47657 Feb 16 15:55 bcm2711-rpi-400.dtb
-rwxr--r-- 1 root root 47593 Feb 16 15:55 bcm2711-rpi-cm4.dtb
-rwxr--r-- 1 root root 52456 Feb 16 15:55 bootcode.bin
-rwxr--r-- 1 root root 166 Feb 16 19:03 cmdline.txt
-rwxr--r-- 1 root root 1808 Feb 16 15:55 config.txt
-rwxr--r-- 1 root root 7301 Feb 16 15:55 fixup.dat
-rwxr--r-- 1 root root 5429 Feb 16 15:55 fixup4.dat
-rwxr--r-- 1 root root 3176 Feb 16 15:55 fixup4cd.dat
-rwxr--r-- 1 root root 8440 Feb 16 15:55 fixup4db.dat
-rwxr--r-- 1 root root 8436 Feb 16 15:55 fixup4x.dat
-rwxr--r-- 1 root root 3176 Feb 16 15:55 fixup_cd.dat
-rwxr--r-- 1 root root 10288 Feb 16 15:55 fixup_db.dat
-rwxr--r-- 1 root root 10288 Feb 16 15:55 fixup_x.dat
-rwxr--r-- 1 root root 145 Feb 16 15:55 issue.txt
-rwxr--r-- 1 root root 5456128 Feb 16 15:55 kernel.img
-rwxr--r-- 1 root root 5787640 Feb 16 15:55 kernel7.img
-rwxr--r-- 1 root root 6146456 Feb 16 15:55 kernel7l.img
-rwxr--r-- 1 root root 6886671 Feb 16 15:55 kernel8.img
drwxr--r-- 2 9069 9069 12288 Feb 16 15:55 overlays
-rwxr--r-- 1 root root 2940128 Feb 16 15:55 start.elf
-rwxr--r-- 1 root root 2215776 Feb 16 15:55 start4.elf
-rwxr--r-- 1 root root 791356 Feb 16 15:55 start4cd.elf
-rwxr--r-- 1 root root 3716808 Feb 16 15:55 start4db.elf
-rwxr--r-- 1 root root 2975368 Feb 16 15:55 start4x.elf
-rwxr--r-- 1 root root 791356 Feb 16 15:55 start_cd.elf
-rwxr--r-- 1 root root 4788712 Feb 16 15:55 start_db.elf
-rwxr--r-- 1 root root 3698952 Feb 16 15:55 start_x.elf
Alles anzeigen
/nfsroot/raspberrypi
total 72
drwxr-xr-x 18 root root 4096 Feb 9 00:17 .
drwxr-xr-x 3 root root 4096 Feb 9 00:16 ..
drwxr-xr-x 3 root root 4096 Feb 16 18:51 boot
drwxr-xr-x 4 root root 4096 Feb 9 00:17 dev
drwxr-xr-x 79 root root 4096 Feb 16 18:51 etc
drwxr-xr-x 3 root root 4096 Feb 9 00:17 home
drwx------ 2 root root 4096 Feb 9 00:17 lost+found
drwxr-xr-x 2 root root 4096 Feb 9 00:17 media
drwxr-xr-x 2 root root 4096 Feb 9 00:17 mnt
drwxr-xr-x 3 root root 4096 Feb 9 00:17 opt
drwxr-xr-x 2 root root 4096 Feb 9 00:17 proc
drwx------ 2 root root 4096 Feb 16 15:55 root
drwxr-xr-x 4 root root 4096 Feb 16 15:55 run
drwxr-xr-x 2 root root 4096 Feb 9 00:17 srv
drwxr-xr-x 2 root root 4096 Feb 9 00:17 sys
drwxr-xr-x 2 root root 4096 Feb 9 00:17 tmp
drwxr-xr-x 10 root root 4096 Feb 9 00:17 usr
drwxr-xr-x 11 root root 4096 Feb 9 00:17 var
Alles anzeigen
/tftpboot/cmdline.txt
selinux=0 dwc_otg.lpm_enable=0 console=tty1 root=/dev/nfs nfsroot=192.168.15.254:/nfsroot/raspberrypi,vers=4.1,tcp rw ip=dhcp rootwait elevator=deadline
/etc/exports
/nfsroot/raspberrypi/etc/fstab
Mein DHCP funktioniert wunderbar ... RPi bekommt IP (incl. TFTP-Server)
Mein TFTP funktioniert wunderbar ... RPi zieht sich bootcode.bin und alles weitere (incl. kernel7.img)
So jetzt zum problem:
Mein NFS funktioniert in der Theorie auch wunderbar. Kann von anderen Clients (incl. meinem Macbook) das NFS-Root Mounten (in version 4), nur bricht der Bootvorgang mit folgendem Fehler ab:
end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
was kann ich tun? Woran liegt das?
Ich habe nfs vers=3 auch schon versucht.