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.

Flashing entire Filesystem at once on to DVEVM 6446

I have a DVEVM 6446. How can I flash the entire file system  to the board?. Is there any softwares or emulators available for doing this task? . Please help me regarding this

  • Hi Vishnu,

    Normally, the filesystem is mounted via NFS on DM6446.

    Do you mean anything else when you say " FLASH ENTIRE FILE SYSTEM TO THE BOARD"?

    Regards,

    Sid

  • Hi Sid

    Thanks for the reply. I want to flash a sample application devolped by me. I have written an application  to display an image on the LCD display associated with the board. Now I want to flash that on to the Board . How can  I do that?. Can you please help me on that

  • Hi Vishnu,

    What are you using?

    Linux or Code Composer Studio?

    If using CCS, then you need an emulator.

    If using Linux, then you use NFS to mount the uboot, linux kernel and filesystem on DM6446 ,once mounted successfully, you will get a prompt and you can run the program on it. For this you need to give your program path on the prompt.

    Regards,

    Sid

  • Hi Sid

    I have mounted the application on the NFS and I had run it . In between I m using OpenSuse Linux 11.2. But I want to flash this application on the TI board memory rather than keeping it on the NFS . How can I do that ? Can you give me some idea on that ?

  • Hi Sid

    If you consider the standalone demo,even without connecting the TI board to the PC ,the stand alone demo will work . Like that I need to make my application work on the Ti board , this is my real intention. I m new to this field . Please help me on that. Is there any particular document regarding this.?

    I m not using Code Composer Studio.

  • Hi Vishnu,

    If you want to flash the application on TI board memory, then you need to program the FLASH with the application code and bootloader. The processor will then boot from flash and load the contents of the flash in its internal RAM (depending on the size of your application) and run your application.  TI has Flash programmer applications like SLH_DM646x.exe and SFH_DM646x.exe which are Serial Flash loading utilities. You will have to dig around for the corresponding commands to program your on-board flash with your application code.

    Regards,

    Sid

     

  • Hi Sid

    Thanks for the reply

    But when  I m doing like will it erase the current standalone demo from the TI board flash. Is there anyway to reset if it happens like that?. 

  • Hi Vishnu,

    Yes, the current standalone demo will be erased.

    I dont remember exactly, but here are 2 Flash memories on DM6446 EVM with the corresponding flash memory selectable using Boot Options switch. These are the NOR Flash and NAND flash. Check the FLASH which contains the current standalone demo. Maybe you can use other Flash to run your code on startup.

    Or there might exist the corresponding Flash file of the standalone demo in the SDK examples/demo codes. You can reprogram the Flash with it and restore the board to its default status.

    Regards,

    Sid

  • Hi Sid Thanks a lot.......
  • hi sid

             by looking the previous mails i think you can solve my problem what i am facing .  actually i am using DM6446EVM board while runing the board without ethernet cable i am not able to run the demo and i get the following messages wile i am booting the board.so, please refer this and give reply

     

    
    U-Boot 1.1.3 (Dec  4 2006 - 12:05:38)
    
    U-Boot code: 81080000 -> 81097628  BSS: -> 810A0018
    RAM Configuration:
    Bank #0: 80000000 256 MB
    Flash: 16 MB
    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock :- 297MHz
    DDR Clock :- 162MHz
    Hit any key to stop autoboot:  3  2  0 
    DaVinci EVM # tftp 0x80700000 uImage
    
    TFTP from server 10.0.0.2; our IP address is 10.0.0.1
    Filename 'uImage'.
    Load address: 0x80700000
    Loading: *#################################################################
    	 #################################################################
    	 #################################################################
    	 #################################################################
    	 ###########################################
    done
    Bytes transferred = 1551032 (17aab8 hex)
    DaVinci EVM # boot
    
    ## Booting image at 80700000 ...
       Image Name:   Linux-2.6.18_pro500-davinci_evm-
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    1550968 Bytes =  1.5 MB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
    OK
    
    Starting kernel ...
    
    Uncompressing Linux........................................................................................................ done, booting the kernel.
    Linux version 2.6.18_pro500-davinci_evm-arm_v5t_le (root@localhost.localdomain) (gcc version 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 PREEMPT Tue Apr 27 12:04:22 IST 2010
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    Machine: DaVinci EVM
    Memory policy: ECC disabled, Data cache writeback
    DaVinci DM6443 variant 0x0
    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
    Built 1 zonelists.  Total pages: 30208
    Kernel command line: video=davincifb:vid0=0,2500K:vid1=0,2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=ntsc console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/hda1 mem=118M
    PID hash table entries: 512 (order: 9, 2048 bytes)
    Clock event device timer0_0 configured with caps set: 03
    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: 118MB = 118MB total
    Memory: 116224KB available (2653K code, 527K data, 152K init)
    Security Framework v1.0.0 initialized
    Capability LSM initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    DaVinci: 71 gpio irqs
    WARNING: both IDE and NOR flash are enabled, but share pins.
    	Disable IDE for NOR support.
    ch0 default output "COMPOSITE", mode "NTSC"
    MUX: initialized LOEEN
    MUX: initialized LFLDEN
    VPBE Encoder Initialized
    LogicPD encoder initialized
    SCSI subsystem initialized
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    davinci_spi_board_init: NO spi support
    VFS: Disk quotas dquot_6.5.1
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    squashfs: version 3.1 (2006/08/19) Phillip Lougher
    JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
    yaffs Apr 27 2010 12:01:49 Installing. 
    SGI XFS with no debug enabled
    Initializing Cryptographic API
    io scheduler noop registered
    io scheduler anticipatory registered (default)
    LTT : ltt-facilities init
    LTT : ltt-facility-core init in kernel
    davincifb davincifb: dm_osd0_fb: Initial window configuration is invalid.
    davincifb davincifb: dm_osd0_fb: 720x576x16@0,0 with framebuffer size 2025KB
    davincifb davincifb: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 2500KB
    davincifb davincifb: dm_osd1_fb: 720x480x4@0,0 with framebuffer size 675KB
    davincifb davincifb: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 2500KB
    davincifb davincifb.0: dm_osd0_fb: Failed to obtain ownership of OSD window.
    DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec
    Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfec20000 (irq = 40) is a 16550A
    RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
    Linux video capture interface: v2.00
    vpfe vpfe.1: DaVinci v4l2 capture driver V1.0 loaded
    Trying to register davinci display video device.
    layer=c0ddde00,layer->video_dev=c0dddf60
    Trying to register davinci display video device.
    layer=c0dddc00,layer->video_dev=c0dddd60
    davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
    
     Davici AEW Driver cannot be loaded
     VIDEO PORT is not enabledData Flow path from CCDC is disabled
    
     Davinci AF driver cannot be loaded
     VIDEO PORT is not enabled 
     CCDC needs to be configured<6>i2c /dev entries driver
    Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
    ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
    MUX: initialized HDIREN
    MUX: initialized ATAEN
        ide0: MMIO-DMA , BIOS settings: hda:pio, hdb:pio
    hda: TOSHIBA MK4032GAX, ATA DISK drive
    ide0 at 0xfec661f0-0xfec661f7,0xfec663f6 on irq 22
    hda: max request size: 512KiB
    hda: 78140160 sectors (40007 MB), CHS=16383/255/63, UDMA(66)
    hda: cache flushes supported
     hda: hda1 hda2
    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.6:USB HID core driver
    musb_hdrc: version 6.0, cppi-dma, host, debug=0
    musb_hdrc musb_hdrc: No DMA interrupt line
    musb_hdrc: USB Host mode controller at c785e000 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
    mice: PS/2 mouse device common for all mice
    rtc_davinci_evm rtc_davinci_evm: rtc intf: proc
    rtc_davinci_evm rtc_davinci_evm: rtc intf: dev (254:0)
    rtc_davinci_evm rtc_davinci_evm: rtc core: registered rtc_davinci_evm as rtc0
    rtc0: hours 12-23 are misreported as duplicate hours 00-11
    davinci-mmc davinci-mmc.0: Supporting 4-bit mode
    davinci-mmc davinci-mmc.0: Using DMA mode
    Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
    ASoC version 0.13.1
    MUX: initialized MCBSP
    AIC3X Audio Codec 0.1
    asoc: aic3x <-> davinci-i2s mapping ok
    ALSA device list:
      #0: DaVinci EVM (aic3x)
    Time: timer0_1 clocksource has been installed.
    Clock event device timer0_0 configured with caps set: 08
    Switched to high resolution mode on CPU 0
    rtc_davinci_evm rtc_davinci_evm: setting the system clock to 2004-02-01 12:01:58 (1075636918)
    kjournald starting.  Commit interval 5 seconds
    EXT3 FS on hda1, internal journal
    EXT3-fs: recovery complete.
    EXT3-fs: mounted filesystem with ordered data mode.
    VFS: Mounted root (ext3 filesystem).
    Freeing init memory: 152K
    
    INIT: version 2.86 booting
    
    * udev requires hotplug support, not started.
     failed!
    Activating swap...done. 
    Remounting root filesystem...done. 
    Calculating module dependencies
    Loading modules: 
    Checking all file systems: fsck
    fsck 1.40 (29-Jun-2007)
    Mounting local filesystems: mount nothing was mounted
    Setting up networking ....
    /etc/network/options is deprecated.
    Setting up IP spoofing protection: FAILED.
    Starting network interfaces: No usable address families found.
    socket: No such file or directory
    Failed to bring up lo.
    done.
    Kernel hotplug support not enabled.
    Starting portmap daemon....
    Cleaning: /tmp /var/lock /var/run done.
    Setting pseudo-terminal access permissions...done.
    Updating /etc/motd...done.
    
    INIT: Entering runlevel: 3
    
    Starting system log daemon: syslogd klogd.
    Starting NFS common utilities: statd.
    Starting internet superserver: inetd.
    Starting OpenBSD Secure Shell server: sshd. 
    CMEMK module: built on May 26 2009 at 09:30:32
      Reference Linux version 2.6.18
      File /db/atree/library/trees/linuxdemos/linuxdemos-d28x/imports/DEMO_common/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    ioremap_nocache(0x87600000, 10485760)=0xc8000000
    allocated heap buffer 0xc8000000 of size 0x2c000
    cmem initialized 5 pools between 0x87600000 and 0x88000000
    dsplinkk: no version for "struct_module" found: kernel tainted.
    DSPLINK Module (1.61.03) created on Date: May 26 2009 Time: 09:35:23
    Starting web server ...
     thttpd
    
    
    MontaVista(R) Linux(R) Professional Edition 5.0.0 (0801921)
    
    (none) login: root
    Last login: Sun Feb  1 12:31:40 2004 on console
    Linux (none) 2.6.18_pro500-davinci_evm-arm_v5t_le #1 PREEMPT Tue Apr 27 12:04:22 IST 2010 armv5tejl GNU/Linux
    
    Welcome to MontaVista(R) Linux(R) Professional Edition 5.0.0 (0801921).
    
    root@(none):~# ls
    root@(none):~# cd /
    root@(none):/# ls
    bin   dev  home  lost+found  mnt  proc	sbin  sys  usr
    boot  etc  lib	 media	     opt  root	srv   tmp  var
    root@(none):/# cd /opt/dvsdk/dm6446/
    root@(none):/opt/dvsdk/dm6446# ./loadmodules.sh 
    insmod: error inserting 'cmemk.ko': -1 File exists
    insmod: error inserting 'dsplinkk.ko': -1 File exists
    root@(none):/opt/dvsdk/dm6446# ./decode -v data/videos/davincieffect_ntsc.m2v 
    Decode demo started.
    Error: Failed to create attribute window device
    Error: Failed to create UI
    root@(none):/opt/dvsdk/dm6446# davinci_

     

     

    thanks & regards

    ramki