[LinuxBIOS] ck804 romstrap modification

Roman Kononov kononov195-lbl at yahoo.com
Wed Feb 7 17:15:36 CET 2007


This modification simplifies automation of building ROM
files with correct MAC addresses.

The automation is done by adding the following into
src/mainboard/xxx/xxx/Config.lb

  ##
  ## ROMSTRAP table for CK804
  ##
  if USE_FALLBACK_IMAGE
+   mainboardinit southbridge/../../targets/xxx/xxx/mac_address.h
     mainboardinit southbridge/nvidia/ck804/romstrap.inc
     ldscript /southbridge/nvidia/ck804/romstrap.lds
  end

The location of mac_address.h can be different. The file is
generated by the build process or edited manually.

Signed-off-by: Roman Kononov <kononov195-lbl at yahoo.com>
---

Index: src/southbridge/nvidia/ck804/romstrap.inc
===================================================================
--- src/southbridge/nvidia/ck804/romstrap.inc	(revision 2551)
+++ src/southbridge/nvidia/ck804/romstrap.inc	(working copy)
@@ -24,8 +24,12 @@ linkedlist:
  	.long 0xFFFFFFFF			// 28h
  	.long 0xFFFFFFFF			// 2Ch
  	
+#if defined(MAC_ADDRESS)
+	.quad MAC_ADDRESS			// 30h, MAC address ---> keep it in 0xffffffd0
+#else	
  	.long 0x81543266			// 30h, MAC address low 4 byte ---> keep it in 0xffffffd0
  	.long 0x000000E0			// 34h, MAC address high 4 byte
+#endif

  	.long 0x002309CE			// 38h, UUID low 4 byte
  	.long 0x00E08100			// 3Ch, UUID high 4 byte






More information about the coreboot mailing list