running pc686 samples on QEMU on RTEMS 5.1?

Karel Gardas karel.gardas at centrum.cz
Wed Sep 23 21:15:12 UTC 2020


On 9/23/20 11:02 PM, Cudmore, Alan P. (GSFC-5820) wrote:
> NASA’s Core Flight System open source bundle has support for the RTEMS
> 4.11 pc686 BSP.
> 
> RTEMS is built with the following options:
> 
> ../rtems/configure --target=i386-rtems4.11 \
> 
>     --enable-rtemsbsp=pc686 \
> 
>     --prefix=${HOME}/rtems-4.11 \
> 
>     --enable-networking \
> 
>     --enable-cxx \
> 
>     --disable-posix \
> 
>     --disable-deprecated \
> 
>     BSP_ENABLE_VGA=0 \
>


^ don't do that. Last time I've checked this option was buggy, e.g.
reset BSP happen instantly.

>     CLOCK_DRIVER_USE_TSC=1 \
> 

^ do you need to do that? It's decided on runtime.

>     USE_COM1_AS_CONSOLE=1 \
> 

^ this option is long gone, hence without any effect, you can remove it.

>     BSP_PRESS_KEY_FOR_RESET=0 \
> 
>     BSP_RESET_BOARD_AT_EXIT=1   
> 

^ no needed as you are using their default values.

> And the code (or samples such as ticker) are run with the following QEMU
> command:
> 
>  
> 
> qemu-system-i386 -m 128 \
> 
>     -kernel core-cpu1.exe \
> 
>     -drive file=fat:rw:${INSTALL_DIR}/cpu1,format=raw \
> 
>     -nographic \
> 
>     -no-reboot
> 

^ this looks fine, you can also try -append "--video=off
--console=/dev/com1" -- which would basically mean what you used to use
in 4.x with those BSP compile time options above. E.g. console on COM1.

But to have it working, you need to IIRC! remove disabling of VGA.

Please consult
https://docs.rtems.org/branches/master/user/bsps/bsps-i386.html#pc386 --
for more information.

Hope this helps,
Karel


More information about the devel mailing list