From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14791 invoked by alias); 20 Dec 2009 15:33:00 -0000 Received: (qmail 14781 invoked by uid 22791); 20 Dec 2009 15:32:59 -0000 X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_20 X-Spam-Check-By: sourceware.org Received: from fmmailgate02.web.de (HELO fmmailgate02.web.de) (217.72.192.227) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 20 Dec 2009 15:32:53 +0000 Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id 3C380149A784E for ; Sun, 20 Dec 2009 16:32:51 +0100 (CET) Received: from [91.8.219.89] (helo=[127.0.0.1]) by smtp05.web.de with asmtp (WEB.DE 4.110 #314) id 1NMNkE-0006ll-00 for ecos-discuss@ecos.sourceware.org; Sun, 20 Dec 2009 16:30:54 +0100 Message-ID: <4B2E432F.7020202@web.de> Date: Sun, 20 Dec 2009 15:33:00 -0000 From: Bernhard Gebert User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Sender: 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: [ECOS] cyg_io_lookup() allways returns ENOENT X-SW-Source: 2009-12/txt/msg00036.txt.bz2 Hi, running my AT91SAM7X256-EK with the eCos configuration from template "default", I would like to acess the CAN device driver. As I am not experienced with drivers, I simply called cyg_io_lookup("/dev/can0",&handle), but I got the ENOENT error. The same result for /dev/tty0, /sev/ser0, /dev/spi0, and so on. The method of searching for a directory-like string sounds like in real hich level system with file handling; but my small AT91 runs everything from ROM without a file system. Is this the problem? One more silly question: I did not find a string like "/dev/..." in the ecos tree, but anyone (the low-level device-driver can_at91sam7.c?) has to register at the eCos devTable with this name?!? Thanks in advance, Bernhard -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss