In message <[EMAIL PROTECTED]>
Russell King - ARM Linux Admin <[EMAIL PROTECTED]> wrote:
> > Nicholas Clark writes:
> > > In the last mail Timothy Baldwin said:
> > > > Upon trying to boot a compressed 2.2.2-rmk2 (on a Risc PC) I get :
> > > 2.2.2-rmk4 on a RiscPC gives
> > > > Uncompressing Linux...
> > > > invalid compressed format (err=2)
> > > err=1
> > > > -- System halted
> > > > I used egcs-1.1b patched with egcs-1.1b-arm-diff-981004, and
> > > egcs-2.91.60
> > > > binutils-2.9.1.0.15 patched with binutils-2.9.1.0.15-diff-981027.
> > > 1999 binutils, mid Jan I think
[snip]
> binutils-2.9.1.0.19a is acquitted of causing this malevolent behaviour.
What did you compile binutils-2.9.1.0.19a with, and which library did
you link it against? And which kernel are you running it under?
linux/arch/arm/boot/compressed/piggy.o contains a valid gzip file, but
linux/arch/arm/boot/compressed/vmlinux and linux/arch/arm/boot/zImage do
not, therefore arm-linux-ld is a likely suspect. This is with
binutils-2.9.1.0.19a statically or dynamically linked against
libc 4.6.27, compiled with binutils-2.9.1.0.19a and egcs-2.91.57 19980901
(egcs-1.1 release). I am currently running kernel 2.0.36 patched with
_tmp_145piggy.lnk contains :
SECTIONS { .data : { input_len = .; LONG(input_data_end - input_data) input_data = .;
*(.data) input_data_end = .; }}
and the output of make zImg is :
make[1]: Entering directory `/usr/src/linux-2.2.2/testcase-5/arch/arm/boot'
make[2]: Entering directory `/usr/src/linux-2.2.2/testcase-5/arch/arm/boot/compressed'
tmppiggy=_tmp_$$piggy; \
rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk; \
arm-linux-objcopy -O binary -R .note -R .comment -S
/usr/src/linux-2.2.2/testcase-5/vmlinux $tmppiggy; \
gzip -f -9 < $tmppiggy > $tmppiggy.gz; \
echo "SECTIONS { .data : { input_len = .; LONG(input_data_end - input_data)
input_data = .; *(.data) input_data_end = .; }}" > $tmppiggy.lnk; \
arm-linux-ld -m elf32arm -r -o piggy.o -b binary $tmppiggy.gz -b elf32-arm -T
$tmppiggy.lnk;
arm-linux-ld -m elf32arm -Ttext 0x10008000 -o vmlinux head.o misc.o ll_char_wr.o
font.o piggy.o
make[2]: Leaving directory `/usr/src/linux-2.2.2/testcase-5/arch/arm/boot/compressed'
arm-linux-objcopy -O binary -R .note -R .comment -S compressed/vmlinux zImage
make[1]: Leaving directory `/usr/src/linux-2.2.2/testcase-5/arch/arm/boot'
(final rm removed for testing)
[snip rest]
--
http://www.reinhouse.freeserve.co.uk/
PGP key fingerprint = D6 FA 76 1D 68 F6 7B 96 F4 BC F2 62 D2 02 62 8E
Read the uk newsgroups? Then read uk.net.news.announce
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]