<p dir="ltr">I corrected the qemu.sh script.The image runs now but I get a error No Multiboot Header found. Can you help me to find a solution to it.</p>
<div class="gmail_quot<blockquote class=" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 4/04/2016 2:23 PM, Sambeet Panigrahi wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have been trying to build a RTEMS image for GRUB2 following the<br>
instructions from:<br>
<a href="https://devel.rtems.org/wiki/Building/Grub" rel="noreferrer" target="_blank">https://devel.rtems.org/wiki/Building/Grub</a><br>
<br>
I have followed all instructions and placed the image and the directory<br>
structure in /home/sambeet/SimulRTEMS, the tree command in the directory<br>
gives<br>
<br>
.<br>
|-- examples<br>
| `-- ticker.exe<br>
|-- grub.cfg<br>
|-- mkimage.sh<br>
|-- qemu.sh<br>
`-- rtems-boot.img<br>
<br>
But when I do the following:<br>
<br>
Holmes sambeet # ./qemu.sh<br>
</blockquote>
<br>
You did not provide the disk image, see the qemu.sh script, ie '-hda $1'.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
qemu-system-i386: -hda -hdb: Could not open '-hdb': No such file or<br>
directory<br>
</blockquote>
<br>
This makes sense because you are missing the file for the -hda option and so qemu uses -hdb as the name of the file.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I get the following output instead of Ticker.exe running and GRUB screen<br>
appearing.<br>
<br>
I have also followed the instructions from<br>
<br>
<a href="http://jin-yang.github.io/blog/build-a-RTEMS-environment.html" rel="noreferrer" target="_blank">http://jin-yang.github.io/blog/build-a-RTEMS-environment.html</a>. There's the<br>
same error there too.<br>
<br>
I want to create and build a RTEMS image without using the usual<br>
RTEMS-testing module to understand the process in detail.Can someone please<br>
help?<br>
</blockquote>
<br>
The file rtems-boot.img is a boot disk which qemu's BIOS will load and boot and load grub, the -hda $1 option. In the image is a default grub script that should chain to the grub script on the hard disk, the -hdb fat:.. Qemu should create a hard disk with an MSDOS partition based on the host's local directory you run the script from. That disk will be the directory tree you see. Be careful there is a limit to the number of files qemu can handle when doing this.<br>
<br>
The 2 srage script lets you change or generate a specific grub script without needing to rebuild the boot disk image.<br>
<br>
Chris<br>
</div>