Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Mike McDonald <mikemac@mikemac.com>
To: Justin Carlson <justincarlson@cmu.edu>
Cc: linux-mips@oss.sgi.com
Subject: Re: Moving kernel_entry to LOADADDR
Date: Fri, 19 Oct 2001 08:56:04 -0700	[thread overview]
Message-ID: <200110191556.IAA27669@saturn.mikemac.com> (raw)
In-Reply-To: Your message of "19 Oct 2001 11:21:41 EDT." <1003504901.29529.54.camel@gs256.sp.cs.cmu.edu>


>Subject: Re: Moving kernel_entry to LOADADDR
>From: Justin Carlson <justincarlson@cmu.edu>
>To: linux-mips@oss.sgi.com
>Date: 19 Oct 2001 11:21:41 -0400
>
>On Fri, 2001-10-19 at 11:11, Mike McDonald wrote:
>
>>   Because a bare bones bootloader may not know anything about ELF. The
>> simplest solution is to just stick a "jmp start_kernel" at LOADADDR
>> right before the fill. Then the load address and the entry point are
>> the same. Once the exception vectors get loaded, they'll overwrite the
>> jmp, so no space is wasted and none of the LOADADDRs have to be
>> changed.
>
>
>This may be true, but grokking ELF far enough to find e_entry just a
>matter of looking at a fixed offset into the kernel image.  Problems
>that require bootloaders to be simpler than that are pretty rare...
>
>-Justin

  But they do exist, especially in the embedded world. For instance,
I've run linux with boot loader out of a 1MB flash into 8MB of RAM. 
(VR4121 based system.) The kernel image stored in the flash had to be
a compressed raw memory image inorder to fit in the flash.  (The flash
also had to have room to the initrd.) Adding ELF headers to the image
would probably have pushed the size over the limit.

  Mike McDonald
  mikemac@mikemac.com

  reply	other threads:[~2001-10-19 15:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-19  0:58 Moving kernel_entry to LOADADDR Gerald Champagne
2001-10-19  1:13 ` Geoffrey Espin
2001-10-19  7:31 ` Gleb O. Raiko
2001-10-19 13:20 ` Maciej W. Rozycki
2001-10-19 15:11   ` Mike McDonald
2001-10-19 15:18     ` Gerald Champagne
2001-10-19 15:21     ` Justin Carlson
2001-10-19 15:56       ` Mike McDonald [this message]
2001-10-24 11:16 ` Florian Lohoff

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=200110191556.IAA27669@saturn.mikemac.com \
    --to=mikemac@mikemac.com \
    --cc=justincarlson@cmu.edu \
    --cc=linux-mips@oss.sgi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox