I was wondering if anyone has tried to set up the BB as a development
platform i.e. write code and compile on the Beagle Board. The reason
I want to do this is because I want to port a loadable kernel module
(LKM) I have already written for Ubuntu, on to the BB without have to
compile it using the CodeSourcery toolchain.
I'm running Debian (Hasty) on my BB (thanks Robert). I've loaded
several packages that I believe are needed such as:
However, when I try to make my module, the make command comes out with
an error that I'm missing a folder called "build" within /lib/modules/
2.6.27-oer4/ that my makefile is looking for.
Any suggestions on a fix?
Well your actually the first person to mention attempting this
technique, i'm starting to wonder if only posting the linux-image &
linux-headers was not enough. (Probably also should upload the
kernel-source, however i don't think i have upload bandwidth for
Just for checks, where did you get your linux-source-2.6.27 package?
Is it the original git tag, with the diff applied from Koen's Angstrom
tree? I have quick overview writeup listed here on how to download the
source, patch, and how i built it on the talk page:
(http://elinux.org/Talk:BeagleBoardDebian) The gitweb link for oer4
may not work anymore, since the change over to cgit, but the git id
should still work from the omap tree. The patch and defconfig are
still there on rcn-ee.com..
For native building: sudo aptitude install gcc kernel-package fakeroot
Well I'll dig into this some more tomorrow, unless someone's got more
ideas.. According to this bug report: (
linux-headers and linux-image is all most would expect you'd need for
module-assistant to be successful to do this...
if i recall correctly /lib/modules/build is a symlink to the src dir.
I've had it missing in another arm debian variant as well. Not sure
where this link is supposed to come from (but would like to know).
I recently asked a similar question, Koen Responded by saying...I
believe this is with angstrom
"opkg install task-native-sdk" in any image and the compiler is
I have not got to try it yet I am waiting on a usb cable for
anyways let me know if it works...or I will keep looking to.
Since I'm a relative newbie, and am just good at following
instructions, I don't really understand all that your asking. But, to
load my BB I originally got my package using your instructions at:
Once I had Debian up and running, with Xfce4, I applied package
changes using SMART. SMART would access repository.handhelds.org for
the required installs.
Thanks for the help so far.
Sorry i don't have any experience with SMART, ( i believe this is the
package? http://packages.qa.debian.org/s/smart.html )... I'm guessing
it's a tool to easily add your changes to an existing *.deb, say to
add modules for a specific linux kernel. However, there is a big
problem, for the beagleboard we use an externally built deb for the
beagleboard's kernel (it's not upstream in repository.handhelds.org)
and the source file isn't in that archive. I'm guessing it probably
downloaded a 'vanilla' 2.6.27 from kernel.org, however that is missing
specific beagleboard patches. To build your modules with the
'correct' source, you will have to download the same git checkout.
Patch: oer4 : http://www.rcn-ee.com/deb/kernel/beagle/hasty/v2.6.27-2a3408b-oer4/v2.6.27-2a3408b-oer4.diff,
Okay...I'd like to try this, but is there a wiki or something similar
with instructions about how to do this step by step? Sorry, I'm still
pretty new at all of this, and I don't want to mess up at any of the
Okay, this about the 3rd or 4th request this week, i think it's time I
expanded the wiki for more detailed info on rebuilding the kernel from
scratch. I've created a place holder here: (
) I'll fill it in with more information when i get home tonight.
(it's universal between Mojo/Debian/Ubuntu) I just never listed every
step due to the 2hr+ (usually 2hr 15mins) build requirement...
Thanks for the detailed step by step kernel building instructions -
just what I needed. I have successfully rebuilt the kernel. I rebuild
it on the host using the cross compiler.
Please use the "new mail" button instead of the "reply" button when starting a new thread.