I have a custom board that I am trying to bring up. It passes the DDR stress tester over USB HID.
I have build an image according to i.MX_Yocto_Project_User's_Guide. My build configuration was:
MACHINE=imx6ullevk
DISTRO=fslc-framebuffer
IMAGE=core-image-minimal
I have then run dd command to burn .wic file to an SD card. The board boots up with SD card, however here is what I see on the terminal:
U-Boot 2020.10+fslc+g80c23498b4 (Mar 04 2021 - 17:46:24 +0000)
CPU: Freescale i.MX6ULL rev1.1 900 MHz (running at 396 MHz)
CPU: Commercial temperature grade (0C to 95C) at 48C
Reset cause: POR
Model: Freescale i.MX6 UltraLiteLite 14x14 EVK Board
Board: MX6ULL 14x14 EVK
DRAM: 512 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... Card did not respond to voltage select!
*** Warning - No block device, using default environment
In: serial
Out: serial
Err: serial
Net: Could not get PHY for FEC1: addr 1
Could not get PHY for FEC1: addr 1
Could not get PHY for FEC0: addr 2
Could not get PHY for FEC0: addr 2
No ethernet found.
Normal Boot
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Booting from net ...
Could not get PHY for FEC1: addr 1
Could not get PHY for FEC1: addr 1
Could not get PHY for FEC1: addr 1
Could not get PHY for FEC0: addr 2
Could not get PHY for FEC1: addr 1
Could not get PHY for FEC1: addr 1
No ethernet found.
Could not get PHY for FEC1: addr 1
Could not get PHY for FEC1: addr 1
Could not get PHY for FEC1: addr 1
Could not get PHY for FEC1: addr 1
Could not get PHY for FEC0: addr 2
Could not get PHY for FEC1: addr 1
Could not get PHY for FEC1: addr 1
No ethernet found.
Could not get PHY for FEC1: addr 1
zimage: Bad magic!
=>
Here is what my printenv looks like:
=> printenv
baudrate=115200
board_name=EVK
board_rev=14X14
boot_fdt=try
bootargs=console=ttymxc0,115200 root=/dev/nfs ip=dhcp nfsroot=:,v3,tcp
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
bootdelay=2
bootscript=echo Running bootscript from mmc ...; source
console=ttymxc0
ethprime=eth1
fdt_addr=0x83000000
fdt_file=imx6ull-14x14-evk.dtb
fdt_high=0xffffffff
fdtcontroladdr=9ef95f30
findfdt=if test $fdt_file = undefined; then if test $board_name = ULZ-EVK && tes
t $board_rev = 14X14; then setenv fdt_file imx6ulz-14x14-evk.dtb; fi; if test $b
oard_name = EVK && test $board_rev = 14X14; then setenv fdt_file imx6ull-14x14-e
vk.dtb; fi; if test $fdt_file = undefined; then echo WARNING: Could not determin
e dtb to use; fi; fi;
get_cmd=dhcp
image=zImage
initrd_high=0xffffffff
ip_dyn=yes
loadaddr=0x82000000
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
loadimage=fatload 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 || 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/mmcblk1p2 rootwait rw
netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfs
root=${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;
script=boot.scr
stderr=serial
stdin=serial
stdout=serial
videomode=video=ctfb:x:480,y:272,depth:24,pclk:108695,le:8,ri:4,up:2,lo:4,hs:41,
vs:10,sync:0,vmode:0
Environment size: 2225/8188 bytes
Then I try to read from the SD card, I wipe the DDR areas I am going to use, copy the zImage from the SD card to RAM, and check with iminfo and I get:
Unknown image format!
=>mmc info
Device: FSL_SDHC
Manufacturer ID: 3
OEM: 5344
Name: SU16G
Bus Speed: 50000000
Mode: SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.8 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
=> mmc part
Partition Map for MMC device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 8192 53392 c2827fb8-01 0c Boot
2 65536 40478 c2827fb8-02 83
=> ls mmc 0:1
30847 imx6ull-14x14-evk.dtb
7350040 zImage
2 file(s)
=> md 82000000
82000000: e1a00000 e1a00000 e1a00000 e1a00000 ................
82000010: e1a00000 e1a00000 e1a00000 e1a00000 ................
82000020: ea000003 016f2818 00000002 00702718 .....(o......'p.
82000030: 04030201 e10f9000 eb0104f8 e1a07001 .............p..
82000040: e1a08002 e10f2000 e3120003 1a000001 ..... ..........
82000050: e3a20017 ef123456 e10f0000 a220001a ....V4........ .
82000060: e310001f e3c0001f e38000d3 1a000004 ................
82000070: e3800c01 e28fe00c f16ff000 e12ef30e ..........o.....
82000080: f160206e e121f000 e16ff009 00000000 n `...!...o.....
82000090: 02000000 00000000 00000000 00000000 ................
820000a0: e1a0401f 6204433e e2844902 e1a0000f .@..>C.b.I......
820000b0: e1500084 349f01ac 3080000f 31540000 ..P....4...0..T1
820000c0: 73844001 2300006d e28f0f5e e8901c4e .@.sm..#^...N...
820000d0: ed90d01c e0400001 e0866010 e082a000 ......@..`......
820000e0: e5da9002 e5dae001 e189940e e5dac002 ................
820000f0: e7daa003 e189980e e1899c0a e08dd000 ................
=> mw 81000000 0 7000000
=> md 82000000
82000000: 00000000 00000000 00000000 00000000 ................
82000010: 00000000 00000000 00000000 00000000 ................
82000020: 00000000 00000000 00000000 00000000 ................
82000030: 00000000 00000000 00000000 00000000 ................
82000040: 00000000 00000000 00000000 00000000 ................
82000050: 00000000 00000000 00000000 00000000 ................
82000060: 00000000 00000000 00000000 00000000 ................
82000070: 00000000 00000000 00000000 00000000 ................
82000080: 00000000 00000000 00000000 00000000 ................
82000090: 00000000 00000000 00000000 00000000 ................
820000a0: 00000000 00000000 00000000 00000000 ................
820000b0: 00000000 00000000 00000000 00000000 ................
820000c0: 00000000 00000000 00000000 00000000 ................
820000d0: 00000000 00000000 00000000 00000000 ................
820000e0: 00000000 00000000 00000000 00000000 ................
820000f0: 00000000 00000000 00000000 00000000 ................
=> load mmc 0:1 82000000 zImage
7350040 bytes read in 347 ms (20.2 MiB/s)
=> md 82000000
82000000: e1a00000 e1a00000 e1a00000 e1a00000 ................
82000010: e1a00000 e1a00000 e1a00000 e1a00000 ................
82000020: ea000003 016f2818 00000000 00702718 .....(o......'p.
82000030: 04030201 e10f9000 eb0004f8 e1a07001 .............p..
82000040: e1a08002 e10f2000 e3120003 1a000001 ..... ..........
82000050: e3a00017 ef123456 e10f0000 e220001a ....V4........ .
82000060: e310001f e3c0001f e38000d3 1a000004 ................
82000070: e3800c01 e28fe00c e16ff000 e12ef30e ..........o.....
82000080: e160006e e121f000 e16ff009 00000000 n.`...!...o.....
82000090: 00000000 00000000 00000000 00000000 ................
820000a0: e1a0400f e204433e e2844902 e1a0000f .@..>C...I......
820000b0: e1500004 359f01ac 3080000f 31540000 ..P....5...0..T1
820000c0: 33844001 2b00006d e28f0f5e e8901c4e .@.3m..+^...N...
820000d0: e590d01c e0400001 e0866000 e08aa000 ......@..`......
820000e0: e5da9000 e5dae001 e189940e e5dae002 ................
820000f0: e5daa003 e189980e e1899c0a e08dd000 ................
=> imi 82000000
## Checking Image at 82000000 ...
Unknown image format!
I have attached my zImage file. (I had to zip it since the forum doesn't accept a file without a type)
What could be my problem?
Solved! Go to Solution.
Seems like clue to the problem lays here:
mmcdev=1
mmcpart=1
mmcroot=/dev/mmcblk1p2 rootwait rw
I am using mmc0 in my design, however I guess I need to configure it in uboot headers.
Setting these settings manually to mmc0, I can boot now, however "iminfo" still doesn't understand zImage.
Thank you
Seems like clue to the problem lays here:
mmcdev=1
mmcpart=1
mmcroot=/dev/mmcblk1p2 rootwait rw
I am using mmc0 in my design, however I guess I need to configure it in uboot headers.
Setting these settings manually to mmc0, I can boot now, however "iminfo" still doesn't understand zImage.
Thank you
Hi Abdullah
one can try to follow i.MX Yocto Project User’s Guide, in partcular sect.5.6.1 Frame Buffer image
and sect.A.4.4 Preferred provider.
"fslc" is community software, difference is described on
Issue may be posted on meta-fsl-arm mailing list
https://lists.yoctoproject.org/g/meta-freescale
Best regards
igor