[coreboot] Build error with top of tree V2

Clay Jones c.jones at f5.com
Tue Feb 5 23:10:42 CET 2008


I found the problem. The wrong ar command was being used because the
make file does not have " $(CROSS_COMPILE)" in front of the ar command.

-----Original Message-----
From: coreboot-bounces at coreboot.org
[mailto:coreboot-bounces at coreboot.org] On Behalf Of Clay Jones
Sent: Tuesday, February 05, 2008 1:08 PM
To: Marc Jones
Cc: coreboot at coreboot.org
Subject: Re: [coreboot] Build error with top of tree V2

I am using buildrom and have built with the following tools on centos
4.4 (redhat):

gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
GNU Make 3.80
GNU ld version 2.15.92.0.2 20040927
GNU objcopy 2.15.92.0.2 20040927


-----Original Message-----
From: Marc Jones [mailto:marc.jones at amd.com] 
Sent: Tuesday, February 05, 2008 11:39 AM
To: Clay Jones
Cc: coreboot at coreboot.org
Subject: Re: [coreboot] Build error with top of tree V2



Clay Jones wrote:
> Hi,
> 
> I am getting the following error when building the
> Serengeti_cheetah_fam10 target:
> 
> 
> gcc -m32  -nostdlib -nostartfiles -static -o coreboot -T ldscript.ld
> crt0.o 
> nm -n coreboot | sort > coreboot.map
> objcopy --gap-fill 0xff -O binary coreboot coreboot.strip
> cp ../payload.elf payload
> ./buildrom coreboot.strip coreboot.rom payload 0x3f000 0x7f000
> coreboot image is 258104 bytes; only 258048 allowed
> Coreboot input file larger than allowed size!
> : Success
> make[1]: *** [coreboot.rom] Error 2
> make[1]: Leaving directory
>
`/home/cjones/coreboot-v2/targets/amd/serengeti_cheetah_fam10/serengeti_
> cheetah_fam10/fallback'
> make: *** [fallback/coreboot.rom] Error 1
>
cjones at scully:/home/cjones/coreboot-v2/targets/amd/serengeti_cheetah_fam
> 10/serengeti_cheetah_fam10
> 
> 
> The coreboot image is always a little bigger that the space allowed. I
> have seen this before, but I can't remember what causes it. Anybody
> know?
> 
> 
> 

Can you post your distribution, gcc version and binutils versions?

Are you using buildrom? Did you build a normal image too? did you change

the mainboard or target config.lb?

I get the following using buildrom on my local directory:
./buildrom coreboot.strip coreboot.rom payload 0x3f000 0x7f000
Payload: 61872 coreboot: 258048 ROM size: 520192 Left space: 200272

Marc








-- 
Marc Jones
Senior Firmware Engineer
(970) 226-9684 Office
mailto:Marc.Jones at amd.com
http://www.amd.com/embeddedprocessors


This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this email in error please notify the
system manager. This message contains confidential information and is
intended only for the individual named. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.

-- 
coreboot mailing list
coreboot at coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot




More information about the coreboot mailing list