Thank you for the reply. My log level is 8 and I repeated my test and I added the following lines to src/mainboard/intel/d810e2cb/romstage.c:
void main(unsigned long bist) { /* Set southbridge and Super I/O GPIOs. */ mb_gpio_init();
smscsuperio_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE); console_init();
report_bist_failure(bist); //enable_smbus(); //dump_spd_registers(); //sdram_set_registers(); //sdram_set_spd_registers(); sdram_enable(); ram_check(0x02000000, 0x10000000);
}
Please look at the result by the serial port:
coreboot-4.0-1959-g950f20a-dirty Mon Feb 6 14:33:44 IRST 2012 starting... Testing DRAM : 02000000 - 10000000 DRAM fill: 0x02000000-0x10000000 10000000 DRAM filled DRAM verify: 0x02000000-0x10000000 10000000 DRAM range verified. Done. Loading image. Searching for fallback/coreboot_ram Check fallback/romstage Check fallback/coreboot_ram Stage: loading fallback/coreboot_ram @ 0x100000 (180224 bytes), entry @ 0x100000 Stage: done loading. Jumping to image.
It shows that RAM is OK between 32M and 256M bytes. I have not changed the Coreboot code much. I just replaced sdram_enable() with my routine and i am pretty sure that RAM is OK. and besides I have commented some lines inside the main function as i have copied.
I got Coreboot by the Coreboot site and by git.
Where is the problem you think? RAM check seems OK.
Regards
# # Automatically generated make config: don't edit # coreboot version: 4.0-1959-g950f20a-dirty # Mon Feb 6 14:33:41 2012 #
# # General setup # # CONFIG_EXPERT is not set CONFIG_LOCALVERSION="" CONFIG_CBFS_PREFIX="fallback" CONFIG_COMPILER_GCC=y # CONFIG_COMPILER_LLVM_CLANG is not set # CONFIG_SCANBUILD_ENABLE is not set # CONFIG_CCACHE is not set # CONFIG_USE_OPTION_TABLE is not set # CONFIG_COMPRESS_RAMSTAGE is not set # CONFIG_INCLUDE_CONFIG_FILE is not set
# # Mainboard # # CONFIG_VENDOR_AAEON is not set # CONFIG_VENDOR_ABIT is not set # CONFIG_VENDOR_ADVANSUS is not set # CONFIG_VENDOR_ADVANTECH is not set # CONFIG_VENDOR_AMD is not set # CONFIG_VENDOR_ARIMA is not set # CONFIG_VENDOR_ARTEC_GROUP is not set # CONFIG_VENDOR_ASI is not set # CONFIG_VENDOR_ASROCK is not set # CONFIG_VENDOR_ASUS is not set # CONFIG_VENDOR_A_TREND is not set # CONFIG_VENDOR_AVALUE is not set # CONFIG_VENDOR_AXUS is not set # CONFIG_VENDOR_AZZA is not set # CONFIG_VENDOR_BCOM is not set # CONFIG_VENDOR_BIOSTAR is not set # CONFIG_VENDOR_BROADCOM is not set # CONFIG_VENDOR_COMPAQ is not set # CONFIG_VENDOR_DELL is not set # CONFIG_VENDOR_DIGITAL_LOGIC is not set # CONFIG_VENDOR_EAGLELION is not set # CONFIG_VENDOR_ECS is not set # CONFIG_VENDOR_EMULATION is not set # CONFIG_VENDOR_GETAC is not set # CONFIG_VENDOR_GIGABYTE is not set # CONFIG_VENDOR_HP is not set # CONFIG_VENDOR_IBASE is not set # CONFIG_VENDOR_IBM is not set # CONFIG_VENDOR_IEI is not set CONFIG_VENDOR_INTEL=y # CONFIG_VENDOR_IWAVE is not set # CONFIG_VENDOR_IWILL is not set # CONFIG_VENDOR_JETWAY is not set # CONFIG_VENDOR_KONTRON is not set # CONFIG_VENDOR_LANNER is not set # CONFIG_VENDOR_LENOVO is not set # CONFIG_VENDOR_LIPPERT is not set # CONFIG_VENDOR_MITAC is not set # CONFIG_VENDOR_MSI is not set # CONFIG_VENDOR_NEC is not set # CONFIG_VENDOR_NEWISYS is not set # CONFIG_VENDOR_NOKIA is not set # CONFIG_VENDOR_NVIDIA is not set # CONFIG_VENDOR_PC_ENGINES is not set # CONFIG_VENDOR_RCA is not set # CONFIG_VENDOR_RODA is not set # CONFIG_VENDOR_SIEMENS is not set # CONFIG_VENDOR_SOYO is not set # CONFIG_VENDOR_SUNW is not set # CONFIG_VENDOR_SUPERMICRO is not set # CONFIG_VENDOR_TECHNEXION is not set # CONFIG_VENDOR_TECHNOLOGIC is not set # CONFIG_VENDOR_TELEVIDEO is not set # CONFIG_VENDOR_THOMSON is not set # CONFIG_VENDOR_TRAVERSE is not set # CONFIG_VENDOR_TYAN is not set # CONFIG_VENDOR_VIA is not set # CONFIG_VENDOR_WINENT is not set # CONFIG_VENDOR_WYSE is not set CONFIG_BOARD_SPECIFIC_OPTIONS=y CONFIG_MAINBOARD_DIR="intel/d810e2cb" CONFIG_MAINBOARD_PART_NUMBER="D810E2CB" CONFIG_IRQ_SLOT_COUNT=7 CONFIG_MAINBOARD_VENDOR="Intel" CONFIG_MAX_CPUS=1 CONFIG_MAX_PHYSICAL_CPUS=1 CONFIG_RAMTOP=0x200000 CONFIG_HEAP_SIZE=0x4000 CONFIG_RAMBASE=0x100000 CONFIG_VGA_BIOS_ID="8086,7121" CONFIG_DCACHE_RAM_SIZE=0x8000 CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE=0x0 CONFIG_SERIAL_CPU_INIT=y CONFIG_ACPI_SSDTX_NUM=0 # CONFIG_VGA_BIOS is not set CONFIG_STACK_SIZE=0x8000 # CONFIG_DRIVERS_PS2_KEYBOARD is not set CONFIG_WARNINGS_ARE_ERRORS=y # CONFIG_ONBOARD_VGA_IS_PRIMARY is not set # CONFIG_CONSOLE_POST is not set # CONFIG_PCI_64BIT_PREF_MEM is not set # CONFIG_MMCONF_SUPPORT_DEFAULT is not set CONFIG_BOARD_INTEL_D810E2CB=y # CONFIG_BOARD_INTEL_D945GCLF is not set # CONFIG_BOARD_INTEL_EAGLEHEIGHTS is not set # CONFIG_BOARD_INTEL_JARRELL is not set # CONFIG_BOARD_INTEL_MTARVON is not set # CONFIG_BOARD_INTEL_TRUXTON is not set # CONFIG_BOARD_INTEL_XE7501DEVKIT is not set # CONFIG_POWER_BUTTON_FORCE_ENABLE is not set # CONFIG_GENERATE_PIRQ_TABLE is not set CONFIG_LOGICAL_CPUS=y # CONFIG_IOAPIC is not set CONFIG_SMP=y CONFIG_TTYS0_BAUD=9600 CONFIG_TTYS0_BASE=0x3f8 CONFIG_TTYS0_LCS=3 CONFIG_DEFAULT_CONSOLE_LOGLEVEL=8 CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=8 CONFIG_CONSOLE_SERIAL8250=y # CONFIG_PCI_ROM_RUN is not set # CONFIG_USBDEBUG is not set CONFIG_VAR_MTRR_HOLE=y # CONFIG_LIFT_BSP_APIC_ID is not set # CONFIG_WAIT_BEFORE_CPUS_INIT is not set # CONFIG_K8_REV_F_SUPPORT is not set CONFIG_BOARD_ROMSIZE_KB_512=y # CONFIG_COREBOOT_ROMSIZE_KB_128 is not set CONFIG_COREBOOT_ROMSIZE_KB_256=y # CONFIG_COREBOOT_ROMSIZE_KB_512 is not set # CONFIG_COREBOOT_ROMSIZE_KB_1024 is not set # CONFIG_COREBOOT_ROMSIZE_KB_2048 is not set # CONFIG_COREBOOT_ROMSIZE_KB_4096 is not set # CONFIG_COREBOOT_ROMSIZE_KB_8192 is not set # CONFIG_COREBOOT_ROMSIZE_KB_16384 is not set CONFIG_COREBOOT_ROMSIZE_KB=256 CONFIG_ROM_SIZE=0x40000 CONFIG_ARCH_X86=y
# # Architecture (x86) # # CONFIG_AP_IN_SIPI_WAIT is not set CONFIG_ROMBASE=0xffff0000 CONFIG_MAX_REBOOT_CNT=3 # CONFIG_X86_BOOTBLOCK_SIMPLE is not set CONFIG_X86_BOOTBLOCK_NORMAL=y CONFIG_BOOTBLOCK_SOURCE="bootblock_normal.c" # CONFIG_UPDATE_IMAGE is not set # CONFIG_ROMCC is not set CONFIG_PC80_SYSTEM=y # CONFIG_HAVE_CMOS_DEFAULT is not set # CONFIG_BIG_ENDIAN is not set CONFIG_LITTLE_ENDIAN=y
# # Chipset #
# # CPU # CONFIG_CPU_ADDR_BITS=36 CONFIG_XIP_ROM_SIZE=0x10000 CONFIG_DIMM_SUPPORT=0x0004 # CONFIG_UDELAY_IO is not set CONFIG_HAVE_INIT_TIMER=y CONFIG_CPU_INTEL_MODEL_68X=y CONFIG_CPU_INTEL_SOCKET_FC_PGA370=y # CONFIG_SSE2 is not set # CONFIG_UDELAY_LAPIC is not set CONFIG_UDELAY_TSC=y # CONFIG_UDELAY_TIMER2 is not set # CONFIG_TSC_CALIBRATE_WITH_IO is not set CONFIG_CACHE_AS_RAM=y CONFIG_MMX=y CONFIG_SSE=y
# # Northbridge # CONFIG_VIDEO_MB=0 # CONFIG_CONSOLE_VGA_MULTI is not set CONFIG_NORTHBRIDGE_INTEL_I82810=y CONFIG_I810_VIDEO_MB_OFF=y # CONFIG_I810_VIDEO_MB_512KB is not set # CONFIG_I810_VIDEO_MB_1MB is not set
# # Southbridge # # CONFIG_AMD_SB_CIMX is not set # CONFIG_SOUTHBRIDGE_AMD_CIMX_SB800 is not set # CONFIG_SOUTHBRIDGE_AMD_CIMX_SB900 is not set CONFIG_SOUTHBRIDGE_INTEL_I82801BX=y
# # Super I/O # CONFIG_SUPERIO_SMSC_SMSCSUPERIO=y
# # Devices # # CONFIG_VGA_BRIDGE_SETUP is not set # CONFIG_VGA_ROM_RUN is not set # CONFIG_MULTIPLE_VGA_ADAPTERS is not set # CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT is not set CONFIG_PCIX_PLUGIN_SUPPORT=y CONFIG_PCIEXP_PLUGIN_SUPPORT=y CONFIG_AGP_PLUGIN_SUPPORT=y CONFIG_CARDBUS_PLUGIN_SUPPORT=y
# # Embedded Controllers #
# # Generic Drivers # # CONFIG_DRIVERS_OXFORD_OXPCIE is not set # CONFIG_DRIVERS_SIL_3114 is not set CONFIG_PCI_BUS_SEGN_BITS=0 # CONFIG_MMCONF_SUPPORT is not set
# # Console # CONFIG_CONSOLE_SERIAL_COM1=y # CONFIG_CONSOLE_SERIAL_COM2 is not set # CONFIG_CONSOLE_SERIAL_COM3 is not set # CONFIG_CONSOLE_SERIAL_COM4 is not set # CONFIG_CONSOLE_SERIAL_115200 is not set # CONFIG_CONSOLE_SERIAL_57600 is not set # CONFIG_CONSOLE_SERIAL_38400 is not set # CONFIG_CONSOLE_SERIAL_19200 is not set CONFIG_CONSOLE_SERIAL_9600=y # CONFIG_HAVE_USBDEBUG is not set # CONFIG_CONSOLE_NE2K is not set CONFIG_MAXIMUM_CONSOLE_LOGLEVEL_8=y # CONFIG_MAXIMUM_CONSOLE_LOGLEVEL_7 is not set # CONFIG_MAXIMUM_CONSOLE_LOGLEVEL_6 is not set # CONFIG_MAXIMUM_CONSOLE_LOGLEVEL_5 is not set # CONFIG_MAXIMUM_CONSOLE_LOGLEVEL_4 is not set # CONFIG_MAXIMUM_CONSOLE_LOGLEVEL_3 is not set # CONFIG_MAXIMUM_CONSOLE_LOGLEVEL_2 is not set # CONFIG_MAXIMUM_CONSOLE_LOGLEVEL_1 is not set # CONFIG_MAXIMUM_CONSOLE_LOGLEVEL_0 is not set CONFIG_DEFAULT_CONSOLE_LOGLEVEL_8=y # CONFIG_DEFAULT_CONSOLE_LOGLEVEL_7 is not set # CONFIG_DEFAULT_CONSOLE_LOGLEVEL_6 is not set # CONFIG_DEFAULT_CONSOLE_LOGLEVEL_5 is not set # CONFIG_DEFAULT_CONSOLE_LOGLEVEL_4 is not set # CONFIG_DEFAULT_CONSOLE_LOGLEVEL_3 is not set # CONFIG_DEFAULT_CONSOLE_LOGLEVEL_2 is not set # CONFIG_DEFAULT_CONSOLE_LOGLEVEL_1 is not set # CONFIG_DEFAULT_CONSOLE_LOGLEVEL_0 is not set # CONFIG_CONSOLE_LOGBUF is not set # CONFIG_NO_POST is not set CONFIG_POST_PORT=0x80 CONFIG_HAVE_UART_IO_MAPPED=y # CONFIG_HAVE_UART_MEMORY_MAPPED is not set # CONFIG_HAVE_ACPI_RESUME is not set # CONFIG_HAVE_ACPI_SLIC is not set CONFIG_HAVE_HARD_RESET=y CONFIG_HAVE_MAINBOARD_RESOURCES=y # CONFIG_HAVE_OPTION_TABLE is not set # CONFIG_PIRQ_ROUTE is not set # CONFIG_HAVE_SMI_HANDLER is not set # CONFIG_PCI_IO_CFG_EXT is not set CONFIG_USE_WATCHDOG_ON_BOOT=y # CONFIG_VGA is not set CONFIG_GFXUMA=y CONFIG_HAVE_PIRQ_TABLE=y # CONFIG_GENERATE_ACPI_TABLES is not set # CONFIG_GENERATE_MP_TABLE is not set # CONFIG_GENERATE_SMBIOS_TABLES is not set
# # System tables # # CONFIG_WRITE_HIGH_TABLES is not set # CONFIG_MULTIBOOT is not set
# # Payload # CONFIG_PAYLOAD_NONE=y # CONFIG_PAYLOAD_ELF is not set # CONFIG_PAYLOAD_SEABIOS is not set # CONFIG_PAYLOAD_FILO is not set # CONFIG_COMPRESSED_PAYLOAD_NRV2B is not set
# # VGA BIOS #
# # Debugging # # CONFIG_GDB_STUB is not set CONFIG_HAVE_DEBUG_RAM_SETUP=y # CONFIG_DEBUG_RAM_SETUP is not set # CONFIG_HAVE_DEBUG_CAR is not set # CONFIG_HAVE_DEBUG_SMBUS is not set # CONFIG_DEBUG_MALLOC is not set # CONFIG_DEBUG_ACPI is not set # CONFIG_LLSHELL is not set # CONFIG_TRACE is not set # CONFIG_AP_CODE_IN_CAR is not set # CONFIG_RAMINIT_SYSINFO is not set # CONFIG_ENABLE_APIC_EXT_ID is not set # CONFIG_POWER_BUTTON_DEFAULT_ENABLE is not set # CONFIG_POWER_BUTTON_DEFAULT_DISABLE is not set # CONFIG_POWER_BUTTON_FORCE_DISABLE is not set # CONFIG_POWER_BUTTON_IS_OPTIONAL is not set
# # Deprecated # # CONFIG_BOARD_HAS_HARD_RESET is not set # CONFIG_BOARD_HAS_FADT is not set # CONFIG_HAVE_BUS_CONFIG is not set # CONFIG_PCIE_TUNING is not set CONFIG_ID_SECTION_OFFSET=0x80
On Mon, Feb 6, 2012 at 1:40 AM, Kyösti Mälkki kyosti.malkki@gmail.com wrote:
On Sun, 2012-02-05 at 18:25 +0330, ali hagigat wrote:
My motherboard is: Pentium III, 82815, ICH2.
I configured coreboot for Intel, d810e2cb motherboard. The coreboot stops printing the following lines on the serial port:
coreboot-4.0-1959-g950f20a-dirty Sun Feb 5 17:52:27 IRST 2012 starting... SMBus controller enabled No DIMM found in slot 0 No DIMM found in slot 1 DRP calculated to 0x00 BUFF_SC calculated to 0x0000 Loading image. Searching for fallback/coreboot_ram Check fallback/romstage Check fallback/coreboot_ram Stage: loading fallback/coreboot_ram @ 0x100000 (180224 bytes), entry @ 0x100000 Stage: done loading. Jumping to image.
Where is the problem. I just replaced sdram_enable() with a routine which I am sure that it initializes RAM correctly. The rest is the pure Coreboot code.
Hi
Enable most verbose logging (8 ?) and post new logs. Also readers on the list have currently no clue how You obtained and modified your local copy of Coreboot.
Your posted serial log appears exactly as from the coreboot sources. Double-check you have really changed the call to sdram_enable(), recompiled, flashed correctly etc.
If you are running closed-source assembly code copy-pasted and mixed within coreboot, don't expect much assistance until you have convinced us that at the minimum ram_check() passes without errors after sdram_enable() :)
The following patch contains a replacement ram_check() that I consider more reliable or thorough: http://review.coreboot.org/294
Thanks, KM