Beagleboard C4 working kernel

Hi Guys,

I need MTD partition support (command line partition parsing) and USB 2.0 host to work on beagleboard C4. But, the two kernel (2.6.32 and 2.6.35-rc4) that I am using, one of the functionality for each version is not working correctly.

In 2.6.32, the MTD paritition support works correctly, when I cat /proc/mtd or ls /dev/mtd*, I’ve got the info that I need. But, when I attached my usb device it doesn’t detect it.
Then, when I use 2.6.35, the usb 2.0 host works correctly but not mtd information.

What version of the kernel should I use?

Thanks,

John

Steve's got a nice nand patch that's good for 2.6.35 here:
http://www.sakoman.com/cgi-bin/gitweb.cgi?p=linux-omap-2.6.git;a=shortlog;h=refs/heads/omap3-2.6.34

Regards,

Hi Robert,

I downloaded the source (2.6.35-rc6) and the git3-patch in the mainline, the Nand or USB doesn’t work.

john

Hi Robert,
I downloaded the source (2.6.35-rc6) and the git3-patch in the mainline, the
Nand or USB doesn't work.

Hi John,

Oh sorry, I guess I wasn't specific enough, on top of linus' tree
(2.6.35-rc6-git3) you need:

nand: http://www.sakoman.com/cgi-bin/gitweb.cgi?p=linux-omap-2.6.git;a=commit;h=f5426ff33fff704cdd948b8aa55b1a660cd60e5a
(it doesn't merge perfectly so you'll have to clean it up)

Musb or ehci? weird.. both work fine for me with my 2.6.35-rc6 based
kernel, no external patches other then forcing fifo mode 5..

Regards,

Hi Robert,

After applying the patch, the mtd works.
The mush does work but the ehci does not. When, I execute lsub, it displayed the message below, but inserting a new device it doesn’t detect it.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Regards,

john

Hi John,

Weird, well lets check your config, off the top of my head:

voodoo@lvrm:~/bzr_repo/2.6.35-devel$ cat patches/defconfig | grep TWL
CONFIG_KEYBOARD_TWL4030=m
CONFIG_INPUT_TWL4030_PWRBUTTON=y
CONFIG_INPUT_TWL4030_VIBRA=y
CONFIG_GPIO_TWL4030=y
# CONFIG_TWL4030_WATCHDOG is not set
CONFIG_TWL4030_CORE=y
CONFIG_TWL4030_POWER=y
CONFIG_TWL4030_CODEC=y
CONFIG_REGULATOR_TWL4030=y
CONFIG_SND_SOC_TWL4030=y
CONFIG_SND_SOC_TWL6040=y
CONFIG_TWL4030_USB=y
CONFIG_RTC_DRV_TWL4030=m
voodoo@lvrm:~/bzr_repo/2.6.35-devel$ cat patches/defconfig | grep EHCI
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB_EHCI_HCD=y
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
CONFIG_USB_EHCI_TT_NEWSCHED=y
voodoo@lvrm:~/bzr_repo/2.6.35-devel$ cat patches/defconfig | grep MUSB
CONFIG_USB_MUSB_HDRC=y
CONFIG_USB_MUSB_SOC=y
# CONFIG_USB_MUSB_HOST is not set
# CONFIG_USB_MUSB_PERIPHERAL is not set
CONFIG_USB_MUSB_OTG=y
CONFIG_USB_GADGET_MUSB_HDRC=y
CONFIG_USB_MUSB_HDRC_HCD=y
# CONFIG_MUSB_PIO_ONLY is not set
# CONFIG_USB_MUSB_DEBUG is not set

The full config is here:
http://bazaar.launchpad.net/~beagleboard-kernel/%2Bjunk/2.6.35-devel/annotate/head:/patches/defconfig

Otherwise the only other thing could be a pre 2009-9ish u-boot which
disables the ehci power rail on the C4's..

Regards,

Hi Robert,

I found the error. The u-boot 2010 version was causing the problem. But, after using the pre-installed u-boot, it works.

Regards,

John

Just for clarity (and faq's in-case someone else does it..) which
u-boot 2010 did you have installed? (mainline u-boot i'm guessing?)

Thanks,