All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [hppa-linux] Cross compile setup
@ 1999-02-08 23:43 Jason Eckhardt
  0 siblings, 0 replies; 6+ messages in thread
From: Jason Eckhardt @ 1999-02-08 23:43 UTC (permalink / raw)
  To: helgaas, hppa-linux


>
> Since PDC resides in a ROM, I assume you're talking about building
> something analogous to ISL, which resides in a LIF filesystem (see lif(4))
> ...
> I don't know how much of the boot process you want to replace, but if
> you're willing to use the HP-UX ISL and HPUX, at least to get started,
> you can fairly easily get things set up to boot your kernel over the net.

  Yes, my intention is to build a simple IPL for HPPA/Linux. It is a good
  idea to utilize the HP ISL to get started, but eventually I think we should
  not rely on any HP code. That way, people can "cold install" HPPA/Linux
  on a fresh disk and never worry about seeing or using any HPUX ugliness.

  In any case, until I get an IPL working, we can get a lot of work done with
  HPUX ISL as you mentioned.
 
  Jason.

----------------------------------------------------------------------
To unsubscribe: send e-mail to hppa-linux-request@puffingroup.com with
`unsubscribe' as the subject.

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [hppa-linux] Cross compile setup
@ 1999-02-07  4:40 Bjorn Helgaas
  0 siblings, 0 replies; 6+ messages in thread
From: Bjorn Helgaas @ 1999-02-07  4:40 UTC (permalink / raw)
  To: hppa-linux; +Cc: jason

I wrote
>I think the ISL image is plain SOM, ...

BUT, come to think of it, I guess I never did anything with ISL; when I
fiddled in this area, I was only concerned about the kernel itself, so I
did things like rewrite the AUTO file to change the kernel image to boot.

I do still think the ISL image is pretty much straight SOM, though there
is a "-S" option on the ld(1) man page that talks about generating an
IPL auxiliary header, so you might need that.

-------------
Bjorn Helgaas   helgaas@rsn.hp.com  telnet 1-497-3069  (972)497-3069

----------------------------------------------------------------------
To unsubscribe: send e-mail to hppa-linux-request@puffingroup.com with
`unsubscribe' as the subject.

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [hppa-linux] Cross compile setup
@ 1999-02-07  4:26 Bjorn Helgaas
  1999-02-07  8:16 ` Paul C. Janzen
  0 siblings, 1 reply; 6+ messages in thread
From: Bjorn Helgaas @ 1999-02-07  4:26 UTC (permalink / raw)
  To: hppa-linux; +Cc: jason

Jason Eckhardt wrote
> Also, a question to others:
> I have started to tinker with writing an IPL for the native
> port (i.e. bootstrap code). I've been compiling/assembling within HPUX,
> but I can't seem to ascertain how to get "ld" to generate a "straight"
> binary file rather than a SOM object. The bootstrap code obviously
> has to be a plain binary to work. Note that the version of gcc I picked
> up from www.software.hp.com utilizes the HP linker, not GNU ld.

If you haven't already seen them, careful examination of the following
HP-UX man pages will get you a long way toward understanding the typical
boot process:

	boot(1m)
	pdc(1m)
	isl(1m)
	hpux(1m)

Since PDC resides in a ROM, I assume you're talking about building
something analogous to ISL, which resides in a LIF filesystem (see lif(4))
on the boot media and is loaded by PDC.  I think the ISL image is plain
SOM, but you have to be careful to use the correct type when copying it
into the LIF filesystem.

I don't know how much of the boot process you want to replace, but if
you're willing to use the HP-UX ISL and HPUX, at least to get started,
you can fairly easily get things set up to boot your kernel over the net.
710's and 715's use a proprietary protocol called RMP (see rbootd(1m)),
while 712's and newer boxes use BOOTP (see bootpd(1m)).

Booting over the net, combined with using the serial port as the console,
makes things go a lot faster.

-------------
Bjorn Helgaas   helgaas@rsn.hp.com  telnet 1-497-3069  (972)497-3069

----------------------------------------------------------------------
To unsubscribe: send e-mail to hppa-linux-request@puffingroup.com with
`unsubscribe' as the subject.

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [hppa-linux] Cross compile setup
@ 1999-02-07  2:32 Jason Eckhardt
  0 siblings, 0 replies; 6+ messages in thread
From: Jason Eckhardt @ 1999-02-07  2:32 UTC (permalink / raw)
  To: hppa-linux; +Cc: jason


> From hppa-linux-request@puffingroup.com Thu Feb  4 03:45:11 1999
> From: "Strelow, Ulrich" <Ulrich.Strelow@Schering.DE>
> To: hppa-linux@puffingroup.com
> Date: Thu, 4 Feb 1999 11:59:00 +0100 
> Subject: [hppa-linux] Cross compile setup
>
...

>      Then the machine stops with the LEDs 123568 on which means "HPMC
> due 
>      to Bus Error".
>      
>      Unfortunately no one on the mklinux mailing list had any help for
> that 
>      problem (probably because the main developers were no longer
> working 
>      on/with mk-linux).
>      
>      So my question here is the following:
>      
>      Is the hppa-linux cross-compile setup for binutils and egcs 
>      possible from linux-x86 ?  
>      

 I have the same problem. Mklinux won't boot on my C160 (even in duplex
 mode through the serial port). So I'll have to
 be working from either an HPUX or Linux-x86 build environment. What build
 environment are most of you planning on using?

 Also, a question to others:
 I have started to tinker with writing an IPL for the native
 port (i.e. bootstrap code). I've been compiling/assembling within HPUX,
 but I can't seem to ascertain how to get "ld" to generate a "straight"
 binary file rather than a SOM object. The bootstrap code obviously
 has to be a plain binary to work. Note that the version of gcc I picked
 up from www.software.hp.com utilizes the HP linker, not GNU ld.

 I tried to use "objcopy -O binary some_file binary_file" with no luck. The
 resulting file was stripped of the SOM garbage, but unfortunately most
 of my code and data was also stripped away and the file was mostly zeroes!! 
 Any ideas on how to generate plain binary? Is the above behavior a objcopy
 bug or was this pilot error?

 Regards, Jason.




----------------------------------------------------------------------
To unsubscribe: send e-mail to hppa-linux-request@puffingroup.com with
`unsubscribe' as the subject.

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [hppa-linux] Cross compile setup
@ 1999-02-04 10:59 Strelow, Ulrich
  0 siblings, 0 replies; 6+ messages in thread
From: Strelow, Ulrich @ 1999-02-04 10:59 UTC (permalink / raw)
  To: hppa-linux

     Hi,
     
     I am very interested that someone finally tries to do a native port
of 
     Linux for PA-RISC. At work I have an old HP 715/33 workstation (the

     *one* machine that is not supported by mk-linux) which I would like
to 
     run linux on.
     
     OSF has never managed to get the mach kernel booting on that box
and 
     my question about the problems were answered that is has something
to 
     do with the ethernet chip.
     
     Some months ago I tried to cross-compile the mach-kernel under 
     Linux-x86. For private purposes I have bought a SCSI-MOD-drive
which 
     serves as the data transfer media between my home PC running linux
and 
     the HP 715/33 at work.
     
     I was not very successful with that cross-compiled mach-kernel.
After  
     booting the only messages I saw were from the secondary boot
loader: 
     
     OSF Mach boot
     [/mach]: -a
     text (0x11000) at 0x11000
     data (0x92610) at 0x5
     
     Then the machine stops with the LEDs 123568 on which means "HPMC
due 
     to Bus Error".
     
     Unfortunately no one on the mklinux mailing list had any help for
that 
     problem (probably because the main developers were no longer
working 
     on/with mk-linux).
     
     So my question here is the following:
     
     Is the hppa-linux cross-compile setup for binutils and egcs 
     possible from linux-x86 ?  
     
     If yes I would like to take part on the project as an "early
pre-alpha 
     stage"-tester :) in case you need one.
     
     Ulrich
     ----------------------
     Ulrich Strelow <ulrich.strelow@schering.de or
ulrich_strelow@csi.com>
     Berlin, Germany
      

----------------------------------------------------------------------
To unsubscribe: send e-mail to hppa-linux-request@puffingroup.com with
`unsubscribe' as the subject.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-02-08 23:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-08 23:43 [hppa-linux] Cross compile setup Jason Eckhardt
  -- strict thread matches above, loose matches on Subject: below --
1999-02-07  4:40 Bjorn Helgaas
1999-02-07  4:26 Bjorn Helgaas
1999-02-07  8:16 ` Paul C. Janzen
1999-02-07  2:32 Jason Eckhardt
1999-02-04 10:59 Strelow, Ulrich

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.