Repo for Linux kernel hacking on Beaglebone Black...
1. Get cross compiler (I use gcc with support for hard floating points from Linaro, works on Centos 8 & Fedora 40.7)
$ git clone https://github.com/beagleboard/linux.git
$ git checkout 4.19
Get defconfig from target & transfer to build machine with e.g. scp
$ zcat /proc/config.gz > beagle_config
$ cp beagle_config .config
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LOADADDR=0x80008000 uImage -j<2xcores>
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage dtb.am335x-boneblack -j<2xcores>
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH= modules_install -j<2xcores>
Download already built RFS here: https://www.dropbox.com/s/k93doprl261hwn2/rootfs.tar.xz?dl=0
$ tar -xf rootfs.tar.xz
$ sudo cp -r rootfs <path-to-sd_card>
$ cd <path-to-sd_card>/rootfs
$ sudo mv ./* ../
$ cd ..
$ sudo rmdir rootfs
First step is to delete umount all partitions on the card & then delete all partitions. Remember to take backups of the content on the card if necessary.
Second step is to create atleast two partitions for boot files and for the root file system. Boot partition is called BOOT & root file system can be called RFS.
I personally use gparted to configure my sd card. Partition setup with 60mb for BOOT and 14gb for RFS: