Debian Customize from source code¶
Introduction¶
This guide demonstrates how to patch and rebuild the VAR-SOM-AM62 U-Boot images.
To learn how to build the U-Boot images outside of Debian, see: Build U-Boot from source code
Add your patches on top of the Variscite source code¶
Fetch the U-Boot source:
mkdir -p ~/am62_debian_uboot && cd ~/am62_debian_uboot
git clone https://github.com/varigit/ti-u-boot -b ti-u-boot-2023.04_09.02.01.10_var01
cd ti-u-boot
git clean -fdx
Create the directory ~/debian_am62x_var_som/ti-bdebstrap/patches/ti-u-boot and copy the uboot.diff patch.
mkdir -p ~/debian_am62x_var_som/ti-bdebstrap/patches/ti-u-boot
cp ~/am62_debian_uboot/ti-u-boot/uboot.diff ~/debian_am62x_var_som/ti-bdebstrap/patches/ti-u-boot
Use your remote repository on GitHub¶
Create a GitHub account and upload your proprietary U-Boot to a new repository: You can fork our repository to your account by visiting the following link and clicking on "Fork" at the top right of the screen: https://github.com/varigit/ti-u-boot/tree/ti-u-boot-2023.04_09.02.01.10_var01
Alternatively, you can clone the repository to your local machine, and push it later to your account.
Refer to How to Download Debian Source Code. After downloading the source, open the file ~/debian_am62x_var_som/ti-bdebstrap/configs/bsp_sources.toml and locate the tag 09.02.01.10_var01.
atf_srcrev = "00f1ec6b8740ccd403e641131e294aabacf2a48b"
optee_srcrev = "012cdca49db398693903e05c42a254a3a0c0d8f2"
uboot_srcuri = "https://github.com/varigit/ti-u-boot.git" # change to your U-Boot repository name
uboot_srcrev = "80ceb4d91326e00edd22a3fabf5dd2d64f6a7635" #update the hash with the latest commit
linux_fw_srcrev = "09.02.00.010"