Setup Embedded Linux Development Environment

July 6, 2020   |   by Kishore Kumar Boddu

Configure & Build u-boot 2019.04 source code

  1. Download u-boot source code
$ cd ~/KM_GITHUB/
$ git clone https://github.com/kernelmasters/beagleboneblack-uboot.git
$ cd beagleboneblack-uboot
  1. Configure u-boot source code for KM-BBB and build using the below scirpt. It takes 3 to 5 minutes.
$ km-bbb-uboot-build.sh
  1. After succesfully build u-boot source code and current folder X-loader image “MLO” and “u-boot.img” generated.

u-boot.bin: is the binary compiled U-Boot bootloader.

u-boot.img: contains u-boot.bin along with an additional header to be used by the boot ROM to determine how and where to load and execute U-Boot.

Install u-boot 2019.04 source code

Using Sd card

Install MLO and u-boot.img images in to sdcard using the below script.

$ ./km-bbb-uboot-install.sh --mmc /dev/sdX

where ‘X’ indicates sd card device name. find out using dmesg command after inserting sd card.

Using Network (TFTP)

$ ./km-bbb-uboot-install.sh --board X

Where ‘x’ indicates KM-BBB board number.

Configure & Build Kernel 4.19.94 source code

  1. Download kernel source code from github
$ cd ~/KM_GITHUB/
$ git clone git@github.com:kernel-masters/beagleboneblack-kernel.git
$ cd beagleboneblack-kernel
  1. Configure kernel source code for KM-BBB and build using the below scirpt. It takes 3 to 5 minutes.
$ km-bbb-kernel-build.sh
  1. After succesfully build kernel source code and current folder vmlinux image generated.

Install kernel source code

Using Sd card

Install vmlinuz, dtbs, modules images in to sdcard using the below script.

$ ./km-bbb-kernel-install.sh --mmc /dev/sdX

where ‘X’ indicates sd card device name. find out using dmesg command after inserting sd card.

Using Network (TFTP)

$ ./km-bbb-kernel-install.sh --board X

Where ‘x’ indicates KM-BBB board number.

Recent Comments

  1. Carla

    Reply
    November 26, 2021 @ 12:51 am

    I think this is among the most important information for me.
    And i am glad reading your article. But wanna remark on few general things,
    The web site style is wonderful, the articles is really nice : D.
    Good job, cheers

  2. Elinor

    Reply
    January 28, 2022 @ 5:48 pm

    I’m not that much of a internet reader to be honest but your blogs really nice, keep it up!

    I’ll go ahead and bookmark your site to come back later on. Many thanks

Leave a Reply to Carla Cancel reply