TI E2E Community
Digital Signal Processors (DSP)
DaVinci™ Video Processors
DM3x DaVinci Video Processor Forum
Problems while configuring usb gadget mode with DM355EVM
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.odrivers/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: *** [drivers/usb/gadget/r8a66597-udc.o] Error 1make: *** [drivers/usb/gadget] Error 2make: *** [drivers] Error firstname.lastname@example.org:/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.
In the corresponding C file where you are getting the error add the statement #include <linux/err.h> and try building.
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.odrivers/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 oncedrivers/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: *** [drivers/video/console/vgacon.o] Error 1make: *** [drivers/video/console] Error 2make: *** [drivers/video] Error 2make: *** [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.
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.
So it does not matter if this option enabled/disabled or is not set.
Error appears in all cases.
Are you still getting the same error's even after disabling it? What are your steps for building?
Yes. Exact same errors in all cases. I checked twice.
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
Hello. Thanks for reply. Commenting a line helped me.
LD .tmp_vmlinux1arch/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?
add the following statement,
#include <linux/i2c/dm355evm_msp.h> in board-dm355-evm.c
I already have such line in "/arch/arm/mach-davinci/board-dm355-evm.c"
Can you cross verify and check the declaration "dm355evm_msp_write" is present in include/linux/i2c/dm355evm_msp.h?
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.
do make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
and just go to drivers---->>>Multifunction device drivers --->>>>>> [*] DaVinci DM355 EVM microcontroller select
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.
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.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.