Fwd: [Qemu-devel] qemu 0.8.2 and RTEMS
Joel Sherrill
joel.sherrill at oarcorp.com
Tue Nov 14 02:12:58 UTC 2006
YEAH!!! Some success from home.
qemu -M isapc -net nic,macaddr=00:80:7F:22:61:77 \
-net tap,script=/etc/qemu-ifup -m 4 \
-boot a \
-fda /home/student1/qemu/pc386_fda \
-hda fat:/home/student1/qemu/hd -serial stdio
/home/student1/qemu/pc386_fda just auto-boots test.exe from the fat virtual
directory.
I had to run as root but will try it again as myself in the morning.
I ran the netdemo and httpd demo with minor edits to the httpd demo.
I used the networkconfig.h attached. and hand-edited the ne2000 driver in
the BSP to default to irq 9 as expected by qemu.
I will try to eliminate the dedicated fda and look at Chris'
instructions for
booting from the virtual fat directory in the morning.
This all needs to be packaged and written up. Ready for another article
Jonathan?
I might be able to offer more help this time. :)
--joel
Joel Sherrill wrote:
> Jonathan Kalbfeld wrote:
>
>> Okay, here's what our friends on the QEMU side said...
>>
>>
>>
> http://www.kidsquid.com/cgi-bin/moin.cgi/FrequentlyAskedQuestions#head-989268518a820a9f33477d3b99754ab5113aa2a3
>
>> Has anyone thought about writing a QEMU BSP for RTEMS? I'm not a very
>> good programmer..
>>
>>
>>
> It is just the pc386. I had it running with the ne2000 driver a while
> back but apparently
> something has gotten updated. I even had it working with the serial
> ports/com1 as
> the RTEMS /dev/console and could run a test and capture the output with
> a script.
>
>
>> ---------- Forwarded message ----------
>> From: Lonnie Mendez <lmendez19 at austin.rr.com>
>> Date: Nov 13, 2006 2:33 PM
>> Subject: Re: [Qemu-devel] qemu 0.8.2 and RTEMS
>> To: qemu-devel at nongnu.org
>>
>>
>> On Mon, 2006-11-13 at 14:06 -0800, Jonathan Kalbfeld wrote:
>>
>>
>>
>>> qemu -isa -nics 1 -n ~joel/qemu-work/qemu/qemu-kit/tunconfig.sh \
>>> -macaddr 00:80:7F:22:61:77 -m 4 -serial stdio -fda
>>> /home/joel/qemu/grub144
>>>
>>> I have this much of a command line which doesn't cause qemu to
>>> complain but it doesn't work either:
>>>
>>> qemu -net nic,macaddr=00:80:7F:22:61:77,model=ne2k_isa \
>>> -m 4 -fda /home/joel/qemu/grub144
>>>
>>>
>> You need to specify a connection method for the nic. qemu has vlans
>> now that organize the internal network. The default qemu uses with no
>> -net arguments is -net nic,vlan=0 -net user,vlan=0. This groups a nic
>> and a connection method (slirp) on vlan 0. If you want to use tun/tap
>> networking specify -net tap instead (along with -net nic,...). Your old
>> line might look like the below:
>>
>> qemu -M isapc -net nic,macaddr=00:80:7F:22:61:77 -net
>> tap,script=~joel/qemu-work/qemu/qemu-kit/tunconfig.sh -m 4 -serial stdio
>> -fda /home/joel/qemu/grub144
>>
>>
>>
> I wasn't using "-M isapc". This almost works. Do I recall correctly
> that the IRQ for
> the NE2K simulation in qemu is 5. The RTEMS driver defaults to 9. Is
> there a
> command line option to change that?
>
> It can up and /sbin/ifconfig showed the virtual interface. Now I need
> to get the IRQ
> right.
>
> Butnow I need to go home. :)
>
>
>> Although I'm not sure what the old script format looks like - there are
>> example qemu-ifup scripts about the net.
>>
>>
> I was using this. :)
>
> $ cat /etc/qemu-ifup
> #!/bin/sh
> TUN_DEV=$1
> TUN_HOST=10.0.2.2
> /sbin/ifconfig $TUN_DEV $TUN_HOST
> exit 0
>
>
>
>>
>>
>>> The qemu faq mentions using a tunctl program which I don't see.
>>>
>>>
>> Please link that page here so it can be reviewed for correctness.
>>
>>
>>
>> _______________________________________________
>> Qemu-devel mailing list
>> Qemu-devel at nongnu.org
>> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>>
>>
>>
>>
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: networkconfig.h
Type: text/x-chdr
Size: 4116 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20061113/5cabfcd6/attachment-0001.bin>
More information about the users
mailing list