Hi,
I want to cross compile kernel modules for my BeagleY-AI board.
I have followed this documentation Introduction — BeagleBoard Documentation to up my kit with base flashing the latest image available using the bb-imager tool and now I am running the official debian image with kernel 6.1.83-ti-arm64-r72 in my kit.
My goal is write a V4L2 device driver for my sensor.
I need steps for cross compiling and kindly help me with pointing the reference device tree and drivers for this work.
I am not sure which document to follow, i.e there is this document 3.2.1. Users Guide — Processor SDK Linux for AM67A Documentation → should I follow this as AM67A is the chip we are using or is there any other documentation available for configuring and building the kernel that I should follow for my goal?
Kindly help me with this.
Thanks,
Naveen
Not an expert,
I have tried the default debian image from imager tool and buildroot. Both work flawlessly. Self-compiling each binary and sticking it together didn’t work for me( something to do with signing at boottime).
Cross compilation could be done using buildroot. As it creates all the toolchains, you could work in the output directory and cross compile modules. Make sure to look at “make help”.
Pls let us know if you the buildroot route.
The ones that I have not tested is buidling from TI-SDK and yocto.
Hi @sidharth-458,
Thanks for you response. buildroot is kind of new to me. Is there any documentation available to make this setup and test it. Cause I thought of getting the kernel source and cross compile it, but I don’t have steps for this too. Because I am not sure for this BeagleY-AI I can follow the AM67A Kernel compilation documentation.
If you have document for this buildroot it would really be helpfull.
Thanks in advance !
Buildroot has extensive documentation. But if you just want to compile do make beagley_defconfig; make -j1. There are settings which help you build kernel from local copy. So you could use that if you want in-tree driver build.
Hi @sidharth-458,
Thank you for your response. I’ll surely check this out.
Thanks.