How to test TV-IN ( ADV7180) for IMX53 ARD board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to test TV-IN ( ADV7180) for IMX53 ARD board

24,705 次查看
Swamy
Contributor III

Hi All,

I am using IMX53 ARD board with android 2.3.4.

I enabled the driver under Device Drivers > Multimedia device > Video Capture Adapters > MXC Camera/V4L2 PRP Features, and now my .config file is updated with "CONFIG_MXC_TVIN_ADV7180=y"...

Please let me know how shall I verify the video in? I have connected the camera to J42 connector of the ARD board.

Regards,

Swamy

标签 (1)
标记 (2)
43 回复数

3,971 次查看
daiane_angolini
NXP Employee
NXP Employee

Sorry for my late reply. It was local holiday over here

0 项奖励
回复

3,971 次查看
daiane_angolini
NXP Employee
NXP Employee

does dmesg show the TVin error? I was not able to find it.

You can test to built in all modules on the linux enviroment as well. To make sure you´re using the right modules set. 

The same kernel can be used.

As I remember, there is no other modules 

Swamy said:

Hi Daiane,

           As you suggested we tried testing TV-in on Linux and it works fine,we can see the video playing on VGA screen.

But on android it gives error. May be because we are not loading the modules using modprobe.But we have selected the adv7180 driver (*) so that the modules are loaded while booting.

            Is there anything else we need to select in the kernel menuconfig packages to load all the required modules i.e. ipu_prp_enc.ko,ipu_prp_vf_sdc.ko,ipu_prp_vf_sdc_bg.ko.....

             Ive pasted the error and the dmesg below..

                               

