[coreboot] [PATCH] First support for HP DL145 G3

Myles Watson mylesgw at gmail.com
Tue Mar 31 19:08:46 CEST 2009


On Tue, Mar 31, 2009 at 10:59 AM, samuel <samuel.verstraete at gmail.com> wrote:
> On Tue, Mar 31, 2009 at 6:56 PM, Myles Watson <mylesgw at gmail.com> wrote:
>> On Tue, Mar 31, 2009 at 10:40 AM, samuel <samuel.verstraete at gmail.com> wrote:
>>> I just tried building this :)
>>>
>>> But I didn't succeed.
>>> What I did:
>>> 1. checkout payload filo, apply filo_dl_145_sata.patch and build it.
>>> svn co svn://coreboot.org/filo
>>> cd filo/trunk/filo
>>> patch -p 0 << ~/coreboot/filo_dl_145_sata.patch
>>> sh build.sh
>>> cp build/filo.elf ~/coreboot/
>>>
>>> 2. checkout coreboot-v2, apply remaining patches and build it:
>>> svn co svn://coreboot.org/repos/trunk/coreboot-v2
>>> cd coreboot-v2
>>> patch -p 0 << ~/coreboot/bcm2100.patch
>>> patch -p 0 << ~/coreboot/pilot_superio.patch
>>> patch -p 0 << ~/coreboot/hp_dl145_g3.patch
>>> patch -p 0 << ~/bcm5785_noide.patch
>>> cd targets
>>> buildtarget hp/dl145_g3 /home/samuel/coreboot/coreboot_v2
>>> cd hp/dl145_g3
>>> sed -e s@/home/mondrian/filo.elf@/home/samuel/coreboot/filo.elf at g Config.lb
>>> cd dl145_g3
>>> make
>>>
>>> and then i get the error:
>>
>> cp coreboot_ram.nrv2b coreboot_ram.rom
>> echo '/*ldoptions*/' > ldscript.ld; cat ldoptions >> ldscript.ld ; for
>> file in  /home/samuel/coreboot/coreboot-v2/src/arch/i386/init/ldscript_fallback.lb
>> /home/samuel/coreboot/coreboot-v2/src//cpu/x86/16bit/entry16.lds
>> /home/samuel/coreboot/coreboot-v2/src//cpu/x86/16bit/reset16.lds
>> /home/samuel/coreboot/coreboot-v2/src//arch/i386/lib/id.lds
>> /home/samuel/coreboot/coreboot-v2/src//arch/i386/lib/failover.lds ; do
>> echo /\* $file \*/ >> ldscript.ld; cat $file >> ldscript.ld ; done
>> gcc -m32 -Wl,--build-id=none -nostdlib -nostartfiles -static -o
>> coreboot -T ldscript.ld crt0.o
>> /usr/bin/ld: coreboot: section `.id' can't be allocated in segment 2
>> /usr/bin/ld: final link failed: Bad value
>> collect2: ld returned 1 exit status
>>
>>>
>>> Any suggesions? Did I do something wrong?
>>
>> Try a different version of binutils and/or gcc.  I used to get this
>> error on Fedora Core 8.
>
> samuel at camelot ~ $ lvu version binutils
> 2.18
> samuel at camelot ~ $ lvu version gcc
> 4.2.4
>
>
> You suggest downgrading or upgrading? :)

I wish I knew.  With Fedora I couldn't do either.  I just had to
switch distros.  Interestingly, it only affected my 32-bit machine;
64-bit was fine.

Now I use:

gcc (Ubuntu 4.3.2-1ubuntu12) 4.3.2
GNU assembler (GNU Binutils for Ubuntu) 2.18.93.20081009

I know there are others that work too.

Thanks,
Myles




More information about the coreboot mailing list