[LinuxBIOS] Complete and generic 32bit/64bit support
myles at pel.cs.byu.edu
Thu Nov 22 00:29:43 CET 2007
On 11/21/07, yhlu <yinghailu at gmail.com> wrote:
> On Nov 21, 2007 12:03 PM, Myles Watson <myles at pel.cs.byu.edu> wrote:
> > >
> > > On Wed, Nov 21, 2007 at 12:13:23PM -0700, Myles Watson wrote:
> > > > It makes the same changes as mentioned before, but it also uses the
> > > > correct kernel image depending on the architecture. mkelfimage
> > > > doesn't work with an x86_64 vmlinux, and with an i386 bzImage it
> > > > generates a _much_ larger elf.
> for x86_64 support
> there is a patch i posted several months ago.
> because late x86_64 kernel vmlinux is elf64, you need to use melfImage
> to convert that to elf32.
I tested it using the amd serengeti_cheetah LAB (64-bit) platform in buildrom
With mkelfimage 2.5 using bzImage (vmlinux doesn't work)
Payload takes 901210 Bytes (880 KBytes) in ROM:
With mkelfimage 2.7 and Yinghai's patch using bzImage
Payload takes 900919 Bytes (879 KBytes) in ROM:
With mkelfimage 2.7 and Yinghai's patch using vmlinux
Payload takes 770726 Bytes (752 KBytes) in ROM:
So 2.7 is marginally better anyway, and blows 2.5 away by using vmlinux.
I tested it and it boots. I think we should upgrade to 2.7 and use the patch.
My patch makes it so all targets use vmlinux and 2.7
Signed-off-by: Myles Watson <myles at pel.cs.byu.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 20116 bytes
Desc: not available
More information about the coreboot