Monday, October 5, 2020

BuildRoot

 

  • Buildroot is one of technique for automatic generation of 

    • Bootloader

    • Kernel Image

    • Root file system

  • But we will now generate only rootfs. It is mostly based on the Busybox installation but in a automated way and user friendly. And based on the Kconfig.

  • For this download the buildroot from the git as

    • git clone git://git.buildroot.net/buildroot

  • In order to build the rootfs for bbb, make the config as

    • make beaglebone_defconfig

      • It selects the Processor as Arm and its variant as Cortex-A8.

Important configuration

    • Filesystem Images, select the

      • tar the root file system

        • Compression method (gzip)

          • So that it can be untared easily for the nfs booting.

      • It also makes us to select the default file system skeleton and alter to our needs.

    • Target Packages:

      • It is important menu, where all the application are located.

        • Busybox 

        • And other like make, python, perl, and so on.

    • System configuration

      • It is the menu where

        • Banner : 

        • Root login password

    • Toolchain

      • It allows us to select the internel toolchain or external toolchain that is created using croos-tool-ng.

  • After the necessary configuration, run the 

    • make

  • It takes the several minutes for compilation and generates the output in the folder

    • output/images

  • Buildroot once build the packages, it does not rebuild it. In order to rebuild the particular package, you have to remove the .stamp file. (I have not tried it).

  • It also provides the Project specific package management. ( have to try).

  • You can also use the local http server for downloading the packages. ( Have to try)

  • Alternative to Buildroot are Open-embedded, Yocto.

No comments:

Post a Comment

Minicom

 Installation sudo apt install minicom Configuration Giving permission to user for accessing the serial port chmod 666 /dev/ttyUSB0 after th...