Step 2 : Compile Bare-Linux
In this program, you are going to learn
How to ?
Topics in this section,
Install qemu-system-arm package in the build system.
sudo apt-get install qemu-system-arm
Make sure current dir is $HOME
$ cd $HOME
Download the source code from the below mentioned link.
Unzip the downloaded tar file.
$ tar -xvzf buildroot-2020.02.3.tar.gz
Change the current directory to build as mentioned below.
$ 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.
$ pwd
$HOME/buildroot-2020.02.3
$ make qemu_arm_versatile_defconfig
Run make command from buildroot directory to build the bare-linux
$ make
Once the build is done, the final target image will be present in the following directory.
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
What is /.bashrc file?
See Answer
??