OK now it should work, but I'm getting this now in gdb when I'm trying to load the file:<br><br>(gdb) file /home/sphinx/coreboot/coreboot-v2/targets/emulation/qemu-x86/qemu-x86/coreboot.rom<br>"/home/sphinx/coreboot/coreboot-v2/targets/emulation/qemu-x86/qemu-x86/coreboot.rom": not in executable format: File format not recognized<br>
<br><br>René<br><br><br><div class="gmail_quote">2009/5/29 Stefan Reinauer <span dir="ltr"><<a href="mailto:stepan@coresystems.de">stepan@coresystems.de</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;">



  

<div bgcolor="#ffffff" text="#000000">
<br>
Argh! My fault... It belongs into Options.lb, not Config.lb. I
corrected the Wiki page.<div><div></div><div class="h5"><br>
<br>
On 29.05.2009 20:08 Uhr, René Reuter wrote:
<blockquote type="cite">There are no other "uses" statements in that config file.
I'm using coreboot-v2 if that helps. I'm posting the first lines of my
config file:<br>
  <br>
debian:/home/sphinx/coreboot/coreboot-v2# vim
src/mainboard/emulation/qemu-x86/Config.lb<br>
  <br>
##<br>
## Compute the location and size of where this firmware image<br>
## (coreboot plus bootloader) will live in the boot rom chip.<br>
##<br>
default ROM_SIZE = 2048 * 1024<br>
default ROM_SECTION_SIZE   = ROM_SIZE<br>
default ROM_SECTION_OFFSET = 0<br>
  <br>
uses CONFIG_GDB_STUB<br>
default CONFIG_GDB_STUB=1<br>
  <br>
##<br>
## Compute the start location and size size of<br>
## The coreboot bootloader.<br>
##<br>
default PAYLOAD_SIZE            = ( ROM_SECTION_SIZE - ROM_IMAGE_SIZE )<br>
default CONFIG_ROM_PAYLOAD_START = (0xffffffff - ROM_SIZE +
ROM_SECTION_OFFSET + 1)<br>
  <br>
  <br>
René<br>
  <br>
  <br>
  <div class="gmail_quote">2009/5/29 Stefan Reinauer <span dir="ltr"><<a href="mailto:stepan@coresystems.de" target="_blank">stepan@coresystems.de</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;">
    <div bgcolor="#ffffff" text="#000000">
You need to put the "uses" in the top half of the file (to the other
uses statements) and the "default" into the lower half (where the other
default statements are)
    <div>
    <div><br>
    <br>
    <br>
On 29.05.2009 19:05 Uhr, René Reuter wrote:
    <blockquote type="cite">Here is the build fail when I put the
strings into the
mainboard <a href="http://config.lb" target="_blank">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" target="_blank">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><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><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>
    </blockquote>
    <br>
    <br>
    </div>
    </div>
    <pre cols="72">-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: <a href="mailto:info@coresystems.de" target="_blank">info@coresystems.de</a>  • <a href="http://www.coresystems.de/" target="_blank">http://www.coresystems.de/</a>
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
    </pre>
    </div>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
<br>
<pre cols="72">-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: <a href="mailto:info@coresystems.de" target="_blank">info@coresystems.de</a>  • <a href="http://www.coresystems.de/" target="_blank">http://www.coresystems.de/</a>
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866
</pre>
</div></div></div>

</blockquote></div><br>