NFS Error

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

NFS Error

Jump to solution
2,158 Views
1990rahulreddy
Contributor IV

I am getting following error,after TFTP & NFS setting..

IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready                   
Sending DHCP requests ...... timed out!                                   
IP-Config: Retrying forever (NFS root)...                                 

fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_a

ddr=2188000.ethernet:01, irq=-1)                                          
Sending DHCP requests ..                                                  
libphy: 2188000.ethernet:01 - Link is Up - 100/Full                       
...                                            
Labels (3)
0 Kudos
1 Solution
1,760 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Rahul Reddy,

You can refer to the document in our community:Yocto NFS & TFTP boot

Have a great day,

Dan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct  button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

5 Replies
1,760 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Rahul Reddy,

Which board and BSP are you using?
Have a great day,
Dan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct  button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,760 Views
1990rahulreddy
Contributor IV

board = iMX6 Q SABRE-SDB

BSP= 3.14.28-1.0.0

after printenv

=> printenv                                                               
baudrate=115200                                                           
boot_fdt=try                                                              

bootargs_nfs=setenv bootargs console=${console},${baudrate} ${smp} root=/dev/nfs

ip=${ipaddr} nfsroot=${serverip}:${nfsroot},v2,tcp                       

bootcmd=mmc dev ${mmcdev};if mmc rescan; then if run loadbootscript; then run bo

otscript; else if run loadimage; then run mmcboot; else run netboot; fi; fi; els

e run netboot; fi                                                         
bootcmd_mfg=run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};
bootdelay=1                                                               
bootscript=echo Running bootscript from mmc ...; source                   
console=ttymxc0                                                           
ethact=FEC                                                                
ethaddr=00:00:9f:03:bb:7b                                                 
ethprime=FEC                                                              
fdt_addr=0x18000000                                                       
fdt_file=imx6q-sabresd.dtb                                                
fdt_high=0xffffffff                                                       
image=zImage--3.14.28-r0-imx6qsabresd-20160320043929.bin                  
initrd_addr=0x12C00000                                                    
initrd_high=0xffffffff                                                    
ip_dyn=no                                                                 
ipaddr=10.42.0.10                                                         
loadaddr=0x12000000                                                       
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};    
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}          
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}           

mfgtool_args=setenv bootargs console=ttymxc0,115200 rdinit=/linuxrc g_mass_stora

ge.stall=0 g_mass_storage.removable=1 g_mass_storage.idVendor=0x066F g_mass_stor

age.idProduct=0x37FF g_mass_storage.iSerialNumber="" enable_wait_mode=off 

mmcargs=setenv bootargs console=${console},${baudrate} ${smp} root=${mmcroot}  

mmcautodetect=yes                                                         

mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || tes

t ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdt_addr};

else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT;

fi; fi; else bootz; fi;                                                   
mmcdev=1                                                                  
mmcpart=1                                                                 
mmcroot=/dev/mmcblk2p2 rootwait rw                                        

netargs=setenv bootargs console=${console},${baudrate} ${smp} root=/dev/nfs ip={

ipaddr} nfsroot=${serverip}:${nfsroot},v3,tcp                             

netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then se

tenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${

boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_

file}; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; the

n bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;      
nfsroot=/nfsroot                                                          
script=boot.scr                                                           
serverip=10.42.0.1                                                        

update_sd_firmware=if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else seten

v get_cmd tftp; fi; if mmc dev ${mmcdev}; then if ${get_cmd} ${update_sd_firmwar

e_filename}; then setexpr fw_sz ${filesize} / 0x200; setexpr fw_sz ${fw_sz} + 1;

mmc write ${loadaddr} 0x2 ${fw_sz}; fi; fi                               
                                                                          
Environment size: 2539/8188 bytes  
0 Kudos
1,761 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Rahul Reddy,

You can refer to the document in our community:Yocto NFS & TFTP boot

Have a great day,

Dan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct  button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,760 Views
1990rahulreddy
Contributor IV

Thank you, it solves problem

0 Kudos
1,760 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Rahul Reddy,

It's my pleasure:smileyhappy:.I am very glad it works.

Have a nice day

Dan

0 Kudos