[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
QEMU/GRUB: No multiboot header found
- Date: Mon, 22 Dec 2008 16:22:28 +0100
- From: mtipaldi at cgspace.it (Massimo Tipaldi)
- Subject: QEMU/GRUB: No multiboot header found
I have followed your suggestions, but unfortunately the same behaviour
In any case, I would like to point out some important points:
1) to compile RTEMS, in the directory /d/opt/rtems-4.9/bin, I was
obliged to rename all the files in order to remove the version number
(for instance, i386-rtems4.9-g++.exe --> i386-g++.exe).
2) to produce my Hello Word, I have updated the Makefile.inc
prefix = /d/opt/rtems-4.9/build-rtems/i386/c/pc386
exec_prefix = /opt/rtems-4.9/i386-rtems
CC_FOR_TARGET = /d/opt/rtems-4.9/bin/i386-gcc --pipe
CXX_FOR_TARGET = /d/opt/rtems-4.9/bin/i386-g++
AS_FOR_TARGET = /d/opt/rtems-4.9/bin/i386-as
AR_FOR_TARGET = /d/opt/rtems-4.9/bin/i386-ar
NM_FOR_TARGET = /d/opt/rtems-4.9/bin/i386-nm
LD_FOR_TARGET = /d/opt/rtems-4.9/bin/i386-ld
SIZE_FOR_TARGET = /d/opt/rtems-4.9/bin/i386-size
OBJCOPY_FOR_TARGET = /d/opt/rtems-4.9/bin/i386-objcopy
PROJECT_TOOLS = /d/opt/rtems-4.9/build-rtems/i386/pc386/build-tools
3) inside the MSYS shell, before launching the make command, I have
carried out the following:
After that I have launched the make command in the folder:
My Hello Word is successfully compiled, but it is not correctly managed
by QEMU ("No multiboot Header found").
What I can further add, is that the dimension of my Hello Word is 17 Kb,
whereas the dimension of the Hello Word that comes from the RTEMS
compliation is about 1 Mb.
Does it sound strange? Should I modify the makefiles further in order to
produce an executable file in line with the rtems boot loader multiboot
specification? Can you suggest me something else?
Thanks in advance and I wish you a Merry Christmas and Happy New Year.
Joel Sherrill ha scritto:
> Massimo Tipaldi wrote:
>> Dear all,
>> I have installed all the RTEMS tools on Windows, compiled RTEMS 4.9
>> (--target=i386-rtems and bsp=pc386) and installed QEMU as detailed in:
>> All these operations went well.
>> Therefore, I have tried to launch some RTEMS applications by means of
>> QEMU/GRUB (in this phase I have taken the executable files produced
>> during the RTEMS compilation phase, placed in /testsuites/samples): this
>> operation was successfull as well.
>> After that I have compiled successfully Hello Word by myself
>> ) and put my hello.exe in the folder /testsuites/samples/hello).
>> With my Hello Word, the GRUB gives me the message "No multiboot header
> Very old examples. Please use the ones which match 4.9.
> This sounds like a bug which was fixed between 4.9.0 and 4.9.1.
> 1337/bsps - Stripping .rodata section produces unusable executables for
> the i386-rtems target.
>> As far as I have understood, my hello.exe does not have a multiboot
>> How can I overcome this issue? Should I modify somehow my source code or
>> the makefiles in order to create this multiboot header into my .exe?
>> Thanks in advance
>> Massimo Tipaldi
Eng. Massimo Tipaldi
SW Principal Engineer
Carlo Gavazzi Space SpA
Via Tiengo, snc - 82100 Benevento BN - Italy
Tel: + 39 0824481733
Fax: +39 0824481730
e-mail: mtipaldi at cgspace.it
<< Le informazioni contenute in questo messaggio di posta elettronica
e relativi allegati sono riservate e confidenziali e ne e vietata
la diffusione in qualunque modo eseguita. Qualora Lei non fosse la
persona a cui il presente messaggio e destinato, La invitiamo ad
eliminarlo e a darcene gentile comunicazione.Quanto precede ai fini del
rispetto delle Legge 675/96 e del Decreto Legislativo 30/06/2003 n.196,
sulla tutela dei dati personali >>
<< This e-mail is confidential and may well also be legally privileged.
If you have received it in error, you are on notice of its status.
Please notify us immediately by reply e-mail and then delete this
message from your system. Please do not copy it or use it for any
purposes, or disclose its contents to any other person: to do so could
be a breach of confidence. Thank you for your co-operation. Please
contact our IT Helpdesk on +3902380481 or email
ml_servizi.informatici at cgspace.it if you need assistance>>