<div dir="ltr">Thanks, I got the usage of -d option.<br>I have three more questions:<br>1. In one of your replies, you mentioned about the baud rate of Mini2440 console that is 38400 bps. I wonder have you built and used RTEMS on Mini2440? (On the board or on QEMU)<br>
<br>2. Why did you TFTP hello.img to address 0x32000000? Because I used my load address (0x30000000) as the address of TFTP and after execution of <b>bootm</b>, I got lots of<br>s3c_mc_write: Bad register 0x17983c<br>s3c_mc_write: Bad register 0x179840<br>
errors with no "Hello World".<br>Is 0x32000000 a special address?<br><br>3. I applied mkimage to make an image of hello.exe (ELF version) with following command:<br><b>mkimage -A arm -O rtems -T kernel -C none -a 0x30000100 -e 0x30000100 -n hello-img -d hello.exe hello.img</b><br>
But when I use<br><b>tftp 0x32000000 hello.img<br>bootm</b><br>again i get lots of<br>3c_mc_write: Bad register 0x1df548<br>s3c_mc_write: Bad register 0x1df54c<br>errors. I have no idea what is the reason of that.<br><br>
Thanks in advance<br>SAeeD<br><br><br><div class="gmail_quote">On Tue, Jul 17, 2012 at 1:52 PM, Pierre Ficheux <span dir="ltr"><<a href="mailto:pierre.ficheux@openwide.fr" target="_blank">pierre.ficheux@openwide.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le 17/07/2012 11:04, SAeeD a écrit :<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">
Merci Pierre.<br>
That's exactly what I was looking for.<br>
But I have one little question:<br></div>
I read the man page for *mkimage* but didn't get the usage of -d option<div class="im"><br>
and what I should give to it.<br>
I used to make image with following command:<br></div>
*sudo mkimage -A arm -O rtems -T kernel -C gzip -a 0x30000000 -e<br>
0x30000000 -n hello-img -d hello.exe hello.exe*<br>
</blockquote>
<br>
-d ==> use image data from 'datafile'<br>
<br>
You should create a binary file from you ELF file with objcopy:<br>
<br>
$ arm-rtems4.9-objcopy -R -S -O binary hello.exe hello.bin<br>
<br>
then:<br>
<br>
$ mkimage -A arm -O rtems -T kernel -C none -a 0x30000100 -e 0x30000100 -n "RTEMS Application" -d hello.bin hello.img<br>
<br>
Gzip is not necessary => -C none (no compression)<div class="HOEnZb"><div class="h5"><br>
<br>
regards<br>
<br>
-- <br>
Pierre FICHEUX -/- CTO OWI, France -\- <a href="mailto:pierre.ficheux@openwide.fr" target="_blank">pierre.ficheux@openwide.fr</a><br>
<a href="http://ingenierie.openwide.fr" target="_blank">http://ingenierie.openwide.fr</a><br>
<a href="http://www.ficheux.org" target="_blank">http://www.ficheux.org</a><br>
I would love to change the world, but they won't give me the source code<br>
<br>
<br>
______________________________<u></u>_________________<br>
rtems-users mailing list<br>
<a href="mailto:rtems-users@rtems.org" target="_blank">rtems-users@rtems.org</a><br>
<a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/<u></u>listinfo/rtems-users</a><br>
</div></div></blockquote></div><br></div>