Hi,
I am using IMX6SX board, and using Yocto imx_4.9.88 toolchain and linux_imx imx_4.9.88_2.0.0_ga - from codeaurora.
After build setup done, I took the <build>/tmp/deploy/images/imx6sxsabresd/<>.sdcard.bz2, unzip it and write that to SD card using dd command.
But while booting, SD is not detected and boot fails. How to fix this?
============================================Log messge============
U-Boot 2017.03-imx_v2017.03_4.9.88_2.0.0_ga+gb76bb1b (Jan 09 2021 - 19:37:36 +0530)
CPU: Freescale i.MX6SX rev1.3 996 MHz (running at 792 MHz)
CPU: Extended Commercial temperature grade (-20C to 105C) at 46C
Reset cause: WDOG
Model: Freescale i.MX6 SoloX SDB RevB Board
Board: MX6SX SABRE SDB
DRAM: 1 GiB
PMIC: PFUZE100! DEV_ID=0x11 REV_ID=0x21
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
MMC: no card present
mmc_init: -123, time 1
*** Warning - MMC init failed, using default environment
Display: Hannstar-XGA (1024x768)
Video: 1024x768x18
In: serial
Out: serial
Err: serial
MMC: no card present
mmc_init: -123, time 1
Net:
Warning: ethernet@02188000 using MAC address from ROM
Warning: ethernet@021b4000 using MAC address from ROM
eth0: ethernet@02188000, eth1: ethernet@021b4000 [PRIME]
Normal Boot
Hit any key to stop autoboot: 3 2 0
=> printenv
baudrate=115200
boot_fdt=try
bootcmd=run findfdt;mmc dev ${mmcdev};mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loadimage; then run mmcboot; else run netboot; fi; fi; else run netboot; fi
bootcmd_mfg=run mfgtool_args; if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else bootz ${loadaddr} ${initrd_addr} ${fdt_addr}; fi;
bootdelay=3
bootscript=echo Running bootscript from mmc ...; source
console=ttymxc0
eth1addr=00:04:9f:04:5e:01
ethact=ethernet@021b4000
ethaddr=00:04:9f:04:5e:00
ethprime=eth1
fdt_addr=0x83000000
fdt_file=undefined
fdt_high=0xffffffff
fdtcontroladdr=bdf39c58
findfdt=if test $fdt_file = undefined; then setenv fdt_file imx6sx-sdb.dtb; fi;
image=zImage
initrd_addr=0x83800000
initrd_high=0xffffffff
ip_dyn=yes
loadaddr=0x80800000
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
loadm4image=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${m4image}
loadtee=fatload mmc ${mmcdev}:${mmcpart} ${tee_addr} ${tee_file}
m4_qspi_cs=2
m4boot=sf probe 1:${m4_qspi_cs}; bootaux 0x78000000
m4image=m4_qspi.bin
mfgtool_args=setenv bootargs console=${console},${baudrate} rdinit=/linuxrc g_mass_storage.stall=0 g_mass_storage.removable=1 g_mass_storage.file=/fat g_mass_storage.ro=1 g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF g_mass_storage.iSerialNumber=""
mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot}
mmcautodetect=yes
mmcboot=echo Booting from mmc ...; run mmcargs; if test ${tee} = yes; then run loadfdt; run loadtee; bootm ${tee_addr} - ${fdt_addr}; else 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; fi;
mmcdev=2
mmcpart=1
mmcroot=/dev/mmcblk3p2 rootwait rw
netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp
netboot=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 ${tee} = yes; then ${get_cmd} ${tee_addr} ${tee_file}; ${get_cmd} ${fdt_addr} ${fdt_file}; bootm ${tee_addr} - ${fdt_addr}; else 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;fi;
panel=Hannstar-XGA
script=boot.scr
tee=no
tee_addr=0x84000000
tee_file=uTee-6sxsdb
update_m4_from_sd=if sf probe 1:${m4_qspi_cs}; then if run loadm4image; then setexpr fw_sz ${filesize} + 0xffff; setexpr fw_sz ${fw_sz} / 0x10000; setexpr fw_sz ${fw_sz} * 0x10000; sf erase 0x0 ${fw_sz}; sf write ${loadaddr} 0x0 ${filesize}; fi; fi
Environment size: 3077/8188 bytes
=>
Are you using the 6sx sabre board from NXP or the board you design yourself?
I am using board from NXP.
Does the kernel boot up?
NO it does not bootup. Stuck at Uboot level.
How do you set the kernel boot command line in u-boot?
I did not set any yet. By default it boots from SD card right?
Could you please provide the possible options to fix/test this? Its a bit urgent.
Yes, you can see the section 4.7 Running Linux OS on the target of our user guide, following the use guide setting. If can not work tell me.