Setup Embedded Linux Development Environment
July 6, 2020 | by Kishore Kumar Boddu
Configure & Build u-boot 2019.04 source code
- Download u-boot source code
$ cd ~/KM_GITHUB/ $git clone
https://github.com/kernelmasters/beagleboneblack-uboot.git
$ cd beagleboneblack-uboot
- 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
- 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
- Download kernel source code from github
$ cd ~/KM_GITHUB/ $ git clone git@github.com:kernel-masters/beagleboneblack-kernel.git $ cd beagleboneblack-kernel
- Configure kernel source code for KM-BBB and build using the below scirpt. It takes 3 to 5 minutes.
$ km-bbb-kernel-build.sh
- 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.
Carla
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
Kishore Kumar Boddu
December 20, 2021 @ 1:00 pm
Thanks for your feedback.
Elinor
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