[coreboot] tyan s2881 with seabios and gpxe

Hugh Greenberg hng at lanl.gov
Thu Oct 1 16:54:14 CEST 2009


I am trying to put coreboot v2 on a tyan s2881 and I would like to use 
seabios and gpxe for the payload .  I successfully created the 
coreboot.rom by following the s2881 build tutorial and seabios 
tutorial.  I then tried to add gpxe to the coreboot rom and I received 
this output from cbfstool:

$./cbfstool ../../targets/tyan/s2881/s2881/coreboot.rom add
../../../gpxe-0.9.6-tg3-5704.rom pci14e4,1648 99
Could not add the file to CBFS, it's probably too big.

$ ./cbfstool ../../targets/tyan/s2881/s2881/coreboot.rom print
../../targets/tyan/s2881/s2881/coreboot.rom: 512 kB, bootblocksize 
262144, romsize 524288, offset 0x0
Alignment: 64 bytes

Name                           Offset     Type         Size
normal/payload                 0x0        payload      65592
normal/coreboot_ram            0x10080    stage        56173
fallback/payload               0x1dc40    payload      65592
fallback/coreboot_ram          0x2dcc0    stage        55651
                               0x3b680    null         18744

I taked to Ron about this and he suggested to try the Kconfig build 
system as that would create a smaller rom.   That failed and I received 
this output:

$make
   GEN        build/build.h
   HOSTCC     build_opt_tbl
   OPTION     option_table.h
