Carl-Daniel Hailfinger wrote:
On 15.09.2008 17:52, Stephen Crocker wrote:
I am running into the following problem building coreboot v3 for an AMD Geode LX board that my company is developing:
Building coreboot v3... CP build/config.h GEN build/build.h BUILD build/coreboot.bootblock cat: write error: No space left on device make[1]: *** [/usr/src/tinygx/buildrom/buildrom-devel/work/coreboot-v3/svn/build/coreboot.bootblock] Error 1 make: *** [/usr/src/tinygx/buildrom/buildrom-devel/work/coreboot-v3/svn/build/coreboot.rom] Error 2
The stage0.init file is 4294967296 bytes and the coreboot.bootblock file is 3940851712 bytes long. The configuration that I am building is derived from the AMD DB800 board, but with an ITE Super I/O instead on the Winbond one. I have attached the .config files from the autobuilder and from coreboot itself. I would be grateful for any insight that can be provided.
Could you post a patch against an up-to-date svn tree? That will help us reproduce the issue and we can review the code for some of the less-known pitfalls.
I have attached a patch that shows the difference between my mainboard code and the AMD DB800 code for version 622. This is the only change that I have made to the source. I am running Fedora Core 9 on VMWare. Here are some details that may be useful:
[root@localhost coreboot-v3]# uname -a Linux localhost.localdomain 2.6.25-14.fc9.i686 #1 SMP Thu May 1 06:28:41 EDT 2008 i686 athlon i386 GNU/Linux [root@localhost coreboot-v3]# gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-cpu=generic --build=i386-redhat-linux Thread model: posix gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) [root@localhost coreboot-v3]# ld -v GNU ld version 2.18.50.0.6-2 20080403
Only in amp/tinygx/: defconfig Only in amp/tinygx/: defconfig~ diff -r amd/db800/dts amp/tinygx/dts 22,23c22,23 < mainboard_vendor = "AMD"; < mainboard_name = "DB800"; ---
mainboard_vendor = "AMP"; mainboard_name = "TinyGX";
56c56 < /config/("superio/winbond/w83627hf/dts"); ---
/config/("superio/ite/it8716f/dts");
diff -r amd/db800/stage1.c amp/tinygx/stage1.c 31c31 < #include <superio/winbond/w83627hf/w83627hf.h> ---
#include <superio/ite/it8716f/it8716f.h>
33c33 < #define SERIAL_DEV W83627HF_SP1 ---
#define SERIAL_DEV IT8716F_SP1
38c38 < void w83627hf_enable_serial(u8 dev, u8 serial, u16 iobase); ---
void it8716f_enable_serial(u8 dev, u8 serial, u16 iobase);
49c49 < w83627hf_enable_serial(0x2e, SERIAL_DEV, SERIAL_IOBASE); ---
it8716f_enable_serial(0x2e, SERIAL_DEV, SERIAL_IOBASE);