Hi,
I have Apalis imx6q and Apalis eval board. In that, I am trying to boot the board from the TFTP server.
I am referring below article for that.
https://developer.toradex.com/linux-bsp/5.0/application-development/how-to-setup-networking-for-embedded-linux-application-development
https://developer.toradex.com/linux-bsp/5.0/os-development/boot/boot-from-a-tftpnfs-server/
Using the above article I am able to boot the dtb, kernel from the tftp server but in the end, it shows me kernel panic due to rootfs is not mounted.
Error :
[ 110.108472] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) ]---
For the Rootfs and Bootfs, I am building a Reference Image with Yocto Project/OpenEmbedded with the following refs/tags/5.7.2.
cat /etc/dhcp/dhcpd.conf
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
# configuration file instead of this file.
#
# option definitions common to all supported networks...
option domain-name "apalis.net";
option domain-name-servers ns1.example.org, ns2.example.org;
default-lease-time 600;
max-lease-time 7200;
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
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.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 eno1;
range 192.168.10.32 192.168.10.254;
}
#MAC address dependent IP assignment, used for the toradex target device
host eval {
filename "zImage";
fixed-address 192.168.10.2;
hardware ethernet 00:14:2d:a3:0b:78;
next-server 192.168.10.1;
option host-name "apalis";
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";
}
cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
#root=192.168.10.2:/srv/nfs/rootfs
/srv/nfs/rootfs 192.168.10.2(no_root_squash,no_subtree_check,rw)
#/srv/nfs 192.168.10.1/24(no_root_squash,no_subtree_check,rw,fsid=root)
Thanks in Advance,
Vishvas