Re: [EXTERNAL] Re: running pc686 samples on QEMU on RTEMS 5.1?
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" 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=DwIDaQ=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk=mW-jVVDIxBn4bZU1jogCo9FDuDuPszsoVj1mqBvCXzw=mZyehJFUJzxHMXG_kUbFQStltsXM16uEiZ3uSW5c7kM=FAmTQoeHjZlc8c2ZbSPvOZU8d1iccSPj-VjtdhuiIJI= -- for more information. Hope this helps, Karel ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
running pc686 samples on QEMU on RTEMS 5.1?
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 \ CLOCK_DRIVER_USE_TSC=1 \ USE_COM1_AS_CONSOLE=1 \ BSP_PRESS_KEY_FOR_RESET=0 \ BSP_RESET_BOARD_AT_EXIT=1 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 (Where core-cpu1.exe is the cross compiled application. I can also run ticker.exe and other samples with this command ) When I build the pc686 BSP with the same examples and try running on QEMU with the same options, QEMU returns immediately. Is there a different set of options I should use for the pc686 BSP on RTEMS 5.1? Thanks, Alan ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
Re: running pc686 samples on QEMU on RTEMS 5.1?
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 ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel