10-10-2018 06:32 AM
Is it possible to compile linux kernel for Zynqmp to get zImage as a result.
Normal process is
make ARCH=arm64 xilinx_zynqmp_defconfig make ARCH=arm64
This will result in Imag file at the output
I want to have zImage which can be obtained in any other linux build by
make ARCH=arm64 zImage
But when I run "make ARCH=arm64 zImage" for zynqMP configuration, I get error "No rule to make target zImage".
If it is not possible, My goal at the end to get uImage. How to get uImage then from Image then?
Any Help Please
10-10-2018 07:18 AM
$ sudo apt install u-boot-tools $ mkimage -A arm -T kernel -C none -n Linux -d zImage uImage
10-10-2018 07:40 AM
@triggerThanks for your input
But as you mentioned, You have provided zImage to mkimage utility. That is why I asked first for zImage.
I tried also
mkimage -n 'Kernel Image' -A arm64 -O linux -C none -T kernel -a 0x8000 -e 0x8000 -d Image uImage
But when trying to boot using bootm, I got system is freezing at "starting Kernel" as shown below
So I thought problem in my uImage
P.S., I have passed bootargs correctly to the kernel
10-10-2018 07:45 AM - edited 10-10-2018 07:52 AM
10-10-2018 08:03 AM - edited 10-10-2018 08:03 AM
*** Why do you want zImage ?
I wanted to find other way to get uImage, I thought may be getting it from zImage is the possible way
*** give us your cmdline
console=ttyPS0,115200 rw earlyprintk rootwait root=/dev/mmcblk1p2
*** Are you sure about the kernel entry point ?
yep, I just posted a quick screenshot and command format in my previous post (not matching I know). But in reality i provided the same address and entry point
10-10-2018 08:13 AM
10-10-2018 08:19 AM
Can you please try in your side: the following script
#! /bin/sh -e ## Cross Compiler export CROSS_COMPILE=<<<add here path to your cross compiler >>> git clone https://github.com/Xilinx/linux-xlnx.git cd linux-xlnx make ARCH=arm64 xilinx_zynqmp_defconfig make ARCH=arm64 -j4 uImage
10-10-2018 05:32 PM
You can't build zImage for ZynqMP devices. Only Image and uImage is the supported formats.
10-11-2018 02:43 AM - edited 10-11-2018 02:48 AM