• 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 » Problems while configuring usb gadget mode with DM355EVM
Share
DaVinci™ Video Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS

Problems while configuring usb gadget mode with DM355EVM

Problems while configuring usb gadget mode with DM355EVM

This question is answered
Pavel Goryunov
Posted by Pavel Goryunov
on Apr 13 2012 01:37 AM
Intellectual365 points

Hello, everyone. I have a task to realize the read/write access from linux/pc host to the NAND memory of DM355EVM over usb.

I deployed default uImage from DVSDK 3.10 and target filesystem over NFS.

I've tried to build my own kernel with the support of usb storage device using 2.6.32 kernel sources. But compiling process was interrupted with those errors:

 CC      drivers/usb/gadget/r8a66597-udc.o
drivers/usb/gadget/r8a66597-udc.c: In function 'r8a66597_probe':
drivers/usb/gadget/r8a66597-udc.c:1585: error: implicit declaration of function 'IS_ERR'
drivers/usb/gadget/r8a66597-udc.c:1588: error: implicit declaration of function 'PTR_ERR'
make[2]: *** [drivers/usb/gadget/r8a66597-udc.o] Error 1
make[1]: *** [drivers/usb/gadget] Error 2
make: *** [drivers] Error 2
root@10.0.2.17:/opt/mainlinekernel/git#

Maybe i should build only a module and load it with the "modprobe"?

What are my next steps?

With the best Regards. Pavel Goryunov.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Apr 13 2012 01:51 AM
    Genius4675 points

    Hi,

    In the corresponding C file where you are getting the error add the statement #include <linux/err.h> and try building.

    Thx,

    --Prabhakar Lad

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pavel Goryunov
    Posted by Pavel Goryunov
    on Apr 13 2012 04:53 AM
    Intellectual365 points

    Thank you for the fast reply. I dont really know why, but sequence of compiling changed.

    Now i have such error:

     CC      drivers/video/console/vgacon.o
    drivers/video/console/vgacon.c: In function 'vgacon_startup':
    drivers/video/console/vgacon.c:508: error: 'PCIMEM_BASE' undeclared (first use in this function)
    drivers/video/console/vgacon.c:508: error: (Each undeclared identifier is reported only once
    drivers/video/console/vgacon.c:508: error: for each function it appears in.)
    drivers/video/console/vgacon.c: In function 'vgacon_do_font_op':
    drivers/video/console/vgacon.c:1068: error: 'PCIMEM_BASE' undeclared (first use in this function)
    make[3]: *** [drivers/video/console/vgacon.o] Error 1
    make[2]: *** [drivers/video/console] Error 2
    make[1]: *** [drivers/video] Error 2
    make: *** [drivers] Error 2

    in ".configure" file line of 2.6.32 kernel looks like this "#CONFIG_VGA_CONSOLE is not set " in default case.

    I also tried to change this line to such view "CONFIG_VGA_CONSOLE=y" and "CONFIG_VGA_CONSOLE=n"

    So error appears over and over again. Maybe i should show my .configure file or some part of it?

    Thanks a lot.



    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Apr 13 2012 05:16 AM
    Genius4675 points

    Hi,

    If you want to disable VGA_CONSOLE support, do the following,

    $#<linux directory>make menuconfig

    go to Device Drivers====>>> Graphics Support ======>>> Console display Support=====>>>> VGA text console, Now unselect it,

    and that wont build for you.

    Thx,

    --Prabhakar Lad

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pavel Goryunov
    Posted by Pavel Goryunov
    on Apr 13 2012 05:35 AM
    Intellectual365 points

    Thanks.

    So it does not matter if this option enabled/disabled or is not set.

    Error appears in all cases.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Apr 13 2012 05:43 AM
    Genius4675 points

    Hi,

    Are you still getting the same error's even after disabling it? What are your steps for building?

    Thx,

    --Prabhakar Lad

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pavel Goryunov
    Posted by Pavel Goryunov
    on Apr 13 2012 05:56 AM
    Intellectual365 points

    Yes. Exact same errors in all cases. I checked twice.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Apr 13 2012 06:00 AM
    Genius4675 points

    Hi,

    What are your steps for building? In worst case If you don't want the vga to be build,

    go to Makefile in drivers/video/console and comment this line obj-$(CONFIG_VGA_CONSOLE) += vgacon.o

    Thx,

    --Prabhakar Lad

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pavel Goryunov
    Posted by Pavel Goryunov
    on Apr 16 2012 01:23 AM
    Intellectual365 points

    Hello. Thanks for reply. Commenting a line helped me.

    Now i have such error:

    LD      .tmp_vmlinux1
    arch/arm/mach-davinci/built-in.o: In function `dm355evm_setup_video_input':
    board-dm355-evm.c:(.text+0x29d0): undefined reference to `dm355evm_msp_write'
    board-dm355-evm.c:(.text+0x29f0): undefined reference to `dm355evm_msp_write'
    make: *** [.tmp_vmlinux1] Error 1

    What you will recommend me?


    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Apr 16 2012 01:28 AM
    Genius4675 points

    Hi,

    add the following statement,

    #include <linux/i2c/dm355evm_msp.h> in board-dm355-evm.c

    Thx,

    --Prabhakar Lad

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pavel Goryunov
    Posted by Pavel Goryunov
    on Apr 16 2012 01:55 AM
    Intellectual365 points

    I already have such line in "/arch/arm/mach-davinci/board-dm355-evm.c"

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Apr 16 2012 02:05 AM
    Genius4675 points

    Hi,

    Can you cross verify and check the declaration "dm355evm_msp_write" is present in include/linux/i2c/dm355evm_msp.h?

    Thx,

    --Prabhakar Lad

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pavel Goryunov
    Posted by Pavel Goryunov
    on Apr 16 2012 02:17 AM
    Intellectual365 points

    In include/linux/i2c/dm355evm_msp.h ,i have such declaration of this function -"extern int dm355evm_msp_write(u8 value,u8 reg);"

    So i guess here everything is fine.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Apr 16 2012 02:32 AM
    Verified Answer
    Verified by Pavel Goryunov
    Genius4675 points

    Hi,

    do make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

    and just go to drivers---->>>Multifunction device drivers  --->>>>>> [*] DaVinci DM355 EVM microcontroller select


    Thx,

    --Prabhakar Lad

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Pavel Goryunov
    Posted by Pavel Goryunov
    on Apr 16 2012 07:37 AM
    Intellectual365 points

    Thank you so much.

    I also have some troubles with booting my own new zImage, but ill open new thread for this theme.

    Thanks once again.

    Pavel Goryunov.

    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