[meta-freescale] IMX zImage with ramdisk

Stefan Agner stefan at agner.ch
Mon Jun 17 00:22:54 PDT 2019


On 06.06.2019 02:20, JH wrote:
> Hi,
> 
> I build i.MX6 image, I can install imx.wic.gz to an SD card and run it
> well i.MX EVK, now I need to build i.MX6 image with ramdisk to install
> it to the RAM of  a customized i.MX processor board, the download and
> boot was via USB HID using iMX uuu, bootz with zImage, I got following
> error:
> 
> Boot from USB for mfgtools
> Use default environment for                              mfgtools
> Run bootcmd_mfg: run mfgtool_args; if test ${tee} = yes; then bootm ${tee_addr};
> Hit any key to stop autoboot:  0
> Kernel image @ 0x80800000 [ 0x000000 - 0x89e1d8 ]
> Wrong Ramdisk Image Format
> Ramdisk image is corrupt or invalid
> 
> Apparently, the zImage needs be compiled with ramdisk, I can see
> several initramfs recipes but I cannot find any ramdisk recipes, could
> anyone advise how to build the zImage with ramdisk not initramfs? Or
> should it be a separate process to command line manually creat ramdisk
> on zImage? Should I also modify the kernel defconfig for supporting
> zImage ramdisk format? If so, which device driver needs be enabled in
> defconfig?

Those messages are printed by U-Boot, so it is U-Boot which does not
like the ramdisk.

By default U-Boot expects the ramdisk to be in a U-Boot image. Make sure
to enable CONFIG_SUPPORT_RAW_INITRD=y if you want support for a "naked"
initrd.

--
Stefan

> 
> Thank you.
> 
> Kind regards,
> 
> - jupiter


More information about the meta-freescale mailing list