This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

About DM355

Dear everyone:

I am a new comer to davinci, a few days ago, I bought a DM355 EVM, I want to capture image from Cmos or PAL,and output the image to LCD or TV OUT. Now I don't know how to switch the input and output. From <DaVinci Linux CCDC Driver User's Guide.pdf>, I found we can switch input between SVideo and LCD by setting  device_type value in the bootargs, In default setting , runing DirectShow Demo , I can see that the  PAL  image is send to the TV monitor. So I changed the device_type value to 0, the input should be MT9T001, I can't connect any CMOS sensors, only the PAL Video ,  run Directshow demo, but the TV Moitor can see the input PAL video.that is, device_type  is not used to switch input.

else, How to switch output between LCD and TV OUT, from <DaVinci Linux Video Sysfs.pdf>,the" /sys/class/davinci_display/ch0/output" attribute define the display show, but I  can find the " /sys/class/davinci_display/ch0/output" in Linux.

How can I do, Please help me!

thanks

 

  • It was my understanding that device_type controlled the video input (I have used this before to connect DM355 EVM to Leopard Imaging sensor card) and davinci_enc_mngr.ch0_output to select video output mode.  If you continue to have issues, you can post your u-boot variables and perhaps a log of your boot and we can try to investigate further.

  • thanks Juan for replying me.

    SDK version is dvsdk_1_30_00_23,Following is the boot information:

    ***************************************************************

    UBL: detected valid U-Boot magic number
    UBL: booting to U-Boot


    U-Boot 1.2.0 (Jul 28 2009 - 18:26:13)

    DRAM:  128 MB
    NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,
    3V 8-bit)
    Bad block table found at page 262080, version 0x01
    Bad block table found at page 262016, version 0x01
    NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bi
    t)
    Bad block table found at page 262080, version 0x01
    Bad block table found at page 262016, version 0x01
    1024 MiB
    In:    serial
    Out:   serial
    Err:   serial
                    ***************************************************
                    *                                                 *
                    *        Thank you for using TechvDM355!          *
                    *  Please visit our website for more information  *
                    *           http://www.techshine.com              *
                    *                                                 *
                    ***************************************************
    ARM Clock :- 216MHz
    DDR Clock :- 171MHz
    Use 'videoswaddr' enviorment to set video switch
    Pin2 of SW3 is ON (pal)
    Pin1 of SW3 is OFF (nfs)
    Hit any key to stop autoboot:  0
    TECHVDM355 # print
    bootcmd=setenv bootargs $(bootargs) video=dm64xxfb:output=$(videostd) root=$(roo
    tfs) ip=$(ipaddr):$(serverip):$(netgate):$(netmask) eth=$(ethaddr) nfsroot=$(ser
    verip):$(nfsworkdir) ;nboot 0x80700000 0 0x400000; bootm 0x80700000
    bootdelay=3
    baudrate=115200
    bootfile="uImage"
    ipaddr=192.168.1.222
    videoswaddr=0x20
    ethaddr=192.168.1.88
    serverip=192.168.1.147
    nfsworkdir=/home/userfordm355/workdir/filesys
    bootargs=console=ttyS0,115200n8 noinitrd rw,nolock mem=116m davinci_capture.devi
    ce_type=2
    stdin=serial
    stdout=serial
    stderr=serial
    videostd=pal
    rootfs=/dev/nfs

    Environment size: 562/131068 bytes
    TECHVDM355 # boot

    Loading from NAND 512MiB 3,3V 8-bit, offset 0x400000
       Image Name:   Linux-2.6.10_mvl401
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1591384 Bytes =  1.5 MB
       Load Address: 80008000
       Entry Point:  80008000
    ## Booting image at 80700000 ...
       Image Name:   Linux-2.6.10_mvl401
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1591384 Bytes =  1.5 MB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
    OK

    Starting kernel ...

    Uncompressing Linux.............................................................
    Linux version 2.6.10_mvl401 (root@localhost.localdomain) (gcc version 3.4.3 (Mon
    taVista 3.4.3-25.0.104.0600975 2006-07-06)) #52 Mon Feb 23 17:27:15 CST 2009
    CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
    CPU0: D VIVT write-back cache
    CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
    CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
    Machine: DaVinci DM355 EVM
    Memory policy: ECC disabled, Data cache writeback
    DM0350
    Built 1 zonelists
    Kernel command line: console=ttyS0,115200n8 noinitrd rw,nolock mem=116m davinci_
    capture.device_type=2 video=dm64xxfb:output=pal root=/dev/nfs ip=192.168.1.222:1
    92.168.1.147:: eth=192.168.1.88 nfsroot=192.168.1.147:/home/userfordm355/workdir
    /filesys
    Unknown boot option `davinci_capture.device_type=2': ignoring
    PID hash table entries: 512 (order: 9, 8192 bytes)
    Console: colour dummy device 80x30
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 116MB = 116MB total
    Memory: 114048KB available (2774K code, 586K data, 168K init)
    Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
    CPU: Testing write buffer coherency: ok
    spawn_desched_task(00000000)
    desched cpu_callback 3/00000000
    ksoftirqd started up.
    desched cpu_callback 2/00000000
    desched thread 0 started up.
    NET: Registered protocol family 16
    Registering platform device 'serial8250.0'. Parent at platform
    Registering platform device 'nand_davinci.0'. Parent at platform
    Registering platform device 'dm9000.0'. Parent at platform
    Registering platform device 'mmc.0'. Parent at platform
    Registering platform device 'mmc.1'. Parent at platform
    DaVinci I2C DEBUG: 10:19:32 Feb 18 2009
    Registering platform device 'i2c'. Parent at platform
    SCSI subsystem initialized
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    musb_hdrc: version 2.2a/db-0.4.8 [pio] [host] [debug=0]
    Registering platform device 'musb_hdrc'. Parent at platform
    musb_hdrc: USB Host mode controller at c7800000 using PIO, IRQ 12
    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    arch/arm/mach-davinci/spi_platform_init.c:dm355_spi_board_init:123 dm355_spi_boa
    rd_init
    arch/arm/mach-davinci/spi_platform_init.c:dm355_spi_board_init:129 REG BOARD  re
    t 0
    Registering platform device 'dm_spi.0'. Parent at platform
    arch/arm/mach-davinci/spi_platform_init.c:dm355_spi_board_init:136 REGISTER DEVI
    CE ret 0
    NetWinder Floating Point Emulator V0.97 (double precision)
    devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
    devfs: boot_options: 0x1
    JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
    yaffs Feb 18 2009 10:44:42 Installing.
    Initializing Cryptographic API
    Registering platform device 'dm355fb.0'. Parent at platform

     video is setup ,videoput= 3/nConsole: switching to colour frame buffer device 9
    0x36
    watchdog: TI DaVinci Watchdog Timer: timer margin 64 sec
    Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
    Registering platform device 'serial8250'. Parent at platform
    ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
    ttyS1 at MMIO 0x1c20400 (irq = 41) is a 16550A
    ttyS2 at MMIO 0x1e06000 (irq = 14) is a 16550A
    io scheduler noop registered
    io scheduler anticipatory registered
    RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
    loop: loaded (max 8 devices)
    dm9000 Ethernet Driver
    Getting MAC from env var 'ethaddr'..
    eth%d: Invalid ethernet MAC address.  Please set using ifconfig
    eth0: dm9000 at c7862000,c7864002 IRQ 45 MAC: 00:00:00:00:00:00
    i2c /dev entries driver
    Linux video capture interface: v1.00
    Registering platform device 'vpfe.1'. Parent at platform
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: RAR detected
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: RAR detected
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: RAR detected
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: RAR detected
    DaVinci I2C WARNING: i2c: NACK detected
    DaVinci I2C WARNING: i2c: RAR detected
    vpfe vpfe.1: DaVinci v4l2 capture driver V1.0 loaded
    ipipe major#: 253, minor# 0
    Registering platform device 'dm355_ipipe.2'. Parent at platform
    ipipe driver registered
    af major#: 252, minor# 0
    Registering platform device 'dm355_af.2'. Parent at platform
    aew major#: 251, minor# 0
    Registering platform device 'dm355_aew.2'. Parent at platform
    elevator: using anticipatory as default io scheduler
    at25xxA_spi_eeprom init
    nand_davinci nand_davinci.0: Using 4-bit hardware ECC
    NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V 8-bi
    t)
    2 NAND chips detected
    nand_bbt: ECC error while reading bad block table
    nand_bbt: ECC error while reading bad block table
    Creating 5 MTD partitions on "nand_davinci.0":
    0x00000000-0x003c0000 : "bootloader"
    0x003c0000-0x00400000 : "params"
    0x00400000-0x00800000 : "kernel"
    0x00800000-0x20800000 : "filesystem1"
    0x20800000-0x40000000 : "filesystem2"
    nand_davinci nand_davinci.0: hardware revision: 2.3
    scan_boardinfo:<NULL>:-1067838484
     modias <NULL> irq 2000000 max_speed 65535 bus_num 0 chip_select 0 mode -1068851
    440
    drivers/spi/spi.cat25xxA_spi_eeprom device register Succeeded
    dm_spi.0: dm355 SPI Controller driver at 0xc7866000 (irq = 42)
    Initializing USB Mass Storage driver...
    usbcore: registered new driver usb-storage
    USB Mass Storage support registered.
    usbcore: registered new driver usbhid
    drivers/usb/input/hid-core.c: v2.0:USB HID core driver
    mice: PS/2 mouse device common for all mice
    mmc mmc.0: Supporting 4-bit mode
    mmc mmc.0: Using DMA mode
    mmc mmc.1: Supporting 4-bit mode
    mmc mmc.1: Using DMA mode
    Registering platform device 'davinci-audio.0'. Parent at platform
    NET: Registered protocol family 2
    IP: routing cache hash table of 512 buckets, 4Kbytes
    TCP: Hash tables configured (established 8192 bind 16384)
    Initializing XFRM netlink socket
    NET: Registered protocol family 1
    NET: Registered protocol family 10
    IPv6 over IPv4 tunneling driver
    NET: Registered protocol family 17
    eth0: link down
    IP-Config: Guessing netmask 255.255.255.0
    IP-Config: Complete:
          device=eth0, addr=192.168.1.222, mask=255.255.255.0, gw=255.255.255.255,
         host=192.168.1.222, domain=, nis-domain=(none),
         bootserver=192.168.1.147, rootserver=192.168.1.147, rootpath=
    Looking up port of RPC 100003/2 on 192.168.1.147
    Looking up port of RPC 100005/1 on 192.168.1.147
    eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
    VFS: Mounted root (nfs filesystem).
    Mounted devfs on /dev
    Freeing init memory: 168K
    INIT: version 2.85 booting
    Mounting a tmpfs over /dev...done.
    Creating initial device nodes...done.
    Activating swap...done.
    Remounting root filesystem...done.
    Calculating module dependencies
    Loading modules:
    Checking all file systems: fsck
    fsck 1.35 (28-Feb-2004)
    Mounting local filesystems: mount nothing was mounted
    Cleaning: /tmp /var/lock /var/run done.
    Setting up networking (ifupdown) ..
    Cleaning: /etc/network/run/ifstate done.
    Starting network interfaces: done.
    Starting portmap daemon: portmap.
    ioremap_nocache(0x87500000, 11534336)=0xc7880000
    allocated heap buffer 0xc7880000 of size 0x99000
    cmem initialized 8 pools between 0x87500000 and 0x88000000
    wdog: module license 'unspecified' taints kernel.

     Registering Wdog Device        --- >   [OK]
    INIT: Entering runlevel: 3
    Starting NFS common utilities: statd lockd.
    Starting internet superserver: inetd.
    Starting MontaVista target tools daemon: mvltdmvltd version 2.1 MontaVista Softw
    are,Inc.
    mvltd[1057]: can't send broadcast message: Network is unreachable
    mvltd[1057]: can't send broadcast message: Network is unreachable
    mvltd[1058]: started on port 34577
    .
    MontaVista(R) Linux(R) Professional Edition 4.0.1 (0600980)

    192.168.1.222 login:

     

     

  • I found the same problem which is asked by others, the thread is http://e2e.ti.com/forums/t/4340.aspx and http://e2e.ti.com/forums/t/164.aspx?PageIndex=1, I don't know if they have solved it. how can I do?