Building FreeBSD's SDIO driver for BeagleBone Black
Hi all, This post mainly concern with building FreeBSD's SDIO driver for BeagleBone Black by cross compiling it on AMD platform. I had few unresolved issues with the master branch of current FreeBSD tree. So, for this i used another unofficial branch: https://github.com/kibab/freebsd/tree/mmcam-new . It does have the required KERNCONF file with stable SDIO driver. A lot of steps below are similar to the one given on: https://forums.freebsd.org/threads/cross-compiling-beaglebone-on-amd64.64718/#post-384835 with slight but inevitable changes. Procedure: Before proceeding you need to first install git. sudo pkg update -f sudo pkg install git Setup project directory by mkdir /BBB Clone the repository to /BBB/src by git clone -b mmcam-new https://github.com/kibab/freebsd.git /BBB/src Setup environment variables as setenv BASEDIR /BBB setenv MAKEOBJDIRPREFIX $BASEDIR/obj setenv TARGET arm setenv TARGET_ARCH armv6 Note that sometime it shows an error ...