I am trying to configure my Angstrom in such a way that it would be
possible to compile kernel modules *natively* on the BB. Despite all
my attempts (installing kernel-dev, kernel-headers, and some other
packages) I am still missing a lot of kernel headers such as for
example linux/module.h, linux/kmod.h and so on. /lib/modules/`uname
-r`/build directory is also not there.
I would be very thanksful if somebody could suggest the package
name(s) or any other way to properly install native kernel development
environment with Angstrom on BB.
Thank you,
Andrey.
Thank you very much for the hint! I almost lost the hope to get any
reply to my question :-) .
Ideally, I would prefer to avoid compiling kernel itself natively. The
only thing I need is to compile my own small driver natively. But if I
would not find the way to do it I will definitely try your suggestion.
Thank you once again for the response!
Regards,
Andrey.
obj-m := yourmodule.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
> Thank you once again for the response!
>
> Regards,
> Andrey.
>
> --
> You received this message because you are subscribed to the Google Groups "Beagle Board" group.
> To post to this group, send email to beagl...@googlegroups.com.
> To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
>
>
'cross make -j16 uImage modules'
seemed to work but actually didn't create an image. I re-ran the command it was
complaining about 2 missing commands: lzma and makeimage. In Ubuntu 11.10 I
installed them with apt-get install lzma and apt-get install u-boot-tools.
'sudo_cross make -j16 modules_install'
complained about not being able to find the command
arm-angstrom-linux-gnueabi-gcc, even though the cross compiler directory was in
my path. Not sure why it couldn't find it, but I created the link
/usr/bin/arm-angstrom-linux-gnueabi-gcc which pointed to the cross-comipler gcc
to fix: 'ln -s
~/cross-compiler-directory/arm-angstrom-linux-gnueabi-gcc /usr/bin/arm-angstrom-linux-gnueabi-gcc'