<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 07/19/2012 04:36 PM, Aric Hunter wrote:
<blockquote
cite="mid:CAC28nnKVoYoN3o6m=T34X=5M_oVJbSgcmzFQg1rg441H+ZN_6A@mail.gmail.com"
type="cite">I installed qemu-system-arm and attempted to test the
lm3s6965 with a test file in the pc386 testsuite and got this
error.<br>
<div class="gmail_quote"><br>
</div>
</blockquote>
The hello from pc386 is x86 code and won't run on an ARM. You have<br>
to build RTEMS for that BSP.<br>
<br>
Plus you will likely need the patches in that BSP's source directory<br>
for qemu. It has some bugs and the fixes are there.<br>
<blockquote
cite="mid:CAC28nnKVoYoN3o6m=T34X=5M_oVJbSgcmzFQg1rg441H+ZN_6A@mail.gmail.com"
type="cite">
<div class="gmail_quote">lm3s6965 -v -i hello.exe<br>
Default program to run is<br>
Using qemu-system-arm<br>
qemu-system-arm is /usr/local/bin/qemu-system-arm<br>
TESTS TO RUN: hello.exe<br>
INTERACTIVE runtest hello.exe single 0<br>
qemu-system-arm -nographic -M lm3s6965evb -kernel hello.exe<br>
qemu: fatal: Bad mode 1c<br>
<div>R00=00000000 R01=0000007f R02=00000000 R03=00000000<br>
R04=00890089 R05=00000000 R06=00000000 R07=00000000<br>
R08=00000000 R09=00000000 R10=00000000 R11=00000000<br>
R12=00000000 R13=464c457f R14=00000000 R15=00010118<br>
PSR=00000173 ---- T svc32<br>
Aborted (core dumped)<br>
<br>
what patches are you talking about for lm3s6965?<br>
I see some binpatch files, but not much else.<br>
<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="HOEnZb">
<div class="h5"><br>
<div class="gmail_quote">On Thu, Jul 19, 2012 at 10:28 AM,
Gedare Bloom <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:gedare@rtems.org" target="_blank">gedare@rtems.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Thu, Jul 19, 2012 at 1:12 PM, Joel Sherrill<br>
<<a moz-do-not-send="true"
href="mailto:joel.sherrill@oarcorp.com"
target="_blank">joel.sherrill@oarcorp.com</a>>
wrote:<br>
> On 07/19/2012 12:05 PM, Aric Hunter wrote:<br>
><br>
> Fantastic!!!<br>
> I looked into /home/rtems/qemu/install/bin and
saw the qemu-system-i386 file<br>
> that you mentioned, and after the update
everything with the i386/pc386<br>
> works just fine.<br>
><br>
> If you have time:<br>
> How do I get qemu-system-arm?<br>
> Is it as simple as another git update?<br>
><br>
> On that virtualbox image, the qemu was pulled
from their git<br>
> and built. You just need to do their build and
let it build everything.<br>
> I restricted it to i386 for size.<br>
><br>
</div>
IIRC for lm3sxx there are some patches for qemu in the
bsp directory..<br>
not sure if they are still necessary.<br>
<div>
<div><br>
> Thanks oodles,<br>
> Aric Hunter<br>
><br>
> On Thu, Jul 19, 2012 at 9:27 AM, Joel
Sherrill <<a moz-do-not-send="true"
href="mailto:joel.sherrill@oarcorp.com"
target="_blank">joel.sherrill@oarcorp.com</a>><br>
> wrote:<br>
>><br>
>> On 07/19/2012 11:25 AM, Aric Hunter
wrote:<br>
>><br>
>> I tried solution 1) already
(PATH=$PATH:/home/rtems/qemu/install/bin)<br>
>> I haven't tried solution 2.<br>
>> So, for solution 2, somewhere in the
pc386 script it attempts to run qemu<br>
>> but it should be qemu-system-i386?<br>
>><br>
>> Yep.<br>
>><br>
>> You could update the rtems-testing git
module and type make :)<br>
>><br>
>> ls /home/rtems/qemu/install/bin and see
what's there<br>
>><br>
>> I will look for that.<br>
>><br>
>> Thanks for the amazingly quick replies,<br>
>> Aric Hunter<br>
>><br>
>> On Thu, Jul 19, 2012 at 9:10 AM, Joel
Sherrill <<a moz-do-not-send="true"
href="mailto:joel.sherrill@oarcorp.com"
target="_blank">joel.sherrill@oarcorp.com</a>><br>
>> wrote:<br>
>>><br>
>>> Hi<br>
>>><br>
>>> I know this has been answered before
but I don't recall which<br>
>>> answer it is:<br>
>>><br>
>>> (1) qemu is not in your PATH. The
qemu installation was<br>
>>> left out of setting the PATH in
the setenv script<br>
>>> (2) It is really called
qemu-system-i386 and the script<br>
>>> needs to use the correct name.
qemu renamed this.<br>
>>><br>
>>> -joel<br>
>>><br>
>>><br>
>>> On 07/19/2012 11:02 AM, Aric Hunter
wrote:<br>
>>>><br>
>>>> Hello,<br>
>>>><br>
>>>> I am attempting to get the RTEMS
development station setup on the Centos<br>
>>>> virtualbox.<br>
>>>> I was following the instructions
on the wiki:<br>
>>>><br>
>>>> <a moz-do-not-send="true"
href="http://www.rtems.com/wiki/index.php/Virtual_Machines_for_RTEMS_Development"
target="_blank">http://www.rtems.com/wiki/index.php/Virtual_Machines_for_RTEMS_Development</a><br>
>>>><br>
>>>> I got to the section for testing
the i386/pc386 without any problems,<br>
>>>> but then I tried to do tho the
following command:<br>
>>>> pc386 -i<br>
>>>>
./rtems-4.11-work/b-pc386/i386-rtems4.11/c/pc386/testsuites/samples/hello/hello.exe<br>
>>>> and got this error:<br>
>>>>
/home/rtems/rtems-4.11-work/rtems-testing/bin/pc386:
line 298:<br>
>>>> type: qemu: not found<br>
>>>> FAILED: Path appears to
be broken (cannot find qemu)<br>
>>>><br>
>>>> Any ideas as to what I am
missing/doing incorrectly?<br>
>>>><br>
>>>> My ultimate goal is to run
lm3s6965 instead of pc386, but I get the same<br>
>>>> error with either.<br>
>>>><br>
>>>> Thanks,<br>
>>>> Aric Hunter<br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Joel Sherrill, Ph.D.
Director of Research& Development<br>
>>> <a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a>
On-Line Applications Research<br>
>>> Ask me about RTEMS: a free RTOS
Huntsville AL 35805<br>
>>> Support Available <a
moz-do-not-send="true"
href="tel:%28256%29%20722-9985"
value="+12567229985" target="_blank">(256)
722-9985</a><br>
>>><br>
>>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Joel Sherrill, Ph.D. Director
of Research& Development<br>
>> <a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line
Applications Research<br>
>> Ask me about RTEMS: a free RTOS
Huntsville AL 35805<br>
>> Support Available <a
moz-do-not-send="true"
href="tel:%28256%29%20722-9985"
value="+12567229985" target="_blank">(256)
722-9985</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Joel Sherrill, Ph.D. Director of
Research& Development<br>
> <a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line
Applications Research<br>
> Ask me about RTEMS: a free RTOS Huntsville
AL 35805<br>
> Support Available <a
moz-do-not-send="true"
href="tel:%28256%29%20722-9985"
value="+12567229985" target="_blank">(256)
722-9985</a><br>
><br>
><br>
</div>
</div>
<div>
<div>>
_______________________________________________<br>
> rtems-users mailing list<br>
> <a moz-do-not-send="true"
href="mailto:rtems-users@rtems.org"
target="_blank">rtems-users@rtems.org</a><br>
> <a moz-do-not-send="true"
href="http://www.rtems.org/mailman/listinfo/rtems-users"
target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
</div>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Joel Sherrill, Ph.D. Director of Research& Development
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
</pre>
</body>
</html>