kernel image vmlinux, ELF Format to u/z Image to be used on QEMU for ARM.

972 views
Skip to first unread message

Krishna Pavan

unread,
Mar 13, 2012, 9:47:32 AM3/13/12
to xvisor...@googlegroups.com
Hi xVisor,

I have been trying to make my own kernel image and rootfs to be loaded on an ARM board with different CPU.

Here are some instr. I have followed.

* build a standard "vmlinux" kernel image (in ELF binary format):


* convert the kernel into a raw binary image:

    ${CROSS_COMPILE}-objcopy -O binary \       Place your CC Path Here.
                 -R .note -R .comment \
                 -S vmlinux linux.bin

* compress the binary image:

    gzip -9 linux.bin

* package compressed binary image for U-Boot:

    mkimage -A arm -O linux -T kernel -C gzip \
        -a 0x00000000 -e 0x00000000 -n "Linux Kernel Image" \
        -d linux.bin.gz uImage

However -a [addr] and -e [addr] can be modified accordingly.

But, when tested on QEMU, I could not get except a blank screen.

If there's another way please suggest.

--
Regards :: Krishna Pavan

Tushar Jagad

unread,
Mar 13, 2012, 12:54:14 PM3/13/12
to post4...@gmail.com, xvisor-devel
> Here are some instr. I have followed.
Please give steps detailed in tests/arm32/pb-a8/linux-3.0.4/README a shot.
--
Regards,
Tushar
Reply all
Reply to author
Forward
0 new messages