Hi NXP Team,
I am trying to boot the board via TFTP using NFS for which I've done setup in my host system also which is as :
Step-1 :
sudo apt install nfs-kernel-server
sudo mkdir -p /srv/rootfs
copied the filesystem in /srv/rootfs
sudo nano /etc/exports
/srv/rootfs *(rw,sync,no_root_squash,no_subtree_check)
sudo exportfs -a
sudo systemctl start nfs-kernel-server
Step-2 : u-boot
setenv serverip 192.168.1.23
setenv ipaddr 192.168.1.1
tftpboot (kernel image)
tftpboot(dtb file)
setenv bootargs 'console=ttyLP0,115200 root=/dev/nfs nfsroot=192.168.1.23:/srv/rootfs earlycon=pl011,mmio32,0x21c0000 ramdisk_size=0x2000000 default_hugepagesz=1024m hugepagesz=1024m hugepages=2 pci=pcie_bus_perf'
booti 0x80400000 - 0x83000000 (booting with kernel and dtb)
Step-3 :
The kernel is able the boot but at last filesystem mounting issue is coming :
logs :
[ 12.169473] platform imx93-lpm: deferred probe pending
[ 62.601173] cfg80211: failed to load regulatory.db
[ 99.465609] VFS: Unable to mount root fs via NFS.
[ 99.470512] devtmpfs: mounted
[ 99.475319] Freeing unused kernel memory: 3968K
[ 99.480152] Run /sbin/init as init process
[ 99.484470] Run /etc/init as init process
[ 99.488603] Run /bin/init as init process
[ 99.492720] Run /bin/sh as init process
[ 99.496679] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.
[ 99.510826] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.6.23-lts-next-gcf875fe1b7ef #1
[ 99.518726] Hardware name: Evercharge evermesh module (DT)
[ 99.524196] Call trace:
[ 99.526640] dump_backtrace+0x90/0xe8
[ 99.530305] show_stack+0x18/0x24
[ 99.533615] dump_stack_lvl+0x48/0x60
[ 99.537273] dump_stack+0x18/0x24
[ 99.540583] panic+0x31c/0x378
[ 99.543635] kernel_init+0x19c/0x1dc
[ 99.547205] ret_from_fork+0x10/0x20
[ 99.550779] Kernel Offset: disabled
[ 99.554260] CPU features: 0x0,c0000000,40028143,1000721b
[ 99.559563] Memory Limit: none
[ 99.562610] ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-g-
can you please guide me on how I can boot the device with NFS mounting and get the prompt?
Thanks.