On Thu, Oct 1, 2009 at 8:54 AM, Hugh Greenberg <[email protected]> wrote:
> 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 didn't see how big the gpxe ROM is.  That might influence which of
these choices you make.

You could:
1. shrink your bootblock (CONFIG_ROM_IMAGE_SIZE)
2. do fallback-only (Remove anything that says normal in
targets/tyan/s2881/s2881/Config.lb)

>
> 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:

3. Apply the attached patch (updated version of one that is waiting to
be reviewed.)

Thanks,
Myles
Index: svn/src/cpu/amd/model_fxx/Kconfig
===================================================================
--- svn.orig/src/cpu/amd/model_fxx/Kconfig
+++ svn/src/cpu/amd/model_fxx/Kconfig
@@ -1,3 +1,7 @@
+config CPU_AMD_MODEL_FXX
+	bool
+	default n
+
 config HAVE_INIT_TIMER
 	bool
 	default y
Index: svn/src/northbridge/amd/amdk8/Kconfig
===================================================================
--- svn.orig/src/northbridge/amd/amdk8/Kconfig
+++ svn/src/northbridge/amd/amdk8/Kconfig
@@ -27,6 +27,11 @@ config AGP_APERTURE_SIZE
 	default 0x4000000
 	depends on NORTHBRIDGE_AMD_AMDK8
 
+config K8_HT_FREQ_1G_SUPPORT
+	bool
+	default n
+	depends on NORTHBRIDGE_AMD_AMDK8
+
 config HYPERTRANSPORT_PLUGIN_SUPPORT
 	bool
 	default y
Index: svn/src/cpu/Kconfig
===================================================================
--- svn.orig/src/cpu/Kconfig
+++ svn/src/cpu/Kconfig
@@ -25,7 +25,3 @@ config SMP
 	bool
 	default y if MAX_CPUS != 1
 	default n
-
-config CPU_SOCKET_TYPE
-	hex
-	default 0
Index: svn/src/cpu/amd/socket_AM2/Kconfig
===================================================================
--- svn.orig/src/cpu/amd/socket_AM2/Kconfig
+++ svn/src/cpu/amd/socket_AM2/Kconfig
@@ -4,6 +4,7 @@ config CPU_AMD_SOCKET_AM2
 	select K8_REV_F_SUPPORT
 	# Opteron K8 1G HT support
 	select K8_HT_FREQ_1G_SUPPORT
+	select CPU_AMD_MODEL_FXX
 
 config CPU_SOCKET_TYPE
 	hex
Index: svn/src/cpu/amd/socket_F/Kconfig
===================================================================
--- svn.orig/src/cpu/amd/socket_F/Kconfig
+++ svn/src/cpu/amd/socket_F/Kconfig
@@ -2,8 +2,8 @@ config CPU_AMD_SOCKET_F
 	bool
 	default n
 	select K8_REV_F_SUPPORT
-	# Opteron K8 1G HT support
 	select K8_HT_FREQ_1G_SUPPORT
+	select CPU_AMD_MODEL_FXX
 
 config CPU_SOCKET_TYPE
 	hex
Index: svn/src/cpu/amd/socket_S1G1/Kconfig
===================================================================
--- svn.orig/src/cpu/amd/socket_S1G1/Kconfig
+++ svn/src/cpu/amd/socket_S1G1/Kconfig
@@ -3,6 +3,7 @@ config CPU_AMD_SOCKET_S1G1
 	default n
 	select K8_REV_F_SUPPORT
 	select K8_HT_FREQ_1G_SUPPORT
+	select CPU_AMD_MODEL_FXX
 
 config CPU_SOCKET_TYPE
 	hex
Index: svn/src/cpu/amd/Kconfig
===================================================================
--- svn.orig/src/cpu/amd/Kconfig
+++ svn/src/cpu/amd/Kconfig
@@ -1,3 +1,7 @@
+config K8_REV_F_SUPPORT
+	bool
+	default n
+
 #source src/cpu/amd/socket_754/Kconfig
 #source src/cpu/amd/socket_939/Kconfig
 source src/cpu/amd/socket_940/Kconfig
Index: svn/src/cpu/amd/socket_940/Kconfig
===================================================================
--- svn.orig/src/cpu/amd/socket_940/Kconfig
+++ svn/src/cpu/amd/socket_940/Kconfig
@@ -1,11 +1,10 @@
 config CPU_AMD_SOCKET_940
 	bool
 	default n
-	#Opteron K8 1G HT Support
 	select K8_HT_FREQ_1G_SUPPORT
 	select CPU_AMD_MODEL_FXX
 
-config K8_REV_F_SUPPORT
-	bool
-	default n
+config CPU_SOCKET_TYPE
+	hex
+	default 0x0
 	depends on CPU_AMD_SOCKET_940
-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to