Trying to get wireless (WL1271) driver working on Beaglebone

Guys, I need help in getting the kernel source code so I can make some changes.

As I said in my post above, I built the angstrom kernel to produce the kernel modules (e.g. wl12xx_sdio.ko) I need to support WLAN. I built the kernel by following the instructions here: http://www.angstrom-distribution.org/building-angstrom . This compiled the kernel and the modules that I need.

The steps that I followed in these instructions created a “setup-scripts” directory and a whole bunch of sub-directories. I expected to find the kernel source code somewhere in these directories, but I can’t. In particular, I want to make changes to the file arch/arm/mach-omap2/board-am335xevm.c (mentioned by Koen in a previous post), but I can’t find the file. There are other files that I expected to find (like sdio.c, used to produce wl12xx_sdio.ko) but they are not present either.

I’m guessing that the build steps must download the source code, apply some patches, build the kernel, and then delete the source code? How can I get the source code that these steps are using? Can I alter the instructions so that they will not delete the source code after building?

I looked for the kernel source here https://github.com/beagleboard but it seems to have only a README and a patch, not the kernel source.

Forgive me if this seems like an elementary question, but I’ve never used git and bitbake. When building other kernels in the past I’ve download the source code, ran “make menuconfig” to configure the kernel, then simply ran make to build. Building the angstrom kernel is a LOT different!

Thanks for your help.

Tim M

bitbake -c configure virtual/kernel
now you will the kernel source code

Guys, I need help in getting the kernel source code so I can make some changes.

As I said in my post above, I built the angstrom kernel to produce the kernel modules (e.g. wl12xx_sdio.ko) I need to support WLAN. I built the kernel by following the instructions here: http://www.angstrom-distribution.org/building-angstrom . This compiled the kernel and the modules that I need.

The steps that I followed in these instructions created a “setup-scripts” directory and a whole bunch of sub-directories. I expected to find the kernel source code somewhere in these directories, but I can’t. In particular, I want to make changes to the file arch/arm/mach-omap2/board-am335xevm.c (mentioned by Koen in a previous post), but I can’t find the file. There are other files that I expected to find (like sdio.c, used to produce wl12xx_sdio.ko) but they are not present either.

I’m guessing that the build steps must download the source code, apply some patches, build the kernel, and then delete the source code? How can I get the source code that these steps are using? Can I alter the instructions so that they will not delete the source code after building?

I looked for the kernel source here https://github.com/beagleboard but it seems to have only a README and a patch, not the kernel source.

Forgive me if this seems like an elementary question, but I’ve never used git and bitbake. When building other kernels in the past I’ve download the source code, ran “make menuconfig” to configure the kernel, then simply ran make to build. Building the angstrom kernel is a LOT different!

Thanks for your help.

Hi Tim,

If you don’t want Angstrom to delete the source code, comment out the “rm_work” line in /config/local.conf file like this:

INHERIT += “rm_work”

After building the kernel, you will find the source code in /build/tmp-angstrom_v2012_05_eglibc/work/beaglebone-angstrom-linux-gnueabi/linux-mainline-3.xx.xx/git

Alternatively, you could always use Robert’s and Koen’s Beagleboard kernel script to build everything you need. Simply clone git://github.com/beagleboard/kernel.git, checkout the branch you need and run the patch.sh script. This will give you everything you need.

Regards,

John

Tim M

– To join: http://beagleboard.org/discuss
To unsubscribe from this group, send email to:
beagleboard+unsubscribe@googlegroups.com
Frequently asked questions: http://beagleboard.org/faq

Remove rm_work - Very “smart” advice! And in addition to necessary 500MB of sources you will have 6-25GB of binary objects and all temporary stuff that is built just in case…

Remove rm_work - Very “smart” advice! And in addition to necessary 500MB of sources you will have 6-25GB of binary objects and all temporary stuff that is built just in case…

Why is this a problem? Disk drives are cheap :wink: