the problem about qemu run i386 rtems bsp

yangwei weiyang wei.a.yang at gmail.com
Sat Jul 7 15:44:17 UTC 2012


2012/7/4 yangwei weiyang <wei.a.yang at gmail.com>:
> I have also try the Core2duo cpu model, but the ns16550 is also
> appeared. I am not sure whether it is showed on ticker.
> If i have any information, i will post.
>
> 2012/7/4 Joel Sherrill <joel.sherrill at oarcorp.com>:
>> Core2duo is the cpu model I recall using.
>>
>> I don't know what the ns16550 issue is. Do you see it on ticker?
Hi Joel, This issue is not showed on ticker. And i found sometimes it
will print the follow log when i run smp01.exe on qemu:

spurious interrupt: 7


***  SMP01 TEST ***
 CPU 0 start task TA1
 CPU 0 start task TA2
spurious interrupt: 7
 CPU 1 running Task TA1
 CPU 2 running Task TA2
*** END OF TEST SMP01 ***
ns16550_cleanup_interrupts: Error: Remove interrupt handler

There is the same problem about "spurious interrupt: 7 " on bug 1706
[https://www.rtems.org/bugzilla/show_bug.cgi?id=1706]. But i do not
know whether the ns16550 has some relationship with "spurious
interrupt: 7"

>>
>> yangwei weiyang <wei.a.yang at gmail.com> wrote:
>>
>>>Hi all,
>>>
>>>Now i have run the smptest and spatomic01 for smp mode test cases. But
>>>there is also a problem which shows the log
>>>"ns16550_cleanup_interrupts: Error: Remove interrupt handler" after
>>>the end of test case. The command to run smp test case is :
>>>
>>>qemu -smp 4 -m 512 -boot a -cpu phenom -fda
>>>/home/alcatel/qemu/pc386_fda -hda fat:/home/alcatel/qemu/hd -monitor
>>>null -nographic -serial stdio --no-reboot
>>>
>>>In my SMP mode atomic test case there is some problem about printf
>>>log, So i will study the smp printf.
>>>
>>>2012/7/3 yangwei weiyang <wei.a.yang at gmail.com>:
>>>> Hi Joel,
>>>>
>>>> I also make a try to build the rtems for pc386 bsp with
>>>> "--enable-smp", and use the command to run smptest:
>>>>
>>>> qemu -m 512 -boot a -fda /home/alcatel/qemu/pc386_fda -hda
>>>> fat:/home/alcatel/qemu/hd -monitor null -nographic -serial stdio
>>>> --no-reboot -smp 4
>>>>
>>>> It then show the log:
>>>>
>>>> Could not initialize KVM, will disable KVM support
>>>> ----------------------------------------------------------
>>>> Exception 6 caught at PC 11A493 by thread 167837697
>>>> ----------------------------------------------------------
>>>> Processor execution context at time of the fault was  :
>>>> ----------------------------------------------------------
>>>>  EAX = 0        EBX = 13196C    ECX = 8 EDX = 21DAE500
>>>>  ESI = FFFFFFFF EDI = 131CC0    EBP = 13E410    ESP = 13DE04
>>>> ----------------------------------------------------------
>>>> Error code pushed by processor itself (if not 0) = 0
>>>> ----------------------------------------------------------
>>>> Call Stack Trace of EIP:
>>>> 0x0011CB58
>>>>
>>>> It seems that there is only pcp4 bsp can support smptest, but i found
>>>> the qemu not support P4 CPU
>>>> qemu -cpu ?
>>>> x86           [n270]
>>>> x86         [athlon]
>>>> x86       [pentium3]
>>>> x86       [pentium2]
>>>> x86        [pentium]
>>>> x86            [486]
>>>> x86        [coreduo]
>>>> x86          [kvm32]
>>>> x86         [qemu32]
>>>> x86          [kvm64]
>>>> x86       [core2duo]
>>>> x86         [phenom]
>>>> x86         [qemu64]
>>>>
>>>> There is no pentium4 cpu support.
>>>>
>>>> 2012/7/3 yangwei weiyang <wei.a.yang at gmail.com>:
>>>>> Hi Joel,
>>>>>
>>>>> This problem is cause by my qemu build not correctly(with
>>>>> --disable-sdl). After i build the qemu again the hello.exe is run
>>>>> successfully.
>>>>>
>>>>> But there is also another problem to run smptest smp01.exe. The command is blow:
>>>>> qemu -m 512 -boot a -fda /home/alcatel/qemu/pc386_fda -hda
>>>>> fat:/home/alcatel/qemu/hd -monitor null -nographic -serial stdio
>>>>> --no-reboot
>>>>> log is :
>>>>> Could not initialize KVM, will disable KVM support
>>>>>
>>>>>
>>>>> ***  SMP01 TEST ***
>>>>> *** END OF TEST SMP01 ***
>>>>> ns16550_cleanup_interrupts: Error: Remove interrupt handler
>>>>>
>>>>> And then no any reply.
>>>>>
>>>>> When i add the "--smp 3" to command line. The log is blow:
>>>>>
>>>>> Could not initialize KVM, will disable KVM support
>>>>>
>>>>> ,and then it exit to shell. So could you give me any comments or could
>>>>> you give me the command to run smptest?
>>>>>
>>>>>
>>>>> 2012/7/3 Joel Sherrill <joel.sherrill at oarcorp.com>:
>>>>>> On 07/02/2012 11:07 AM, yangwei weiyang wrote:
>>>>>>>
>>>>>>> 2012/7/2 Joel Sherrill<joel.sherrill at oarcorp.com>:
>>>>>>>>
>>>>>>>> On 07/02/2012 10:48 AM, yangwei weiyang wrote:
>>>>>>>>>
>>>>>>>>> Hi all,
>>>>>>>>>
>>>>>>>>> When i use rtems-testing repository sim-scripts/pc386 to run pcp4 bsp,
>>>>>>>>> it show the blow result:
>>>>>>>>>
>>>>>>>>> ./sim-scripts/pc386 -i
>>>>>>>>> ../rtems-build/i386-rtems4.11/c/pcp4/testsuites/samples/hello/hello.exe
>>>>>>>>> qemu is /sdb1/gsoc2012/github/qemu-install/bin/qemu
>>>>>>>>> Could not open option rom 'sgabios.bin': No such file or directory
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Looks like qemu didn't get completely built and installed correctly.
>>>>>>>> It is installed under ${prefix}/share/qemu. See for my local install:
>>>>>>>>
>>>>>>>> $ find . -name *.bin
>>>>>>>> ./share/qemu/vgabios-cirrus.bin
>>>>>>>> ./share/qemu/sgabios.bin
>>>>>>>> ./share/qemu/multiboot.bin
>>>>>>>> ./share/qemu/ppc_rom.bin
>>>>>>>> ./share/qemu/slof.bin
>>>>>>>> ./share/qemu/bios.bin
>>>>>>>> ./share/qemu/vgabios.bin
>>>>>>>> ./share/qemu/vgabios-stdvga.bin
>>>>>>>> ./share/qemu/pxe-virtio.bin
>>>>>>>> ./share/qemu/spapr-rtas.bin
>>>>>>>> ./share/qemu/linuxboot.bin
>>>>>>>> ./share/qemu/pxe-ne2k_pci.bin
>>>>>>>> ./share/qemu/vgabios-vmware.bin
>>>>>>>> ./share/qemu/pxe-pcnet.bin
>>>>>>>> ./share/qemu/pxe-rtl8139.bin
>>>>>>>> ./share/qemu/vgabios-qxl.bin
>>>>>>>> ./share/qemu/pxe-e1000.bin
>>>>>>>>
>>>>>>> In my local computer is :
>>>>>>> ./share/qemu/slof.bin
>>>>>>> ./share/qemu/ppc_rom.bin
>>>>>>> ./share/qemu/vgabios.bin
>>>>>>> ./share/qemu/vgabios-qxl.bin
>>>>>>> ./share/qemu/vgabios-vmware.bin
>>>>>>> ./share/qemu/vgabios-cirrus.bin
>>>>>>> ./share/qemu/spapr-rtas.bin
>>>>>>> ./share/qemu/multiboot.bin
>>>>>>> ./share/qemu/vgabios-stdvga.bin
>>>>>>> ./share/qemu/bios.bin
>>>>>>> ./share/qemu/linuxboot.bin
>>>>>>> It seems that i lack of lot of *.bin. Joel, could you tell me the
>>>>>>> command of what you build qemu?
>>>>>>
>>>>>> I don't have any particular options. But I do make sure the
>>>>>> graphics are enabled which requires SDL to be installed
>>>>>> and you have to do a make install.
>>>>>>
>>>>>> You shouldn't need to do more something like this:
>>>>>>
>>>>>> ./configure --prefix=INSTALL_DIR
>>>>>>
>>>>>> If you want to speed the build, you can also specify something
>>>>>> like --target-list="i386-softmmu" to limit how much gets built.
>>>>>>
>>>>>>>>> And then there is not any output. Anyone know this issue?
>>>>>>>>>
>>>>>>>>> The follow step is what i do:
>>>>>>>>> 1. git clone rtems-testing.git
>>>>>>>>> 2. build rtems with the configuration:
>>>>>>>>>       ../rtems/configure --target=i386-rtems4.11
>>>>>>>>> --prefix=/sdb1/gsoc2012/github/rtems-install --enable-smp
>>>>>>>>> --enable-tests=yes --enable-rtemsbsp=pcp4 USE_COM1_AS_CONSOLE=1
>>>>>>>>> BSP_PRESS_KEY_FOR_RESET=0
>>>>>>>>> 3. ./sim-scripts/pc386 -i
>>>>>>>>> ../rtems-build/i386-rtems4.11/c/pcp4/testsuites/samples/hello/hello.exe.
>>>>>>>>> And then it shows: CANNOT FIND qemu or qemu-system-i386.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> qemu is not in your PATH.
>>>>>>>>
>>>>>>>> $ type qemu
>>>>>>>> qemu is /home/joel/qemu/git/install/bin/qemu
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> 4 And then i build qemu for i386. Then run the command step 3 then it
>>>>>>>>> shows the log in the head of mail.
>>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Joel Sherrill, Ph.D.             Director of Research&    Development
>>>>>>>> joel.sherrill at OARcorp.com        On-Line Applications Research
>>>>>>>> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
>>>>>>>>      Support Available             (256) 722-9985
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Joel Sherrill, Ph.D.             Director of Research&   Development
>>>>>> joel.sherrill at OARcorp.com        On-Line Applications Research
>>>>>> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
>>>>>>     Support Available             (256) 722-9985
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Wei Yang
>>>>> Best Regards
>>>>>
>>>>> wei.a.yang at gmail.com
>>>>
>>>>
>>>>
>>>> --
>>>> Wei Yang
>>>> Best Regards
>>>>
>>>> wei.a.yang at gmail.com
>>>
>>>
>>>
>>>--
>>>Wei Yang
>>>Best Regards
>>>
>>>wei.a.yang at gmail.com
>
>
>
> --
> Wei Yang
> Best Regards
>
> wei.a.yang at gmail.com



-- 
Wei Yang
Best Regards

wei.a.yang at gmail.com



More information about the devel mailing list