[EXTERNAL] Re: running pc686 samples on QEMU on RTEMS 5.1?

Cudmore, Alan P. (GSFC-5820) alan.p.cudmore at nasa.gov
Thu Sep 24 19:17:02 UTC 2020


Hi Karel,
Your suggested options fixed it! Our next release should be compatible with RTEMS 5.1.
The documentation is great too.. As a long time RTEMS user, I often fail to check the docs first!
Thanks,
Alan

On 9/23/20, 5:15 PM, "Karel Gardas" <karel.gardas at centrum.cz> wrote:

    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://urldefense.proofpoint.com/v2/url?u=https-3A__docs.rtems.org_branches_master_user_bsps_bsps-2Di386.html-23pc386&d=DwIDaQ&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=mW-jVVDIxBn4bZU1jogCo9FDuDuPszsoVj1mqBvCXzw&m=mZyehJFUJzxHMXG_kUbFQStltsXM16uEiZ3uSW5c7kM&s=FAmTQoeHjZlc8c2ZbSPvOZU8d1iccSPj-VjtdhuiIJI&e=  --
    for more information.

    Hope this helps,
    Karel



More information about the devel mailing list