/ # FILE_NAME=VGA_jpeg_file.jpg
/ # gst-launch -e v4l2src always-copy=false num-buffers=1 ! video/x-raw-yuv,form
at=\(fourcc\)UYVY, width=1280, height=720 ! \
> ffmpegcolorspace ! dmaienc_jpeg ! filesink location=$FILE_NAME
CMEM Error: init: Failed to open /dev/cmem: 'No such device or address'
VICP Error: init: Failed to open /dev/irqk: 'No such file or directory'
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format
Additional debug info:
../../../../src/libs/gst/base/gstbasesrc.c(2540): gst_base_src_start (): /GstPipeline:pipeline0/Gst:
Check your filtered caps, if any
Setting pipeline to NULL ...
Freeing pipeline ...
You didn't load the TI cmem driver. Use the loadmodules.sh script to do so.
Yes I forgot to load them. But even after I load the drivers I get errors.
loadmodules.sh
fbset -disable
FILE_NAME=2.jpg
gst-launch -e v4l2src always-copy=false num-buffers=1 ! video/x-raw-yuv,format=\(fourcc\)UYVY, width=1280, height=720 ! \
ffmpegcolorspace ! dmaienc_jpeg ! filesink location=$FILE_NAME
../../../../src/libs/gst/base/gstbasesrc.c(2540): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Hi Todd
I have additional information.
I have a LI-LBCM5M1 Camera board.
Do anyone know why I cant capture an image?
DM36x initialization passed!
UBL customized by RidgeRun
TI UBL Version: 1.50
Booting Catalog Boot Loader
BootMode = NAND
Starting NAND Copy...
Valid magicnum, 0xA1ACED66, found in block 0x00000004.
DONE
Jumping to entry point at 0x81080000.
U-Boot customized by RidgeRun
U-Boot 1.3.4-svn76 (Jun 27 2011 - 15:23:31)
I2C: ready
DRAM: 128 MB
NAND: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
256 MiB
In: serial
Out: serial
Err: serial
Ethernet PHY: GENERIC @ 0x00
Hit any key to stop autoboot: 0
Loading from NAND 256MiB 3,3V 8-bit, offset 0x400000
Image Name: "RR Linux Kernel"
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4436096 Bytes = 4.2 MB
Load Address: 80008000
Entry Point: 80008000
Automatic boot of image at addr 0x82000000 ...
## Booting kernel from Legacy Image at 82000000 ...
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Linux version 2.6.32-rc2-ridgerun (justin@ubuntu) (gcc version 4.2.4) #18 PREEMPT Tue Jun 28 10:39:12 SAST 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DM365 Leopard
Memory policy: ECC disabled, Data cache writeback
DaVinci dm365_rev1.1 variant 0x0
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 13716
Kernel command line: davinci_enc_mngr.ch0_output=COMPONENT davinci_enc_mngr.ch0_mode=720P-60 davinci_display.cont2_bufsize=6291456 vpfe_capture.cont_bufoffset=6291456 vpfe_capture.cont_bufsize=6291456 console=ttyS0,115200n8 video=davinc)
Unknown boot option `davinci_capture.device_type=4': ignoring
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 54MB = 54MB total
Memory: 50112KB available (3988K code, 385K data, 148K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:245
Console: colour dummy device 80x30
Calibrating delay loop... 147.86 BogoMIPS (lpj=739328)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 8 gpio irqs
NET: Registered protocol family 16
davinci_serial_init:97: failed to get UART2 clock
bio: create slab <bio-0> at 0
DM365 IPIPE initialized in Continuous mode
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
vpss vpss: dm365_vpss vpss probed
vpss vpss: dm365_vpss vpss probe success
dm365_afew_hw_init
ch0 default output "COMPONENT", mode "720P-60"
VPBE Encoder Initialized
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
LogicPD encoder initialized
Leopard DVI encoder initialized
Switching to clocksource timer0_1
musb_hdrc: version 6.0, cppi-dma, host, debug=0
musb_hdrc: USB Host mode controller at fec64000 using DMA, IRQ 12
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red Hat, Inc.
msgmni has been set to 98
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
davincifb davincifb.0: dm_osd0_fb: 1280x720x16@0,0 with framebuffer size 1800KB
davincifb davincifb.0: dm_osd1_fb: 1280x720x4@0,0 with framebuffer size 1800KB
DM365 IPIPEIF probed
imp serializer initialized
davinci_previewer initialized
davinci_resizer initialized
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
console [ttyS0] enabled
brd: module loaded
console [netcon0] enabled
netconsole: network logging started
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbtest
i2c /dev entries driver
Linux video capture interface: v2.00
ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)
vpfe_init
vpfe-capture: vpss clock vpss_master enabled
vpfe-capture vpfe-capture: v4l2 device registered
vpfe-capture vpfe-capture: video device registered
Leopard: switch to HD imager-MT9P031 video input
mt9p031 1-0048: Detected a MT9P031 chip ID 1801
mt9p031 1-0048: mt9p031 1-0048 decoder driver registered !!
vpfe-capture vpfe-capture: v4l2 sub device mt9p031 registered
vpfe_register_ccdc_device: DM365 ISIF
DM365 ISIF is registered with vpfe.
af major#: 252, minor# 0
AF Driver initialized
aew major#: 251, minor# 0
AEW Driver initialized
Trying to register davinci display video device.
layer=c203fa00,layer->video_dev=c203fb70
layer=c203f800,layer->video_dev=c203f970
davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
watchdog watchdog: heartbeat 60 sec
davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI tlv320aic3x
No device for DAI davinci-i2s
asoc: tlv320aic3x <-> davinci-i2s mapping ok
ALSA device list:
#0: DaVinci EVM (tlv320aic3x)
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
Clocks: disable unused mmcsd1
Clocks: disable unused spi0
Clocks: disable unused spi1
Clocks: disable unused spi2
Clocks: disable unused spi3
Clocks: disable unused spi4
Clocks: disable unused aemif
Clocks: disable unused pwm0
Clocks: disable unused pwm1
Clocks: disable unused pwm2
Clocks: disable unused pwm3
Clocks: disable unused timer1
Clocks: disable unused timer3
Clocks: disable unused emac
Clocks: disable unused voice_codec
Clocks: disable unused rto
Clocks: disable unused mjcp
davinci_emac_probe: using random MAC addr: d2:5a:e1:0f:91:b4
emac-mii: probed
IP-Config: Complete:
device=eth0, addr=192.168.1.2, mask=255.255.255.0, gw=255.255.255.255,
host=192.168.1.2, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=192.168.1.50, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.50
Looking up port of RPC 100005/1 on 192.168.1.50
VFS: Mounted root (nfs filesystem) on device 0:14.
Freeing init memory: 148K
init started: BusyBox v1.14.2 (2011-06-28 14:43:07 SAST)
starting pid 970, tty '': '/etc/rcS'
Starting System
done.
Welcome to
__________ .__ .___ __________
\______ \|__| __| _/ ____ ____ \______ \ __ __ ____
| _/| | / __ | / ___\ _/ __ \ | _/| | \ / \
| | \| |/ /_/ | / /_/ >\ ___/ | | \| | /| | \
|____|_ /|__|\____ | \___ / \___ >|____|_ /|____/ |___| /
\/ \//_____/ \/ \/ \/
Embedded Linux Solutions
For further information see:
http://www.ridgerun.com
Build host: ubuntu
Built by: justin
Build date: Tue, 28 Jun 2011 14:43:42 +0200
Build tag: leopard
Configuring network interfaces
Please press Enter to activate this console.
starting pid 1057, tty '/dev/ttyS0': '-/bin/sh'
BusyBox v1.14.2 (2011-06-28 14:43:07 SAST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/ # loadmodules.sh
CMEMK module: built on Jun 27 2011 at 15:17:53
Loading CMEM from 0x84200000 to 0x88000000
Reference Linux version 2.6.32
File /home/justin/work/leo365/proprietary/dvsdk_3_10_00/dvsdk_3_10_00_19/linuxutils_2_25_04_10/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xc5000000 of size 0x43000
cmemk initialized
EDMAK module: built on Jun 27 2011 at 15:17:55
File /home/justin/work/leo365/proprietary/dvsdk_3_10_00/dvsdk_3_10_00_19/linuxutils_2_25_04_10/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
IRQK module: built on Jun 27 2011 at 15:17:56
File /home/justin/work/leo365/proprietary/dvsdk_3_10_00/dvsdk_3_10_00_19/linuxutils_2_25_04_10/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized
dm365mmap 1740 0 - Live 0xbf01c000
irqk 6058 0 - Live 0xbf015000
edmak 12361 0 - Live 0xbf00c000
cmemk 20666 0 - Live 0xbf000000
at=\(fourcc\)UYVY, width=640, height=480 ! \
/ #
My bad. Sorry guys
FILE_NAME=1.jpg
ipipe_init -d
gst-launch -e v4l2src always-copy=false num-buffers=1 ! video/x-raw-yuv,form