Step 2 : Compile Bare-Linux ============================ .. tab-set:: .. tab-item:: Compile Bare-Linux * 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:`Source code download and compilation ` .. _barelinux_rpi_3b_step5_0: .. tab-set:: .. tab-item:: Source code download and compilation * Install qemu-system-arm package in the build system. .. code-block:: c sudo apt-get install qemu-system-arm * Make sure current dir is $HOME .. code-block:: c $ cd $HOME * Download the source code from the below mentioned link. * `buildroot source code download `_ * Unzip the downloaded tar file. .. code-block:: c $ tar -xvzf buildroot-2020.02.3.tar.gz * Change the current directory to build as mentioned below. .. code-block:: c $ cd buildroot-2020.02.3/ * Now from the buildroot directory add the default configurations of qemu ARM versatile in config file using the following command. .. code-block:: c $ pwd $HOME/buildroot-2020.02.3 $ make qemu_arm_versatile_defconfig * Run make command from buildroot directory to build the bare-linux .. code-block:: c $ make * Once the build is done, the final target image will be present in the following directory. .. code-block:: c buildroot-2024.02.2$ cd output/images/ images$ ls -l total 11064 -rw-r--r-- 1 test test 62914560 Jan 29 20:31 rootfs.ext2 -rwxr-xr-x 1 test test 452 Jan 29 20:19 start-qemu.sh -rwxr-xr-x 1 test test 8896 Jan 29 20:19 versatile-pb.dtb -rw-r--r-- 1 test test 3008592 Jan 29 20:19 zImage .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow What is /.bashrc file? .. dropdown:: See Answer * ??