From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29272 invoked by alias); 17 Mar 2012 14:50:35 -0000 Received: (qmail 29262 invoked by uid 22791); 17 Mar 2012 14:50:33 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_WEB X-Spam-Check-By: sourceware.org Received: from mail-wi0-f171.google.com (HELO mail-wi0-f171.google.com) (209.85.212.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 17 Mar 2012 14:50:20 +0000 Received: by wibhj13 with SMTP id hj13so1542774wib.12 for ; Sat, 17 Mar 2012 07:50:18 -0700 (PDT) Received: by 10.180.102.129 with SMTP id fo1mr6715943wib.6.1331995818720; Sat, 17 Mar 2012 07:50:18 -0700 (PDT) Received: from vostro ([178.123.58.148]) by mx.google.com with ESMTPS id k7sm13386123wia.5.2012.03.17.07.50.16 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 17 Mar 2012 07:50:17 -0700 (PDT) Date: Sat, 17 Mar 2012 14:50:00 -0000 From: Sergei Gavrikov To: John Dallaway cc: eCos Developers Subject: Re: eCos GNU tools 4.6.2-20120125 ready for testing In-Reply-To: <4F61AD54.6050201@dallaway.org.uk> Message-ID: References: <4F106345.4080902@siva.com.mk> <4F11574D.9070002@dallaway.org.uk> <4F11AC54.7000902@siva.com.mk> <4F1CB41C.90900@jifvik.org> <4F1DA9A0.5070702@siva.com.mk> <4F1FF5AD.4010901@ecoscentric.com> <4F39887A.5050905@siva.com.mk> <4F50F700.5080902@ecoscentric.com> <4F521D6A.4010500@siva.com.mk> <4F52B2C8.4010809@schuilenburg.org> <4F53C46B.4090502@dallaway.org.uk> <4F53FF0D.80107@ecoscentric.com> <4F574D4A.2090407@ecoscentric.com> <4F58EC32.9070103@ecoscentric.com> <4F5B8C70.4080208@dallaway.org.uk> <4F5E204B.5040402@ecoscentric.com> <4F5F4BFE.7030100@ecoscentric.com> <4F5F5691.4090009@siva.com.mk> <4F61AD54.6050201@dallaway.org.uk> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2012-03/txt/msg00034.txt.bz2 Hi John John Dallaway wrote: > Hi Sergei > > Sergei Gavrikov wrote: > > > I tried to build and run "thumb" tests for NXP ARM7TDMI (LPC2294) using > > corresponding RedBoot/GDB > > > > ecos-v3_0-branchpoint GCC 4.3.2 most of tests failed > > ecos AnonCVS GCC 4.3.2 most of tests failed > > ecos AnonCVS GCC 4.6.2 most of tests failed > > ecos AnonCVS GCC 4.6.3 most of tests failed > > > > Thus, it looks like that GCC 4.6.2 is not point of those fails. > > > > BTW, I never tried ro run "thumb" blobs before on my target and maybe > > I should turn on/off more CDL options than just to force CYGHWR_THUMB > > option. > > Enabling CYGHWR_THUMB should be sufficient. Be sure to "make clean" when > switching to Thumb. Also, check that the -mthumb and -mthumb-interwork > flags are definitely present during the building of your eCos tests. Thank you for this information. Thus, I confirm that I had got the right thumb binaries for testing. > > So, I agree with the said "Thumb support looks broken" at the least > > for lpc2xxx, lpc24xx variants, but, it seems to me it was broken > > even before eCos 3.0. > > I have just verified that the kernel tm_basic test builds for target > eb40a (ARM7) with RAM startup and CYGHWR_THUMB. The resulting binary > runs under debug (via RedBoot) without problem. This is using the new > eCos 4.6.2-20120125 test release toolchain. What is about GCC optimization in your test? So far, I found that I can run only not optimized thumb executables in GDB under RedBoot, and -O1, and -O2 builds are failed as I reported above. Though, I guess that you use default -O2 optimization for your test. > There could be a Thumb-related issue within a certain variant/platform > HAL or device driver package. It seems to me you are right, I will try to investigate. Thank you for feedback. Sergei > John Dallaway > eCos maintainer > http://www.dallaway.org.uk/john >