Here is the build fail when I put the strings into the mainboard <a href="http://config.lb">config.lb</a> (src/mainboard/emulation/qemu-x86)<br><br>Configuring DIR /boot/Config.lb<br>add object src/boot/elfboot.o source $(TOP)//src/boot/elfboot.c<br>
add object src/boot/hardwaremain.o source $(TOP)//src/boot/hardwaremain.c<br>partobj dir /home/sphinx/coreboot/coreboot-v2/src/mainboard/emulation/qemu-x86 parent 0 part mainboard<br>INSTANCE 0<br>curpart.uses_options is {'ROM_IMAGE_SIZE': <__main__.option instance at 0xb787ec6c>, 'CROSS_COMPILE': <__main__.option instance at 0xb7850fcc>, 'MAINBOARD': <__main__.option instance at 0xb7ba528c>, '_ROMBASE': <__main__.option instance at 0xb788244c>, 'ROM_SECTION_SIZE': <__main__.option instance at 0xb787ee6c>, 'ROM_SIZE': <__main__.option instance at 0xb787ea8c>, 'USE_OPTION_TABLE': <__main__.option instance at 0xb7b98c2c>, 'CONFIG_PCI_OPTION_ROM_RUN_VM86': <__main__.option instance at 0xb7bcc64c>, 'HAVE_MP_TABLE': <__main__.option instance at 0xb7baa62c>, 'HAVE_HARD_RESET': <__main__.option instance at 0xb7bb9aac>, 'ARCH': <__main__.option instance at 0xb7850c4c>, 'CONFIG_CONSOLE_SERIAL8250': <__main__.option instance at 0xb7b9ef6c>, 'ROM_SECTION_OFFSET': <__main__.option instance at 0xb788206c>, 'XIP_ROM_BASE': <__main__.option instance at 0xb7b981cc>, 'MAINBOARD_PART_NUMBER': <__main__.option instance at 0xb7ba53ec>, 'FALLBACK_SIZE': <__main__.option instance at 0xb787e68c>, 'MAINBOARD_VENDOR': <__main__.option instance at 0xb7ba55cc>, 'CONFIG_PCI_ROM_RUN': <__main__.option instance at 0xb7bcc04c>, 'CONFIG_PRECOMPRESSED_PAYLOAD': <__main__.option instance at 0xb7bae5ec>, 'PAYLOAD_SIZE': <__main__.option instance at 0xb788224c>, 'CONFIG_COMPRESS': <__main__.option instance at 0xb7b9858c>, 'USE_FALLBACK_IMAGE': <__main__.option instance at 0xb787e2cc>, 'HOSTCC': <__main__.option instance at 0xb78762ec>, 'CC': <__main__.option instance at 0xb787616c>, 'MAXIMUM_CONSOLE_LOGLEVEL': <__main__.option instance at 0xb7ba13ac>, 'XIP_ROM_SIZE': <__main__.option instance at 0xb7b983ac>, 'HAVE_PIRQ_TABLE': <__main__.option instance at 0xb7bb2b2c>, 'HEAP_SIZE': <__main__.option instance at 0xb7882e2c>, 'HAVE_FALLBACK_BOOT': <__main__.option instance at 0xb787beec>, 'IRQ_SLOT_COUNT': <__main__.option instance at 0xb7bb2dec>, 'STACK_SIZE': <__main__.option instance at 0xb7882bec>, 'CONFIG_ROM_PAYLOAD_START': <__main__.option instance at 0xb7bae14c>, 'DEFAULT_CONSOLE_LOGLEVEL': <__main__.option instance at 0xb7ba124c>, 'USE_DCACHE_RAM': <__main__.option instance at 0xb7b9346c>, 'COREBOOT_EXTRA_VERSION': <__main__.option instance at 0xb78769ac>, 'CONFIG_COMPRESSED_PAYLOAD_LZMA': <__main__.option instance at 0xb7bae48c>, 'CONFIG_CBFS': <__main__.option instance at 0xb7baee2c>, 'CONFIG_COMPRESSED_PAYLOAD_NRV2B': <__main__.option instance at 0xb7bae32c>, '_RAMBASE': <__main__.option instance at 0xb7b930ac>, 'CONFIG_ROM_PAYLOAD': <__main__.option instance at 0xb7baafcc>, 'OBJCOPY': <__main__.option instance at 0xb787662c>, 'HAVE_OPTION_TABLE': <__main__.option instance at 0xb7b98acc>}<br>
<br>===> ERROR: Option uses undefined (missing use command?)<br>emulation/qemu-x86/Config.lb:0<br>mainboard/emulation/qemu-x86/Config.lb:0<br><br><br>And here are the CFLAGS in src/config/Config.lb<br><br>makedefine CPPFLAGS := -I$(TOP)/src/include -I$(TOP)/src/arch/$(ARCH)/include -I$(GCC_INC_DIR) $(CPUFLAGS)<br>
makedefine CFLAGS := $(CPU_OPT) $(DISTRO_CFLAGS) $(CPPFLAGS) -Os -g -nostdinc -nostdlib -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration -Wstrict-aliasing -Wshadow -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer<br>
<br>if ASSEMBLER_DEBUG<br>makedefine DEBUG_CFLAGS := -g -dA -fverbose-asm<br>end<br><br><br>Hope that will help.<br><br>Regards,<br><br>René<br><br><br><div class="gmail_quote">2009/5/29 Carl-Daniel Hailfinger <span dir="ltr"><<a href="mailto:c-d.hailfinger.devel.2006@gmx.net">c-d.hailfinger.devel.2006@gmx.net</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi René,<br>
<div class="im"><br>
On 28.05.2009 16:28, René Reuter wrote:<br>
> I'm trying to set up the gdb debugger with coreboot and qemu. I've followed<br>
> the instructions on that page: <a href="http://www.coreboot.org/Debugging" target="_blank">http://www.coreboot.org/Debugging</a><br>
><br>
> If I put<br>
><br>
> uses CONFIG_GDB_STUB<br>
> default CONFIG_GDB_STUB=1<br>
><br>
> into the mainboards <a href="http://config.lb" target="_blank">config.lb</a> how it's written in the instructions the<br>
> ./buildtarget will fail.<br>
<br>
</div>How does it fail? Please paste the last few lines of the log so we can<br>
investigate.<br>
<div class="im"><br>
> That's why I put it into src/config/Config.lb, then<br>
> the build is successful but gdb can't find any debugging symbols in the<br>
> coreboot.ram.<br>
><br>
> The CFLAGS are all set correct.<br>
><br>
> Does anybody know an idea what I'm doing wrong?<br>
><br>
<br>
</div>With more info, we can probably figure it out.<br>
<br>
Regards,<br>
Carl-Daniel<br>
<font color="#888888"><br>
--<br>
<a href="http://www.hailfinger.org/" target="_blank">http://www.hailfinger.org/</a><br>
<br>
</font></blockquote></div><br>