How to make a simpleImage equivalent in 2.6.24?
Hi,
while developing for a Virtex platform I'm used to do
make simpleImage.virtex405-<myboard>
on recent kernels to get a bootwrapped kernel including the dtb as described in http://ols.fedoraproject.org/OLS/Reprints-2008/likely2-reprint.pdf.
How to compile a 2.6.24.x kernel to get an equivalent elf file which runs out of the ram and includes the kernel, the bootwrapper _AND_ the dtb?
As I studied the Makefile in arch/powerpc/boot it looks like
make zImage.<myboard>
should work. I tried it this in many ways but Make doesn't find the target.
Currently, I'm using "make zImage" and arch/powerpc/boot/wrapper for this purpose:
"arch/powerpc/boot/wrapper -o zImage.virtex -p of " \ "-s arch/powerpc/boot/dts/virtex405-<myboard>.dts " \ "-C ppc405-402- vmlinux"
Thanks for suggestions!
--
Martin
Quoted 8 lines · Martin Kuhnert
How to compile a 2.6.24.x kernel to get an equivalent elf file which runs out of the ram and includes the kernel, the bootwrapper _AND_ the dtb?
As I studied the
Makefileinarch/powerpc/bootit looks likemake zImage.<myboard>
should work. I tried it this in many ways but Make doesn't find the target.
Yes, you can make this work, but it doesn't work "out of the box". You'll need to do some poking around the wrapper script to generate the right stuff in your image.
Quoted 2 lines
Currently, I'm using "make zImage" and
arch/powerpc/boot/wrapperfor this purpose:
BTW, the 'zImage' target isn't a real image target in the Makefile. Instead, 'zImage' builds the list of targets stored in the image-y makefile variable. It might help for you to look at Documentation/powerpc/bootwrapper.txt.
g.