Hi Marc,
In the last mail I forgot to CC it to coreboot. ldscript.ld for fallback is attached.
Regards, Phani
On Thu, Feb 21, 2008 at 5:06 PM, Phani Babu Giddi phanig@gmail.com wrote:
Hi Marc,
Here is a log of messages. I tried using buildrom and was seeing the same error. In this case I have build filo and core boot separately.
make[1]: Entering directory `/home/dev1/fabric/coreboot-v2/targets/amd/db800/db800/fallback' gcc -m32 -x assembler-with-cpp -DASSEMBLY -E ... crt0.S > crt0.s gcc -m32 -x assembler-with-cpp -DASSEMBLY -E -I/home/dev1/fabric/coreboot-v2/src/include -I/home/dev1/fabric/coreboot-v2/src/arch/i386/include -I/usr/lib/gcc/i386-redhat-linux/4.1.2/include -DARCH='i386' -DHAVE_MOVNTI='0' -DCROSS_COMPILE -DCC='gcc -m32' -DHOSTCC='gcc' -DOBJCOPY='objcopy --gap-fill 0xff' -DCOREBOOT_VERSION='"2.0.0"' -DCOREBOOT_BUILD='"Thu Feb 21 17:02:02 PST 2008"' -DCOREBOOT_COMPILE_TIME='"17:02:02"' -DCOREBOOT_COMPILE_BY='"dev1"' -DCOREBOOT_COMPILE_HOST='"localhost.localdomain"' -DCOREBOOT_COMPILE_DOMAIN='"localdomain"' -DCOREBOOT_COMPILER='"gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)"' -DCOREBOOT_LINKER='"the GNU General Public License version 3 or (at your option) a later version."' -DCOREBOOT_ASSEMBLER='"GNU assembler version 2.18.50.0.3(i386-redhat-linux) using BFD version version 2.18.50.0.3-1 20071102"' -DCONFIG_USE_INIT='0' -DHAVE_FALLBACK_BOOT='1' -DHAVE_FAILOVER_BOOT='0' -DROM_IMAGE_SIZE='0x10000' -DPAYLOAD_SIZE='0x67000' -D_ROMBASE='0xffff0000' -D_RESET='0xffff0000' -D_EXCEPTION_VECTORS='0xffff0100' -DSTACK_SIZE='0x2000' -DHEAP_SIZE='0x4000' -D_RAMBASE='0x4000' -DUSE_DCACHE_RAM='1' -DCAR_FAM10='0' -DDCACHE_RAM_BASE='0xc8000' -DDCACHE_RAM_SIZE='0x8000' -DDCACHE_RAM_GLOBAL_VAR_SIZE='0x0' -DCONFIG_AP_CODE_IN_CAR='0' -DMEM_TRAIN_SEQ='0' -DWAIT_BEFORE_CPUS_INIT='0' -DCONFIG_COMPRESS='1' -DCONFIG_UNCOMPRESSED='0' -DCONFIG_LB_MEM_TOPK='2048' -DHAVE_OPTION_TABLE='0' -DUSE_OPTION_TABLE='0' -DLB_CKS_RANGE_START='49' -DLB_CKS_RANGE_END='125' -DLB_CKS_LOC='126' -DCRT0='/home/dev1/fabric/coreboot-v2/src/arch/i386/init/crt0.S.lb' -DDEBUG='1' -DCONFIG_CONSOLE_VGA='0' -DCONFIG_CONSOLE_VGA_MULTI='0' -DCONFIG_CONSOLE_VGA_ONBOARD_AT_FIRST='0' -DCONFIG_CONSOLE_BTEXT='0' -DCONFIG_CONSOLE_LOGBUF='0' -DCONFIG_CONSOLE_SROM='0' -DCONFIG_CONSOLE_SERIAL8250='1' -DCONFIG_USBDEBUG_DIRECT='0' -DDEFAULT_CONSOLE_LOGLEVEL='11' -DMAXIMUM_CONSOLE_LOGLEVEL='11' -DCONFIG_SERIAL_POST='0' -DTTYS0_BASE='0x3f8' -DTTYS0_BAUD='115200' -DTTYS0_LCS='0x3' -DCONFIG_USE_PRINTK_IN_CAR='0' -DMAINBOARD='/home/dev1/fabric/coreboot-v2/src/mainboard/amd/db800' -DMAINBOARD_PART_NUMBER='"db800"' -DMAINBOARD_VENDOR='"amd"' -DMAINBOARD_PCI_SUBSYSTEM_VENDOR_ID='0' -DMAINBOARD_PCI_SUBSYSTEM_DEVICE_ID='0x0' -DCONFIG_MAX_PCI_BUSES='255' -DCONFIG_SMP='0' -DCONFIG_MAX_CPUS='1' -DCONFIG_MAX_PHYSICAL_CPUS='1' -DCONFIG_LOGICAL_CPUS='0' -DSERIAL_CPU_INIT='1' -DAPIC_ID_OFFSET='0' -DENABLE_APIC_EXT_ID='0' -DLIFT_BSP_APIC_ID='0' -DCONFIG_IDE_PAYLOAD='0' -DCONFIG_ROM_PAYLOAD='1' -DCONFIG_ROM_PAYLOAD_START='0xfff89000' -DCONFIG_COMPRESSED_PAYLOAD_NRV2B='0' -DCONFIG_COMPRESSED_PAYLOAD_LZMA='0' -DCONFIG_PRECOMPRESSED_PAYLOAD='0' -DCONFIG_SERIAL_PAYLOAD='0' -DCONFIG_FS_PAYLOAD='0' -DCONFIG_FS_EXT2='0' -DCONFIG_FS_ISO9660='0' -DCONFIG_FS_FAT='0' -DAUTOBOOT_DELAY='2' -DAUTOBOOT_CMDLINE='"hdc1:/vmlinuz root=/dev/hdc3 console=tty0 console=ttyS0,115200"' -DUSE_WATCHDOG_ON_BOOT='0' -DCONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT='1' -DCONFIG_AGP_PLUGIN_SUPPORT='1' -DCONFIG_CARDBUS_PLUGIN_SUPPORT='1' -DCONFIG_PCIX_PLUGIN_SUPPORT='1' -DCONFIG_PCIEXP_PLUGIN_SUPPORT='1' -DCONFIG_IDE='0' -DIDE_BOOT_DRIVE='0' -DIDE_OFFSET='0' -DPCI_IO_CFG_EXT='0' -DCONFIG_CHIP_NAME='0' -DHAVE_INIT_TIMER='1' -DMAX_REBOOT_CNT='3' -DFAKE_SPDROM='0' -DHAVE_ACPI_TABLES='0' -DACPI_SSDTX_NUM='0' -DHT_CHAIN_UNITID_BASE='1' -DHT_CHAIN_END_UNITID_BASE='32' -DSB_HT_CHAIN_UNITID_OFFSET_ONLY='1' -DSB_HT_CHAIN_ON_BUS0='0' -DPCI_BUS_SEGN_BITS='0' -DMMCONF_SUPPORT='0' -DMMCONF_SUPPORT_DEFAULT='0' -DHW_MEM_HOLE_SIZEK='0' -DHW_MEM_HOLE_SIZE_AUTO_INC='0' -DCONFIG_VAR_MTRR_HOLE='1' -DK8_HT_FREQ_1G_SUPPORT='0' -DK8_REV_F_SUPPORT='0' -DCBB='0' -DCDB='24' -DHT3_SUPPORT='0' -DEXT_RT_TBL_SUPPORT='0' -DEXT_CONF_SUPPORT='0' -DDIMM_SUPPORT='0x108' -DCPU_SOCKET_TYPE='16' -DCPU_ADDR_BITS='36' -DCONFIG_VGA_ROM_RUN='0' -DCONFIG_PCI_ROM_RUN='0' -DCONFIG_PCI_64BIT_PREF_MEM='0' -DCONFIG_AMDMCT='0' -DHAVE_MP_TABLE='0' -DHAVE_PIRQ_TABLE='1' -DUSE_FALLBACK_IMAGE='1' -DHAVE_HARD_RESET='0' -DIRQ_SLOT_COUNT='4' -DCOREBOOT_EXTRA_VERSION='".0Fallback"' -DFALLBACK_SIZE='0x77000' -DROM_SIZE='0x77000' -DROM_SECTION_SIZE='0x77000' -DROM_SECTION_OFFSET='0x0' -DXIP_ROM_SIZE='0x10000' -DXIP_ROM_BASE='0xffff0000' -DCONFIG_UDELAY_TSC='1' -DCONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2='1' -DCONFIG_VIDEO_MB='8' -DCONFIG_UDELAY_IO='0' -DUSE_FAILOVER_IMAGE='0' -I. -I/home/dev1/fabric/coreboot-v2/src crt0.S > crt0.s.new && mv crt0.s.new crt0.s gcc -m32 ... -o crt0.o crt0.s gcc -m32 -c -fno-stack-protector -I/home/dev1/fabric/coreboot-v2/src/include -I/home/dev1/fabric/coreboot-v2/src/arch/i386/include -I/usr/lib/gcc/i386-redhat-linux/4.1.2/include -DARCH='i386' -DHAVE_MOVNTI='0' -DCROSS_COMPILE -DCC='gcc -m32' -DHOSTCC='gcc' -DOBJCOPY='objcopy --gap-fill 0xff' -DCOREBOOT_VERSION='"2.0.0"' -DCOREBOOT_BUILD='"Thu Feb 21 17:02:02 PST 2008"' -DCOREBOOT_COMPILE_TIME='"17:02:02"' -DCOREBOOT_COMPILE_BY='"dev1"' -DCOREBOOT_COMPILE_HOST='"localhost.localdomain"' -DCOREBOOT_COMPILE_DOMAIN='"localdomain"' -DCOREBOOT_COMPILER='"gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)"' -DCOREBOOT_LINKER='"the GNU General Public License version 3 or (at your option) a later version."' -DCOREBOOT_ASSEMBLER='"GNU assembler version 2.18.50.0.3(i386-redhat-linux) using BFD version version 2.18.50.0.3-1 20071102"' -DCONFIG_USE_INIT='0' -DHAVE_FALLBACK_BOOT='1' -DHAVE_FAILOVER_BOOT='0' -DROM_IMAGE_SIZE='0x10000' -DPAYLOAD_SIZE='0x67000' -D_ROMBASE='0xffff0000' -D_RESET='0xffff0000' -D_EXCEPTION_VECTORS='0xffff0100' -DSTACK_SIZE='0x2000' -DHEAP_SIZE='0x4000' -D_RAMBASE='0x4000' -DUSE_DCACHE_RAM='1' -DCAR_FAM10='0' -DDCACHE_RAM_BASE='0xc8000' -DDCACHE_RAM_SIZE='0x8000' -DDCACHE_RAM_GLOBAL_VAR_SIZE='0x0' -DCONFIG_AP_CODE_IN_CAR='0' -DMEM_TRAIN_SEQ='0' -DWAIT_BEFORE_CPUS_INIT='0' -DCONFIG_COMPRESS='1' -DCONFIG_UNCOMPRESSED='0' -DCONFIG_LB_MEM_TOPK='2048' -DHAVE_OPTION_TABLE='0' -DUSE_OPTION_TABLE='0' -DLB_CKS_RANGE_START='49' -DLB_CKS_RANGE_END='125' -DLB_CKS_LOC='126' -DCRT0='/home/dev1/fabric/coreboot-v2/src/arch/i386/init/crt0.S.lb' -DDEBUG='1' -DCONFIG_CONSOLE_VGA='0' -DCONFIG_CONSOLE_VGA_MULTI='0' -DCONFIG_CONSOLE_VGA_ONBOARD_AT_FIRST='0' -DCONFIG_CONSOLE_BTEXT='0' -DCONFIG_CONSOLE_LOGBUF='0' -DCONFIG_CONSOLE_SROM='0' -DCONFIG_CONSOLE_SERIAL8250='1' -DCONFIG_USBDEBUG_DIRECT='0' -DDEFAULT_CONSOLE_LOGLEVEL='11' -DMAXIMUM_CONSOLE_LOGLEVEL='11' -DCONFIG_SERIAL_POST='0' -DTTYS0_BASE='0x3f8' -DTTYS0_BAUD='115200' -DTTYS0_LCS='0x3' -DCONFIG_USE_PRINTK_IN_CAR='0' -DMAINBOARD='/home/dev1/fabric/coreboot-v2/src/mainboard/amd/db800' -DMAINBOARD_PART_NUMBER='"db800"' -DMAINBOARD_VENDOR='"amd"' -DMAINBOARD_PCI_SUBSYSTEM_VENDOR_ID='0' -DMAINBOARD_PCI_SUBSYSTEM_DEVICE_ID='0x0' -DCONFIG_MAX_PCI_BUSES='255' -DCONFIG_SMP='0' -DCONFIG_MAX_CPUS='1' -DCONFIG_MAX_PHYSICAL_CPUS='1' -DCONFIG_LOGICAL_CPUS='0' -DSERIAL_CPU_INIT='1' -DAPIC_ID_OFFSET='0' -DENABLE_APIC_EXT_ID='0' -DLIFT_BSP_APIC_ID='0' -DCONFIG_IDE_PAYLOAD='0' -DCONFIG_ROM_PAYLOAD='1' -DCONFIG_ROM_PAYLOAD_START='0xfff89000' -DCONFIG_COMPRESSED_PAYLOAD_NRV2B='0' -DCONFIG_COMPRESSED_PAYLOAD_LZMA='0' -DCONFIG_PRECOMPRESSED_PAYLOAD='0' -DCONFIG_SERIAL_PAYLOAD='0' -DCONFIG_FS_PAYLOAD='0' -DCONFIG_FS_EXT2='0' -DCONFIG_FS_ISO9660='0' -DCONFIG_FS_FAT='0' -DAUTOBOOT_DELAY='2' -DAUTOBOOT_CMDLINE='"hdc1:/vmlinuz root=/dev/hdc3 console=tty0 console=ttyS0,115200"' -DUSE_WATCHDOG_ON_BOOT='0' -DCONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT='1' -DCONFIG_AGP_PLUGIN_SUPPORT='1' -DCONFIG_CARDBUS_PLUGIN_SUPPORT='1' -DCONFIG_PCIX_PLUGIN_SUPPORT='1' -DCONFIG_PCIEXP_PLUGIN_SUPPORT='1' -DCONFIG_IDE='0' -DIDE_BOOT_DRIVE='0' -DIDE_OFFSET='0' -DPCI_IO_CFG_EXT='0' -DCONFIG_CHIP_NAME='0' -DHAVE_INIT_TIMER='1' -DMAX_REBOOT_CNT='3' -DFAKE_SPDROM='0' -DHAVE_ACPI_TABLES='0' -DACPI_SSDTX_NUM='0' -DHT_CHAIN_UNITID_BASE='1' -DHT_CHAIN_END_UNITID_BASE='32' -DSB_HT_CHAIN_UNITID_OFFSET_ONLY='1' -DSB_HT_CHAIN_ON_BUS0='0' -DPCI_BUS_SEGN_BITS='0' -DMMCONF_SUPPORT='0' -DMMCONF_SUPPORT_DEFAULT='0' -DHW_MEM_HOLE_SIZEK='0' -DHW_MEM_HOLE_SIZE_AUTO_INC='0' -DCONFIG_VAR_MTRR_HOLE='1' -DK8_HT_FREQ_1G_SUPPORT='0' -DK8_REV_F_SUPPORT='0' -DCBB='0' -DCDB='24' -DHT3_SUPPORT='0' -DEXT_RT_TBL_SUPPORT='0' -DEXT_CONF_SUPPORT='0' -DDIMM_SUPPORT='0x108' -DCPU_SOCKET_TYPE='16' -DCPU_ADDR_BITS='36' -DCONFIG_VGA_ROM_RUN='0' -DCONFIG_PCI_ROM_RUN='0' -DCONFIG_PCI_64BIT_PREF_MEM='0' -DCONFIG_AMDMCT='0' -DHAVE_MP_TABLE='0' -DHAVE_PIRQ_TABLE='1' -DUSE_FALLBACK_IMAGE='1' -DHAVE_HARD_RESET='0' -DIRQ_SLOT_COUNT='4' -DCOREBOOT_EXTRA_VERSION='".0Fallback"' -DFALLBACK_SIZE='0x77000' -DROM_SIZE='0x77000' -DROM_SECTION_SIZE='0x77000' -DROM_SECTION_OFFSET='0x0' -DXIP_ROM_SIZE='0x10000' -DXIP_ROM_BASE='0xffff0000' -DCONFIG_UDELAY_TSC='1' -DCONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2='1' -DCONFIG_VIDEO_MB='8' -DCONFIG_UDELAY_IO='0' -DUSE_FAILOVER_IMAGE='0' -Os -nostdinc -nostdlib -fno-builtin -Wall -o version.o/home/dev1/fabric/coreboot-v2/src/lib/version.c rm -f coreboot.a ar cr coreboot.a malloc.o cache.o pci_ops.o smbus_ops.o memset.opci_ops_auto.o superio.o northbridgeinit.o fallback_boot.o pciexp_device.o cpubug.o keyboard.o pnp_device.o printk.o irq_tables.o pcix_device.o vsmsetup.o i8259.o pci_device.o console.o delay_tsc.o elfboot.o hardwaremain.o boot.o exception.o delay.o version.o pci_ops_mmconf.o memcmp.o secondary.o isa-dma.o lapic_cpu_init.o hypertransport.o vtxprintf.o tables.o grphinit.o root_device.o cardbus_device.o uart8250.o device_util.o compute_ip_checksum.o device.o northbridge.o memcpy.o agp_device.o clog2.opirq_routing.o memmove.o pci_ops_conf2.o pci_ops_conf1.o mc146818rtc.o coreboot_table.o rom_stream.o c_start.o lapic.o vsprintf.o cpu.o static.o gcc -m32 -Wl,--build-id=none -nostdlib -r -o coreboot_ram.o c_start.o mainboard.o cs5536_ide.o uart8250_console.o cs5536.o model_lx_init.o coreboot.a /usr/lib/gcc/i386-redhat-linux/4.1.2/libgcc.a gcc -m32 -Wl,--build-id=none -nostdlib -nostartfiles -static -o coreboot_ram -T /home/dev1/fabric/coreboot-v2/src/config/coreboot_ram.ld coreboot_ram.o nm -n coreboot_ram | sort > coreboot_ram.map objcopy --gap-fill 0xff -O binary coreboot_ram coreboot_ram.bin ./nrv2b e coreboot_ram.bin coreboot_ram.nrv2b input/output = 77868/29566 = 2.634 cp coreboot_ram.nrv2b coreboot_ram.rom gcc -m32 -Wl,--build-id=none -nostdlib -nostartfiles -static -o coreboot -T ldscript.ld crt0.o /usr/bin/..//bin/ld: coreboot: section `.id' can't be allocated in segment 1 LOAD: .id .reset /usr/bin/..//bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[1]: *** [coreboot] Error 1 make[1]: Leaving directory `/home/dev1/fabric/coreboot-v2/targets/amd/db800/db800/fallback' make: *** [fallback/coreboot.rom] Error 1
Regards, Phani
On Thu, Feb 21, 2008 at 5:01 PM, Marc Jones Marc.Jones@amd.com wrote:
Phani Babu Giddi wrote:
Hello All,
I am trying to build coreboot for amd/db800 target with filo as the payload. I am compiling this on Fedora 8 and I see that ld is reporting a error ".id can't be allocated in segment 1. I have installed the latest version of binutils ( three packages) and I am using the latest code base so I have all the patches that were submitted to fix this issue. The ld version is 2.18.50.0.3-1.
Any idea whats going on ?
Regards, Phani
Hi Phani,
Can you send more output? There might be some hints to what is going on in the target/.../fallback/ldscript.ld file. Are you building with buildrom?
Thanks, Marc
-- Marc Jones Senior Firmware Engineer (970) 226-9684 Office mailto:Marc.Jones@amd.com http://www.amd.com/embeddedprocessors
Phani Babu Giddi wrote:
Hi Marc,
In the last mail I forgot to CC it to coreboot. ldscript.ld for fallback is attached.
Regards, Phani
Your ldscript.ld looks the same as mine.
This line Seems to be the problem. gcc -m32 -Wl,--build-id=none -nostdlib -nostartfiles -static -o coreboot -T ldscript.ld crt0.o
How large is crt0.o? mine: -rw-r--r-- 1 marcj engnrg 12132 2008-02-22 15:18 fallback/crt0.o
You could try changing this line in your target Config.lb: option ROM_IMAGE_SIZE=64*1024
Make it 68K or 70K.
Marc
-----Original Message----- From: coreboot-bounces@coreboot.org [mailto:coreboot-bounces@coreboot.org] On Behalf Of Marc Jones Sent: Friday, February 22, 2008 3:33 PM To: Phani Babu Giddi Cc: coreboot@coreboot.org Subject: Re: [coreboot] amd/db800 build failure on Fedora 8
Phani Babu Giddi wrote:
Hi Marc,
In the last mail I forgot to CC it to coreboot. ldscript.ld for fallback is attached.
Regards, Phani
Your ldscript.ld looks the same as mine.
This line Seems to be the problem. gcc -m32 -Wl,--build-id=none -nostdlib -nostartfiles -static -o coreboot -T ldscript.ld crt0.o
How large is crt0.o? mine: -rw-r--r-- 1 marcj engnrg 12132 2008-02-22 15:18 fallback/crt0.o
My failing crt0.o and working crt0.o are the same size (2748 bytes.)
Myles
You could try changing this line in your target Config.lb: option ROM_IMAGE_SIZE=64*1024
Make it 68K or 70K.
Marc
-- Marc Jones Senior Firmware Engineer (970) 226-9684 Office mailto:Marc.Jones@amd.com http://www.amd.com/embeddedprocessors
-- coreboot mailing list coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
Same here, even after changing the ROM_IMAGE_SIZE variable the build still fails.
-Phani
On Fri, Feb 22, 2008 at 2:41 PM, Myles Watson mylesgw@gmail.com wrote:
-----Original Message----- From: coreboot-bounces@coreboot.org [mailto:
coreboot-bounces@coreboot.org]
On Behalf Of Marc Jones Sent: Friday, February 22, 2008 3:33 PM To: Phani Babu Giddi Cc: coreboot@coreboot.org Subject: Re: [coreboot] amd/db800 build failure on Fedora 8
Phani Babu Giddi wrote:
Hi Marc,
In the last mail I forgot to CC it to coreboot. ldscript.ld for
fallback
is attached.
Regards, Phani
Your ldscript.ld looks the same as mine.
This line Seems to be the problem. gcc -m32 -Wl,--build-id=none -nostdlib -nostartfiles -static -o coreboot -T ldscript.ld crt0.o
How large is crt0.o? mine: -rw-r--r-- 1 marcj engnrg 12132 2008-02-22 15:18 fallback/crt0.o
My failing crt0.o and working crt0.o are the same size (2748 bytes.)
Myles
You could try changing this line in your target Config.lbhttp://config.lb/
:
option ROM_IMAGE_SIZE=64*1024
Make it 68K or 70K.
Marc
-- Marc Jones Senior Firmware Engineer (970) 226-9684 Office mailto:Marc.Jones@amd.com http://www.amd.com/embeddedprocessors
-- coreboot mailing list coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot
Phani Babu Giddi wrote:
Same here, even after changing the ROM_IMAGE_SIZE variable the build still fails.
-Phani
Phani, I am sorry that I don't have any other ideas. It certainly seems to be a problem with the tool chain but I don' t have any idea what.
Marc