Hi,
I’m trying to boot a system using NFS/TFTP Server. My host system is Ubuntu 20.04 and Target system is Apalis iMX8. I able to load bootfs but nfs mount is failing,
Host network Detail:
eno2: mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether ******* brd ff:ff:ff:ff:ff:ff inet 192.168.10.1/24 brd 192.168.10.255 scope global noprefixroute eno2 valid_lft forever preferred_lft forever inet6 ********/64 scope link noprefixroute valid_lft forever preferred_lft forever
My target network Detail,
ethernet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1 inet 192.168.10.32 netmask 255.255.255.0 broadcast 192.168.10.255 inet6 fe80::1418:8cc1:8538:441e prefixlen 64 scopeid 0x20<link> ether ******* txqueuelen 1000 (Ethernet) RX packets 51 bytes 4464 (4.3 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 51 bytes 6250 (6.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
My dhcpd.conf below,
subnet 192.168.10.0 netmask 255.255.255.0 {
default-lease-time 86400;
max-lease-time 86400;
option broadcast-address 192.168.10.255;
option domain-name "apalis-imx8.net";
option domain-name-servers ns1.example.org;
option ip-forwarding off;
option routers 192.168.10.1;
option subnet-mask 255.255.255.0;
interface eno2;
range 192.168.10.32 192.168.10.254;
}
#MAC address dependent IP assignment, used for the colibri target device
host eval {
filename "uImage";
fixed-address 192.168.10.2;
hardware ethernet 00:14:2d:48:8a:58;
next-server 192.168.10.1;
option host-name "apalis-imx8";
option root-path "192.168.10.1:/srv/nfs/rootfs,wsize=1024,rsize=1024,v3";
#option root-path "rootfs,v4,tcp,clientaddr=0.0.0.0";
}
My exports file,
/srv/nfs/rootfs 192.168.10.2(no_root_squash,no_subtree_check,rw)
I also made connman.service changes as well. When I ran “run bootcmd_dhcp”, its loading all the bootfs file. But, getting the below error,
[ 109.668602]
[ 109.675429] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[ 109.683707] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 5.4.115-5.3.0-devel+git.f1d5aa976621 #1
[ 109.692242] Hardware name: Toradex Apalis iMX8QM V1.1 on Apalis Evaluation Board (DT)
[ 109.700087] Call trace:
[ 109.702548] dump_backtrace+0x0/0x140
[ 109.706216] show_stack+0x14/0x20
[ 109.709538] dump_stack+0xb4/0x110
[ 109.712939] panic+0x158/0x324
[ 109.716005] mount_block_root+0x1d0/0x284
[ 109.720019] mount_root+0x124/0x158
[ 109.723511] prepare_namespace+0x15c/0x1c0
[ 109.727616] kernel_init_freeable+0x210/0x23c
[ 109.731972] kernel_init+0x10/0x100
[ 109.735468] ret_from_fork+0x10/0x1c
[ 109.739052] SMP: stopping secondary CPUs
[ 109.742987] Kernel Offset: disabled
[ 109.746486] CPU features: 0x0002,2100600c
[ 109.750497] Memory Limit: none
[ 109.753562] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) ]---
Any suggestions would be greatly appreciated!