Hello
I have Got A Ixzora Cariier board and Apalis Imx.8qm Module.
I’m trying to boot a system using NFS/TFTP Server(Static Mode).
My OS host system is Ubuntu 20.04.
I could load kernel (zimage) and dtb using Static configuration and boot kernel but nfs root-file-system mount is failing:
There is the result of log
## Executing script at 83100000 Using ethernet@5b040000 device TFTP from server 10.42.0.1; our IP address is 10.42.0.80 Filename 'hdmitxfw.bin'. Load address: 0x9c000000 Loading: ##################### 0 Bytes 3.3 MiB/s done Bytes transferred = 106496 (1a000 hex) Loading hdp firmware from 0x000000009c000000 offset 0x0000000000002000 Loading hdp firmware Complete Loading DeviceTree: imx8qm-apalis-ixora-v1.2.dtb Using ethernet@5b040000 device TFTP from server 10.42.0.1; our IP address is 10.42.0.80 Filename 'imx8qm-apalis-ixora-v1.2.dtb'. Load address: 0x83000000 Loading: ################################## 0 Bytes 9 MiB/s done Bytes transferred = 170028 (2982c hex) Using ethernet@5b040000 device TFTP from server 10.42.0.1; our IP address is 10.42.0.80 Filename 'overlays.txt'. Load address: 0x87000000 Loading: # 0 Bytes 7.8 KiB/s done Bytes transferred = 43 (2b hex) Applying Overlay: apalis-imx8_hdmi_overlay.dtbo Using ethernet@5b040000 device TFTP from server 10.42.0.1; our IP address is 10.42.0.80 Filename 'overlays/apalis-imx8_hdmi_overlay.dtbo'. Load address: 0x87000000 Loading: # 0 Bytes 1 MiB/s done Bytes transferred = 2177 (881 hex) Using ethernet@5b040000 device TFTP from server 10.42.0.1; our IP address is 10.42.0.80 Filename 'Image.gz'. Load address: 0x87000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################ 0 Bytes 13 MiB/s done Bytes transferred = 10642316 (a2638c hex) Uncompressed size: 25700864 = 0x1882A00 Bootargs: pci=nomsi root=/dev/nfs nfsroot=10.42.0.1:/srv/fs ## Flattened Device Tree blob at 83000000 Booting using the fdt blob at 0x83000000 Loading Device Tree to 00000000fd601000, end 00000000fd64dfff ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 5.4.193-5.7.0-devel+git.f78299297185 (oe-user@oe-host) (gcc version 9.3.0 (GCC)) #1 SMP PREEMPT Mon Jul 11 14:42:03 UTC 2022 [ 0.000000] Machine model: Toradex Apalis iMX8QM V1.1 on Apalis Ixora V1.2 Carrier Board [ 0.000000] efi: Getting EFI parameters from FDT: . . . [ 4.068640] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00ffffff] [ 4.074947] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x00ffffff pref] [ 4.081730] pci 0000:00:00.0: supports D1 D2 [ 4.086029] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot [ 4.098747] pci 0000:01:00.0: [1b4b:2b42] type 00 class 0x020000 [ 4.104866] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref] [ 4.112156] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x000fffff 64bit pref] [ 4.119724] pci 0000:01:00.0: supports D1 D2 [ 4.124032] pci 0000:01:00.0: PME# supported from D0 D1 D3hot D3cold [ 4.124138] hub 3-1:1.0: USB hub found [ 4.130529] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5 GT/s x1 link) [ 4.148049] hub 3-1:1.0: 3 ports detected [ 4.168338] pci 0000:00:00.0: BAR 0: assigned [mem 0x70000000-0x70ffffff] [ 4.175415] pci 0000:00:00.0: BAR 6: assigned [mem 0x71000000-0x71ffffff pref] [ 4.182667] pci 0000:00:00.0: BAR 15: assigned [mem 0x72000000-0x721fffff 64bit pref] [ 4.190533] pci 0000:01:00.0: BAR 0: assigned [mem 0x72000000-0x720fffff 64bit pref] [ 4.198325] pci 0000:01:00.0: BAR 2: assigned [mem 0x72100000-0x721fffff 64bit pref] [ 4.206128] pci 0000:00:00.0: PCI bridge to [bus 01-ff] [ 4.211373] pci 0000:00:00.0: bridge window [mem 0x72000000-0x721fffff 64bit pref] [ 4.219497] pcieport 0000:00:00.0: PME: Signaling with IRQ 567 [ 4.440242] usb 3-1.3: new low-speed USB device number 3 using ci_hdrc [ 4.462298] imx6q-pcie 5f000000.pcie: Phy link never came up [ 4.468037] imx6q-pcie 5f000000.pcie: failed to initialize host [ 4.474015] imx6q-pcie 5f000000.pcie: unable to add pcie port. [ 4.560308] input: PixArt USB Optical Mouse as /devices/platform/bus@5b000000/5b0e0000.usb/ci_hdrc.1/usb3/3-1/3-1.3/3-1.3:1.0/0003:093A:2510.0001/input/input1 [ 4.575030] hid-generic 0003:093A:2510.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-ci_hdrc.1-1.3/input0 [ 33.764258] VDD_EXT_RGMII (LDO1): disabling [ 33.768481] pcie_switch: disabling [ 33.771897] 3v3_vmmc: disabling [ 33.775059] can1_supply: disabling [ 33.778480] can2_supply: disabling [ 103.396617] VFS: Unable to mount root fs via NFS, trying floppy. [ 103.403076] VFS: Cannot open root device "nfs" or unknown-block(2,0error -6 [ 103.410367] Please append a correct "root=" boot option; here are the available partitions: [ 103.418999] 0100 65536 ram0 [ 103.419000] (driver?) [ 103.425142] 0101 65536 ram1 [ 103.425142] (driver?) [ 103.431257] 0102 65536 ram2 [ 103.431258] (driver?) [ 103.437376] 0103 65536 ram3 [ 103.437376] (driver?) [ 103.443497] 0104 65536 ram4 [ 103.443497] (driver?) [ 103.449610] 0105 65536 ram5 [ 103.449611] (driver?) [ 103.455716] 0106 65536 ram6 [ 103.455716] (driver?) [ 103.461833] 0107 65536 ram7 [ 103.461834] (driver?) [ 103.467950] 0108 65536 ram8 [ 103.467951] (driver?) [ 103.474070] 0109 65536 ram9 [ 103.474071] (driver?) [ 103.480196] 010a 65536 ram10 [ 103.480196] (driver?) [ 103.486397] 010b 65536 ram11 [ 103.486398] (driver?) [ 103.492604] 010c 65536 ram12 [ 103.492605] (driver?) [ 103.498806] 010d 65536 ram13 [ 103.498807] (driver?) [ 103.505018] 010e 65536 ram14 [ 103.505019] (driver?) [ 103.511220] 010f 65536 ram15 [ 103.511221] (driver?) [ 103.517439] b300 15392768 mmcblk0 [ 103.517440] driver: mmcblk [ 103.524257] b301 49152 mmcblk0p1 594a73e7-01 [ 103.524258] [ 103.531067] b302 15339520 mmcblk0p2 594a73e7-02 [ 103.531068] [ 103.537876] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) [ 103.546148] CPU: 5 PID: 1 Comm: swapper/0 Not tainted 5.4.193-5.7.0-devel+git.f78299297185 #1 [ 103.554675] Hardware name: Toradex Apalis iMX8QM V1.1 on Apalis Ixora V1.2 Carrier Board (DT) [ 103.563206] Call trace: [ 103.565662] dump_backtrace+0x0/0x168 [ 103.569322] show_stack+0x14/0x20 [ 103.572643] dump_stack+0xb4/0x110 [ 103.576045] panic+0x158/0x324 [ 103.579105] mount_block_root+0x1d0/0x284 [ 103.583114] mount_root+0x124/0x158 [ 103.586598] prepare_namespace+0x15c/0x1c0 [ 103.590689] kernel_init_freeable+0x21c/0x248 [ 103.595043] kernel_init+0x10/0x100 [ 103.598540] ret_from_fork+0x10/0x1c [ 103.602120] SMP: stopping secondary CPUs [ 103.606053] Kernel Offset: disabled [ 103.609546] CPU features: 0x10002,2100600c [ 103.613643] Memory Limit: none [ 103.616700] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) ]---
i wrote a script bootloader to boot kernel zImage and DTB as bellow:
setenv my_bootcmd_dhcp 'echo Boot NFS static. . .; setenv devtype tftp; printenv devtype; if test "${devtype}" = "tftp"; setenv ipaddr "10.42.0.80"; setenv serverip "10.42.0.1"; setenv rootpath "srv/fs"; printenv rootpath; setenv fdt_file imx8qm-apalis-ixora-v1.2.dtb source ${scriptaddr}; then echo "finish . . .***"; fi' run my_bootcmd_dhcp
My exports file,
/srv/fs *(no_root_squash,no_subtree_check,rw)
after that
sudo /etc/init.d/nfs-kernel-server restart
sudo mount core-image-minimal-apalis-imx8.ext4 /srv/fs
sudo exportfs -r
sudo exportfs -u
and ftp config
$ sudo gedit /etc/xinetd.d/tftp service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = nobody server = /usr/sbin/in.tftpd server_args = /tftpboot disable = no } and run: $ sudo mkdir /tftp $ sudo chmod -R 777 /srv/tftp $ sudo /etc/init.d/xinetd restart
Any idea, how we can boot NFS static the I.mx8 apalis device rootfs?
Best regards,