SAM9x60 connected usb device

Moderator: nferre

pinout
Posts: 3
Joined: Wed Jun 10, 2020 11:24 am

SAM9x60 connected usb device

Thu Jul 09, 2020 4:52 pm

Hello,

I need to make application which take a snapshot using USB camera. I'm using KLT-USB1A-OV5640 V1.0 USB camera from OmniVision and SAM9x60 Evaluation kit. I have now compiled following application from http://members.ziggo.nl/s.jobing/webcam.html, which should make a photo and save it. But when I launch compiled program in the board, I get following message:

Code: Select all

root@sam9x60ek:~# ./snapshot
uH uD Unable to set image format: Invalid argument
Also, when camera is connected to the board, the following message appears:

Code: Select all

usb 1-2: new high-speed USB device number 5 using atmel-ehci
usb 1-2: New USB device found, idVendor=0909, idProduct=0817, bcdDevice= 1.02
usb 1-2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
usb 1-2: Product: MTD4232
usb 1-2: Manufacturer: Method
usb 1-2: SerialNumber: 20170619
uvcvideo: Found UVC 1.00 device MTD4232 (0909:0817)
uvcvideo 1-2:1.0: Entity type for entity Extension 4 was not initialized!
uvcvideo 1-2:1.0: Entity type for entity Processing 2 was not initialized!
uvcvideo 1-2:1.0: Entity type for entity Camera 1 was not initialized!
input: MTD4232: USB 1080P Camera as /devices/platform/ahb/700000.ehci/usb1/1-2/1-2:1.0/input/input4
I tried to change reserved format Identifiers in the Host_Cam.c file, according to https://www.kernel.org/doc/html/v4.15/m ... erved.html, but the problem remained the same. Maybe someone could push me to the right direction what can I do next in order to get a photo from the camera?

Thank for Your answers.
blue_z
Location: USA
Posts: 2151
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAM9X60 connected usb device

Sun Jul 12, 2020 11:09 pm

Since it's a USB camera, you could perform the same tests with a Linux x86 PC.
Capture before and after states of loadable modules using the lsmod command.
Review the system log (i.e. the system log for the salient messages).
Use this information to configure/rebuild the SAM9X60 kernel with all the necessary drivers.

Regards

Return to “SAM9-based”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests