Beagle Board as a development platform

Hi all,

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:
gcc
modutils
linux-headers-2.6.27-oer4
linux-source-2.6.27

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?

Thanks,

Ed

Hi Ed,

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
that.)

http://www.fifi.org/cgi-bin/man2html/usr/share/man/man1/make-kpkg.1.gz

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
build-essential

Regards,

Well I'll dig into this some more tomorrow, unless someone's got more
ideas.. According to this bug report: (
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=461228 )
linux-headers and linux-image is all most would expect you'd need for
module-assistant to be successful to do this...

Regards,

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).

Frans

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
called
'g++"

regards,

Koen

I have not got to try it yet I am waiting on a usb cable for
connectivity.
anyways let me know if it works...or I will keep looking to.

Hi Robert,

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:
http://elinux.org/BeagleBoardHandheldsMojo#Debian_Installer_QEMU_.28hasty-armv5el_or_hasty-armv6el.29

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.

Ed

Hi Ed,

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.

http://www.rcn-ee.com/deb/kernel/beagle/hasty/v2.6.27-2a3408b-oer4/
git: 2a3408b

git-clone git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
checkout 2a3408b

Patch: oer4 : http://www.rcn-ee.com/deb/kernel/beagle/hasty/v2.6.27-2a3408b-oer4/v2.6.27-2a3408b-oer4.diff,
.config: http://www.rcn-ee.com/deb/kernel/beagle/hasty/v2.6.27-2a3408b-oer4/defconfig

Regards,

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
steps.

Thanks,

Ed

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: (
http://elinux.org/BeagleBoardDebian#Rebuilding_.2A.deb_Kernel.27s_from_Source
) 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... :wink:

Regards,

Robert,

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.

Saladino.

Hi, all:
I would like try OKL4 LCD Prototype. But when I go to the website of
http://beagleboard.org/project/OKL4+LCD/.
Nothing over there. Any ideas?
Frank
|

Please use the "new mail" button instead of the "reply" button when starting a new thread.

regards,

Koen