# ./mxc_v4l2_tvin.out -ow 1024 -oh 768 -ol 10 -ot 20 -f YU12
TV decoder chip is adv7180_decodmxc_v4l_close: release resource
er
VIDIOC_REQBUFS failed
Setup v4l capture failed.
# dmesg
68 (order: 5, 131072 bytes)
<6>allocated 7864320 bytes of page_cgroup
<6>please try 'cgroup_disable=memory' option if you don't want memory cgroups
<6>Memory: 352MB 512MB = 864MB total
<5>Memory: 859592k/859592k available, 25144k reserved, 524288K highmem
<5>Virtual kernel memory layout:
<5> vector : 0xffff0000 - 0xffff1000 ( 4 kB)
<5> fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
<5> DMA : 0xfde00000 - 0xffe00000 ( 32 MB)
<5> vmalloc : 0xd6800000 - 0xf4000000 ( 472 MB)
<5> lowmem : 0xc0000000 - 0xd6000000 ( 352 MB)
<5> pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
<5> modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
<5> .init : 0xc0008000 - 0xc0039000 ( 196 kB)
<5> .text : 0xc0039000 - 0xc0895000 (8560 kB)
<5> .data : 0xc08b6000 - 0xc0915c60 ( 384 kB)
<6>SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
<6>Hierarchical RCU implementation.
<6> RCU-based detection of stalled CPUs is disabled.
<6> Verbose stalled-CPUs detection is disabled.
<6>NR_IRQS:368
<6>MXC GPIO hardware
<6>MXC IRQ initialized
<6>MXC_Early serial console at MMIO 0x53fbc000 (options '115200')
<6>bootconsole [ttymxc0] enabled
<4>Console: colour dummy device 80x30
<6>Calibrating delay loop... 799.53 BogoMIPS (lpj=3997696)
<6>pid_max: default: 32768 minimum: 301
<6>Security Framework initialized
<4>Mount-cache hash table entries: 512
<6>Initializing cgroup subsys debug
<6>Initializing cgroup subsys ns
<6>Initializing cgroup subsys cpuacct
<6>Initializing cgroup subsys memory
<6>Initializing cgroup subsys devices
<6>Initializing cgroup subsys freezer
<6>Initializing cgroup subsys blkio
<6>CPU: Testing write buffer coherency: ok
<6>regulator: core version 0.5
<6>NET: Registered protocol family 16
<6>i.MX IRAM pool: 128 KB@0xd6840000
<6>IRAM READY
<6>CPU is i.MX53 Revision 2.1
<6>MX53 ARD board
<6>Using SDMA I.API
<6>MXC DMA API initialized
<6>IMX usb wakeup probe
<7>the wakeup pdata is 0xc08c34f0
<6>IMX usb wakeup probe
<7>the wakeup pdata is 0xc08c35a4
<6>IMX usb wakeup probe
<7>the wakeup pdata is 0xc08c3658
<4>bio: create slab <bio-0> at 0
<5>SCSI subsystem initialized
<6>CSPI: mxc_spi-0 probed
<6>Freescale USB OTG Driver loaded, $Revision: 1.55 $
<6>usbcore: registered new interface driver usbfs
<6>usbcore: registered new interface driver hub
<6>usbcore: registered new device driver usb
<6>Initializing regulators for ARD
<6>ltc3589 1-0034: Loaded
<6>IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
<7>PMIC Light driver loading...
<6>Advanced Linux Sound Architecture Driver Version 1.0.23.
<6>Bluetooth: Core ver 2.15
<6>NET: Registered protocol family 31
<6>Bluetooth: HCI device and connection manager initialized
<6>Bluetooth: HCI socket layer initialized
<6>regulator: SW1: 564 <--> 1167 mV at 1050 mV
<6>regulator: SW2: 704 <--> 1456 mV at 1311 mV
<6>regulator: SW3: 1342 <--> 2775 mV at 2497 mV
<6>regulator: SW4:
<3>LDO1 is always enabled
<6>regulator: LDO1_STBY:
<6>regulator: LDO2: 704 <--> 1456 mV at 1311 mV normal
<6>regulator: LDO3:
<6>regulator: LDO4: 1800 <--> 3300 mV at 1800 mV normal
<6>Switching to clocksource mxc_timer1
<6>NET: Registered protocol family 2
<6>IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
<6>TCP established hash table entries: 65536 (order: 7, 524288 bytes)
<6>TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
<6>TCP: Hash tables configured (established 65536 bind 65536)
<6>TCP reno registered
<6>UDP hash table entries: 256 (order: 0, 4096 bytes)
<6>UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
<6>NET: Registered protocol family 1
<6>RPC: Registered udp transport module.
<6>RPC: Registered tcp transport module.
<6>RPC: Registered tcp NFSv4.1 backchannel transport module.
<6>Unpacking initramfs...
<6>Freeing initrd memory: 176K
<6>LPMode driver module loaded
<6>Static Power Management for Freescale i.MX5
<6>PM driver module loaded
<6>sdram autogating driver module loaded
<6>Bus freq driver module loaded
<6>DI1 is primary
<6>mxc_dvfs_core_probe
<6>DVFS driver module loaded
<6>i.MXC CPU frequency driver
<6>DVFS PER driver module loaded
<4>highmem bounce pool size: 64 pages
<6>ashmem: initialized
<6>msgmni has been set to 655
<6>alg: No test for stdrng (krng)
<6>cryptodev: driver loaded.
<6>io scheduler noop registered
<6>io scheduler deadline registered
<6>io scheduler cfq registered (default)
<3>regulator: get() with no identifier
<3>regulator: get() with no identifier
<3>mxc_ipu mxc_ipu: Channel already disabled 9
<3>mxc_ipu mxc_ipu: Channel already uninitialized 9
<6>IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
<4>mxc_ldb mxc_ldb: default di0 single mode
<3>mxc_ipu mxc_ipu: Channel already disabled 7
<3>mxc_ipu mxc_ipu: Channel already uninitialized 7
<3>mxc_ipu mxc_ipu: Channel already disabled 10
<3>mxc_ipu mxc_ipu: Channel already uninitialized 10
<6>Serial: MXC Internal UART driver
<6>mxcintuart.0: ttymxc0 at MMIO 0x53fbc000 (irq = 31) is a Freescale i.MX
<6>console [ttymxc0] enabled, bootconsole disabled
<6>mxcintuart.1: ttymxc1 at MMIO 0x53fc0000 (irq = 32) is a Freescale i.MX
<6>mxcintuart.2: ttymxc2 at MMIO 0x5000c000 (irq = 33) is a Freescale i.MX
<6>mxcintuart.3: ttymxc3 at MMIO 0x53ff0000 (irq = 13) is a Freescale i.MX
<6>mxcintuart.4: ttymxc4 at MMIO 0x63f90000 (irq = 86) is a Freescale i.MX
<6>loop: module loaded
<6>pmem_adsp: 0 init
<6>pmem_gpu: 1 init
<6>MXC MTD nand Driver 3.0
<4>No NAND device found.
<6>i.MX GPMI NFC
<6>vcan: Virtual CAN interface driver
<6>Freescale FlexCAN Driver
<6>FEC Ethernet Driver
<6>PPP generic driver version 2.4.2
<6>PPP Deflate Compression module registered
<6>PPP BSD Compression module registered
<6>PPP MPPE Compression module registered
<6>NET: Registered protocol family 24
<6>tun: Universal TUN/TAP device driver, 1.6
<6>tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
<6>smsc911x: Driver version 2008-10-21.
<6>ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<6>fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
<6>fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
<6>fsl-ehci fsl-ehci.0: irq 18, io base 0x53f80000
<6>fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
<6>hub 1-0:1.0: USB hub found
<6>hub 1-0:1.0: 1 port detected
<6>fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller
<6>fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2
<6>fsl-ehci fsl-ehci.1: irq 14, io base 0x53f80200
<6>fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00
<6>hub 2-0:1.0: USB hub found
<6>hub 2-0:1.0: 1 port detected
<6>usb 2-1: new high speed USB device using fsl-ehci and address 2
<6>fsl-ehci fsl-ehci.2: Freescale On-Chip EHCI Host Controller
<6>fsl-ehci fsl-ehci.2: new USB bus registered, assigned bus number 3
<6>fsl-ehci fsl-ehci.2: irq 16, io base 0x53f80400
<6>fsl-ehci fsl-ehci.2: USB 2.0 started, EHCI 1.00
<6>hub 3-0:1.0: USB hub found
<6>hub 3-0:1.0: 1 port detected
<6>usbcore: registered new interface driver cdc_acm
<6>cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
<6>Initializing USB Mass Storage driver...
<6>hub 2-1:1.0: USB hub found
<6>usbcore: registered new interface driver usb-storage
<6>USB Mass Storage support registered.
<6>hub 2-1:1.0: 4 ports detected
<6>usbcore: registered new interface driver usbserial
<6>usbserial: USB Serial Driver core
<6>USB Serial support registered for GSM modem (1-port)
<6>usbcore: registered new interface driver option
<6>option: v0.7.2:USB Driver for GSM modems
<6>ARC USBOTG Device Controller driver (1 August 2005)
<6>Android usb driver initialize
<6>android_usb gadget: android_usb ready
<7>Suspend udc for OTG auto detect
<7>USB Host suspend begins
<7>will suspend roothub and its children
<7>ehci_fsl_bus_suspend, DR
<7>host suspend ends
<6>usb wakeup is here
<7>the otgsc is 0x1200d21, usbsts is 0x1088, portsc is 0x1c501000, wakeup_irq is 0x80000000
<6>otg udc vbus falling wakeup
<7>USB Gadget resume begins
<7>dr_controller_run: udc enter low power mode
<7>USB Gadget resume ends
<6>fsl-usb2-udc: bind to driver android_usb
<6>android gadget: register function adb
<6>android gadget: register function usb_mass_storage
<6>android gadget: register function rndis
<6>rndis_function_bind_config MAC: 00:00:00:00:00:00
<4>android_usb gadget: using random self ethernet address
<4>android_usb gadget: using random host ethernet address
<6>usb0: MAC 6e:de:18:94:8e:e3
<6>usb0: HOST MAC 7e:af:91:4f:e8:ef
<6>android_usb gadget: usb_mass_storage, version: 2009/09/11
<6>android_usb gadget: Number of LUNs=3
<6> lun0: LUN: removable file: (no medium)
<6> lun1: LUN: removable file: (no medium)
<6> lun2: LUN: removable file: (no medium)
<6>f_accessory init
<6>android gadget: register function accessory
<4>mice: could not register psaux device, error: -16
<6>mice: PS/2 mouse device common for all mice
<6>MXC keypad loaded
<3>egalax_ts 1-0004: egalax_ts: failed to read firmware version
<4>egalax_ts: probe of 1-0004 failed with error -5
<6>usbcore: registered new interface driver usbtouchscreen
<3>p1003_fwv33 1-0041: couldn't read panel infomation.
<4>p1003_fwv33: probe of 1-0041 failed with error -5
<3>p1003_fwv33 2-0041: couldn't read panel infomation.
<4>p1003_fwv33: probe of 2-0041 failed with error -5
<6>i2c /dev entries driver
<6>IR NEC protocol handler initialized
<6>IR RC5(x) protocol handler initialized
<6>IR RC6 protocol handler initialized
<6>IR JVC protocol handler initialized
<6>IR Sony protocol handler initialized
<6>Linux video capture interface: v2.00
<6>usb 3-1: new full speed USB device using fsl-ehci and address 2
<6>mxc_v4l2_output mxc_v4l2_output.0: Registered device video1
<6>usbcore: registered new interface driver uvcvideo
<6>USB Video Class driver (v0.1.0)
<6>APM Battery Driver
<6>MXC WatchDog Driver 2.0
<6>MXC Watchdog # 0 Timer: initial timeout 60 sec
<6>device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
<6>Bluetooth: Virtual HCI driver ver 1.3
<6>Bluetooth: HCI UART driver ver 2.2
<6>Bluetooth: HCIATH3K protocol initialized
<6>Bluetooth: Generic Bluetooth USB driver ver 0.6
<6>usbcore: registered new interface driver btusb
<6>VPU initialized
<6>mxc_asrc registered
<6>gpu mmu disabled
<6>mxsdhci: MXC Secure Digital Host Controller Interface driver
<6>mxsdhci: MXC SDHCI Controller Driver.
<6>mmc0: SDHCI detect irq 129 irq 1 INTERNAL DMA
<6>mxsdhci: MXC SDHCI Controller Driver.
<6>mmc1: SDHCI detect irq 132 irq 2 INTERNAL DMA
<6>usbcore: registered new interface driver usbhid
<6>usbhid: USB HID core driver
<7>USB Gadget resume begins
<6>logger: created 64K log 'log_main'
<6>logger: created 256K log 'log_events'
<6>logger: created 64K log 'log_radio'
<6>logger: created 64K log 'log_system'
<6>Cirrus Logic CS42888 ALSA SoC Codec Driver
<3>regulator: get() with no identifier
<6>cs42888 1-0048: found device at i2c address 48
<6>cs42888 1-0048: hardware revision 4
<6>mxc_spdif mxc_spdif.0: MXC SPDIF Audio Transmitter
<4>No device for codec mxc spdif
<4>No device for DAI mxc spdif
<4>No device for DAI imx-esai-tx
<4>No device for DAI imx-esai-rx
<4>No device for DAI imx-esai-txrx
<4>No device for DAI imx-spdif-dai
<6>DMA Sound Buffer Allocated: Playback UseIram=1 ext_ram=1 buf->addr=85260000 buf->area=ff07d000 size=24576
<6>DMA Sound Buffer Allocated: Capture UseIram=1 ext_ram=1 buf->addr=85268000 buf->area=ff083000 size=24576
<6>asoc: CS42888 <-> imx-esai-txrx mapping ok
<6>usb 2-1.2: new high speed USB device using fsl-ehci and address 3
<6>DMA Sound Buffer Allocated: Capture UseIram=1 ext_ram=1 buf->addr=85270000 buf->area=ff089000 size=24576
<6>asoc: mxc spdif <-> imx-spdif-dai mapping ok
<6>ALSA device list:
<6> #0: imx-3stack (CS42888)
<6> #1: imx-3stack-spdif (mxc spdif)
<6>nf_conntrack version 0.5.0 (13433 buckets, 53732 max)
<6>IPv4 over IPv4 tunneling driver
<6>mmc0: new high speed SDHC card at address b368
<6>GRE over IPv4 tunneling driver
<6>ip_tables: (C) 2000-2006 Netfilter Core Team
<6>TCP cubic registered
<6>mmcblk0: mmc0:b368 00000 7.51 GiB
<6> mmcblk0: p1 p2 p3 br/><6>NET: Registered protocol family 10
<4> p5
<6>IPv6 over IPv4 tunneling driver
<4> p6 > p4
<6>NET: Registered protocol family 17
<6>NET: Registered protocol family 15
<6>can: controller area network core (rev 20090105 abi 8)
<6>NET: Registered protocol family 29
<6>can: raw protocol (rev 20090105)
<6>can: broadcast manager protocol (rev 20090105 t)
<6>Bluetooth: L2CAP ver 2.14
<6>Bluetooth: L2CAP socket layer initialized
<6>Bluetooth: SCO (Voice Link) ver 0.6
<6>Bluetooth: SCO socket layer initialized
<6>Bluetooth: RFCOMM TTY layer initialized
<6>Bluetooth: RFCOMM socket layer initialized
<6>Bluetooth: RFCOMM ver 1.11
<6>Bluetooth: BNEP (Ethernet Emulation) ver 1.3
<6>Bluetooth: BNEP filters: protocol multicast
<6>Bluetooth: HIDP (Human Interface Emulation) ver 1.2
<6>L2TP core driver, V2.0
<6>PPPoL2TP kernel driver, V2.0
<6>scsi0 : usb-storage 2-1.2:1.0
<6>VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2
<3>drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
<6>Freeing init memory: 196K
<3>init: /init.freescale.rc: 29: invalid command 'user'
<6>usb 2-1.4: new low speed USB device using fsl-ehci and address 4
<4>mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
<4>mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
<4>mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
<4>mmc1: queuing unknown CIS tuple 0x14 (0 bytes)
<4>mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
<4>mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
<4>mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
<6>mmc1: new high speed SDIO card at address 0001
<6>input: USB Optical Mouse as /devices/platform/fsl-ehci.1/usb2/2-1/2-1.4/2-1.4:1.0/input/input0
<6>generic-usb 0003:15CA:00C3.0001: input: USB HID v1.10 Mouse [USB Optical Mouse] on usb-fsl-ehci.1-1.4/input0
<3>init: cannot open '/initlogo.rle'
<5>scsi 0:0:0:0: Direct-Access JetFlash Transcend 4GB 8.07 PQ: 0 ANSI: 2
<5>sd 0:0:0:0: [sda] 7839744 512-byte logical blocks: (4.01 GB/3.73 GiB)
<5>sd 0:0:0:0: [sda] Write Protect is off
<7>sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
<3>sd 0:0:0:0: [sda] Assuming drive cache: write through
<3>sd 0:0:0:0: [sda] Assuming drive cache: write through
<6> sda: sda1
<3>sd 0:0:0:0: [sda] Assuming drive cache: write through
<5>sd 0:0:0:0: [sda] Attached SCSI removable disk
<6>EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
<6>EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
<6>EXT4-fs (mmcblk0p5): recovery complete
<6>EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: noauto_da_alloc
<6>EXT4-fs (mmcblk0p6): recovery complete
<6>EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
<3>init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
<6>warning: `rild' uses 32-bit capabilities (legacy support in use)
<6>alarm_set_rtc: no RTC, time will be lost on reboot
<7>DMFC high resolution has set, will not change
<6>pmem: request for physical address of pmem region from process 2220.
<6>request_suspend_state: on (3->0) at 23260007251 (1970-01-02 00:00:06.199106374 UTC)
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x40a86054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x40a86054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x41064054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x41101054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x41153054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x411f0054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x4123b054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x413d8054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x4115d054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x411fa054
<7>DVFS is started
<7>del_all_devices_contexts: Destroyed context 1 on device id = 1
<6>Not all allocated memory blocks were freed. Doing it now.
<6>Freeing list entry #0, gpuaddr=86364000
<6>Freeing list entry #2, gpuaddr=86375000
<6>Freeing list entry #3, gpuaddr=863a7000
<6>Freeing list entry #6, gpuaddr=863a8000
<6>Freeing list entry #7, gpuaddr=863c8000
<6>Freeing list entry #29, gpuaddr=865d8000
<6>Freeing list entry #186, gpuaddr=86365000
<6>Freeing list entry #188, gpuaddr=863b8000
<6>mxc_v4l_close: release resource

Regards,

Swamy

0 项奖励
回复

3,971 次查看
Swamy
Contributor III

Hi Daiane,

           As you suggested we tried testing TV-in on Linux and it works fine,we can see the video playing on VGA screen.

But on android it gives error. May be because we are not loading the modules using modprobe.But we have selected the adv7180 driver (*) so that the modules are loaded while booting.

            Is there anything else we need to select in the kernel menuconfig packages to load all the required modules i.e. ipu_prp_enc.ko,ipu_prp_vf_sdc.ko,ipu_prp_vf_sdc_bg.ko.....

             Ive pasted the error and the dmesg below..

                               

# ./mxc_v4l2_tvin.out -ow 1024 -oh 768 -ol 10 -ot 20 -f YU12
TV decoder chip is adv7180_decodmxc_v4l_close: release resource
er
VIDIOC_REQBUFS failed
Setup v4l capture failed.
# dmesg
68 (order: 5, 131072 bytes)
<6>allocated 7864320 bytes of page_cgroup
<6>please try 'cgroup_disable=memory' option if you don't want memory cgroups
<6>Memory: 352MB 512MB = 864MB total
<5>Memory: 859592k/859592k available, 25144k reserved, 524288K highmem
<5>Virtual kernel memory layout:
<5> vector : 0xffff0000 - 0xffff1000 ( 4 kB)
<5> fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
<5> DMA : 0xfde00000 - 0xffe00000 ( 32 MB)
<5> vmalloc : 0xd6800000 - 0xf4000000 ( 472 MB)
<5> lowmem : 0xc0000000 - 0xd6000000 ( 352 MB)
<5> pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
<5> modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
<5> .init : 0xc0008000 - 0xc0039000 ( 196 kB)
<5> .text : 0xc0039000 - 0xc0895000 (8560 kB)
<5> .data : 0xc08b6000 - 0xc0915c60 ( 384 kB)
<6>SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
<6>Hierarchical RCU implementation.
<6> RCU-based detection of stalled CPUs is disabled.
<6> Verbose stalled-CPUs detection is disabled.
<6>NR_IRQS:368
<6>MXC GPIO hardware
<6>MXC IRQ initialized
<6>MXC_Early serial console at MMIO 0x53fbc000 (options '115200')
<6>bootconsole [ttymxc0] enabled
<4>Console: colour dummy device 80x30
<6>Calibrating delay loop... 799.53 BogoMIPS (lpj=3997696)
<6>pid_max: default: 32768 minimum: 301
<6>Security Framework initialized
<4>Mount-cache hash table entries: 512
<6>Initializing cgroup subsys debug
<6>Initializing cgroup subsys ns
<6>Initializing cgroup subsys cpuacct
<6>Initializing cgroup subsys memory
<6>Initializing cgroup subsys devices
<6>Initializing cgroup subsys freezer
<6>Initializing cgroup subsys blkio
<6>CPU: Testing write buffer coherency: ok
<6>regulator: core version 0.5
<6>NET: Registered protocol family 16
<6>i.MX IRAM pool: 128 KB@0xd6840000
<6>IRAM READY
<6>CPU is i.MX53 Revision 2.1
<6>MX53 ARD board
<6>Using SDMA I.API
<6>MXC DMA API initialized
<6>IMX usb wakeup probe
<7>the wakeup pdata is 0xc08c34f0
<6>IMX usb wakeup probe
<7>the wakeup pdata is 0xc08c35a4
<6>IMX usb wakeup probe
<7>the wakeup pdata is 0xc08c3658
<4>bio: create slab <bio-0> at 0
<5>SCSI subsystem initialized
<6>CSPI: mxc_spi-0 probed
<6>Freescale USB OTG Driver loaded, $Revision: 1.55 $
<6>usbcore: registered new interface driver usbfs
<6>usbcore: registered new interface driver hub
<6>usbcore: registered new device driver usb
<6>Initializing regulators for ARD
<6>ltc3589 1-0034: Loaded
<6>IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
<7>PMIC Light driver loading...
<6>Advanced Linux Sound Architecture Driver Version 1.0.23.
<6>Bluetooth: Core ver 2.15
<6>NET: Registered protocol family 31
<6>Bluetooth: HCI device and connection manager initialized
<6>Bluetooth: HCI socket layer initialized
<6>regulator: SW1: 564 <--> 1167 mV at 1050 mV
<6>regulator: SW2: 704 <--> 1456 mV at 1311 mV
<6>regulator: SW3: 1342 <--> 2775 mV at 2497 mV
<6>regulator: SW4:
<3>LDO1 is always enabled
<6>regulator: LDO1_STBY:
<6>regulator: LDO2: 704 <--> 1456 mV at 1311 mV normal
<6>regulator: LDO3:
<6>regulator: LDO4: 1800 <--> 3300 mV at 1800 mV normal
<6>Switching to clocksource mxc_timer1
<6>NET: Registered protocol family 2
<6>IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
<6>TCP established hash table entries: 65536 (order: 7, 524288 bytes)
<6>TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
<6>TCP: Hash tables configured (established 65536 bind 65536)
<6>TCP reno registered
<6>UDP hash table entries: 256 (order: 0, 4096 bytes)
<6>UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
<6>NET: Registered protocol family 1
<6>RPC: Registered udp transport module.
<6>RPC: Registered tcp transport module.
<6>RPC: Registered tcp NFSv4.1 backchannel transport module.
<6>Unpacking initramfs...
<6>Freeing initrd memory: 176K
<6>LPMode driver module loaded
<6>Static Power Management for Freescale i.MX5
<6>PM driver module loaded
<6>sdram autogating driver module loaded
<6>Bus freq driver module loaded
<6>DI1 is primary
<6>mxc_dvfs_core_probe
<6>DVFS driver module loaded
<6>i.MXC CPU frequency driver
<6>DVFS PER driver module loaded
<4>highmem bounce pool size: 64 pages
<6>ashmem: initialized
<6>msgmni has been set to 655
<6>alg: No test for stdrng (krng)
<6>cryptodev: driver loaded.
<6>io scheduler noop registered
<6>io scheduler deadline registered
<6>io scheduler cfq registered (default)
<3>regulator: get() with no identifier
<3>regulator: get() with no identifier
<3>mxc_ipu mxc_ipu: Channel already disabled 9
<3>mxc_ipu mxc_ipu: Channel already uninitialized 9
<6>IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5), 5F(6,7)
<4>mxc_ldb mxc_ldb: default di0 single mode
<3>mxc_ipu mxc_ipu: Channel already disabled 7
<3>mxc_ipu mxc_ipu: Channel already uninitialized 7
<3>mxc_ipu mxc_ipu: Channel already disabled 10
<3>mxc_ipu mxc_ipu: Channel already uninitialized 10
<6>Serial: MXC Internal UART driver
<6>mxcintuart.0: ttymxc0 at MMIO 0x53fbc000 (irq = 31) is a Freescale i.MX
<6>console [ttymxc0] enabled, bootconsole disabled
<6>mxcintuart.1: ttymxc1 at MMIO 0x53fc0000 (irq = 32) is a Freescale i.MX
<6>mxcintuart.2: ttymxc2 at MMIO 0x5000c000 (irq = 33) is a Freescale i.MX
<6>mxcintuart.3: ttymxc3 at MMIO 0x53ff0000 (irq = 13) is a Freescale i.MX
<6>mxcintuart.4: ttymxc4 at MMIO 0x63f90000 (irq = 86) is a Freescale i.MX
<6>loop: module loaded
<6>pmem_adsp: 0 init
<6>pmem_gpu: 1 init
<6>MXC MTD nand Driver 3.0
<4>No NAND device found.
<6>i.MX GPMI NFC
<6>vcan: Virtual CAN interface driver
<6>Freescale FlexCAN Driver
<6>FEC Ethernet Driver
<6>PPP generic driver version 2.4.2
<6>PPP Deflate Compression module registered
<6>PPP BSD Compression module registered
<6>PPP MPPE Compression module registered
<6>NET: Registered protocol family 24
<6>tun: Universal TUN/TAP device driver, 1.6
<6>tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
<6>smsc911x: Driver version 2008-10-21.
<6>ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<6>fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
<6>fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
<6>fsl-ehci fsl-ehci.0: irq 18, io base 0x53f80000
<6>fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
<6>hub 1-0:1.0: USB hub found
<6>hub 1-0:1.0: 1 port detected
<6>fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller
<6>fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2
<6>fsl-ehci fsl-ehci.1: irq 14, io base 0x53f80200
<6>fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00
<6>hub 2-0:1.0: USB hub found
<6>hub 2-0:1.0: 1 port detected
<6>usb 2-1: new high speed USB device using fsl-ehci and address 2
<6>fsl-ehci fsl-ehci.2: Freescale On-Chip EHCI Host Controller
<6>fsl-ehci fsl-ehci.2: new USB bus registered, assigned bus number 3
<6>fsl-ehci fsl-ehci.2: irq 16, io base 0x53f80400
<6>fsl-ehci fsl-ehci.2: USB 2.0 started, EHCI 1.00
<6>hub 3-0:1.0: USB hub found
<6>hub 3-0:1.0: 1 port detected
<6>usbcore: registered new interface driver cdc_acm
<6>cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
<6>Initializing USB Mass Storage driver...
<6>hub 2-1:1.0: USB hub found
<6>usbcore: registered new interface driver usb-storage
<6>USB Mass Storage support registered.
<6>hub 2-1:1.0: 4 ports detected
<6>usbcore: registered new interface driver usbserial
<6>usbserial: USB Serial Driver core
<6>USB Serial support registered for GSM modem (1-port)
<6>usbcore: registered new interface driver option
<6>option: v0.7.2:USB Driver for GSM modems
<6>ARC USBOTG Device Controller driver (1 August 2005)
<6>Android usb driver initialize
<6>android_usb gadget: android_usb ready
<7>Suspend udc for OTG auto detect
<7>USB Host suspend begins
<7>will suspend roothub and its children
<7>ehci_fsl_bus_suspend, DR
<7>host suspend ends
<6>usb wakeup is here
<7>the otgsc is 0x1200d21, usbsts is 0x1088, portsc is 0x1c501000, wakeup_irq is 0x80000000
<6>otg udc vbus falling wakeup
<7>USB Gadget resume begins
<7>dr_controller_run: udc enter low power mode
<7>USB Gadget resume ends
<6>fsl-usb2-udc: bind to driver android_usb
<6>android gadget: register function adb
<6>android gadget: register function usb_mass_storage
<6>android gadget: register function rndis
<6>rndis_function_bind_config MAC: 00:00:00:00:00:00
<4>android_usb gadget: using random self ethernet address
<4>android_usb gadget: using random host ethernet address
<6>usb0: MAC 6e:de:18:94:8e:e3
<6>usb0: HOST MAC 7e:af:91:4f:e8:ef
<6>android_usb gadget: usb_mass_storage, version: 2009/09/11
<6>android_usb gadget: Number of LUNs=3
<6> lun0: LUN: removable file: (no medium)
<6> lun1: LUN: removable file: (no medium)
<6> lun2: LUN: removable file: (no medium)
<6>f_accessory init
<6>android gadget: register function accessory
<4>mice: could not register psaux device, error: -16
<6>mice: PS/2 mouse device common for all mice
<6>MXC keypad loaded
<3>egalax_ts 1-0004: egalax_ts: failed to read firmware version
<4>egalax_ts: probe of 1-0004 failed with error -5
<6>usbcore: registered new interface driver usbtouchscreen
<3>p1003_fwv33 1-0041: couldn't read panel infomation.
<4>p1003_fwv33: probe of 1-0041 failed with error -5
<3>p1003_fwv33 2-0041: couldn't read panel infomation.
<4>p1003_fwv33: probe of 2-0041 failed with error -5
<6>i2c /dev entries driver
<6>IR NEC protocol handler initialized
<6>IR RC5(x) protocol handler initialized
<6>IR RC6 protocol handler initialized
<6>IR JVC protocol handler initialized
<6>IR Sony protocol handler initialized
<6>Linux video capture interface: v2.00
<6>usb 3-1: new full speed USB device using fsl-ehci and address 2
<6>mxc_v4l2_output mxc_v4l2_output.0: Registered device video1
<6>usbcore: registered new interface driver uvcvideo
<6>USB Video Class driver (v0.1.0)
<6>APM Battery Driver
<6>MXC WatchDog Driver 2.0
<6>MXC Watchdog # 0 Timer: initial timeout 60 sec
<6>device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
<6>Bluetooth: Virtual HCI driver ver 1.3
<6>Bluetooth: HCI UART driver ver 2.2
<6>Bluetooth: HCIATH3K protocol initialized
<6>Bluetooth: Generic Bluetooth USB driver ver 0.6
<6>usbcore: registered new interface driver btusb
<6>VPU initialized
<6>mxc_asrc registered
<6>gpu mmu disabled
<6>mxsdhci: MXC Secure Digital Host Controller Interface driver
<6>mxsdhci: MXC SDHCI Controller Driver.
<6>mmc0: SDHCI detect irq 129 irq 1 INTERNAL DMA
<6>mxsdhci: MXC SDHCI Controller Driver.
<6>mmc1: SDHCI detect irq 132 irq 2 INTERNAL DMA
<6>usbcore: registered new interface driver usbhid
<6>usbhid: USB HID core driver
<7>USB Gadget resume begins
<6>logger: created 64K log 'log_main'
<6>logger: created 256K log 'log_events'
<6>logger: created 64K log 'log_radio'
<6>logger: created 64K log 'log_system'
<6>Cirrus Logic CS42888 ALSA SoC Codec Driver
<3>regulator: get() with no identifier
<6>cs42888 1-0048: found device at i2c address 48
<6>cs42888 1-0048: hardware revision 4
<6>mxc_spdif mxc_spdif.0: MXC SPDIF Audio Transmitter
<4>No device for codec mxc spdif
<4>No device for DAI mxc spdif
<4>No device for DAI imx-esai-tx
<4>No device for DAI imx-esai-rx
<4>No device for DAI imx-esai-txrx
<4>No device for DAI imx-spdif-dai
<6>DMA Sound Buffer Allocated: Playback UseIram=1 ext_ram=1 buf->addr=85260000 buf->area=ff07d000 size=24576
<6>DMA Sound Buffer Allocated: Capture UseIram=1 ext_ram=1 buf->addr=85268000 buf->area=ff083000 size=24576
<6>asoc: CS42888 <-> imx-esai-txrx mapping ok
<6>usb 2-1.2: new high speed USB device using fsl-ehci and address 3
<6>DMA Sound Buffer Allocated: Capture UseIram=1 ext_ram=1 buf->addr=85270000 buf->area=ff089000 size=24576
<6>asoc: mxc spdif <-> imx-spdif-dai mapping ok
<6>ALSA device list:
<6> #0: imx-3stack (CS42888)
<6> #1: imx-3stack-spdif (mxc spdif)
<6>nf_conntrack version 0.5.0 (13433 buckets, 53732 max)
<6>IPv4 over IPv4 tunneling driver
<6>mmc0: new high speed SDHC card at address b368
<6>GRE over IPv4 tunneling driver
<6>ip_tables: (C) 2000-2006 Netfilter Core Team
<6>TCP cubic registered
<6>mmcblk0: mmc0:b368 00000 7.51 GiB
<6> mmcblk0: p1 p2 p3 <
<6>NET: Registered protocol family 10
<4> p5
<6>IPv6 over IPv4 tunneling driver
<4> p6 > p4
<6>NET: Registered protocol family 17
<6>NET: Registered protocol family 15
<6>can: controller area network core (rev 20090105 abi 8)
<6>NET: Registered protocol family 29
<6>can: raw protocol (rev 20090105)
<6>can: broadcast manager protocol (rev 20090105 t)
<6>Bluetooth: L2CAP ver 2.14
<6>Bluetooth: L2CAP socket layer initialized
<6>Bluetooth: SCO (Voice Link) ver 0.6
<6>Bluetooth: SCO socket layer initialized
<6>Bluetooth: RFCOMM TTY layer initialized
<6>Bluetooth: RFCOMM socket layer initialized
<6>Bluetooth: RFCOMM ver 1.11
<6>Bluetooth: BNEP (Ethernet Emulation) ver 1.3
<6>Bluetooth: BNEP filters: protocol multicast
<6>Bluetooth: HIDP (Human Interface Emulation) ver 1.2
<6>L2TP core driver, V2.0
<6>PPPoL2TP kernel driver, V2.0
<6>scsi0 : usb-storage 2-1.2:1.0
<6>VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2
<3>drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
<6>Freeing init memory: 196K
<3>init: /init.freescale.rc: 29: invalid command 'user'
<6>usb 2-1.4: new low speed USB device using fsl-ehci and address 4
<4>mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
<4>mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
<4>mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
<4>mmc1: queuing unknown CIS tuple 0x14 (0 bytes)
<4>mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
<4>mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
<4>mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
<6>mmc1: new high speed SDIO card at address 0001
<6>input: USB Optical Mouse as /devices/platform/fsl-ehci.1/usb2/2-1/2-1.4/2-1.4:1.0/input/input0
<6>generic-usb 0003:15CA:00C3.0001: input: USB HID v1.10 Mouse [USB Optical Mouse] on usb-fsl-ehci.1-1.4/input0
<3>init: cannot open '/initlogo.rle'
<5>scsi 0:0:0:0: Direct-Access JetFlash Transcend 4GB 8.07 PQ: 0 ANSI: 2
<5>sd 0:0:0:0: [sda] 7839744 512-byte logical blocks: (4.01 GB/3.73 GiB)
<5>sd 0:0:0:0: [sda] Write Protect is off
<7>sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
<3>sd 0:0:0:0: [sda] Assuming drive cache: write through
<3>sd 0:0:0:0: [sda] Assuming drive cache: write through
<6> sda: sda1
<3>sd 0:0:0:0: [sda] Assuming drive cache: write through
<5>sd 0:0:0:0: [sda] Attached SCSI removable disk
<6>EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
<6>EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
<6>EXT4-fs (mmcblk0p5): recovery complete
<6>EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: noauto_da_alloc
<6>EXT4-fs (mmcblk0p6): recovery complete
<6>EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
<3>init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
<6>warning: `rild' uses 32-bit capabilities (legacy support in use)
<6>alarm_set_rtc: no RTC, time will be lost on reboot
<7>DMFC high resolution has set, will not change
<6>pmem: request for physical address of pmem region from process 2220.
<6>request_suspend_state: on (3->0) at 23260007251 (1970-01-02 00:00:06.199106374 UTC)
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x40a86054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x40a86054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x41064054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x41101054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x41153054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x411f0054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x4123b054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x413d8054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x4115d054
<1>Unhandled fault: external abort on non-linefetch (0x1018) at 0x411fa054
<7>DVFS is started
<7>del_all_devices_contexts: Destroyed context 1 on device id = 1
<6>Not all allocated memory blocks were freed. Doing it now.
<6>Freeing list entry #0, gpuaddr=86364000
<6>Freeing list entry #2, gpuaddr=86375000
<6>Freeing list entry #3, gpuaddr=863a7000
<6>Freeing list entry #6, gpuaddr=863a8000
<6>Freeing list entry #7, gpuaddr=863c8000
<6>Freeing list entry #29, gpuaddr=865d8000
<6>Freeing list entry #186, gpuaddr=86365000
<6>Freeing list entry #188, gpuaddr=863b8000
<6>mxc_v4l_close: release resource

