All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Luck, Tony" <tony.luck@intel.com>
To: linux-ia64@vger.kernel.org
Subject: RE: 2.6.0-Test5 booting problems on Itanium-1!
Date: Mon, 13 Oct 2003 16:33:54 +0000	[thread overview]
Message-ID: <marc-linux-ia64-106606324104100@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-106569415603393@msgid-missing>

> AFAIK _start is the entry point to the IA64 kernel.
> I found that the kernel vmlinux-2.4.0-0.99.11smp *which_boots* without
> problems has a _start address = e000000000520000. This is 
> also stored in
> the 
> Elf header of the file as Entry Point Address. (I used readelf to
> confirm)
> 
> While the kernel which *I_am_trying_to_boot* vmlinux-2.6.0-test5 has
> a _start address = a000000100010000. And the elf header shows Entry
> Point Address
> as 0x4010000. This means that this kernel will not load 
> properly as the
> boot loader
> reads the elf file header and jumps to the Start Address (??).

The virtual mapping scheme for the kernel changed between 2.4 and 2.[56].
In 2.4 the kernel required that it be loaded at physical address just
above 64MB, and it used the 1:1 mapping of region 7 (virtual address physical address + 0xE000000000000000).  This scheme didn't support
systems that have no physical memory at 64MB (specifically SGI, but I'm
sure that others will build ccNUMA systems where the address of the
memory is a function of the node number).  So in 2.5.60(approx) a change
was made to allow the kernel to be loaded at any (suitably aligned)
physical address, and the early code at _start would map it to the
expected virtual address (which was moved to region 5 so as not to disturb
the simplicity of the region 7 mapping).

So the entry point you see in the Elf header of the 2.6 kernel is the
*physical* address (which would be overridden by the bootloader if the
kernel was loaded at some other address). The address of _start in the
symbol table is the virtual address.

There were some changes to the elilo bootloader too, but they happened
long, long before the kernel change was accepted (but if you are clinging
to a 2+ year old copy of elilo, it may be time to upgrade).

-Tony

  parent reply	other threads:[~2003-10-13 16:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-09 10:19 2.6.0-Test5 booting problems on Itanium-1! Ameya Mitragotri
2003-10-09 15:32 ` Jesse Barnes
2003-10-13  5:36 ` Ameya Mitragotri
2003-10-13 16:33 ` Luck, Tony [this message]
2003-10-13 17:30 ` Stephane Eranian
2003-10-15 11:47 ` Ameya Mitragotri

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=marc-linux-ia64-106606324104100@msgid-missing \
    --to=tony.luck@intel.com \
    --cc=linux-ia64@vger.kernel.org \
    /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.