• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » DaVinci™ Video Processors » DM3x DaVinci Video Processor Forum » ./loadmodules.sh
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

./loadmodules.sh

./loadmodules.sh

  • beardybloke
    Posted by beardybloke
    on Oct 29 2008 04:50 AM
    Prodigy190 points

    After having alot of problems running loadmodules.sh while using Ubuntu as my linux program I have now restarted using Redhat fedora.

    A complete restart, loaded all latest software in accordance to the getting started manual.

    Completed the hello.c code which compiled correctly is ran from EVM.

    Now wanted to run demos.

    Running throught the minicom terminal window in "Redhat Fedora" the EVM boots fine using the PC as the NFS host.

    I have gone to the directory again still through the EVM terminal link.

    Gone to DVSDK_1_30_01_41/demos/dm355 then ran ./loadmodules.sh

    To which a number of errors occour including cannot find's etc..

    I suspect this is due to PATH's incorreclty set. Could any one send me their path settings for running the loadmodules.sh.  ?

     

     

     

     

     

     

     

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kirill Brilliantov
    Posted by Kirill Brilliantov
    on Oct 29 2008 05:27 AM
    Genius3470 points

    #cat dvsdk/loadmodules.sh
    #!/bin/sh
    # 12MB
    insmod cmemk.ko phys_start=0x87400000 phys_end=0x88000000 pools=1x2097152,2x1529856,7x829440,1x524288,1x108680,1x81920,2x8192,6x4096
    ./mapdmaq
    insmod dm350mmap.ko
    rm -f /dev/dm350mmap
    mknod /dev/dm350mmap c `awk "\\$2==\"dm350mmap\" {print \\$1}" /proc/devices` 0

    If you use original Montavista distributiv script loadmodule start auto.

    If use another, as I, you need start script manual from /opt directory or inserted command for autostart in start scripts, e.g. rcS.

    Output after normal run loadmodule.sh:

    # ./loadmodules.sh
    ioremap_nocache(0x87400000, 12582912)=0xc7880000
    allocated heap buffer 0xc7880000 of size 0xce000
    cmem initialized 8 pools between 0x87400000 and 0x88000000

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Bernie Thompson TI
    Posted by Bernie Thompson TI
    on Oct 29 2008 08:34 AM
    Mastermind41680 points

    I am confused by how you have your environment setup, you say you are on the board through the minicom terminal but you go to a DVSDK directory which would not normally be mounted by the board unless you copied it into the NFS mounted directory, I assume you copied it into where you are NFS mounting?

    If the loadmodules.sh is giving errors regarding missing files it probably means that it cannot find cmemk.ko and/or dm350mmap.ko, so if you grab these files (dvsdk_1_30_00_xx\kernel_binaries\dm355 should have them) and put them in the same directory you run loadmodules.sh from you should be good to go. I believe the default filesystem and demo installer will end up with you having both the loadmodules.sh and the proper kernel modules within workdir\filesys\opt\dvsdk.

    DaVinci DM355 loadmodules.sh
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • beardybloke
    Posted by beardybloke
    on Oct 29 2008 09:41 AM
    Prodigy190 points

    Hi Folks,

    I've got it to compile before I read these messages. I just grabbed the files from around the system and copied to the correct places in demos.

    One big thing from this I've learn't is never use Ubuntu for this device.

    I now have all the demos running via the minicom terminal commands.

    I have the DVSDK loaded to /opt of my working directory so I can access this from the board.

    All I have to do now is start writing the code.

    Cheers guys. for any help and most of the faults have been down to some thing else.

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • BrandonAzbell
    Posted by BrandonAzbell
    on Oct 29 2008 10:04 AM
    Guru54910 points

    It sounds like you are off to the races, which is great.

    However, your comment about not using Ubuntu is interesting to me.  Are you referring to the Linux distribution that is running on your host machine?  If so, I have an Ubuntu Linux server which I have the DM355 Linux kernel, toolchain and NFS target filesystem on.
    I don't specifically recall any headaches, but it was a while ago.

    Brandon

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Bernie Thompson TI
    Posted by Bernie Thompson TI
    on Oct 29 2008 10:09 AM
    Mastermind41680 points

    Brandon is right, I have known several folks to use a Ubuntu host just fine for development, though it is not used in validation testing on the DVSDK, it should still work, how was Ubuntu causing you trouble?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Kirill Brilliantov
    Posted by Kirill Brilliantov
    on Oct 29 2008 10:27 AM
    Genius3470 points

    I am use a Debian as host machine and don't any problems. I don't think what Ubuntu, or any another Linux can make problem in works.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use