Step 1 : Preparations

  • In this program, you are going to learn

  • How to ?

Topics in this section,

  • Make sure current dir is $HOME

$ cd $HOME
  • Create a directory with name “Rt-Thread_with_QEMU” and move to that directory using below commands:

$ mkdir Rt-Thread_with_QEMU
$ cd Rt-Thread_with_QEMU
  • Install Git on your PC if it is not installed already:

$ sudo apt-get install git
  • Download RT-Thread source code using below command:

$ git clone https://github.com/RT-Thread/rt-thread.git
  • Install QEMU if not installed using below command:

$ sudo apt-get install qemu
  • Install Scons if it is not pre-installed:

$ sudo apt-get install scons
  • Install ncurses Library using below command:

$ sudo apt-get install libncurses5-dev
  • Move to the following path:

$ cd ~/Rt-Thread_with_QEMU/rt-thread/bsp/qemu-vexpress-a9
  • Open file “rtconfig.py” and check EXEC_PATH(in line 33). The corresponding path to the bin directory corresponding to the compiler should be “/usr/bin/” as shown below:

qemu-vexpress-a9$ vim rtconfig.py

    EXEC_PATH   = os.getenv("RTT_EXEC_PATH") or r"/usr/bin"