Timothy Baldwin writes:
> > Timothy Baldwin said:
> > > I have discovered that ommiting the -Ttext option from the arm-linux-ld
> > > command line results in vmlinux containing a *valid* gzip file, however
> > > there is still no valid gzip file in zImage.
> >
> > Erm, what? Which vmlinux? If you're talking about linux/vmlinux, it
> > never contains a gzip file.
>
> linux/arch/arm/boot/compressed/vmlinux
Ok, if you do an arm-linux-nm on this, find the address of the following symbols,
eg:
10008000 T _start
10013420 D input_data
Find the offset between input_data and _start, ie 0x10013420 - 0x10008000 = 0xb420
Then, use dd to extract the gzipped data from the zImage, eg:
dd if=zImage of=zImg.gz bs=1 skip=46112
Using gunzip, gunzip the resulting zImg.gz file. If the gunzip is successful,
the zImage file contains a valid gzip, else it doesn't.
Try this both with -Ttext and without, however I believe that you will find
in all cases a valid gzip file in there.
I don't believe that there is anything wrong with the binutils, since I'm
now using the same as other people with this problem, and I have none of
these. I believe that the only tool left to consider is egcs (unless you
can prove otherwise).
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King [EMAIL PROTECTED] --- ---
| | | | http://www.arm.linux.org.uk/~rmk/armlinux.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]