Ward Vandewege wrote:
On Tue, Sep 09, 2008 at 10:13:41PM +0200, Daniel Lindenaar wrote:
Ward Vandewege wrote:
On Tue, Sep 09, 2008 at 09:41:47PM +0200, Daniel Lindenaar wrote:
the log ends with:
elfboot: Attempting to load payload. rom_stream: 0xfffe0000 - 0xfffeffff No header at 0 No header at 16 No header at 32 No header at 48 No header at 64 No header at 80 No header at 96 No header at 112 No header at 128 No header at 144 No header at 160 No header at 176 No header at 192 No header at 208 No header at 224 No header at 240 No header at 256 No header at 272 No header at 288 No header at 304 No header at 320 No header at 336 No header at 352 No header at 368 No header at 384
snip
No header at 8096 header_offset is -1 Can not load ELF Image.
I was trying to use filo as a bootloader, but apparently something went wrong.
any hints?
Yes. Disable lzma compression for your filo payload, and it will work.
What you see is coreboot not finding a proper lzma compressed filo payload, and falling back to trying to find an uncompressed payload. That fails.
For some reason lzma-compressing filo and etherboot generates an invalid image; I have not investigated why yet.
Thanks, Ward.
hmmm... How do I do this? I've got: export CONFIG_COMPRESSED_PAYLOAD_LZMA:=0
Do you also have
CONFIG_PRECOMPRESSED_PAYLOAD
set to zero?
yep... I've attached the Makefile.settings file. Please have a look and see what you think?
regards, Daniel
# File: via/tk3350/tk3350/fallback/Makefile.settings is autogenerated TOP:=/usr/src/coreboot TARGET_DIR:=via/tk3350/tk3350/fallback
export ARCH:=i386 export HAVE_MOVNTI:=0 export CROSS_COMPILE:= export CC:=$(CROSS_COMPILE)gcc -m32 export HOSTCC:=gcc export OBJCOPY:=$(CROSS_COMPILE)objcopy --gap-fill 0xff export COREBOOT_VERSION:="2.0.0" export COREBOOT_BUILD:="$(shell date)" export COREBOOT_COMPILE_TIME:="$(shell date +%T)" export COREBOOT_COMPILE_BY:="$(shell whoami)" export COREBOOT_COMPILE_HOST:="$(shell hostname)" export COREBOOT_COMPILE_DOMAIN:="$(shell dnsdomainname)" export COREBOOT_COMPILER:="$(shell $(CC) $(CFLAGS) -v 2>&1 | tail -n 1)" export COREBOOT_LINKER:="$(shell $(CC) -Wl,--version 2>&1 | grep version | tail -n 1)" export COREBOOT_ASSEMBLER:="$(shell touch dummy.s ; $(CC) -c -Wa,-v dummy.s 2>&1; rm -f dummy.s dummy.o )" export CONFIG_USE_INIT:=0 export HAVE_FALLBACK_BOOT:=1 export HAVE_FAILOVER_BOOT:=0 export ROM_IMAGE_SIZE:=0x10000 export PAYLOAD_SIZE:=0x10000 export _ROMBASE:=0xffff0000 export _RESET:=0xffff0000 export _EXCEPTION_VECTORS:=0xffff0100 export STACK_SIZE:=0x2000 export HEAP_SIZE:=0x4000 export _RAMBASE:=0x4000 export USE_DCACHE_RAM:=0 export CAR_FAM10:=0 export DCACHE_RAM_BASE:=0xc0000 export DCACHE_RAM_SIZE:=0x1000 export DCACHE_RAM_GLOBAL_VAR_SIZE:=0x0 export CONFIG_AP_CODE_IN_CAR:=0 export MEM_TRAIN_SEQ:=0 export WAIT_BEFORE_CPUS_INIT:=0 export CONFIG_COMPRESS:=1 export CONFIG_UNCOMPRESSED:=0 export CONFIG_LB_MEM_TOPK:=2048 export HAVE_OPTION_TABLE:=1 export USE_OPTION_TABLE:=0 export LB_CKS_RANGE_START:=49 export LB_CKS_RANGE_END:=125 export LB_CKS_LOC:=126 export CRT0:=$(TOP)/src/arch/$(ARCH)/init/crt0.S.lb export DEBUG:=1 export CONFIG_CONSOLE_VGA:=0 export CONFIG_CONSOLE_VGA_MULTI:=0 export CONFIG_CONSOLE_VGA_ONBOARD_AT_FIRST:=0 export CONFIG_CONSOLE_BTEXT:=0 export CONFIG_CONSOLE_LOGBUF:=0 export CONFIG_CONSOLE_SROM:=0 export CONFIG_CONSOLE_SERIAL8250:=1 export CONFIG_USBDEBUG_DIRECT:=0 export DEFAULT_CONSOLE_LOGLEVEL:=9 export MAXIMUM_CONSOLE_LOGLEVEL:=9 export CONFIG_SERIAL_POST:=0 export TTYS0_BASE:=0x3f8 export TTYS0_BAUD:=115200 export TTYS0_LCS:=0x3 export CONFIG_USE_PRINTK_IN_CAR:=0 export MAINBOARD:=/usr/src/coreboot/src/mainboard/via/tk3350 export MAINBOARD_PART_NUMBER:="tk3350" export MAINBOARD_VENDOR:="via" export MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID:=0 export MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID:=0x0 export CONFIG_MAX_PCI_BUSES:=255 export CONFIG_SMP:=0 export CONFIG_MAX_CPUS:=1 export CONFIG_MAX_PHYSICAL_CPUS:=1 export CONFIG_LOGICAL_CPUS:=0 export CONFIG_AP_IN_SIPI_WAIT:=0 export SERIAL_CPU_INIT:=1 export APIC_ID_OFFSET:=0 export ENABLE_APIC_EXT_ID:=0 export LIFT_BSP_APIC_ID:=0 export CONFIG_IDE_PAYLOAD:=0 export CONFIG_ROM_PAYLOAD:=1 export CONFIG_ROM_PAYLOAD_START:=0xfffe0000 export CONFIG_COMPRESSED_PAYLOAD_NRV2B:=0 export CONFIG_COMPRESSED_PAYLOAD_LZMA:=0 export CONFIG_PRECOMPRESSED_PAYLOAD:=0 export CONFIG_SERIAL_PAYLOAD:=0 export CONFIG_FS_PAYLOAD:=0 export CONFIG_FS_EXT2:=0 export CONFIG_FS_ISO9660:=0 export CONFIG_FS_FAT:=0 export AUTOBOOT_DELAY:=2 export AUTOBOOT_CMDLINE:="hdc1:/vmlinuz root=/dev/hdc3 console=tty0 console=ttyS0,115200" export USE_WATCHDOG_ON_BOOT:=0 export CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT:=1 export CONFIG_AGP_PLUGIN_SUPPORT:=1 export CONFIG_CARDBUS_PLUGIN_SUPPORT:=1 export CONFIG_PCIX_PLUGIN_SUPPORT:=1 export CONFIG_PCIEXP_PLUGIN_SUPPORT:=1 export CONFIG_IDE:=0 export IDE_BOOT_DRIVE:=0 export IDE_OFFSET:=0 export PCI_IO_CFG_EXT:=0 export CONFIG_CHIP_NAME:=1 export HAVE_INIT_TIMER:=0 export MAX_REBOOT_CNT:=3 export FAKE_SPDROM:=0 export HAVE_ACPI_TABLES:=0 export ACPI_SSDTX_NUM:=0 export HT_CHAIN_UNITID_BASE:=1 export HT_CHAIN_END_UNITID_BASE:=32 export SB_HT_CHAIN_UNITID_OFFSET_ONLY:=1 export SB_HT_CHAIN_ON_BUS0:=0 export PCI_BUS_SEGN_BITS:=0 export MMCONF_SUPPORT:=0 export MMCONF_SUPPORT_DEFAULT:=0 export HW_MEM_HOLE_SIZEK:=0 export HW_MEM_HOLE_SIZE_AUTO_INC:=0 export CONFIG_VAR_MTRR_HOLE:=1 export K8_HT_FREQ_1G_SUPPORT:=0 export K8_REV_F_SUPPORT:=0 export CBB:=0 export CDB:=24 export HT3_SUPPORT:=0 export EXT_RT_TBL_SUPPORT:=0 export EXT_CONF_SUPPORT:=0 export DIMM_SUPPORT:=0x108 export CPU_SOCKET_TYPE:=16 export CPU_ADDR_BITS:=36 export CONFIG_VGA_ROM_RUN:=0 export CONFIG_PCI_ROM_RUN:=0 export CONFIG_PCI_64BIT_PREF_MEM:=0 export CONFIG_AMDMCT:=0 export HAVE_MP_TABLE:=0 export HAVE_PIRQ_TABLE:=1 export USE_FALLBACK_IMAGE:=1 export HAVE_HARD_RESET:=0 export CONFIG_UDELAY_IO:=1 export CONFIG_UDELAY_TSC:=0 export CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2:=0 export IRQ_SLOT_COUNT:=5 export COREBOOT_EXTRA_VERSION:=".0Fallback" export FALLBACK_SIZE:=0x20000 export ROM_SIZE:=0x40000 export ROM_SECTION_SIZE:=0x20000 export ROM_SECTION_OFFSET:=0x20000 export XIP_ROM_SIZE:=0x10000 export XIP_ROM_BASE:=0xffff0000 export USE_FAILOVER_IMAGE:=0
export VARIABLES := export VARIABLES += ARCH export VARIABLES += HAVE_MOVNTI export VARIABLES += CROSS_COMPILE export VARIABLES += CC export VARIABLES += HOSTCC export VARIABLES += OBJCOPY export VARIABLES += COREBOOT_VERSION export VARIABLES += COREBOOT_BUILD export VARIABLES += COREBOOT_COMPILE_TIME export VARIABLES += COREBOOT_COMPILE_BY export VARIABLES += COREBOOT_COMPILE_HOST export VARIABLES += COREBOOT_COMPILE_DOMAIN export VARIABLES += COREBOOT_COMPILER export VARIABLES += COREBOOT_LINKER export VARIABLES += COREBOOT_ASSEMBLER export VARIABLES += CONFIG_USE_INIT export VARIABLES += HAVE_FALLBACK_BOOT export VARIABLES += HAVE_FAILOVER_BOOT export VARIABLES += ROM_IMAGE_SIZE export VARIABLES += PAYLOAD_SIZE export VARIABLES += _ROMBASE export VARIABLES += _RESET export VARIABLES += _EXCEPTION_VECTORS export VARIABLES += STACK_SIZE export VARIABLES += HEAP_SIZE export VARIABLES += _RAMBASE export VARIABLES += USE_DCACHE_RAM export VARIABLES += CAR_FAM10 export VARIABLES += DCACHE_RAM_BASE export VARIABLES += DCACHE_RAM_SIZE export VARIABLES += DCACHE_RAM_GLOBAL_VAR_SIZE export VARIABLES += CONFIG_AP_CODE_IN_CAR export VARIABLES += MEM_TRAIN_SEQ export VARIABLES += WAIT_BEFORE_CPUS_INIT export VARIABLES += CONFIG_COMPRESS export VARIABLES += CONFIG_UNCOMPRESSED export VARIABLES += CONFIG_LB_MEM_TOPK export VARIABLES += HAVE_OPTION_TABLE export VARIABLES += USE_OPTION_TABLE export VARIABLES += LB_CKS_RANGE_START export VARIABLES += LB_CKS_RANGE_END export VARIABLES += LB_CKS_LOC export VARIABLES += CRT0 export VARIABLES += DEBUG export VARIABLES += CONFIG_CONSOLE_VGA export VARIABLES += CONFIG_CONSOLE_VGA_MULTI export VARIABLES += CONFIG_CONSOLE_VGA_ONBOARD_AT_FIRST export VARIABLES += CONFIG_CONSOLE_BTEXT export VARIABLES += CONFIG_CONSOLE_LOGBUF export VARIABLES += CONFIG_CONSOLE_SROM export VARIABLES += CONFIG_CONSOLE_SERIAL8250 export VARIABLES += CONFIG_USBDEBUG_DIRECT export VARIABLES += DEFAULT_CONSOLE_LOGLEVEL export VARIABLES += MAXIMUM_CONSOLE_LOGLEVEL export VARIABLES += CONFIG_SERIAL_POST export VARIABLES += TTYS0_BASE export VARIABLES += TTYS0_BAUD export VARIABLES += TTYS0_LCS export VARIABLES += CONFIG_USE_PRINTK_IN_CAR export VARIABLES += MAINBOARD export VARIABLES += MAINBOARD_PART_NUMBER export VARIABLES += MAINBOARD_VENDOR export VARIABLES += MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID export VARIABLES += MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID export VARIABLES += CONFIG_MAX_PCI_BUSES export VARIABLES += CONFIG_SMP export VARIABLES += CONFIG_MAX_CPUS export VARIABLES += CONFIG_MAX_PHYSICAL_CPUS export VARIABLES += CONFIG_LOGICAL_CPUS export VARIABLES += CONFIG_AP_IN_SIPI_WAIT export VARIABLES += SERIAL_CPU_INIT export VARIABLES += APIC_ID_OFFSET export VARIABLES += ENABLE_APIC_EXT_ID export VARIABLES += LIFT_BSP_APIC_ID export VARIABLES += CONFIG_IDE_PAYLOAD export VARIABLES += CONFIG_ROM_PAYLOAD export VARIABLES += CONFIG_ROM_PAYLOAD_START export VARIABLES += CONFIG_COMPRESSED_PAYLOAD_NRV2B export VARIABLES += CONFIG_COMPRESSED_PAYLOAD_LZMA export VARIABLES += CONFIG_PRECOMPRESSED_PAYLOAD export VARIABLES += CONFIG_SERIAL_PAYLOAD export VARIABLES += CONFIG_FS_PAYLOAD export VARIABLES += CONFIG_FS_EXT2 export VARIABLES += CONFIG_FS_ISO9660 export VARIABLES += CONFIG_FS_FAT export VARIABLES += AUTOBOOT_DELAY export VARIABLES += AUTOBOOT_CMDLINE export VARIABLES += USE_WATCHDOG_ON_BOOT export VARIABLES += CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT export VARIABLES += CONFIG_AGP_PLUGIN_SUPPORT export VARIABLES += CONFIG_CARDBUS_PLUGIN_SUPPORT export VARIABLES += CONFIG_PCIX_PLUGIN_SUPPORT export VARIABLES += CONFIG_PCIEXP_PLUGIN_SUPPORT export VARIABLES += CONFIG_IDE export VARIABLES += IDE_BOOT_DRIVE export VARIABLES += IDE_OFFSET export VARIABLES += PCI_IO_CFG_EXT export VARIABLES += CONFIG_CHIP_NAME export VARIABLES += HAVE_INIT_TIMER export VARIABLES += MAX_REBOOT_CNT export VARIABLES += FAKE_SPDROM export VARIABLES += HAVE_ACPI_TABLES export VARIABLES += ACPI_SSDTX_NUM export VARIABLES += HT_CHAIN_UNITID_BASE export VARIABLES += HT_CHAIN_END_UNITID_BASE export VARIABLES += SB_HT_CHAIN_UNITID_OFFSET_ONLY export VARIABLES += SB_HT_CHAIN_ON_BUS0 export VARIABLES += PCI_BUS_SEGN_BITS export VARIABLES += MMCONF_SUPPORT export VARIABLES += MMCONF_SUPPORT_DEFAULT export VARIABLES += HW_MEM_HOLE_SIZEK export VARIABLES += HW_MEM_HOLE_SIZE_AUTO_INC export VARIABLES += CONFIG_VAR_MTRR_HOLE export VARIABLES += K8_HT_FREQ_1G_SUPPORT export VARIABLES += K8_REV_F_SUPPORT export VARIABLES += CBB export VARIABLES += CDB export VARIABLES += HT3_SUPPORT export VARIABLES += EXT_RT_TBL_SUPPORT export VARIABLES += EXT_CONF_SUPPORT export VARIABLES += DIMM_SUPPORT export VARIABLES += CPU_SOCKET_TYPE export VARIABLES += CPU_ADDR_BITS export VARIABLES += CONFIG_VGA_ROM_RUN export VARIABLES += CONFIG_PCI_ROM_RUN export VARIABLES += CONFIG_PCI_64BIT_PREF_MEM export VARIABLES += CONFIG_AMDMCT export VARIABLES += HAVE_MP_TABLE export VARIABLES += HAVE_PIRQ_TABLE export VARIABLES += USE_FALLBACK_IMAGE export VARIABLES += HAVE_HARD_RESET export VARIABLES += CONFIG_UDELAY_IO export VARIABLES += CONFIG_UDELAY_TSC export VARIABLES += CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2 export VARIABLES += IRQ_SLOT_COUNT export VARIABLES += COREBOOT_EXTRA_VERSION export VARIABLES += FALLBACK_SIZE export VARIABLES += ROM_SIZE export VARIABLES += ROM_SECTION_SIZE export VARIABLES += ROM_SECTION_OFFSET export VARIABLES += XIP_ROM_SIZE export VARIABLES += XIP_ROM_BASE export VARIABLES += USE_FAILOVER_IMAGE
Makefile.settings: /mnt/usr/src/coreboot/targets/via/tk3350/tk3350/config.py /mnt/usr/src/coreboot/targets/via/tk3350/Config.lb (cd /mnt/usr/src/coreboot/targets ; export PYTHONPATH=/usr/src/coreboot/util/newconfig ; python via/tk3350/tk3350/config.py via/tk3350//Config.lb /usr/src/coreboot)
DISTRO_CFLAGS+=-fno-stack-protector DISTRO_LFLAGS+= -Wl,--build-id=none