[coreboot] build failure: cannot move location counter backwards

Darren Hart dvhart at linux.intel.com
Thu Jun 23 23:39:42 CEST 2011



On 06/23/2011 10:18 AM, Stefan Reinauer wrote:
> On Tue, Jun 21, 2011 at 8:34 PM, Kevin O'Connor <kevin at koconnor.net> wrote:
>>
>> On Mon, Jun 20, 2011 at 10:58:06PM -0700, Darren Hart wrote:
>>> On 06/20/2011 04:09 PM, Cristian Măgherușan-Stanciu wrote:
>>>> Hi,
>>>>
>>>> I documented the latest developments (git and crossgcc) at
>>>> http://www.coreboot.org/Build_HOWTO. Please someone double-check.
>>>
>>> My build succeeded following these instructions. As a first-time user,
>>> it would be helpful to have a quick-start guide which would be basically
>>> this wiki page + the steps necessary to do boot what I built in qemu.
>>> There are bits of that here:
>>>
>>> http://www.coreboot.org/QEMU
>>
>> Unfortunately, it looks like that page has old information on it.
>>
> 
> Which version of Qemu was that again?


$ qemu --version
QEMU PC emulator version 0.12.5 (qemu-kvm-0.12.5), Copyright (c)
2003-2008 Fabrice Bellard


> 
>>
>>> Is it integrated into the payload? Reading the
>>> QEMU_Build_tutorial, http://www.coreboot.org/QEMU_Build_Tutorial, led me
>>> to try:
>>>
>>> $ qemu -bios build/coreboot.rom -hda /dev/zero -serial stdio
>>>
>>> This resulted in something else entirely, the shell output terminating
>>> in the following:
>>>
>>> coreboot memory table:
>>>  0. 0000000000000000-0000000000000fff: CONFIGURATION TABLES
>>>  1. 0000000000001000-000000000009ffff: RAM
>>>  2. 00000000000c0000-0000000017feffff: RAM
>>>  3. 0000000017ff0000-0000000017ffffff: CONFIGURATION TABLES
>>>  4. 00000000ff800000-00000000ffffffff: RESERVED
>>> Wrote coreboot table at: 17ff1400 - 17ff15c4  checksum 6c1c
>>> coreboot table: 452 bytes.
>>> Multiboot Information structure has been written.
>>>  0. FREE SPACE 17ff3400 0000cc00
>>>  1. GDT        17ff0200 00000200
>>>  2. IRQ TABLE  17ff0400 00001000
>>>  3. COREBOOT   17ff1400 00002000
>>> Check CBFS header at fffcfc39
>>> magic is 386f92fa
>>> ERROR: No valid CBFS header found!
>>> CBFS:  Could not find file fallback/payload
>>> Boot failed.
>>
>> You're now running coreboot, but coreboot was unable to find your
>> payload (eg, SeaBIOS).
> 
> However, it seems the CBFS header is corrupted, so it is not even
> checking for a payload file.
> 
> Not sure why, on first sight.

Alright. What I'm trying to do here is demonstrate a known working state
and use-case of coreboot. Once I have that working I want to start
looking at getting it working on my hardware. Is there a better
known-working state of coreboot I can use? I'd prefer to stick with qemu
for this part.

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel




More information about the coreboot mailing list