barebox on x86
stefan.reinauer at coresystems.de
Tue Aug 31 06:25:28 EDT 2010
here's some initial work on getting barebox working on x86 (again?).
The patch is very ugly, and it makes some assumptions on me using
Darwin/Mac OS X to compile barebox.
What kind of becomes clear though, is that there is no clear distinction
between which set of headers are used for the user space utilities and
which set of headers are used for the barebox binary. I think that's the
reason why barebox features an include/linux directory which seems to
duplicate about half of what Linux usually has in there, but more than
barebox uses (or should use, ftm).
With the attached patch I get as far as the linking stage.
> i386-elf-ld -Map barebox.map -o barebox -T arch/x86/lib/barebox.lds
--start-group common/built-in.o drivers/built-in.o commands/built-in.o
lib/built-in.o net/built-in.o fs/built-in.o
arch/x86/lib/built-in.o arch/x86/boot/built-in.o --end-group
When I define CONFIG_X86_HDBOOT
i386-elf-ld: barebox section `.initcall.8' will not fit in region `mbr'
i386-elf-ld: section .initcall.8 loaded at
[0000000000000400,000000000000040b] overlaps section .bootstrapping
loaded at [0000000000000400,00000000000008e7]
i386-elf-ld: region `mbr' overflowed by 12 bytes
If I choose "native", I get
arch/x86/lib/barebox.lds:124: nonconstant expression for load base
Since barebox is not really specialized in doing complex hardware
initialization like it's needed on x86 machines, and coreboot is not
really specialized in providing any kind of user interface I would like
to work on making barebox available as a coreboot payload. For that I
need to produce an ELF file that does no BIOS calls because coreboot is
not a BIOS or UEFI but only does the most necessary hardware
initialization on x86 systems.
Any hints and help is highly appreciated.
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.de • http://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the barebox