Subject: Re: NetBSD booting NetBSD on a TS-7xxx
To: None <port-arm@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: port-arm
Date: 12/05/2006 18:15:07
In article <200612050844.kB58iXux025625@merlin.buzzard.freeserve.co.uk>,
Richard Earnshaw  <Richard.Earnshaw@buzzard.freeserve.co.uk> wrote:
>On Tue, 05 Dec 2006 12:28:58 +0900, "Toru Nishimura" wrote:
>> Jesse Off wrote;
>> 
>> > I recently wrote a program to allow NetBSD to boot other OS' from within 
>> > NetBSD itself.
>> 
>> [ ... snip ... ]
>> 
>> > I'll probably implement arbitrary ELF file loading sometime this month 
>> > (right now it only works with raw images)
>> 
>> As a side note, it's possible to distinguish NetBSD ELF from Linux 2.4 or 2.6
>> looking at ELF "private flags" field.
>> 
>> In Little Endian short, offset 0x24 of kernel ELF header differs as;
>> - NetBSD    0x0602
>> - Linux 2.4  0x0002
>> - Linux 2.6  0x0202
>
>This isn't a reliable test.  Linux objects and executables built to the 
>EABI will show a completely different value here (in e_flags) and that 
>field doesn't contain enough information to determine the OS.

All NetBSD kernels will contain a NetBSD PT_NOTE field RSN...

christos