Cross compiling a specific module for BBB


Active Member

Reaction score: 11
Messages: 113

How can I cross compile a specific driver for BeagleBone Black (BBB). e.g. /usr/src/sys/modules/usb/smsc/? I tried make TARGET_ARCH=armv6 but I found out that this is not correct.

Am I missing something?


Beastie's Twin

Reaction score: 2,376
Messages: 5,288

OK first add to the /usr/src/sys/arm/conf/BEAGLEBONE kernconf file:
device smsc
Note: smsc is not the name of the device. The name of the driver .c- file is the device name.

Then edit /usr/src/sys/boot/fdt/dts/arm/beaglebone-black.dts and add a section for your device. Run dtc(1) to check that it compiles.

Then for actually compiling an image the quick way is to download crochet and simply run ./ -b Beaglebone
git clone /crochet