From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26746 invoked by alias); 11 Sep 2008 13:10:09 -0000 Received: (qmail 26648 invoked by uid 22791); 11 Sep 2008 13:10:08 -0000 X-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_73,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 11 Sep 2008 13:09:33 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1KdlvB-0000Wm-00; Thu, 11 Sep 2008 15:09:17 +0200 Date: Thu, 11 Sep 2008 13:10:00 -0000 From: Andrew Lunn To: uwe.kindler@cetoni.de Cc: ecos-patches@sourceware.org Subject: Re: LPC2xxx Ethernet device driver Message-ID: <20080911130917.GB25830@lunn.ch> References: <25406789.95141221121756303.JavaMail.servlet@kundenserver> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25406789.95141221121756303.JavaMail.servlet@kundenserver> User-Agent: Mutt/1.5.18 (2008-05-17) X-IsSubscribed: yes Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2008-09/txt/msg00029.txt.bz2 On Thu, Sep 11, 2008 at 10:29:16AM +0200, uwe.kindler@cetoni.de wrote: > Hello, > > the following patch adds a generic ethernet driver for the LPC2xxx > on-chip EMAC peripheral. The driver was tested with the LPC2468 OEM > Board from Embedded Artists. Hi Uwe I just read the README where you say tm_basic dies horrible. What memory layout are you using? I just build a ROM redboot and a RAM tm_basic using the defaults. The resulting images clash in memory: lunn@londo:~/eCos/redboot/install/bin$ arm-elf-objdump --headers redboot.elf 15 .data 00000700 a0000000 00015508 00020000 2**2 CONTENTS, ALLOC, LOAD, DATA 16 .bss 0000aa24 a0000700 a0000700 00020700 2**5 ALLOC lunn@londo:~/eCos/work$ arm-elf-objdump --headers install/tests/kernel/current/tests/tm_basic 15 .data 000002fc a0000000 00011cb0 00020000 2**2 CONTENTS, ALLOC, LOAD, DATA 16 .bss 00c7cf68 a00002fc a00002fc 000202fc 2**5 ALLOC In particular, lpc2xxx_priv_data in the redboot image is at 0xa0000264 which is in the middle of the lpc2xxx_sc for tm_basic. So an interrupt from the ethernet is probably going to cause corruption. Or do you are another RAM image layout when using ROM redboot? Andrew