* 2.4.27, alpha arch, make bootimage and make bootpfile fails
@ 2004-10-13 5:50 Norbert Preining
2004-10-13 8:15 ` stephane
2004-10-13 15:05 ` Alan Walpool
0 siblings, 2 replies; 4+ messages in thread
From: Norbert Preining @ 2004-10-13 5:50 UTC (permalink / raw)
Hello kernel Gurus!
[debian/woody on alpha sx165/lx164, gcc-3.3.4]
We need to netboot our alphas (because booting from the SCSI controllers
is not an option, they are not supported by the SRM console) and I try
to make a bootp image of our kernel.
When doing this on our alpha the
make bootimage
and the
make bootpfile
both bail out with:
make[1]: Entering directory `/usr/src/linux-2.4.27/arch/alpha/boot'
tools/objstrip -v /usr/src/linux-2.4.27/vmlinux vmlinux.nh
tools/objstrip: extracting 0xfffffc0000310000-0xfffffc00005cfef8 (at
2000)
tools/objstrip: copying 2883320 byte from /usr/src/linux-2.4.27/vmlinux
tools/objstrip: zero-filling bss and aligning to 0 with 393432 bytes
echo "#define KERNEL_SIZE `ls -l vmlinux.nh | awk '{print $5}'`" >
ksize.hT
cmp -s ksize.hT ksize.h || mv -f ksize.hT ksize.h
rm -f ksize.hT
ld -static -T bootloader.lds head.o main.o
/usr/src/linux-2.4.27/arch/alpha/lib/lib.a
/usr/src/linux-2.4.27/lib/lib.a
/usr/src/linux-2.4.27/arch/alpha/lib/lib.a -o bootloader
/usr/src/linux-2.4.27/lib/lib.a(vsprintf.o): In function `vsnprintf':
vsprintf.o(.text+0xcd4): undefined reference to `printk'
vsprintf.o(.text+0xcdc): undefined reference to `printk'
/usr/src/linux-2.4.27/lib/lib.a(dump_stack.o): In function `dump_stack':
dump_stack.o(.text+0x10): undefined reference to `printk'
dump_stack.o(.text+0x1c): undefined reference to `printk'
make[1]: *** [bootloader] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.27/arch/alpha/boot'
make: *** [bootimage] Error 2
and similar with bootpfile
Is there a way around this, we definitely need the bootp image.
Thanks a lot and all the best
Norbert
-------------------------------------------------------------------------------
Norbert Preining <preining AT logic DOT at> Technische
Universitᅵt Wien
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3
09C5 B094
-------------------------------------------------------------------------------
SCREEB (n.)
To make the noise of a nylon anorak rubbing against a pair of corduroy
trousers.
--- Douglas Adams, The Meaning of Liff
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: 2.4.27, alpha arch, make bootimage and make bootpfile fails
2004-10-13 5:50 2.4.27, alpha arch, make bootimage and make bootpfile fails Norbert Preining
@ 2004-10-13 8:15 ` stephane
2004-10-13 15:05 ` Alan Walpool
1 sibling, 0 replies; 4+ messages in thread
From: stephane @ 2004-10-13 8:15 UTC (permalink / raw)
do you cross compile ?
you seem to compile from an alpha machine for another alpha machine, right ?
what is the kernel version ?
i would perhaps advice you to try kernel 2.4.X
but i have not a real idea of what your problem is
i know i got some issue in cross-compiling with official debian package
i had to download by myself some not yet official (testing) packages
(toolchain and so on)
ow, look what i found on google :
"cross compile alpha make bootpfile fails"
http://www.ussg.iu.edu/hypermail/linux/kernel/0105.3/0756.html
perhaps the solution is to work with as lastly as possible stable ( or
developement) files
Norbert Preining wrote:
> Hello kernel Gurus!
>
> [debian/woody on alpha sx165/lx164, gcc-3.3.4]
>
> We need to netboot our alphas (because booting from the SCSI controllers
> is not an option, they are not supported by the SRM console) and I try
> to make a bootp image of our kernel.
>
> When doing this on our alpha the
> make bootimage
> and the
> make bootpfile
> both bail out with:
> make[1]: Entering directory `/usr/src/linux-2.4.27/arch/alpha/boot'
> tools/objstrip -v /usr/src/linux-2.4.27/vmlinux vmlinux.nh
> tools/objstrip: extracting 0xfffffc0000310000-0xfffffc00005cfef8 (at
> 2000)
> tools/objstrip: copying 2883320 byte from /usr/src/linux-2.4.27/vmlinux
> tools/objstrip: zero-filling bss and aligning to 0 with 393432 bytes
> echo "#define KERNEL_SIZE `ls -l vmlinux.nh | awk '{print $5}'`" >
> ksize.hT
> cmp -s ksize.hT ksize.h || mv -f ksize.hT ksize.h
> rm -f ksize.hT
> ld -static -T bootloader.lds head.o main.o
> /usr/src/linux-2.4.27/arch/alpha/lib/lib.a
> /usr/src/linux-2.4.27/lib/lib.a
> /usr/src/linux-2.4.27/arch/alpha/lib/lib.a -o bootloader
> /usr/src/linux-2.4.27/lib/lib.a(vsprintf.o): In function `vsnprintf':
> vsprintf.o(.text+0xcd4): undefined reference to `printk'
> vsprintf.o(.text+0xcdc): undefined reference to `printk'
> /usr/src/linux-2.4.27/lib/lib.a(dump_stack.o): In function `dump_stack':
> dump_stack.o(.text+0x10): undefined reference to `printk'
> dump_stack.o(.text+0x1c): undefined reference to `printk'
> make[1]: *** [bootloader] Error 1
> make[1]: Leaving directory `/usr/src/linux-2.4.27/arch/alpha/boot'
> make: *** [bootimage] Error 2
>
> and similar with bootpfile
>
> Is there a way around this, we definitely need the bootp image.
>
> Thanks a lot and all the best
>
> Norbert
>
> -------------------------------------------------------------------------------
>
> Norbert Preining <preining AT logic DOT at> Technische
> Universitᅵt Wien
> gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3
> 09C5 B094
> -------------------------------------------------------------------------------
>
> SCREEB (n.)
> To make the noise of a nylon anorak rubbing against a pair of corduroy
> trousers.
> --- Douglas Adams, The Meaning of Liff
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: 2.4.27, alpha arch, make bootimage and make bootpfile fails
2004-10-13 5:50 2.4.27, alpha arch, make bootimage and make bootpfile fails Norbert Preining
2004-10-13 8:15 ` stephane
@ 2004-10-13 15:05 ` Alan Walpool
2004-10-16 13:35 ` Norbert Preining
1 sibling, 1 reply; 4+ messages in thread
From: Alan Walpool @ 2004-10-13 15:05 UTC (permalink / raw)
>>>>> "Norbert" == Norbert Preining <preining@logic.at> writes:
Norbert> Hello kernel Gurus! [debian/woody on alpha sx165/lx164,
Norbert> gcc-3.3.4]
Norbert> We need to netboot our alphas (because booting from the SCSI
Norbert> controllers is not an option, they are not supported by the
Norbert> SRM console) and I try to make a bootp image of our kernel.
Use bootpzfile the bootpfile option stopped working some time ago.
Of course you should compile this on an alpha that will make your life
easier.
Another option is an old cdrom, or a small harddisk that works with
your onboard scsi controller.
Good luck,
Alan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.4.27, alpha arch, make bootimage and make bootpfile fails
2004-10-13 15:05 ` Alan Walpool
@ 2004-10-16 13:35 ` Norbert Preining
0 siblings, 0 replies; 4+ messages in thread
From: Norbert Preining @ 2004-10-16 13:35 UTC (permalink / raw)
Alan Walpool wrote:
> Use bootpzfile the bootpfile option stopped working some time ago.
It was a one-liner:
--- 2.4/arch/alpha/boot/bootloader.lds Tue Jul 3 01:40:14 2001
+++ linux/arch/alpha/boot/bootloader.lds Wed Oct 13 23:18:50 2004
@@ -1,5 +1,6 @@
OUTPUT_FORMAT("elf64-alpha")
ENTRY(__start)
+printk = srm_printk;
SECTIONS
{
. = 0x20000000;
But it didn't help, booting via the net didn't succeed.
> Of course you should compile this on an alpha that will make your life
> easier.
I did this, of course.
> Another option is an old cdrom, or a small harddisk that works with
> your onboard scsi controller.
We are trying this for now, thanks.
Norbert
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-16 13:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-13 5:50 2.4.27, alpha arch, make bootimage and make bootpfile fails Norbert Preining
2004-10-13 8:15 ` stephane
2004-10-13 15:05 ` Alan Walpool
2004-10-16 13:35 ` Norbert Preining
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox