All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex deVries <adevries@thepuffingroup.com>
To: John David Anglin <dave@hiauly1.hia.nrc.ca>
Cc: parisc-linux@thepuffingroup.com
Subject: Re: [parisc-linux] A quick update
Date: Fri, 18 Jun 1999 15:16:09 -0400	[thread overview]
Message-ID: <376A9AF9.5F3DB326@thepuffingroup.com> (raw)
In-Reply-To: 199906181504.LAA07298@hiauly1.hia.nrc.ca

John David Anglin wrote:
> 
> 
> After linking, the executable files for the kernel and ipl each have
> a header that describe what kind object file they are.  The header also has
> info about the sections in the executable.  Ideally, the program that
> builds the LIF image would look at the headers in the ipl and kernel
> and build the LIF image.  However, you can probably get away with
> using a simple program to copy the ipl and kernel files.

That all exists in the tools in linux/arch/parisc/hp/boot/boot_tools. 

> 
> You must watch out for the size of the header on each file (file
> offset).  The linker script for the ELF format kernel set the origin
> for .text to 0x8000.  The corresponding option for the HP linker
> would be "-N -R 8000".  When I do this, the file offset to the
> start of the $TEXT$ section (the first section in the file) is
> 0x28000.  Thus, you want to copy starting from 0x28000 in vmlinux
> to 0x8000 in the LIF image.

Oh, okay.  The linker stuff has all been sorted out (and is in CVS now).

So, here's how you can boot this bootloader:
- on HPUX, install gnu gcc and binutils
- check out the latest kernel tree
- do a 'make config ; make dep ; make vmlinux; make Image'
- boot linux/arch/parisc/hp/boot/Image

It should boot and end with:


Loading kernel...done.
Transferring control to the kernel. (At entry point 0x00008000)

and then hang completely.

The next step is to develop a small mini kernel that we can use to test
the launching. It should just print "Hello world" to the screen using
IODC.  There's lots of example code in the bootloader, so this should be
pretty simple.

- Alex "white water rafting this weekend, far away from PA RISC
equipment" deVries
-- 
Alex deVries
Vice President of Engineering
The Puffin Group

  reply	other threads:[~1999-06-18 19:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-18 14:04 [parisc-linux] A quick update Alex deVries
1999-06-18 15:04 ` John David Anglin
1999-06-18 19:16   ` Alex deVries [this message]
1999-06-21 17:56     ` [parisc-linux] Problems with createheader.sh script John David Anglin
1999-06-21 18:35       ` John David Anglin
1999-06-18 18:34 ` [parisc-linux] A quick update Jeffrey A Law
  -- strict thread matches above, loose matches on Subject: below --
1999-06-18 16:58 Cary Coutant
1999-06-18 17:49 ` John David Anglin
1999-06-18  7:22 Alex deVries
1999-06-18  7:26 ` Jeffrey A Law
1999-06-18 13:05 ` John David Anglin
1999-06-18 18:29   ` Jeffrey A Law
1999-06-18 15:51 ` Alex deVries

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=376A9AF9.5F3DB326@thepuffingroup.com \
    --to=adevries@thepuffingroup.com \
    --cc=dave@hiauly1.hia.nrc.ca \
    --cc=parisc-linux@thepuffingroup.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.