From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29923 invoked by alias); 11 Dec 2007 14:01:11 -0000 Received: (qmail 29909 invoked by uid 22791); 11 Dec 2007 14:01:10 -0000 X-Spam-Check-By: sourceware.org Received: from elasmtp-banded.atl.sa.earthlink.net (HELO elasmtp-banded.atl.sa.earthlink.net) (209.86.89.70) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 11 Dec 2007 14:01:02 +0000 Received: from [71.80.44.180] (helo=[192.168.0.5]) by elasmtp-banded.atl.sa.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1J25fK-0004Kt-Fk; Tue, 11 Dec 2007 09:00:54 -0500 Message-ID: <475E9815.7010202@mindspring.com> Date: Tue, 11 Dec 2007 14:01:00 -0000 From: Frank Pagliughi User-Agent: Thunderbird 1.5.0.12 (X11/20071019) MIME-Version: 1.0 To: Navya S Kamath CC: 'Gary Thomas' , ecos-discuss@ecos.sourceware.org References: <200712110712.1j23Ym59t3Nl3qW0@watson.mail.atl.earthlink.net> In-Reply-To: <200712110712.1j23Ym59t3Nl3qW0@watson.mail.atl.earthlink.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: 4d82f965df0f6dd9e3f977c6d1ea408f0a9da525759e2654c3cfbdd8469811074d3a8d87fcbd36ac3899c79c7caf56c9350badd9bab72f9c350badd9bab72f9c X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Compile USB Host Application X-SW-Source: 2007-12/txt/msg00031.txt.bz2 Navya S Kamath wrote: > Hi, > > Could you please elaborate on how to compile the host application? The > ECOS_REPOSITROY has been installed on the host Linux machine. I use this > repository for compiling the target bootloader along with the USB slave > application. > > How can I invoke the target application from the bootloader "Redboot" > prompt? > > If the USB host application has to be compiled on ecos environment, how can > it be executed on Linux? > > I am new to ecos environment, please help. > > Regards, > Navya > > -----Original Message----- > From: ecos-discuss-owner@ecos.sourceware.org > [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Gary Thomas > Sent: Tuesday, December 11, 2007 1:36 PM > To: Navya S Kamath > Cc: ecos-discuss@ecos.sourceware.org > Subject: Re: [ECOS] Compile USB Host Application > > Navya S Kamath wrote: > >> Hi All, >> >> I'm trying to compile the USB host application on a RedHat Enterprise >> > Linux, > >> I get following errors >> >> usbhost.o(.text+0xb4): In function `usb_scan_devices': >> : undefined reference to `__fgetc_unlocked' >> usbhost.o(.text+0x197): In function `usb_scan_devices': >> : undefined reference to `__fgetc_unlocked' >> usbhost.o(.text+0x207): In function `usb_scan_devices': >> : undefined reference to `__fgetc_unlocked' >> usbhost.o(.text+0x163d): In function `run_test_bulk_out': >> : undefined reference to `__glibc_strerror_r' >> usbhost.o(.text+0x1e4b): In function `run_test_bulk_in': >> : undefined reference to `__glibc_strerror_r' >> usbhost.o(.text+0x2807): In function `run_test_control_in': >> : undefined reference to `__glibc_strerror_r' >> >> I include file /usr/local/include/stdio.h has these definitions.Anybody >> faced such errors before? Please help >> > > It looks like you're trying to use things that are outside of eCos > (no eCos application should ever need to use 'standard' include files, > only the ones provided) > > The public version of eCos doesn't support USB host operations. I > believe that this can be obtained from eCosCentric. > > > There is a USB host application in the eCos sources that you compile on a desktop Linux and use to help test the USB slave device that you create with eCos. You don't *need* the host app to create a USB slave device with eCos. It just helps you debug one if you do have it. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss