I try to boot my imx8m-evk via tftp. But it always hangs at "Starting kernel ..." Please advise what is wrong with me. Thanks...
I followed the steps below:
{YOCTO_BUILD_DIR}/tmp/work/{TARGET}/{IMAGE}/1.0-r0/rootfs
cd $YOCTO_BUIlD_DIR/build/tmp/work/imx8mmevk-poky-linux/imx-image-full/1.0-r0
mkdir /home/$USER/imx8mm-evk-dummy
cp -r rootfs /home/$USER/imx8mm-evk-dummy/
cd $YOCTO_BUIlD_DIR/build/tmp/deploy/images/imx8mmevk
cp Image /srv/tftp
cp imx8mm-evk.dtb /srv/tftp/fsl-imx8mm-evk.dtb
u-boot=> setenv nfsroot /home/$USER/imx8mm-evk-dummy/rootfs
u-boot=> setenv bootargs 'console=${console} root=/dev/nfs ip=dhcp rw nfsroot=${serverip}:${nfsroot},v3,tcp'
u-boot=> setenv image Image; setenv fdt_file fsl-imx8mm-evk.dtb
u-boot=> setenv loadaddr 0x40480000; setenv fdt_addr 0x43000000
u-boot=> setenv netboot 'echo Booting from net...; setenv autoload no; setenv autostart no; dhcp; setenv serverip <server_ip_address>; tftpboot ${loadaddr} ${image}; \
tftpboot ${fdt_addr} ${fdt_file}; booti ${loadaddr} - ${fdt_addr}'
sudo apt-get install nfs-kernel-server nfs-common portmap
/home/$USER/imx8mm-evk-dummy/ *(rw,insecure,no_root_squash,no_subtree_check)
sudo /etc/init.d/nfs-kernel-server restart
Below is the console output:
U-Boot SPL 2021.04 (Jun 30 2021 - 10:34:02 +0800)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
Trying to boot from MMC1
U-Boot 2021.04 (Jun 30 2021 - 10:34:02 +0800)
alloc space exhausted
CPU: i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)
CPU: Commercial temperature grade (0C to 95C) at 37C
Reset cause: POR
Model: NXP i.MX8MM EVK board
DRAM: 2 GiB
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x52]
Power supply on USB2
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
[*]-Video Link 0adv7535_mipi2hdmi adv7535@3d: Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
mxs_video lcdif@32e00000: failed to get any video link display timings
probe video device failed, ret -22
[0] lcdif@32e00000, video
[1] mipi_dsi@32e10000, video_bridge
[2] adv7535@3d, panel
adv7535_mipi2hdmi adv7535@3d: Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
mxs_video lcdif@32e00000: failed to get any video link display timings
probe video device failed, ret -22
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
BuildInfo:
- ATF 7b3389d
switch to partitions #0, OK
mmc1 is current device
flash target is MMC:1
Net: eth0: ethernet@30be0000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
starting USB...
Bus usb@32e40000: Port not available.
USB is stopped. Please issue 'usb start' first.
switch to partitions #0, OK
mmc1 is current device
** Unrecognized filesystem type **
switch to partitions #0, OK
mmc2(part 0) is current device
** Unrecognized filesystem type **
Running BSP bootcmd ...
switch to partitions #0, OK
mmc1 is current device
** Unrecognized filesystem type **
Can't set block device
** Unrecognized filesystem type **
Can't set block device
Booting from net...
BOOTP broadcast 1
DHCP client bound to address 192.168.1.100 (47 ms)
Using ethernet@30be0000 device
TFTP from server 192.168.1.128; our IP address is 192.168.1.100
Filename 'Image'.
Load address: 0x40480000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#############################################
9 MiB/s
done
Bytes transferred = 29280768 (1beca00 hex)
Using ethernet@30be0000 device
TFTP from server 192.168.1.128; our IP address is 192.168.1.100
Filename 'fsl-imx8mm-evk.dtb'.
Load address: 0x43000000
Loading: ####
5.6 MiB/s
done
Bytes transferred = 46889 (b729 hex)
Moving Image from 0x40480000 to 0x40600000, end=42280000
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
Using Device Tree in place at 0000000043000000, end 000000004300e728
adv7535_mipi2hdmi adv7535@3d: Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
mxs_video lcdif@32e00000: failed to get any video link display timings
probe video device failed, ret -22
Starting kernel ...