Linux Kernel for BeagleBoard from OMAP Git

Hi All,

I am trying to build the kernel for beagle.

I downloaded the OMAP linux kernel from the following path to build
the kernel for beagleboard.
git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
.

After i downloaded the kernel checked the arch/arm/configs folder i am
not able to see any omap3_beagle_defconfig file.

When i see the following link http://muru.com/linux/omap/ there are
differnet patches when i open that patch file i am able to see some
beagleboard related things also when i am trying to apply patch i
getting lot of errors.

Can some body help for the latest code which is the appropriate patch
i have to use

Thanks and Regards,
Rajesh

the config is now "omap2plus_defconfig"

The tmlind master branch is currently going under a lot of changes for
the 2.6.37 merge..

Regards,

Hi Robert,

Thanks for the information. When i tried to make the kernel image i am
getting the prompts for the x86 configurations and i am getting the
error as below

Are you setting ARCH?

make ARCH=arm omap2plus_defconfig
make ARCH=arm menuconfig

Regards,

Thank you very much

Yes now i am able to do it now
1. I dont know the what configurations i need to set for beagelboard
is it possible for you to guide me reagarding setting this options
2. I am using arm-eabi-4.2.1 compiler and i tried to make ARCH=arm
with the default config then i am getting these errors..

scripts/kconfig/conf --silentoldconfig arch/arm/Kconfig
  CHK include/linux/version.h
  UPD include/linux/version.h
  CHK include/generated/utsrelease.h
  UPD include/generated/utsrelease.h
  Generating include/generated/mach-types.h
  CC kernel/bounds.s
cc1: error: unrecognized command line option "-mlittle-endian"
cc1: error: unrecognized command line option "-mabi=aapcs-linux"
cc1: error: unrecognized command line option "-mno-thumb-interwork"
kernel/bounds.c:1: error: bad value (armv5t) for -march= switch
kernel/bounds.c:1: error: bad value (strongarm) for -mtune= switch
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

Thanks
Rajesh...

either use CodeSourcery's or Angstrom's Cross Compiler...

http://www.angstrom-distribution.org/building-angstrom

Regards,

ARCH=arm simply sets the arch the kernel is compiling for, it does not
change the compiler. Please see a FAQ on how to cross compile to stop
the kernel make system from using your machine's native compiler.

I dont know about other distros but on gentoo you can use crossdev -t
arm to easily setup a crosscompiler

here is a link to my config i use with the linux-omap git tree

http://pastebin.com/02rhADMx

(no promises but I believe that is the config I am currently running)

-Max

Also I needed to apply this patch to enable the USB hub, I submitted a
patch for it but it hasnt been merged yet so you will need to apply it
manually.

diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-
omap2/board-omap3beagle.c
index 73689c0..77b5fea 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -297,9 +297,13 @@ static int beagle_twl_gpio_setup(struct device
*dev,
        gpio_request(gpio + 1, "EHCI_nOC");
        gpio_direction_input(gpio + 1);

- /* TWL4030_GPIO_MAX + 0 == ledA, EHCI nEN_USB_PWR (out, active
low) */
- gpio_request(gpio + TWL4030_GPIO_MAX, "nEN_USB_PWR");
- gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0);
+ /* TWL4030_GPIO_MAX + 0 == ledA, EHCI nEN_USB_PWR (out, XM active
high / others active low) */
+ gpio_request(gpio + TWL4030_GPIO_MAX, "nEN_USB_PWR");
+ if (omap3_beagle_get_rev() == OMAP3BEAGLE_BOARD_XM) {
+ gpio_direction_output(gpio + TWL4030_GPIO_MAX, 1);
+ } else {
+ gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0);
+ }

        /* TWL4030_GPIO_MAX + 1 == ledB, PMU_STAT (out, active low
LED) */
        gpio_leds[2].gpio = gpio + TWL4030_GPIO_MAX + 1;

Hi Robert,

I used the angstorm distribution and i applied all the patches to the
omap linux kernel every thins is successfull when i try to make the
uImage following is the error

If you want to use .36rc, you need some more patches:

http://gitorious.org/angstrom/angstrom-linux/commits/koen/beagle-next

That's where I'm collecting patches for what is going to be the next official beagle kernel[1]. It will be rebased multiple times a week, so pay attention when pulling from it.

regards,

Koen

[1] Which is still a long way of

If your cross compiler cant figure that one out, it is too ancient..
use Angstrom's..

CROSS_COMPILE=~/angstrom-dev/cross/armv7a/bin/arm-angstrom-linux-gnueabi-

Regards,