Running the Linux image from NFS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Running the Linux image from NFS

1,131 Views
machengyuan
Contributor I

Hello,I am using the i.MX 8M QUAD EVK.I want to run the Linux image from NFS.I operate in accordance with 4.7.5 of the i.MX_Linux_User's_Guide.pdf.The following is my parameter setting:

setenv ipaddr 192.168.0.100 && setenv serverip 192.168.0.102 && setenv image Image && setenv fdt_file fsl-imx8mq-evk.dtb && setenv bootcmd_net 'run rootfsinfo; dhcp ${image}; dhcp ${fdt_addr}${fdt_file}; booti ${loadaddr} - ${fdt_addr}' && setenv bootcmd 'run bootcmd_net'.

But here's the problem:

BOOTP broadcast 1

DHCP client bound to address 192.168.0.100 (3 ms)

Using ethernet@30be0000 device

TFTP from server 192.168.0.102; our IP address is 192.168.0.100

Filename 'Image'.Load address: 0x40480000

Loading: #################################################################         #######################       

2.3 MiB/s

done

Bytes transferred = 20464128 (1384200 hex)

BOOTP broadcast 1

DHCP client bound to address 192.168.0.100 (3 ms)

Using ethernet@30be0000 device

TFTP from server 192.168.0.102; our IP address is 192.168.0.100

Filename 'fsl-imx8mq-evk.dtb'.

Load address: 0x40480000

Loading: ###         1.4 MiB/s

done

Bytes transferred = 42199 (a4d7 hex)

Bad Linux ARM64 Image magic!

It's not just my own compiled kernel and device tree that doesn't work. The same problems can occur with the kernel and device tree in the

L4.9.51_8mq-ga_mfg-tools.

Labels (1)
0 Kudos
4 Replies

847 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

How are you setting the environment variables?

Furthermore, I recommend you to use the u-boot script run netboot.

This script will initialize the network booting. Probably you will need more environment variable, how the the gatewayip and the nfsroot variable. But only setting those extra variables the boot will work if you setted in the correct way the NFS and TFTP servers.

Hope this information can help you.

Best Regards,

Diego.

0 Kudos

847 Views
kingplayer
Contributor II

I have same problem!

image:

   Image--4.9.88-r0-imx8mqevk-20180817022628.bin

dtb:

   Image--4.9.88-r0-fsl-imx8mq-evk-20180817022628.dtb


U-Boot 2017.03-imx_v2017.03_4.9.88_2.0.0_ga+gb76bb1b (Aug 17 2018 - 11:28:07 +0800)

CPU: Freescale i.MX8MQ rev2.0 1500 MHz (running at 1000 MHz)
CPU: Commercial temperature grade (0C to 95C) at 43C
Reset cause: POR
Model: Freescale i.MX8MQ EVK
DRAM: 3 GiB
TCPC: Vendor ID [0x1fc9], Product ID [0x5110]
MMC: FSL_SDHC: 0, FSL_SDHC: 1
No panel detected: default to HDMI
Display: HDMI (1280x720)
In: serial
Out: serial
Err: serial

BuildInfo:
- ATF 6a83ae0
- U-Boot 2017.03-imx_v2017.03_4.9.88_2.0.0_ga+gb76bb1b

switch to partitions #0, OK
mmc0(part 0) is current device
Net: eth0: ethernet@30be0000
Normal Boot
Hit any key to stop autoboot: 0
BOOTP broadcast 1
DHCP client bound to address 192.168.80.52 (23 ms)
Using ethernet@30be0000 device
TFTP from server 192.168.80.64; our IP address is 192.168.80.52
Filename 'Image'.
Load address: 0x40480000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
####################
846.7 KiB/s
done
Bytes transferred = 20398592 (1374200 hex)
BOOTP broadcast 1
DHCP client bound to address 192.168.80.52 (6 ms)
Using ethernet@30be0000 device
TFTP from server 192.168.80.64; our IP address is 192.168.80.52
Filename 'test.dtb'.
Load address: 0x43000000
Loading: #########
978.5 KiB/s
done
Bytes transferred = 42111 (a47f hex)
Bad Linux ARM64 Image magic!
u-boot=>

0 Kudos

847 Views
machengyuan
Contributor I

4.9.51

0 Kudos

847 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Wich kernel version are you using?

Best Regards,

Diego.

0 Kudos