Regards,

Swamy

0 项奖励
回复

3,971 次查看
daiane_angolini
NXP Employee
NXP Employee

I don´t know.

Maybe it´s time to start the debug.

Please, share dmesg.



Swamy said:

Hi Daiane,

We tried connecting(to J42) different digital camera with video mode ON and also connected DVD player, we are getting following error for both.

bash-3.2# ./mxc_v4l2_tvin.out -ow 1024 -oh 768 -ol 10 -ot 20 -f YU12
TV decoder chip is adv7180_decodmxc_v4l_close: release resource
er
VIDIOC_REQBUFS failed
Setup v4l capture failed.

In driver we have enabled (*) Device Drivers > Multimedia device > Video Capture Adapters > MXC Camera/V4L2 PRP Features, and now my .config file is updated with "CONFIG_MXC_TVIN_ADV7180=y"

Is there anything we need to further enable? and any arguments we are missing in the command

# ./mxc_v4l2_tvin.out -ow 1024 -oh 768 -ol 10 -ot 20 -f YU12

Regards,

Swamy

0 项奖励
回复

3,971 次查看
charleschang
Contributor III

copy mxc_v4l2_tvin.c to android framework folder, 

write an Androidk.mk for it:

LOCAL_PATH:= $(call my-dir)


include $(CLEAR_VARS)


