Rebuilding kernel on BeagleBone running ubuntu

Hello,

Question: Can someone point me to some directions (step by step please, I’m a linux noob) on how to rebuild the kernel (cross compile from my PC would be preferable) on my BeagleBone running Ubuntu? I thought this should be pretty common, but I haven’t been able to find a good reference.

Background: I am trying to write an app which uses OpenCV to read frames from a webcam. However, when I call the cvGetCameraCapture function, it always returns NULL. I read on another thread that this can be fixed by setting CONFIG_MUSB_PIO_ONLY=y in the kernel configuration. I’ve never build a kernel though, and can’t find good instructions on how to do this.

Any help would be appreciated.

Thanks,
Nick

FWIW angstrom has both DMA disabled for MUSB and opencv installed by default, so give that a try.