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.
OK first add to the /usr/src/sys/arm/conf/BEAGLEBONE kernconf file:
Code:
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 ./crochet.sh -b Beaglebone git clone https://github.com/freebsd/crochet /crochet
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.