* [parisc-linux] ramdisk problem with ELF kernel
@ 2000-03-15 11:39 Ulrich Strelow
2000-03-15 13:13 ` Philipp Rumpf
` (3 more replies)
0 siblings, 4 replies; 17+ messages in thread
From: Ulrich Strelow @ 2000-03-15 11:39 UTC (permalink / raw)
To: parisc-linux
Hi all,
I switched my build environment from HP-UX 10.20 SOM
to cross compile on x86 ELF and building and booting a
kernel works fine. Compiling the kernel now only takes
5-10 minutes compared to 1 to 1 1/2 hours(!) on my
715/33. Great ! But (there is always a but) ...
Because there is currently no network driver for the
715/33 I need to boot with a ramdisk. In former times
there was copying ramdisk.bin to /usr/src/linux and
"make Image", but how to do this now (when "make
Image" no longer works)?
This is what I have tried:
I found the undocumented "-r" switch in palo to add a
ramdisk to the lif image. I tried both the original
ramdisk.bin and the compiled ramdisk.o but in both
cases the kernel is not able to detect the ramdisk.
Has anyone a solution to this?
Ulrich
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [parisc-linux] ramdisk problem with ELF kernel
2000-03-15 11:39 [parisc-linux] ramdisk problem with ELF kernel Ulrich Strelow
@ 2000-03-15 13:13 ` Philipp Rumpf
2000-03-15 16:16 ` [parisc-linux] Cross compiler -- on Alpha? Brian S. Julin
2000-03-15 16:21 ` [parisc-linux] ramdisk problem with ELF kernel Paul Bame
` (2 subsequent siblings)
3 siblings, 1 reply; 17+ messages in thread
From: Philipp Rumpf @ 2000-03-15 13:13 UTC (permalink / raw)
To: Ulrich Strelow; +Cc: parisc-linux
> Has anyone a solution to this?
I'm pretty sure I did use a ramdisk with ELF kernels by building it into the
kernel as we did for SOM kernels.
Philipp Rumpf
^ permalink raw reply [flat|nested] 17+ messages in thread
* [parisc-linux] Cross compiler -- on Alpha?
2000-03-15 13:13 ` Philipp Rumpf
@ 2000-03-15 16:16 ` Brian S. Julin
2000-03-15 17:26 ` Philipp Rumpf
0 siblings, 1 reply; 17+ messages in thread
From: Brian S. Julin @ 2000-03-15 16:16 UTC (permalink / raw)
To: parisc-linux
Will the new ELF compiler/binutils work on an Alpha
Linux box? (I wouldn't think it would make a difference
what the host was but then there may be a subtlety there
I'm unaware of.) My x86 is out of disk.
--
Brian S. Julin
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [parisc-linux] ramdisk problem with ELF kernel
2000-03-15 11:39 [parisc-linux] ramdisk problem with ELF kernel Ulrich Strelow
2000-03-15 13:13 ` Philipp Rumpf
@ 2000-03-15 16:21 ` Paul Bame
2000-03-15 17:28 ` [parisc-linux] need tftp boot and ELF Brian S. Julin
2000-03-15 18:26 ` [parisc-linux] ramdisk problem with ELF kernel Hugo.van.der.Kooij
2000-03-15 23:59 ` Helge Deller
3 siblings, 1 reply; 17+ messages in thread
From: Paul Bame @ 2000-03-15 16:21 UTC (permalink / raw)
To: Ulrich Strelow; +Cc: parisc-linux
= This is what I have tried:
= I found the undocumented "-r" switch in palo to add a
= ramdisk to the lif image. I tried both the original
= ramdisk.bin and the compiled ramdisk.o but in both
= cases the kernel is not able to detect the ramdisk.
PALO doesn't support ramdisks yet, which is why the option is
undocumented. The palo boot loader (ipl) doesn't load the ramdisk even
if you used palo -r. Our current linux kernel isn't wired to find
a boot-loaded ramdisk upon startup -- a minor modification but
one which hasn't happened. I was avoiding that modification since
the old ramdisk scheme works with the HPUX boot loader and a palo-based
scheme won't.
Now that the hpux boot loader is useless[1] anyway, and now that everyone
is using palo, I'll look into ramdisks again.
-Paul Bame
[1] A simple elf->som translator would be sufficient to enable the
hpux boot loader to work again.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [parisc-linux] Cross compiler -- on Alpha?
2000-03-15 16:16 ` [parisc-linux] Cross compiler -- on Alpha? Brian S. Julin
@ 2000-03-15 17:26 ` Philipp Rumpf
2000-03-15 18:30 ` Hugo.van.der.Kooij
0 siblings, 1 reply; 17+ messages in thread
From: Philipp Rumpf @ 2000-03-15 17:26 UTC (permalink / raw)
To: Brian S. Julin; +Cc: parisc-linux
> Will the new ELF compiler/binutils work on an Alpha
> Linux box? (I wouldn't think it would make a difference
> what the host was but then there may be a subtlety there
> I'm unaware of.) My x86 is out of disk.
It might. The only real difference between alpha and i386 to run a
cross-compiler on is sizeof(long), and I don't think we rely on that
too heavily in gcc.
Philipp Rumpf
^ permalink raw reply [flat|nested] 17+ messages in thread
* [parisc-linux] need tftp boot and ELF
2000-03-15 16:21 ` [parisc-linux] ramdisk problem with ELF kernel Paul Bame
@ 2000-03-15 17:28 ` Brian S. Julin
2000-03-15 17:46 ` willy
0 siblings, 1 reply; 17+ messages in thread
From: Brian S. Julin @ 2000-03-15 17:28 UTC (permalink / raw)
To: parisc-linux
> [1] A simple elf->som translator would be sufficient to enable the
> hpux boot loader to work again.
Hmm... any chance someone is going to do this? Considering I
have yet to see a shell and I have no way to restore my HPUX if
it breaks (I gave away the tape drive and there's no CD.)
I'm not about to go partitioning my hard disk. I need to boot
from a tftp server.
Or can I still build a SOM kernel somehow?
--
Brian
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [parisc-linux] need tftp boot and ELF
2000-03-15 17:28 ` [parisc-linux] need tftp boot and ELF Brian S. Julin
@ 2000-03-15 17:46 ` willy
0 siblings, 0 replies; 17+ messages in thread
From: willy @ 2000-03-15 17:46 UTC (permalink / raw)
To: Brian S. Julin; +Cc: parisc-linux
On Wed, Mar 15, 2000 at 12:28:20PM -0500, Brian S. Julin wrote:
>
>
> > [1] A simple elf->som translator would be sufficient to enable the
> > hpux boot loader to work again.
>
> Hmm... any chance someone is going to do this? Considering I
> have yet to see a shell and I have no way to restore my HPUX if
> it breaks (I gave away the tape drive and there's no CD.)
> I'm not about to go partitioning my hard disk. I need to boot
> from a tftp server.
you can still boot from a tftp server using palo. i agree this isn't
clear in the palo docs (i initially thought you couldn't either).
suggestions on making this more obvious gratefully received.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [parisc-linux] ramdisk problem with ELF kernel
2000-03-15 11:39 [parisc-linux] ramdisk problem with ELF kernel Ulrich Strelow
2000-03-15 13:13 ` Philipp Rumpf
2000-03-15 16:21 ` [parisc-linux] ramdisk problem with ELF kernel Paul Bame
@ 2000-03-15 18:26 ` Hugo.van.der.Kooij
2000-03-15 18:50 ` willy
2000-03-15 23:59 ` Helge Deller
3 siblings, 1 reply; 17+ messages in thread
From: Hugo.van.der.Kooij @ 2000-03-15 18:26 UTC (permalink / raw)
To: Ulrich Strelow; +Cc: parisc-linux
On Wed, 15 Mar 2000, Ulrich Strelow wrote:
> Because there is currently no network driver for the
> 715/33 I need to boot with a ramdisk. In former times
> there was copying ramdisk.bin to /usr/src/linux and
> "make Image", but how to do this now (when "make
> Image" no longer works)?
Seems I may need to dust off my 715/33 here and see how far things have
come by now. Considering the size of the task and the limited resources it
is executed very well so far.
Thanks to all those involved. And Let me know where I can lend a hand as a
non-programmer. (Ok. I wrote some PHP3 stuff but is a different thing.) I
do have some skill involving documentation. (DocBook SGML by preferences.)
Hugo.
--
Hugo van der Kooij; Oranje Nassaustraat 16; 3155 VJ Maasland
hvdkooij@caiw.nl http://home.kabelfoon.nl/~hvdkooij/
--------------------------------------------------------------
Use of any of my email addresses for unsollicited (commercial)
email is a clear intrusion of my privacy and illegal!
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [parisc-linux] Cross compiler -- on Alpha?
2000-03-15 17:26 ` Philipp Rumpf
@ 2000-03-15 18:30 ` Hugo.van.der.Kooij
2000-03-15 18:48 ` willy
` (2 more replies)
0 siblings, 3 replies; 17+ messages in thread
From: Hugo.van.der.Kooij @ 2000-03-15 18:30 UTC (permalink / raw)
To: Philipp Rumpf; +Cc: Brian S. Julin, parisc-linux
On Wed, 15 Mar 2000, Philipp Rumpf wrote:
> > Will the new ELF compiler/binutils work on an Alpha
> > Linux box? (I wouldn't think it would make a difference
> > what the host was but then there may be a subtlety there
> > I'm unaware of.) My x86 is out of disk.
>
> It might. The only real difference between alpha and i386 to run a
> cross-compiler on is sizeof(long), and I don't think we rely on that
> too heavily in gcc.
Wouldn't big endian vs little endian be an issue?
I know there is plenty of software out there that does not use proper
handling of pointers and that will break on my Alpha while you can get
away with it on intel based machines. The problem is due to bad coding but
it could be a good case to try and see if the code is clean enough.
Hugo.
--
Hugo van der Kooij; Oranje Nassaustraat 16; 3155 VJ Maasland
hvdkooij@caiw.nl http://home.kabelfoon.nl/~hvdkooij/
--------------------------------------------------------------
Use of any of my email addresses for unsollicited (commercial)
email is a clear intrusion of my privacy and illegal!
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [parisc-linux] Cross compiler -- on Alpha?
2000-03-15 18:30 ` Hugo.van.der.Kooij
@ 2000-03-15 18:48 ` willy
2000-03-15 18:55 ` Philipp Rumpf
2000-03-15 22:30 ` Brian S. Julin
2 siblings, 0 replies; 17+ messages in thread
From: willy @ 2000-03-15 18:48 UTC (permalink / raw)
To: Hugo.van.der.Kooij; +Cc: Philipp Rumpf, Brian S. Julin, parisc-linux
On Wed, Mar 15, 2000 at 07:30:40PM +0100, Hugo.van.der.Kooij@caiw.nl wrote:
> Wouldn't big endian vs little endian be an issue?
unlikely. parisc is big endian and i386 is little endian. people compile
parisc kernels on both machines.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [parisc-linux] ramdisk problem with ELF kernel
2000-03-15 18:26 ` [parisc-linux] ramdisk problem with ELF kernel Hugo.van.der.Kooij
@ 2000-03-15 18:50 ` willy
0 siblings, 0 replies; 17+ messages in thread
From: willy @ 2000-03-15 18:50 UTC (permalink / raw)
To: Hugo.van.der.Kooij; +Cc: Ulrich Strelow, parisc-linux
On Wed, Mar 15, 2000 at 07:26:08PM +0100, Hugo.van.der.Kooij@caiw.nl wrote:
> Thanks to all those involved. And Let me know where I can lend a hand as a
> non-programmer. (Ok. I wrote some PHP3 stuff but is a different thing.) I
> do have some skill involving documentation. (DocBook SGML by preferences.)
the website is in CVS so anyone can contribute to it and fix mistakes
or update documentation if it starts to succumb to bitrot. i've been
slowly going through it all but i'm sure the first documents i touched
have started to rot again and there are documents i haven't got to yet.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [parisc-linux] Cross compiler -- on Alpha?
2000-03-15 18:30 ` Hugo.van.der.Kooij
2000-03-15 18:48 ` willy
@ 2000-03-15 18:55 ` Philipp Rumpf
2000-03-15 22:30 ` Brian S. Julin
2 siblings, 0 replies; 17+ messages in thread
From: Philipp Rumpf @ 2000-03-15 18:55 UTC (permalink / raw)
To: Hugo.van.der.Kooij; +Cc: Brian S. Julin, parisc-linux
> > It might. The only real difference between alpha and i386 to run a
> > cross-compiler on is sizeof(long), and I don't think we rely on that
> > too heavily in gcc.
>
> Wouldn't big endian vs little endian be an issue?
PA-RISC is (usually) big-endian; Alpha and i386 are little-endian. Cross-
compiling from i386 works, so this shouldn't be an issue for cross-compiling
from Alpha.
Philipp Rumpf
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [parisc-linux] Cross compiler -- on Alpha?
2000-03-15 18:30 ` Hugo.van.der.Kooij
2000-03-15 18:48 ` willy
2000-03-15 18:55 ` Philipp Rumpf
@ 2000-03-15 22:30 ` Brian S. Julin
2000-03-15 22:35 ` willy
2000-03-15 22:57 ` David Huggins-Daines
2 siblings, 2 replies; 17+ messages in thread
From: Brian S. Julin @ 2000-03-15 22:30 UTC (permalink / raw)
To: parisc-linux
> I know there is plenty of software out there that does not use proper
> handling of pointers and that will break on my Alpha while you can get
> away with it on intel based machines. The problem is due to bad coding but
> it could be a good case to try and see if the code is clean enough.
OK, well I gave it a spin -- the linker compiled, with a lot of
warnings about integers of different size than pointers. The rest
of binutils built but I couldn't build gas, I don't think it was
architecture related though:
gcc -g -O2 -o .libs/as-new app.o as.o atof-generic.o bignum-copy.o cond.o
depend.o dwarf2dbg.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o
flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o
literal.o macro.o messages.o output-file.o
read.o sb.o stabs.o subsegs.o symbols.o write.o tc-hppa.o obj-elf.o
atof-ieee.o ../opcodes/.libs/libopcodes.so ../bfd/.libs/libbfd.so
../libiberty/libiberty.a -lm -Wl,--rpath -Wl,/usr/src/parisc/lib
tc-hppa.o: In function `tc_gen_reloc':
/usr/src/parisc/binutils/gas/./config/tc-hppa.c:3972: undefined reference
to `_bfd_elf64_hppa_gen_reloc_type'
/usr/src/parisc/binutils/gas/./config/tc-hppa.c:3972: undefined reference
to `_bfd_elf64_hppa_gen_reloc_type'
collect2: ld returned 1 exit status
make[3]: *** [as-new] Error 1
--
Brian
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [parisc-linux] Cross compiler -- on Alpha?
2000-03-15 22:30 ` Brian S. Julin
@ 2000-03-15 22:35 ` willy
2000-03-15 22:57 ` David Huggins-Daines
1 sibling, 0 replies; 17+ messages in thread
From: willy @ 2000-03-15 22:35 UTC (permalink / raw)
To: Brian S. Julin; +Cc: parisc-linux
On Wed, Mar 15, 2000 at 05:30:03PM -0500, Brian S. Julin wrote:
> /usr/src/parisc/binutils/gas/./config/tc-hppa.c:3972: undefined reference
> to `_bfd_elf64_hppa_gen_reloc_type'
> /usr/src/parisc/binutils/gas/./config/tc-hppa.c:3972: undefined reference
> to `_bfd_elf64_hppa_gen_reloc_type'
elf_64_? I think you may have misconfigured it. were you following the
recipe on the website?
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [parisc-linux] Cross compiler -- on Alpha?
2000-03-15 22:30 ` Brian S. Julin
2000-03-15 22:35 ` willy
@ 2000-03-15 22:57 ` David Huggins-Daines
1 sibling, 0 replies; 17+ messages in thread
From: David Huggins-Daines @ 2000-03-15 22:57 UTC (permalink / raw)
To: Brian S. Julin; +Cc: parisc-linux
"Brian S. Julin" <bri@mojo.calyx.net> writes:
> tc-hppa.o: In function `tc_gen_reloc':
> /usr/src/parisc/binutils/gas/./config/tc-hppa.c:3972: undefined reference
> to `_bfd_elf64_hppa_gen_reloc_type'
> /usr/src/parisc/binutils/gas/./config/tc-hppa.c:3972: undefined reference
> to `_bfd_elf64_hppa_gen_reloc_type'
> collect2: ld returned 1 exit status
> make[3]: *** [as-new] Error 1
Yeah, the problem here is that some part of the binutils configure
script is getting the host and target word size confused and thus
thinking that it should be building for an ELF64 instead of ELF32
target.
You cna fix this by undefining BFD64 in tc-hppa.c and possibly some
other place, I think. I didn't commit this to CVS because it's really
the wrong thing to do. Someone who actually understands the binutils
configuration and build system should be able to apply the correct fix...
--
David Huggins-Daines, Senior Linux Consultant, Linuxcare, Inc.
613.562.1239 tel
dhuggins@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [parisc-linux] ramdisk problem with ELF kernel
2000-03-15 11:39 [parisc-linux] ramdisk problem with ELF kernel Ulrich Strelow
` (2 preceding siblings ...)
2000-03-15 18:26 ` [parisc-linux] ramdisk problem with ELF kernel Hugo.van.der.Kooij
@ 2000-03-15 23:59 ` Helge Deller
2000-03-16 8:25 ` Gyula Matics
3 siblings, 1 reply; 17+ messages in thread
From: Helge Deller @ 2000-03-15 23:59 UTC (permalink / raw)
To: Ulrich Strelow, parisc-linux
Am Wed, 15 Mar 2000 schrieb Ulrich Strelow:
> Hi all,
Hi Ulrich,
>
> I switched my build environment from HP-UX 10.20 SOM
> to cross compile on x86 ELF and building and booting a
> kernel works fine. Compiling the kernel now only takes
> 5-10 minutes compared to 1 to 1 1/2 hours(!) on my
> 715/33. Great ! But (there is always a but) ...
>
> Because there is currently no network driver for the
> 715/33 I need to boot with a ramdisk.
I just checked the hardware-database, and it seems that the 715/33 has a
standard LASI-LAN-Adaptor (i82596, (old driver: Apricot)).
If you enable lasi-support and the "lasi-ethernet"-driver from the
network-devices, you should be able to boot with root-nfs.....
> In former times there was copying ramdisk.bin to /usr/src/linux and
> "make Image", but how to do this now (when "make
> Image" no longer works)?
>
> This is what I have tried:
> I found the undocumented "-r" switch in palo to add a
> ramdisk to the lif image. I tried both the original
> ramdisk.bin and the compiled ramdisk.o but in both
> cases the kernel is not able to detect the ramdisk.
>
> Has anyone a solution to this?
>
> Ulrich
Helge.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [parisc-linux] ramdisk problem with ELF kernel
2000-03-15 23:59 ` Helge Deller
@ 2000-03-16 8:25 ` Gyula Matics
0 siblings, 0 replies; 17+ messages in thread
From: Gyula Matics @ 2000-03-16 8:25 UTC (permalink / raw)
To: Helge.Deller, ulrich_strelow, parisc-linux
> I just checked the hardware-database, and it seems that the 715/33 has a
> standard LASI-LAN-Adaptor (i82596, (old driver: Apricot)).
> If you enable lasi-support and the "lasi-ethernet"-driver from the
> network-devices, you should be able to boot with root-nfs.....
The problem is, that it has ASP not LASI. The MAC address is not returned
by the PDC call the current driver is using thus the driver gives up.
Gyula
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2000-03-16 9:28 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-15 11:39 [parisc-linux] ramdisk problem with ELF kernel Ulrich Strelow
2000-03-15 13:13 ` Philipp Rumpf
2000-03-15 16:16 ` [parisc-linux] Cross compiler -- on Alpha? Brian S. Julin
2000-03-15 17:26 ` Philipp Rumpf
2000-03-15 18:30 ` Hugo.van.der.Kooij
2000-03-15 18:48 ` willy
2000-03-15 18:55 ` Philipp Rumpf
2000-03-15 22:30 ` Brian S. Julin
2000-03-15 22:35 ` willy
2000-03-15 22:57 ` David Huggins-Daines
2000-03-15 16:21 ` [parisc-linux] ramdisk problem with ELF kernel Paul Bame
2000-03-15 17:28 ` [parisc-linux] need tftp boot and ELF Brian S. Julin
2000-03-15 17:46 ` willy
2000-03-15 18:26 ` [parisc-linux] ramdisk problem with ELF kernel Hugo.van.der.Kooij
2000-03-15 18:50 ` willy
2000-03-15 23:59 ` Helge Deller
2000-03-16 8:25 ` Gyula Matics
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.