include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE := mxc_v4l2_tvin
LOCAL_SRC_FILES := mxc_v4l2_tvin.c
LOCAL_SHARED_LIBRIES := libc
include $(BUILD_EXECUTABLE)

then run mm command, it will be build and place on the out folder.

0 项奖励
回复

3,972 次查看
Swamy
Contributor III

Hi Daiane,

We tried connecting(to J42) different digital camera with video mode ON and also connected DVD player, we are getting following error for both.

bash-3.2# ./mxc_v4l2_tvin.out -ow 1024 -oh 768 -ol 10 -ot 20 -f YU12
TV decoder chip is adv7180_decodmxc_v4l_close: release resource
er
VIDIOC_REQBUFS failed
Setup v4l capture failed.

In driver we have enabled (*) Device Drivers > Multimedia device > Video Capture Adapters > MXC Camera/V4L2 PRP Features, and now my .config file is updated with "CONFIG_MXC_TVIN_ADV7180=y"

Is there anything we need to further enable? and any arguments we are missing in the command

# ./mxc_v4l2_tvin.out -ow 1024 -oh 768 -ol 10 -ot 20 -f YU12

Regards,

Swamy

0 项奖励
回复

3,973 次查看
daiane_angolini
NXP Employee
NXP Employee

unrecognized std should be that you´re trying to decode a unrecognized standard.

