Exploring device driver with Beaglebone Black.
In order to build the project.
The arm toolchain must be intalled. It can be found here
The linux kernel for beaglebone can be downloaded from here. Check out the correct version as used for the beaglebone board.
Configure with beaglebone defconfig
make ARCH=arm bb.org_defconfig
Then compile the kernel
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage dtbs LOADADDR=0x80008000 -j4
Compile modules
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules -j4
Generate compile_commands.json to navigate the code easily
sudo apt install bear
Then compile the project
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export KERNELDIR=PATH_TO_KERNEL_DIR
cd LDD-BBB
bear -- make -j4