AnsweredAssumed Answered

how to build zImage for i.mx8mq

Question asked by kingplayer on Aug 22, 2018
Latest reply on Aug 30, 2018 by Gary Bisson

hi nxp,

   I want  download zImage from ftp,and use nfs,but only Image build on imx8mq by defalut Yocto Project;

 

I changed  imx-base.inc,  KERNEL_IMAGETYPE_mx8 = "Image"
 to KERNEL_IMAGETYPE_mx8 = "zImage", then build error!

 

build log:

| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 HOSTCC=gcc -isystem/home/droid/imx-yocto-bsp/build-xwayland/tmp/work/imx8mqevk-poky-linux/linux-imx/4.9.88-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/droid/imx-yocto-bsp/build-xwayland/tmp/work/imx8mqevk-poky-linux/linux-imx/4.9.88-r0/recipe-sysroot-native/usr/lib -L/home/droid/imx-yocto-bsp/build-xwayland/tmp/work/imx8mqevk-poky-linux/linux-imx/4.9.88-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/droid/imx-yocto-bsp/build-xwayland/tmp/work/imx8mqevk-poky-linux/linux-imx/4.9.88-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/droid/imx-yocto-bsp/build-xwayland/tmp/work/imx8mqevk-poky-linux/linux-imx/4.9.88-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/droid/imx-yocto-bsp/build-xwayland/tmp/work/imx8mqevk-poky-linux/linux-imx/4.9.88-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/droid/imx-yocto-bsp/build-xwayland/tmp/work/imx8mqevk-poky-linux/linux-imx/4.9.88-r0/recipe-sysroot-native/lib -Wl,-O1 HOSTCPP=gcc -E ARCH=arm64 zImage CC=aarch64-poky-linux-gcc -fuse-ld=bfd -ffile-prefix-map=/home/droid/imx-yocto-bsp/build-xwayland/tmp/work/imx8mqevk-poky-linux/linux-imx/4.9.88-r0/git=/kernel-source/ LD=aarch64-poky-linux-ld.bfd LOADADDR=20008000
| GEN ./Makefile
| scripts/kconfig/conf --silentoldconfig Kconfig
| make[2]: *** No rule to make target `zImage'. Stop.
| make[1]: *** [sub-make] Error 2
| make: *** [__sub-make] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/droid/imx-yocto-bsp/build-xwayland/tmp/work/imx8mqevk-poky-linux/linux-imx/4.9.88-r0/temp/log.do_compile.7837)

 

how to build zImage for nfs use?

 

thanks!

Outcomes