boot process hangs without network

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

boot process hangs without network

1,537 Views
maxime_metayer
Contributor I

 

I have a problem when I try to start my card without network connection. if i don't plug the card with the ethernet port on the network the system hangs during the boot.

This is the output I am receiving from u-boot now:

cpu cpu0: failed to get regulators
imx6q-cpufreq: probe of imx6q-cpufreq failed with error -2
usb_otg1_vbus: disabling
regulator-dummy: disabling
imx mcc test is registered.
rtc-em3027 2-0056: setting system clock to 2010-01-01 20:00:07 UTC (1262376007)
fec 2188000.ethernet eth0: Freescale FEC PHY driver [Micrel KSZ8041RNLI] (mii_bus:phy_addr=2188000.ethernet:00, irq=-1)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Waiting up to 110 more seconds for network.
Waiting up to 100 more seconds for network.
Waiting up to 90 more seconds for network.
Waiting up to 80 more seconds for network.
Waiting up to 70 more seconds for network.
random: nonblocking pool is initialized
Waiting up to 60 more seconds for network.

And this is the output of printenv:

autoload=off
baudrate=115200
board_name=CL-SOM-iMX6UL
boot_fdt=try
bootargs=console=ttymxc2,115200 root=/dev/mmcblk1p2 rootwait rw ip=dhcp
bootcmd=run loadimage; run loadfdt; run dvi+; bootz ${loadaddr} - ${fdt_addr}
bootdelay=3
bootscript=echo Running bootscript from mmc ...; source
console=ttymxc2
dvi+=fdt addr ${fdt_addr}; fdt rm lcdif/display/display-timings/lcd
emmc+=fdt addr ${fdt_addr}; fdt set gpmi status "disabled"; fdt set mmc1 status "okay"
ethact=FEC0
ethaddr=00:01:c0:1f:a5:6a
ethprime=FEC
fdt_addr=0x83000000
fdt_file=imx6ul-sbc-imx6ul.dtb
fdt_high=0xffffffff
fdtaddr=83000000
filesize=8210
findfdt=if test $fdt_file = undefined; then echo WARNING: Could not determine dtb to use; fi;
image=zImage-cl-som-imx6ul
initrd_high=0xffffffff
ip_dyn=yes
lcd+=fdt addr ${fdt_addr}; fdt rm lcdif/display/display-timings/dvi
loadaddr=0x82000000
loadbootscript=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot}
mmcautodetect=yes
mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || test ${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/mmcblk1p2 rootwait rw
netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp
netboot=run netbootdummycmd;
netbootcmd=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv 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; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;
netbootdummycmd=echo Issuing dummy net boot...;
script=boot.scr
stderr=serial
stdin=serial
stdout=serial
zimage=zImage-cl-som-imx6ul

When I change the bootargs variable for : 

setenv bootargs = bootargs=console=ttymxc2,115200 root=/dev/mmcblk1p2 rootwait rw ip=none

the u-boot output doesn't show me the IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready but the boot hang on this message : 

systemd[1]: Started Create list of required static device nodes for the current kernel.
[ OK ] Started Create list of required sta...ce nodes for the current kernel.
systemd[1]: Started Load Kernel Modules.
[ OK ] Started Load Kernel Modules.
systemd[1]: Started Remount Root and Kernel File Systems.
[ OK ] Started Remount Root and Kernel File Systems.
systemd[1]: Starting udev Coldplug all Devices...
Starting udev Coldplug all Devices...
systemd[1]: Starting Load/Save Random Seed...
Starting Load/Save Random Seed...
systemd[1]: Mounting FUSE Control File System...
Mounting FUSE Control File System...
systemd[1]: Starting Apply Kernel Variables...
Starting Apply Kernel Variables...
systemd[1]: Starting Create Static Device Nodes in /dev...
Starting Create Static Device Nodes in /dev...
systemd[1]: Mounted FUSE Control File System.
[ OK ] Mounted FUSE Control File System.
systemd[1]: Started Load/Save Random Seed.
[ OK ] Started Load/Save Random Seed.
systemd[1]: Started Apply Kernel Variables.
[ OK ] Started Apply Kernel Variables.
systemd[1]: Started Create Static Device Nodes in /dev.
[ OK ] Started Create Static Device Nodes in /dev.
systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
Starting Flush Journal to Persistent Storage...
Starting udev Kernel Device Manager...
[ OK ] Reached target Local File Systems (Pre).

Thank you in advance. 

Regards,
Romain

Labels (2)
0 Kudos
1 Reply

1,155 Views
igorpadykov
NXP Employee
NXP Employee

Hi Romain

what bsp used in the case, one can try with nxp releases

linux-imx - i.MX Linux kernel 

Documentation

https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6ser...

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos