-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue mounting rootfs via NFS #8
Comments
rootfs
mounted via NFS
I was able to solve the issue for QEMU by adding the QEMU_AUDIO_DRV=none \
qemu-system-arm -m 256M -nographic -M versatilepb -kernel \
${KERNEL} -append "console=ttyAMA0,115200 root=/dev/nfs rw \
nfsroot=${HOST_IP}:${ROOTDIR},v3 ip=${TARGET_IP}" -dtb ${DTB} -net \
nic -net tap,ifname=tap0,script=no Maybe the issue is that version 4 is used by default and the I still have the issue with the BeagleBoneBlack, even when passing |
Alright, I was able to mount via NFS in the beagle bone black as well, but I used DHCP and other commands. Those are the commands I used, assuming the host IP address is known (can be tested with
|
I have this issue for QEMU (Chapter Testing with QEMU) and BBB (Testing with the BeagleBone Black) . I am able to start the kernel but I don't get access to a command prompt to actually test things out. This is the last output on QEMU
IP-Config: Guessing netmask 255.255.255.0 IP-Config: Complete: device=eth0, hwaddr=52:54:00:12:34:56, ipaddr=192.168.1.101, mask=255.255.255.0, gw=255.255.255.255 host=192.168.1.101, domain=, nis-domain=(none) bootserver=255.255.255.255, rootserver=192.168.1.1, rootpath= random: fast init done
This is the last output on the beagle bone black (similar)
do I need to pass a special flag to the commands to get access to a shell prompt?
UPDATE: Actually, the eventually there is output the BBB
[ 7.992715] bootserver=255.255.255.255, rootserver=192.168.1.1, rootpath= [ 474.087947] VFS: Unable to mount root fs via NFS. [ 474.100304] devtmpfs: mounted [ 474.113848] Freeing unused kernel memory: 2048K [ 474.128613] Run /sbin/init as init process [ 474.133092] Run /etc/init as init process [ 474.137276] Run /bin/init as init process [ 474.141878] Run /bin/sh as init process [ 474.146088] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
Similar error in QEMU.
I guess something is not working yet. The rootpath appears to be empty as well
UPDATE2: I rechecked the steps in the previous chapter again, making sure that
nfs-kernel-server
is running as well. I still get the same issues that mounting fails withVFS: Unable to mount root fs via NFS.
..The text was updated successfully, but these errors were encountered: