Gentoo Archives: gentoo-embedded

From: Peter Stuge <peter@×××××.se>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] Re: boot linux without a bios on intel platform
Date: Thu, 23 Dec 2010 12:08:12
Message-Id: 20101223115307.26305.qmail@stuge.se
In Reply to: [gentoo-embedded] Re: boot linux without a bios on intel platform by Kfir Lavi
1 Kfir Lavi wrote:
2 > > I have an intel board, and the bios boots after 22sec.
3 > > Is it possible to boot the linux without a bios.
4
5 coreboot is your only alternative to a BIOS. I'm active in the
6 project since some years. Instead of coreboot you could of course
7 also consider buying licenses for a custom BIOS from AMI but that
8 is often prohibitively expensive.
9
10
11 > I have spoke in irc #gentoo-embedded with landley and he explained
12 > some stuff about my question regarding coreboot, uboot on x86.
13
14 uboot is not widely used on x86 so far. There has been some talk
15 between coreboot and uboot because the two could complement each
16 other well, but not yet.
17
18 You're of course welcome to stop by #coreboot and talk to us, and/or
19 check out some of the talks.
20
21 http://www.coreboot.org/Screenshots#Videos
22
23 I'd recommend "Beyond The Final Frontier" from 25C3 as a start:
24
25 http://www.coreboot.org/Screenshots#Chaos_Communication_Congress_2008_.2825C3.29:_coreboot:_Beyond_The_Final_Frontier
26
27 coreboot completes it's task in a few hundred milliseconds. Some more
28 complicated boards (lots of busses and CPUs) take longer, maybe a
29 second or even two.
30
31 We have a list of supported mainboards:
32
33 http://www.coreboot.org/Supported_Motherboards
34
35 If your board is not listed it may be easy or it may be hard. When
36 talking to us about it please be sure to provide very specific
37 information about your hardware. "intel board" is e.g. useless, we
38 need details for CPU, chipset, superio and the boot flash.
39
40 As a general rule, NVIDIA and Intel are the worst possible targets
41 for coreboot, because they will not release documentation.
42
43 NVIDIA is simply impossible. Intel can be done, but you need a strong
44 business case with promise of many many units, and you need to sign
45 two NDAs in order to access the required, but insufficient,
46 documentation. The docs have some information but not all. It's
47 generally neccessary to reverse engineer parts of the factory BIOS in
48 order to actually get a board fully working.
49
50 On the opposite end of the spectrum is AMD, who have engineers
51 actively contributing code to coreboot. AMD recently let us know that
52 they will be adding AGESA support to coreboot, as well as releasing
53 AGESA under open source license, which means that coreboot will be
54 able to initialize many if not all AMD platforms with the code
55 written by AMD themselves, which is also being used by commercial
56 BIOS vendors. (AGESA is a firmware plugin system for AMD systems.)
57 This is of course really great news! :)
58
59 There was mention of BOCHS BIOS in the chat log. coreboot does not
60 want to be a BIOS, because BIOS is a 30 year old concept. There is
61 clean separation between coreboot and what we call a payload.
62 coreboot does hardware init, the payload starts the operating system.
63 I rant about ACPI a bit in the talks.
64
65 Payloads can be bootloaders or even a kernel. But for maximum
66 performance you will want to use SeaBIOS, an open source BIOS
67 implementation, as payload - because it supports ATA DMA, and boot
68 flash is much slower than that. (See http://stuge.se/pc2010.png - the
69 flash chip is *far* away from the CPU, on a slow bus.)
70
71 SeaBIOS was originally forked from BOCHS BIOS, but is very much a
72 project of it's own by now, is continually being updated, and is also
73 the default BIOS shipped with QEMU since some versions back.
74
75
76 Hope this helps clarify a bit.
77
78 //Peter

Replies

Subject Author
Re: [gentoo-embedded] Re: boot linux without a bios on intel platform Kfir Lavi <lavi.kfir@×××××.com>