In file included from
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:17:
/local/coreboot/coreboot-v2/build/option_table.h:45:1: warning:
"CMOS_VSTART_reserved_memory" redefined
/local/coreboot/coreboot-v2/build/option_table.h:1:1: warning: this is
the location of the previous definition
/local/coreboot/coreboot-v2/build/option_table.h:46:1: warning:
"CMOS_VLEN_reserved_memory" redefined
/local/coreboot/coreboot-v2/build/option_table.h:2:1: warning: this is
the location of the previous definition
In file included from
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:19:
/local/coreboot/coreboot-v2/src/pc80/serial.c:74: warning: no previous
prototype for ‘uart_init’
In file included from
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:21:
/local/coreboot/coreboot-v2/src/lib/ramtest.c:137: warning: no
previous prototype for ‘ram_check’
In file included from
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:36:
/local/coreboot/coreboot-v2/src/northbridge/amd/amdk8/incoherent_ht.c:32:2:
error: #error This file needs CONFIG_USE_PRINTK_IN_CAR
In file included from
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:36:
/local/coreboot/coreboot-v2/src/northbridge/amd/amdk8/incoherent_ht.c:
In function ‘print_linkn_in’:
/local/coreboot/coreboot-v2/src/northbridge/amd/amdk8/incoherent_ht.c:37:
warning: implicit declaration of function ‘printk_debug’
/local/coreboot/coreboot-v2/src/northbridge/amd/amdk8/incoherent_ht.c:
In function ‘ht_read_freq_cap’:
/local/coreboot/coreboot-v2/src/northbridge/amd/amdk8/incoherent_ht.c:138:
warning: implicit declaration of function ‘printk_spew’
/local/coreboot/coreboot-v2/src/northbridge/amd/amdk8/incoherent_ht.c:
In function ‘ht_setup_chainx’:
/local/coreboot/coreboot-v2/src/northbridge/amd/amdk8/incoherent_ht.c:571:
warning: unused variable ‘i’
In file included from
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:39:
/local/coreboot/coreboot-v2/src/cpu/amd/model_fxx/apic_timer.c: At top 
level:
/local/coreboot/coreboot-v2/src/cpu/amd/model_fxx/apic_timer.c:6:
warning: no previous prototype for ‘init_timer’
/local/coreboot/coreboot-v2/src/cpu/amd/model_fxx/apic_timer.c:19:
warning: no previous prototype for ‘udelay’
In file included from
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:40:
/local/coreboot/coreboot-v2/src/lib/delay.c:2: warning: no previous
prototype for ‘mdelay’
/local/coreboot/coreboot-v2/src/lib/delay.c:9: warning: no previous
prototype for ‘delay’
In file included from
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:87:
/local/coreboot/coreboot-v2/src/northbridge/amd/amdk8/raminit.c:23:
warning: redundant redeclaration of ‘hard_reset’
/local/coreboot/coreboot-v2/src/southbridge/amd/amd8111/amd8111_early_ctrl.c:39:
warning: previous definition of ‘hard_reset’ was here
In file included from
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:87:
/local/coreboot/coreboot-v2/src/northbridge/amd/amdk8/raminit.c:576:2:
warning: #warning "FIXME: Implement a better test for Opterons"
/local/coreboot/coreboot-v2/src/northbridge/amd/amdk8/raminit.c:1083:
warning: no previous prototype for ‘memory_end_k’
/local/coreboot/coreboot-v2/src/northbridge/amd/amdk8/raminit.c: In
function ‘sdram_set_spd_registers’:
/local/coreboot/coreboot-v2/src/northbridge/amd/amdk8/raminit.c:2109:
warning: implicit declaration of function ‘printk_err’
In file included from
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:90:
/local/coreboot/coreboot-v2/src/lib/generic_sdram.c: At top level:
/local/coreboot/coreboot-v2/src/lib/generic_sdram.c:15: warning: no
previous prototype for ‘sdram_no_memory’
/local/coreboot/coreboot-v2/src/lib/generic_sdram.c:27: warning: no
previous prototype for ‘sdram_initialize’
In file included from
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:92:
/local/coreboot/coreboot-v2/src/cpu/amd/dualcore/dualcore.c: In
function ‘do_k8_init_and_stop_secondaries’:
/local/coreboot/coreboot-v2/src/cpu/amd/dualcore/dualcore.c:78:
warning: unused variable ‘apicid’
In file included from
/local/coreboot/coreboot-v2/src/cpu/amd/car/post_cache_as_ram.c:4,
                from
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:97:
/local/coreboot/coreboot-v2/src/cpu/amd/car/disable_cache_as_ram.c:19:5:
warning: "CONFIG_DCACHE_RAM_SIZE" is not defined
In file included from
/local/coreboot/coreboot-v2/src/cpu/amd/car/post_cache_as_ram.c:6,
                from
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:97:
/local/coreboot/coreboot-v2/src/cpu/amd/car/clear_init_ram.c: In
function ‘clear_init_ram’:
/local/coreboot/coreboot-v2/src/cpu/amd/car/clear_init_ram.c:14:
error: ‘CONFIG_DCACHE_RAM_SIZE’ undeclared (first use in this
function)
/local/coreboot/coreboot-v2/src/cpu/amd/car/clear_init_ram.c:14:
error: (Each undeclared identifier is reported only once
/local/coreboot/coreboot-v2/src/cpu/amd/car/clear_init_ram.c:14:
error: for each function it appears in.)
In file included from
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:97:
/local/coreboot/coreboot-v2/src/cpu/amd/car/post_cache_as_ram.c: In
function ‘post_cache_as_ram’:
/local/coreboot/coreboot-v2/src/cpu/amd/car/post_cache_as_ram.c:79:
error: ‘CONFIG_DCACHE_RAM_SIZE’ undeclared (first use in this
function)
/local/coreboot/coreboot-v2/src/cpu/amd/car/post_cache_as_ram.c:79:
error: ‘CONFIG_DCACHE_RAM_BASE’ undeclared (first use in this
function)
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:
At top level:
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:107:
warning: no previous prototype for ‘failover_process’
/local/coreboot/coreboot-v2/src/mainboard/tyan/s2881/cache_as_ram_auto.c:155:
warning: no previous prototype for ‘cache_as_ram_main’
make: *** [/local/coreboot/coreboot-v2/build/mainboard/tyan/s2881/auto.inc]
Error 1

Any ideas?  Thanks.

-- 
Hugh Greenberg
Email: hng at lanl.gov





More information about the coreboot mailing list