Using GRUB2 with CoreBoot (formerly known as LinuxBIOS) 3/3: grub-mkimage should create streamable ELFs
Hi,
third installment in my mini-series - the fourth one vanished on the way.
Move segment table to the beginning of the ELF image, so it can be used while parsing the rest. There was some patch for this on this list already (http://www.mail-archive.com/[email protected]/msg03547.html),
which might help as inspiration.
Regards,
Patrick Georgi
Hello!
Quoted 8 lines · Patrick Georgi
Hi,
third installment in my mini-series - the fourth one vanished on the way.
Move segment table to the beginning of the ELF image, so it can be used while parsing the rest. There was some patch for this on this list already (http://www.mail-archive.com/[email protected]/msg03547.html),
which might help as inspiration.
Maybe you meant to attach a patch?
I'd be interested to try changes to grub-mkimage on PowerPC.
Signature · 2 lines
Regards, Pavel Roskin
Quoted 6 lines · Patrick Georgi
Hi,
third installment in my mini-series - the fourth one vanished on the way.
Move segment table to the beginning of the ELF image, so it can be used while parsing the rest.
I have two concerns before investing time in this:
- I heard CoreBoot was deprecating ELF for size reasons.
- On an earlier discussion (about boot issues on Apple hardware), Pavel proposed switching util/elf/grub-mkimage.c to use libbfd. This would solve a few problems automaticaly, including this one.
Signature · 5 lines
Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call, if you are unable to speak? (as seen on /.)
Am Tue, 15 Jan 2008 19:09:19 +0100 schrieb Robert Millan:
Quoted 1 line
- I heard CoreBoot was deprecating ELF for size reasons.
Version 3 splits them up, yes. Version 2 will keep ELF.
Quoted 4 lines
- On an earlier discussion (about boot issues on Apple hardware), Pavel
proposed switchingutil/elf/grub-mkimage.cto use libbfd. This would solve a few problems automaticaly, including this one.
I'm fine with whatever path is taken to solve it (or if you decide that it's not worth the effort, and require coreboot v3). There's a patch out there for anyone who needs this kind of setup, after all.
And if that libbfd-change fixes this issue, all the better.
Regards,
Patrick Georgi
Quoted 3 lines · Patrick Georgi
Am Tue, 15 Jan 2008 19:09:19 +0100 schrieb Robert Millan:
Quoted 1 line
- I heard CoreBoot was deprecating ELF for size reasons.
Version 3 splits them up, yes. Version 2 will keep ELF.
What do you mean "splits" ? Is ELF supported as a build option?
Signature · 5 lines
Robert Millan <GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call… if you are unable to speak? (as seen on /.)
Am Wed, 16 Jan 2008 14:47:38 +0100 schrieb Robert Millan:
Quoted 1 line
What do you mean "splits" ? Is ELF supported as a build option?
You give it an ELF file and it adds per-segment files to the LAR image. Mostly transparent to the user.
Regards,
Patrick Georgi