Hello,<br><br>It do NOT work for me, I add "#define USE_COM1_AS_CONSOLE 1 " into my init.c, and run qemu by<br>     qemu -nographic -serial file:output.txt -boot a -m 128 -fda myimage.img -hda fat:.<br><br>I did not get anything from output.txt. It run well in graphic mode, but I want the output from the program.<br>
<br>I would appreciate if you could shed me some light on my mind :)<br><br>Thanks,<br>Alan<br><br><div class="gmail_quote">2008/3/21 Jean-Claude Grange <<a href="mailto:lebauce@free.fr">lebauce@free.fr</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
Thank you all for answers. USE_COM1_AS_CONSOLE =1 worked just fine.<br>
I'm really interested in your patch, Joel. Are you going to commit it<br>
soon ? Or would you mind sending your patch to me so that I can test it.<br>
<br>
Thanks<br>
See you<br>
<br>
<br>
Le 17 mars 08 à 19:47, Joel Sherrill a écrit :<br>
<br>
> Jean-Claude Grange wrote:<br>
>> Hello,<br>
>><br>
>> Thanks for your answer. I'll try that.<br>
>> But I wonder if it's possible to do it without modifying the<br>
>> program ?<br>
>><br>
>><br>
> Define USE_COM1_AS_CONSOLE =1 on the RTEMS configure<br>
> command line and the console will move to the serial port.<br>
> This is how I run RTEMS and GCC tests in an automated<br>
> fashion.<br>
><br>
> I discovered another nice qemu option --no-reboot which<br>
> exits when the simulated PC does a reset.  This means you<br>
> get a single run of the application and then it exits.  I have<br>
> a pending patch in my tree to make the BSP reset on<br>
> application exit or exception without waiting for a human<br>
> to press a character.  This sped up the gcc test runs<br>
> by a large factor since they have >50K tests.<br>
><br>
> --joel<br>
>> José Marinho <<a href="mailto:zemanel@gmail.com">zemanel@gmail.com</a>> wrote:<br>
>><br>
>><br>
>>> you can allways create a file, format it to a specific fylesystem<br>
>>> and pass<br>
>>> it to qemu as an hard drive, and tell the rtems program to create<br>
>>> and write<br>
>>> in a file in that hard drive. and then you can mount that file<br>
>>> with loop<br>
>>> device and access it and get the output file. that's the approach<br>
>>> that I'de<br>
>>> take. Hope that's usefull to you<br>
>>><br>
>>> José Marinho<br>
>>><br>
>>> On 16/03/2008, Jean-Claude Grange <<a href="mailto:lebauce@free.fr">lebauce@free.fr</a>> wrote:<br>
>>><br>
>>>> Hello,<br>
>>>><br>
>>>> I'm sorry if this is a stupid question but I've searched on the<br>
>>>> mailing<br>
>>>> list and<br>
>>>> didn't find an answer.<br>
>>>> I'm trying to get the output of a RTEMS program (for example the<br>
>>>> Hello<br>
>>>> from the<br>
>>>> samples testsuite) using QEmu, into a file. I'm using the<br>
>>>> command (on<br>
>>>> Linux) :<br>
>>>><br>
>>>> qemu -nographic -serial file:output.txt -boot a -fda myimage.img<br>
>>>> -hda<br>
>>>> fat:.<br>
>>>><br>
>>>> but I don't get anything in the 'output.txt' file. I also tried -<br>
>>>> serial<br>
>>>> /dev/ttyS* and with the -monitor stdio option but I still have<br>
>>>> nothing. I<br>
>>>> must<br>
>>>> be doing something wrong.<br>
>>>><br>
>>>> I would really appreciate your help.<br>
>>>> Thank you<br>
>>>> _______________________________________________<br>
>>>> rtems-users mailing list<br>
>>>> <a href="mailto:rtems-users@rtems.com">rtems-users@rtems.com</a><br>
>>>> <a href="http://rtems.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://rtems.rtems.org/mailman/listinfo/rtems-users</a><br>
>>>><br>
>>>><br>
>>><br>
>>> --<br>
>>> <img> <a href="http://www.deec.uc.pt/common/img/deezoom.gif" target="_blank">http://www.deec.uc.pt/common/img/deezoom.gif</a> </img><br>
>>><br>
>>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> rtems-users mailing list<br>
>> <a href="mailto:rtems-users@rtems.com">rtems-users@rtems.com</a><br>
>> <a href="http://rtems.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://rtems.rtems.org/mailman/listinfo/rtems-users</a><br>
>><br>
><br>
><br>
> --<br>
> Joel Sherrill, Ph.D.             Director of Research & Development<br>
> joel.sherrill@OARcorp.com        On-Line Applications Research<br>
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805<br>
>   Support Available             (256) 722-9985<br>
><br>
><br>
<br>
_______________________________________________<br>
rtems-users mailing list<br>
<a href="mailto:rtems-users@rtems.com">rtems-users@rtems.com</a><br>
<a href="http://rtems.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://rtems.rtems.org/mailman/listinfo/rtems-users</a><br>
</blockquote></div><br>