From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24746 invoked by alias); 8 Nov 2007 09:13:32 -0000 Received: (qmail 24728 invoked by uid 22791); 8 Nov 2007 09:13:30 -0000 X-Spam-Check-By: sourceware.org Received: from mms2.broadcom.com (HELO mms2.broadcom.com) (216.31.210.18) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 08 Nov 2007 09:13:27 +0000 Received: from [10.10.64.154] by mms2.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.1)); Thu, 08 Nov 2007 01:12:59 -0800 X-Server-Uuid: A6C4E0AE-A7F0-449F-BAE7-7FA0D737AC76 Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id 56BEC2AF; Thu, 8 Nov 2007 01:12:59 -0800 (PST) Received: from mail-irva-8.broadcom.com (mail-irva-8 [10.10.64.221]) by mail-irva-10.broadcom.com (Postfix) with ESMTP id 40C8C2AE; Thu, 8 Nov 2007 01:12:59 -0800 (PST) Received: from mail-sj1-12.sj.broadcom.com (mail-sj1-12.sj.broadcom.com [10.16.128.215]) by mail-irva-8.broadcom.com (MOS 3.7.5a-GA) with ESMTP id FXN15245; Thu, 8 Nov 2007 01:12:55 -0800 (PST) Received: from NT-SJCA-0752.brcm.ad.broadcom.com (nt-sjca-0752 [10.16.192.222]) by mail-sj1-12.sj.broadcom.com (Postfix) with ESMTP id 6418D20501; Thu, 8 Nov 2007 01:12:55 -0800 (PST) Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Thu, 08 Nov 2007 09:13:00 -0000 Message-ID: In-Reply-To: <002101c821aa$8ea9d1b0$1c0110ac@ariga> References: <47173F99.80405@mlbassoc.com> <000601c8120c$667aa3c0$1c0110ac@ariga> <47187EEB.5020109@mlbassoc.com> <000501c8154d$ecc04db0$1c0110ac@ariga> <000301c816ab$6acbf7f0$1c0110ac@ariga> <000a01c81a9e$6b8c2240$1c0110ac@ariga> <001a01c82044$937a9b50$1c0110ac@ariga> <001501c8204f$486d3180$1c0110ac@ariga> <20071106083527.GB16191@lunn.ch> <000301c820cf$6a8a0b50$1c0110ac@ariga> <000801c820da$3d702c20$1c0110ac@ariga> <002101c8210d$f76211b0$1c0110ac@ariga> <001301c82117$a6bb3430$1c0110ac@ariga> <002101c821aa$8ea9d1b0$1c0110ac@ariga> From: "Alok Singh" To: "ariga masahiro" , "Gary Thomas" , "Andrew Lunn" cc: ecos-discuss@ecos.sourceware.org X-WSS-ID: 6B2C0C912FS18108456-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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] Can't Connect,TCP CHECKSUM INCORRECT X-SW-Source: 2007-11/txt/msg00049.txt.bz2 Ariga, Can you send your generated ecc file? -Alok -----Original Message----- From: ariga masahiro [mailto:ariga@link-lab.co.jp]=20 Sent: Thursday, November 08, 2007 7:26 AM To: Gary Thomas; Alok Singh; Andrew Lunn Cc: ecos-discuss@ecos.sourceware.org Subject: Re: [ECOS] Can't Connect,TCP CHECKSUM INCORRECT Hello, Alok,thank you very much for your reply. Alok wrote > It will better if you remove all your little/big endian hacks. Or Take a > fresh view. And take care of the following - I checked two parameters you suggest,but I was encountered next questions=20 for each. Please allow my ignorance and teach me how to settle it. About, > 1) CYGPKG_HAL_MIPS_MSBFIRST - should be defined, (and not > CYGPKG_HAL_MIPS_LSBFIRST) My target uses SH7709S. CYGPKG_HAL_MIPS_MSBFIRST is included next cdl files, packages\hal\mips\idt32334\current\cdl\hal_mips_idt32334.cdl(68):=20 cdl_option CYGPKG_HAL_MIPS_MSBFIRST { packages\hal\mips\mips32\current\cdl\hal_mips_mips32.cdl(96): cdl_option=20 CYGPKG_HAL_MIPS_MSBFIRST { packages\hal\mips\rm7000\var\current\cdl\hal_mips_rm7000.cdl(118):=20 cdl_option CYGPKG_HAL_MIPS_MSBFIRST { packages\hal\mips\tx39\current\cdl\hal_mips_tx39.cdl(78): cdl_option=20 CYGPKG_HAL_MIPS_MSBFIRST { packages\hal\mips\tx49\current\cdl\hal_mips_tx49.cdl(119):=20 cdl_option CYGPKG_HAL_MIPS_MSBFIRST { packages\hal\mips\upd985xx\current\cdl\hal_mips_upd985xx.cdl(201):=20 cdl_option CYGPKG_HAL_MIPS_MSBFIRST { packages\hal\mips\vrc4373\current\cdl\hal_mips_vr4300_vrc4373.cdl(82):=20 cdl_option CYGPKG_HAL_MIPS_MSBFIRST { but my target never uses above cdl file. My target's configuration is like next in ecos.db. target inserter { alias { "Hitachi inserter board" } packages { CYGPKG_HAL_SH CYGPKG_HAL_SH_SH3 CYGPKG_HAL_SH_SH77X9_inserter CYGPKG_IO_FLASH CYGPKG_DEVS_FLASH_SH_inserter CYGPKG_DEVS_FLASH_AMD_AM29XXXXX CYGPKG_DEVS_ETH_SMSC_LAN91CXX CYGPKG_DEVS_ETH_SH_INSERTER CYGPKG_IO_ETH_DRIVERS CYGPKG_IO_SERIAL_SH_inserter CYGPKG_IO_SERIAL_SH_SCIF } description " The inserter target provides the packages needed to run eCos on a Hitachi Solution Engine 77x9 board." } Please tell me where and how to include CYGPKG_HAL_MIPS_MSBFIRST. I send my ecos.db for reference. About, > 2) # define CYG_BYTEORDER as CYG_MSBFIRST (and not as CYG_LSBFIRST). It > should be decided based on option 1) actually. CYG_BYTEORDER is defined as below in=20 packages\hal\sh\arch\current\include\basetype.h(60) #ifdef __LITTLE_ENDIAN__ # define CYG_BYTEORDER CYG_LSBFIRST // Little endian #else # define CYG_BYTEORDER CYG_MSBFIRST // Big endian #endif __LITTLE_ENDIAN__ are defined in next files. packages\hal\common\current\include\hal_stub.h(100): #if (CYG_BYTEORDER=3D=3DCYG_LSBFIRST) # if !defined(__LITTLE_ENDIAN__) # define __LITTLE_ENDIAN__ # endif # if !defined(_LITTLE_ENDIAN) # define _LITTLE_ENDIAN # endif #endif packages\redboot\current\include\net\net.h(86): #if (CYG_BYTEORDER =3D=3D CYG_LSBFIRST) #ifndef __LITTLE_ENDIAN__ #define __LITTLE_ENDIAN__ #endif extern unsigned long ntohl(unsigned long x); extern unsigned short ntohs(unsigned short x); #else #define ntohl(x) (x) #define ntohs(x) (x) #endif I think redboot program space is differnt so I could exclude it. The question is, between basetype.h and hal_stub.h which is included first ? I never defined __LITTLE_ENDIAN__, so I thought even right now, # define CYG_BYTEORDER CYG_MSBFIRST // Big endian Isn't it? I look forward your reply. Thanks in advance. Masahiro Ariga -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss