Skip to contentSkip to conversation

the problem with kernel format

DISCUSSION Rolf Liu 3 participants 3 messages Apr 28, 2000 1 message not in the archive

lore
Share & tools
lore

Rolf Liu

author
#0 lore raw

Hi, all,
I encountered a big problem on the format of kernel file format. the condition follows:
My host is x86--linux,and the target is ppc823-linux.
I have used my own cross-toolset to construct my kernel file, including vmlinux , zImage(zvmlinux),zvmlinux.initrd, etc..
I want to debug such kernel file on my host through BDM,
which is EST of visionPROBE. EST requres the format of
the kernel file is BIN , BDX,S,and Hex, but the kernel I got from the cross-toolset is ELF. There comes the big problem:
How I can translate the ELF to BIN( BDX...)????????
By the way, the visionPROBE provides a converter , which can only translate the usual ELF to BIN(BDX).
But the kernel file is a compressed one(including vmlinux,bootloader, and other initializing code).So the converter can't translate the compressed one to BIN(BDX).
Has anyone encountered such a problem?
How to address it ?

Thanks a lot !!!!!!!!!!

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 7 lines

How I can translate the ELF to BIN( BDX...)????????
By the way, the visionPROBE provides a converter , which can only translate the usual ELF to BIN(BDX).
But the kernel file is a compressed one(including vmlinux,bootloader, and other initializing code).So the converter can't translate the compressed one to BIN(BDX).

There should be a file called 'vmlinux' in the top level directory of your kernel source. This is the kernel image, uncompressed, without boot loader or decompressor, in ELF format. Seems your converter should like that file better than zImage.

Michael

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

A message that is not in the archive (sent off-list or not yet received): [email protected] -duesseldorf.de

#3 lore raw
Quoted 5 lines · Michael Schmitz
Quoted 5 lines

How I can translate the ELF to BIN( BDX...)????????
By the way, the visionPROBE provides a converter , which can only translate the usual ELF to BIN(BDX).
But the kernel file is a compressed one(including vmlinux,bootloader, and other initializing code).So the converter can't translate the

Quoted 7 lines

compressed

Quoted 1 line

one to BIN(BDX).

There should be a file called 'vmlinux' in the top level directory of your kernel source. This is the kernel image, uncompressed, without boot loader or decompressor, in ELF format. Seems your converter should like that file better than zImage.

Yes, that should work better, the toplevel vmlinux is a pure ELF file with debug information included. Be careful though that you need the very latest binutils-2.9.5.0.37, a current snapshot or a cvs checkout of binutils to generate a 100% (?) valid ELF file, a bug in this area was fixed just recently. Otherwise the ELF converter/loader may choke on the debug information. If you use gcc-2.95.2 (which you really should) to compile the kernel, you can change the debug flag in the CFLAGS from -g to -gdwarf-2 to get a lot more and very valuable debug information.

<employee hat on>
I shouldn't help you with that "tool" ;-))
<employee hat off>

Franz.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/