From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10326 invoked by alias); 11 Oct 2005 15:24:50 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 10015 invoked by uid 22791); 11 Oct 2005 15:24:45 -0000 Received: from omr3.netsolmail.com (HELO omr3.netsolmail.com) (216.168.230.164) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 11 Oct 2005 15:24:45 +0000 Received: from ms7.netsolmail.com (IDENT:mirapoint@[216.168.230.174]) by omr3.netsolmail.com (8.12.10/8.12.10) with ESMTP id j9BFOVee006840; Tue, 11 Oct 2005 11:24:36 -0400 (EDT) Received: from ms7.netsolmail.com (localhost.netsolmail.com [127.0.0.1]) by ms7.netsolmail.com (Mirapoint Messaging Server MOS 3.2.2-GA) with ESMTP id EWB68581; Tue, 11 Oct 2005 11:24:30 -0400 (EDT) From: Message-Id: <200510111524.EWB68581@ms7.netsolmail.com> Received: from 212.190.204.66 by ms7.netsolmail.com (Mirapoint Messaging Server MOS 3.2.2-GA) with HTTP/1.1; Tue, 11 Oct 2005 11:24:30 -0400 Date: Tue, 11 Oct 2005 15:24:00 -0000 To: Andrew Lunn Cc: "Deak, Ferenc" , ecos-discuss@ecos.sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] cirrus ep93xx - ecos works, network problems X-SW-Source: 2005-10/txt/msg00062.txt.bz2 I am not sure if I understand correctly what you describe. I remember running into problems in the past because of calls to HAL_DELAY_US in the network code. You say something about changing timeouts to the order of magnitude of seconds, so keep in mind that HAL_DELAY_US implements a busy wait, which could start waiting for a _very_ long period of time if you do that. The behavior you describe indicates that it could be something like that. Bob ---- Original message ---- >Date: Tue, 11 Oct 2005 16:09:56 +0200 >From: Andrew Lunn >Subject: Re: [ECOS] cirrus ep93xx - ecos works, network problems >To: "Deak, Ferenc" >Cc: ecos-discuss@ecos.sourceware.org > >On Tue, Oct 11, 2005 at 03:17:46PM +0200, Deak, Ferenc wrote: >> > > >> > > We have a custom cirrus ep9307 based board. Cirrus has a software package >> > > for their ep93xx-based boards, which contains patches for linux and a >> > > redboot-only ecos. Redboot and linux works fine on our board. I have >> > > managed to work the basic ecos, but I have trouble with the network. >> > > >> > > Is there anybody who made the network work, and can help? We would be very >> > > thankful for any help. >> > >> > The normal problem here is that the network device driver for Redboot >> > is polled io, where as a full eCos device driver is interrupt >> > driven. I suggest you take a look at the device driver and see what it >> > actually implements. >> >> The problem is not so theoretical:-) I'm looking and testing and >> modifying the driver until yesterday. It seems that someone at cirrus have written >> the driver "correctly" because there is a redboot and a real-kernel related >> code in it, there is an IT initialised, a NETDEVTAB_ENTRY etc. (but, >> strange that the real IT related routines usually in hal//src/proc_misc.c >> were missing from the patch, but I've added them...) Network ITs are working etc. >> >> The problem where I stopped: There is register in the network related part of the processor, >> which is set to 1 to sign that there is a new data filled and ready to send. But when this register >> is set to 1 second times the whole board stops working at this line, prints before this line are >> appearing but prints after are not. (but these lines are common with the redboot code, so >> perhaps these are algorithmically right) >> On the other hand the board cannot be ping-ed, end receive events are not comming (but these are >> coming under redboot...) >> >> So if somebody has an ideo to try, I would be very grateful. > >What is the license on the code? Can you let us see it or is it closed >source? > > Andrew > >-- >Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos >and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss