*Hi, I'm trying to compile a kernel module for beaglebone black.* *I'm working on ubuntu 14.04* uname -a Linux joompiol-GX708AA-ABM-a6330la 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
*I followed instructions provided here: *http://beagleboard.org/linux *I installed toolchain without problems...* ~$ wget http://www.angstrom-distribution.org/toolchains/angstrom-2011.03-x86_64-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.3.tar.bz2 ~$ sudo tar -C / -xjf angstrom-2011.03-x86_64-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.3.tar.bz2 ~$ export PATH=/usr/local/angstrom/arm/bin:$PATH *This lines works fine:* ~$ git clone git://github.com/beagleboard/kernel.git && cd kernel ~/kernel$ git checkout 3.8 ~/kernel$ ./patch.sh ~/kernel$ cp configs/beaglebone kernel/arch/arm/configs/beaglebone_defconfig ~/kernel$ wget http://arago-project.org/git/projects/?p=am33x-cm3.git\;a=blob_plain\;f=bin/am335x-pm-firmware.bin\;hb=HEAD -O kernel/firmware/am335x-pm-firmware.bin ~/kernel$ cd kernel ~/kernel/kernel$ mkdir rootfs ~/kernel/kernel$ make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- beaglebone_defconfig *The next line gave me this:* /kernel/kernel# make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- -j4 uImage dtbs CHK include/generated/uapi/linux/version.h CC scripts/mod/empty.o /usr/bin/as: unrecognized option '-EL' make[2]: *** [scripts/mod/empty.o] Error 1 make[1]: *** [scripts/mod] Error 2 make: *** [scripts] Error 2 make: *** Waiting for unfinished jobs.... *When I try to compile a simple hello kernel module give me this:* /home/joompiol/hello# ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- KDIR=/kernel/kernel make make -C /kernel/kernel SUBDIRS=/home/joompiol/hello modules make[1]: Entering directory `/kernel/kernel' WARNING: Symbol version dump /kernel/kernel/Module.symvers is missing; modules will have no dependencies and modversions. CC [M] /home/joompiol/hello/hello.o In file included from include/linux/gfp.h:4, from include/linux/kmod.h:22, from include/linux/module.h:13, from /home/joompiol/hello/hello.c:2: include/linux/mmzone.h:18:30: error: generated/bounds.h: No such file or directory include/linux/mmzone.h:319:5: warning: "MAX_NR_ZONES" is not defined In file included from include/linux/gfp.h:4, from include/linux/kmod.h:22, from include/linux/module.h:13, from /home/joompiol/hello/hello.c:2: include/linux/mmzone.h:350: error: 'MAX_NR_ZONES' undeclared here (not in a function) make[2]: *** [/home/joompiol/hello/hello.o] Error 1 make[1]: *** [_module_/home/joompiol/hello] Error 2 make[1]: Leaving directory `/kernel/kernel' make: *** [default] Error 2 *Please help.* -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
