UVC video driver problems in Ubuntu for BeagleBone?

Hello,

I’m experiencing some issues when executing my program in Ubuntu for BeagleBone.
The thing is that in Angstrom with kernels 3.2.6+ and 3.2.9+ it works fine, but in Ubuntu with kernel 3.2.0-psp it doesn’t.
I’m reading MJPG images from a Trust eLight Full HD 1080p Webcam, but sometimes I can’t decode the image I read (also it almost doubles it’s buffer size when it fails).

The program works fine in my BeagleBone with Angstrom and in my BeagleBoard with Ubuntu, but not in my BeagleBone with Ubuntu.
Currently I’m stuck with this because when I use Angstrom the WDT doesn’t reboot the BeagleBone when my program ends in an error, and
when I use Ubuntu the UVC driver seems to be buggy.

On the other hand I’ve been trying to clone git://arago-project.org/git/projects/linux-am33x.git to see if I can build the kernel with CONFIG_WATCHDOG_NOWAYOUT=y, but
it seems the server doesn’t even answer steadily to ping, so when I try to clone the repository it gets stuck. So I can’t activate CONFIG_WATCHDOG_NOWAYOUT, nor
make a diff between UVC video driver in RobertCNelson and Angstrom kernels.

Any help or ideas would be very appreciated. Thanks.
Sincerely,
Daniel

Hello,

I'm experiencing some issues when executing my program in Ubuntu for
BeagleBone.
The thing is that in Angstrom with kernels 3.2.6+ and 3.2.9+ it works fine,
but in Ubuntu with kernel 3.2.0-psp it doesn't.
I'm reading MJPG images from a Trust eLight Full HD 1080p Webcam, but
sometimes I can't decode the image I read (also it almost doubles it's
buffer size when it fails).

The program works fine in my BeagleBone with Angstrom and in my BeagleBoard
with Ubuntu, but not in my BeagleBone with Ubuntu.
Currently I'm stuck with this because when I use Angstrom the WDT doesn't
reboot the BeagleBone when my program ends in an error, and
when I use Ubuntu the UVC driver seems to be buggy.

There's always a possibilty this was fixed in one of the "3.2.x"
stable updates koen pushed to Angstrom beaglebone kernel..

http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=shortlog;h=44fb3170ae46f8de964a4bb5b0504e865a6dd7da

On the other hand I've been trying to clone
git://arago-project.org/git/projects/linux-am33x.git to see if I can build
the kernel with CONFIG_WATCHDOG_NOWAYOUT=y, but
it seems the server doesn't even answer steadily to ping, so when I try to
clone the repository it gets stuck. So I can't activate
CONFIG_WATCHDOG_NOWAYOUT, nor
make a diff between UVC video driver in RobertCNelson and Angstrom kernels.

can you rebuild the angstrom kernel with "CONFIG_WATCHDOG_NOWAYOUT=y"?

Regards,

Like so: http://dominion.thruhere.net/koen/angstrom/beaglebone/0001-linux-ti33x-psp-3.2-enable-CONFIG_WATCHDOG_NOWAYOUT-.patch ?

Hi,

Koen, I’ve updated the Angstrom this afternoon and now the WDT works fine. Thanks a lot for your patch.
Also I’ve been compiling the kernel from:

git clone git://arago-project.org/git/projects/linux-am33x.git
git checkout origin/v3.2-staging -b v3.2-staging

When doing this I were able to build kernel 3.2.0+.
I’m having problems to understand where to get the last kernel sources, please could you tell me where can get the 3.2.9+ branch/tag?

After I compiled the kernel I put the uImage into the boot partition and it got stuck booting with this message:

U-Boot SPL 2011.09-00000-gf63b270-dirty (Nov 20 2011 - 19:58:24)
Texas Instruments Revision detection unimplemented
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img

U-Boot 2011.09-00009-g4d90fb5 (Jan 27 2012 - 12:14:28)

I2C: ready
DRAM: 256 MiB
No daughter card present
NAND: HW ECC Hamming Code selected
nand_get_flash_type: unknown NAND device: Manufacturer ID: 0x10, Chip ID: 0x10
No NAND device found!!!
0 MiB
MMC: OMAP SD/MMC: 0
*** Warning - readenv() failed, using default environment

Net: cpsw
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt

** Unable to read “uEnv.txt” from mmc 0:1 **
reading uImage

3494704 bytes read
## Booting kernel from Legacy Image at 80007fc0 …
Image Name: Linux-3.2.0+
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3494640 Bytes = 3.3 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum … OK
Loading Kernel Image …

Thanks you all,
Daniel

http://groups.google.com/group/beagleboard/browse_thread/thread/1aeccb084f103437#

I am starting a BeagleBone variant for ttylinux, http://ttylinux.org/, but I am
not sure which kernel tree to use.

Is anyone using https://github.com/hvaibhav/am335x-linux ?

With this kernel I get stuck at "Waiting for root device /dev/mmcblk0p2...", and I
think the SDCard is not a problem because �ngstr�m boots OK on it. Is this
kernel not really ready to use?

And why doesn't this kernel have a CPSW selection for the network device?

Well, never mind anyway; for now I switched to a TI
kernel, linux-3.1.0-psp04.06.00.03

If anyone is interested in an alternative system for
building a BeagleBone Linux distribution from scratch,
take a look at https://github.com/djerome/ttylinux

It is a build system much more understandable than OE
(of course I think so because I made this one), but it
makes a *much* smaller distribution. So far, it has no
apps unless you count thttpd, and I don't really yet
know how much of the AM3358 is supported other than
USB and Ethernet.

Hakuna Matata

Smaller than a framebuffer + touchscreen UI in 70 KiB? That's how small angstrom can be, I'd like to see how small your distro is if it's 'much smaller'

I should be more careful about what I say. I didn't mean to get into some
kind of pointless pissing contest.

By "much smaller distribution" I mean to say "far fewer packages and far
less capable than the Angstrom distribution you get with the BeagleBone",
so that folks don't expect an equivalent system from ttylinux. Sorry if I am
wrongly implying that Angstrom is built from an OE build system; that isn't
something about which I much know.

ttylinux is a Linux system, hence the "linux" in the name. I'll never get a
linux+glibc+busybox system close to 70 KiB; I'm just not that awesome.
You win.

I see few clones after I posted this. For anyone trying
this: there is a problem when the ttylinux build system
tries to download the source packages. Some of the source
packages are gone or renamed at their URL. You can download
this ttylinux source ISO and get the source packages from:
http://ttylinux.net/Download/ttylinux-i686-10.0-src.iso.gz

It doesn't support MMC interface on AM335x yet.

Thanks,
Vaibhav