Do you have any other capture device?

0 项奖励
回复

3,973 次查看
Swamy
Contributor III

Hi All,

We are able to build the file now...but we are getting following error when we run the binary file...can you please suggest.


bash-3.2# ./tvin -ow 1024 -oh 768 -ol 10 -ot 20 -f YU12
TV decoder chip is adv7180_decodERROR: unrecognized std! ffffff (PAL=ff, NTSC=b000
er
VIDIOC_REQBUFS failedmxc_v4l_close: release resource

Setup v4l capture failed.
bash-3.2# ./tvin -ow 1024 -oh 768 -ol 10 -ot 20 -f YU12

Regards,

Swamy

0 项奖励
回复

3,972 次查看
sanjeevsharma
Contributor IV

Does anybody knows in Which Scenario this issue appears "ERROR: unrecognized std! ffffff (PAL=ff, NTSC=b000"

Here is the Code snippet of adv7180 driver where some time adv7180_read() doesn't return valid standard and it goes into else {Highlighted Bold }.In my case this issue appears intermittently and don't know why ?however need to know reason of failing.

/* Read the AD_RESULT to get the detect output video standard */
tmp = adv7180_read(ADV7180_STATUS_1) & 0x70;

mutex_lock(&mutex);
if (tmp == 0x40)

{ /* PAL */ *std = V4L2_STD_PAL; idx = ADV7180_PAL; }

else if (tmp == 0)

{ /*NTSC*/ *std = V4L2_STD_NTSC; idx = ADV7180_NTSC; }

else {
*std = V4L2_STD_ALL;
idx = ADV7180_NOT_LOCKED;
dev_dbg(&adv7180_data.sen.i2c_client->dev,
"Got invalid video standard!\n");

Does anybody have any pointer or clue ? is this specific to hardware.Any pointer would be appreciated.

0 项奖励
回复

3,973 次查看
Swamy
Contributor III

Hi Charles,

I copied directly the test file and ran on the android, it gives me permission denied error, the persmission to the file also set to read+write+executable. Still it throws that error.

Also,

We were able to cross compile the imx-test-11.05.01.tar.gz test package and generate the mxc_v4l2_tvin.out binary which is an ARM executable,but when we try to run it on the ARD board we get Permission Denied error.

#./mxc_v4l2_tvin.out -ow 1024 -oh 768 -ol 10 -ot 20 -f YU12

./mxc_v4l2_tvin.out: permission denied

Can you please tell us whether the problem is with the binary or how to give permissions so that we  can run it on the ARD board.

The errors occurred while Cross compiling...

                                sudo make PLATFORM=arm  LINUXPATH=/home/android/Desktop/Android/i.MX53-QSB-Android-Gingerbread-Release4.2/src/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/  KBUILD_OUTPUT=/home/android/Desktop/tvin/kbuildout/  CROSS_COMPILE=/home/android/Desktop/Android/i.MX53-QSB-Android-Gingerbread-Release4.2/src/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-

                1.  /home/android/Desktop/Android/i.MX53-QSB-Android-Gingerbread-Release4.2/src/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-ld : could not find crt0.o

                                Solved by renaming crtn.o in the below path to crt0.o

                                /home/android/Desktop/Android/i.MX53-QSB-Android-Gingerbread-Release4.2/src/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/lib/gcc/arm-eabi/4.4.3/crt0.o

                2. .  /home/android/Desktop/Android/i.MX53-QSB-Android-Gingerbread-Release4.2/src/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-ld : could not find -lg

                                Solved by copying libg.a from /usr/lib/ to

                                /home/android/Desktop/Android/i.MX53-QSB-Android-Gingerbread-Release4.2/src/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/lib/gcc/arm-eabi/4.4.3/libg.a

 

Regards,

Swamy

0 项奖励
回复

3,973 次查看
Swamy
Contributor III

Hi Charles,

Could you please tell me how to use this test package in android environment?

We are trying to cross compile the test package and we are getting too many errors on include paths not able to find headers...

sudo make PLATFORM=arm LINUXPATH=/home/android/myandroid/kernel_imx/include KBUILD_OUTPUT=/home/android/Desktop CROSS_COMPILE=/home/android/myandroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-

Please tell us where exactly I am doing wrong?

Also please tell me where exactly we need to modify the fb dev path?

Regards,

Swamy

0 项奖励
回复

3,972 次查看
charleschang
Contributor III

right, it's in the test package, 

and modify the fb dev path, the test program can be run on android.

0 项奖励
回复

3,973 次查看
daiane_angolini
NXP Employee
NXP Employee

sorry, my mistake

the package name for unit_test is not unit_test =P

It´s imx-test-X.X.tar.gz

X.X is the release number

0 项奖励
回复

3,973 次查看
Swamy
Contributor III

Hi Angolini,

I downloaded 11.05 BSP and I checked /opt/freescale/pkgs....I could not locate the unit test source code there.

Regards,

Swamy

0 项奖励
回复

3,973 次查看
Swamy
Contributor III

Thanks Angolini I will check it.

0 项奖励
回复

3,973 次查看
daiane_angolini
NXP Employee
NXP Employee

Hi Swamy

Maybe, would be better you start to work with this device using a linux only enviroment.

You can download LTIB from link I sent you, install and load it. Once you have seen this TVin working you would have better knowledge to create your onw source code to test it on android enviroment.

For build in a module, when you configure kernel to use it, instead of pressing space once, press it twice. Instead of "M" (that means build as module) you will see "*", that means built in.

0 项奖励
回复

3,973 次查看
Swamy
Contributor III

Hi Angolini,

Is it possible to share me the unit_test source code or any place where I can get it?

Regards

Swamy

Daiane Angolini said:

I have tested it only using unit_test. 

But I think you can refer the unit_test source code, and create a simple app in order to test it.

Otherwise, if you can only test, it would be better take a pre-built linux image and test it. After that you can start your app.

0 项奖励
回复

3,973 次查看
Swamy
Contributor III

Hi Charles,

Thanks for the response.

Currently I have enabled the driver using the menuconfig, Device Drivers > Multimedia device > Video Capture Adapters > MXC Camera/V4L2 PRP Features, and now my .config file is updated with "CONFIG_MXC_TVIN_ADV7180=y"

I am using the Android 2.3.4 on ARD. I do not have this unit test package. Please tell me how to get this and test?

Regards,

Swmay

0 项奖励
回复

3,973 次查看
charleschang
Contributor III

configure the module as 'build-in', then you will not need to insmod.

then run the unit-test program : mxc_v4l2_tvin.

0 项奖励
回复

3,973 次查看
Swamy
Contributor III

I have insmod working. Please tell me how to enable the driver and check for the tv-in

0 项奖励
回复

3,973 次查看
daiane_angolini
NXP Employee
NXP Employee

you can configure kernel to build in the module, so you will not need insmod or modprobe

but I have no idea if there is any other program to be used instead of insmod and modprobe.

0 项奖励
回复