Hi,
I'm trying to load a 4.1.38 ( Krogoth ) kernel and dtb, fs via the mfgtool into an imx28 and am experiencing some issues with respect fdt address location in the ucl ( xml ) file. By default the ucl file doesn't use the fdt for the imx128evk, I'm also loading the kernel etc in nand.
This is what I boot with - standard uboot via Yocto - "run nandboot"
nandboot=mtdparts default; run nandargs; nand read ${loadaddr} kernel 0x00400000; if test ${boot_fdt} = yes; then nand read ${fdt_addr} fdt 0x00080000; bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = no; then bootz; else echo "ERROR: Set boot_fdt to yes or no."; fi; fi
I get the following error
NAND read: device 0 offset 0x400000, size 0x400000 <==== fine, my zImage
4194304 bytes read: OK
NAND read: device 0 offset 0x800000, size 0x80000 <==== supposed to be my fdt? Should be 22K
524288 bytes read: OK
Kernel image @ 0x42000000 [ 0x000000 - 0x3c5360 ]
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
As you can see I'm trying to load the fdt via mfgtool at 0x80000 because that's the copy location within the run nandboot command. Q1 Is the default community Yocto dtb not a flattened device tree is this causing the problem?
Q2 If I use a uImage and not a zImage like I am, do I still have to use a fdt?
Help would be appreciated.
BR
Solved! Go to Solution.
Hi Edward
for fdt addresses one can look at uboot/include/configs/mx28evk.h
uboot-imx.git - Freescale i.MX u-boot Tree
and AN12024 Building for i.MX Mature Boards
http://www.nxp.com/docs/en/application-note/AN12024.pdf
For uImage and not a zImage usage, this is generic linux question, one can post on
uboot mail list: https://lists.denx.de/listinfo/u-boot
or meta-fsl-arm mailing list, so that someone familiar with it could try to assist you.
https://lists.yoctoproject.org/listinfo/meta-freescale
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Edward
for fdt addresses one can look at uboot/include/configs/mx28evk.h
uboot-imx.git - Freescale i.MX u-boot Tree
and AN12024 Building for i.MX Mature Boards
http://www.nxp.com/docs/en/application-note/AN12024.pdf
For uImage and not a zImage usage, this is generic linux question, one can post on
uboot mail list: https://lists.denx.de/listinfo/u-boot
or meta-fsl-arm mailing list, so that someone familiar with it could try to assist you.
https://lists.yoctoproject.org/listinfo/meta-freescale
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------