Step 1 : Preparations ===================== .. tab-set:: .. tab-item:: Preparations * In this program, you are going to learn .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow * How to ? .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow Topics in this section, * :ref:`Preparations ` .. _Rt-Thread_qemu_ARM-vexpress-A9_step1_0: .. tab-set:: .. tab-item:: Preparations * Make sure current dir is $HOME .. code-block:: c $ cd $HOME * Create a directory with name "Rt-Thread_with_QEMU" and move to that directory using below commands: .. code-block:: c $ mkdir Rt-Thread_with_QEMU $ cd Rt-Thread_with_QEMU * Install Git on your PC if it is not installed already: .. code-block:: c $ sudo apt-get install git * Download RT-Thread source code using below command: .. code-block:: c $ git clone https://github.com/RT-Thread/rt-thread.git * Install QEMU if not installed using below command: .. code-block:: c $ sudo apt-get install qemu * Install Scons if it is not pre-installed: .. code-block:: c $ sudo apt-get install scons * Install ncurses Library using below command: .. code-block:: c $ sudo apt-get install libncurses5-dev * Move to the following path: .. code-block:: c $ 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: .. code-block:: c qemu-vexpress-a9$ vim rtconfig.py EXEC_PATH = os.getenv("RTT_EXEC_PATH") or r"/usr/bin" .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow