From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15432 invoked by alias); 21 Apr 2014 15:28:39 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 15422 invoked by uid 89); 21 Apr 2014 15:28:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.7 required=5.0 tests=AWL,BAYES_95,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,SPF_PASS,T_FSL_HELO_BARE_IP_2 autolearn=no version=3.3.2 X-HELO: forward4m.mail.yandex.net Received: from forward4m.mail.yandex.net (HELO forward4m.mail.yandex.net) (37.140.138.4) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 21 Apr 2014 15:28:37 +0000 Received: from web28m.yandex.ru (web28m.yandex.ru [37.140.138.119]) by forward4m.mail.yandex.net (Yandex) with ESMTP id CF8D323216FE for ; Mon, 21 Apr 2014 19:28:33 +0400 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web28m.yandex.ru (Yandex) with ESMTP id 7B2A32A0697; Mon, 21 Apr 2014 19:28:33 +0400 (MSK) Received: from host158.237.135.195.m9com.ru (host158.237.135.195.m9com.ru [195.135.237.158]) by web28m.yandex.ru with HTTP; Mon, 21 Apr 2014 19:28:33 +0400 From: Nikita Orlov To: "crossgcc@sourceware.org" In-Reply-To: <3310291398093393@web28m.yandex.ru> References: <3310291398093393@web28m.yandex.ru> Subject: Re: Trouble building spec. toolchain for ARM Hi3531 MIME-Version: 1.0 Message-Id: <3337751398094113@web28m.yandex.ru> Date: Mon, 21 Apr 2014 15:28:00 -0000 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00008.txt.bz2 P.S. Architecture level = armv7-a 21.04.2014, 19:16, "Nikita Orlov" : > Hello! > > I have maybe strange problem, my knowledge is not enough to solve it, so I`m try to find help here. > > I have a board with ARM SoC Hi3531. Brief datasheet - http://www.hkvstar.com/pdf/Hi3531.pdf > Specs of processor is: > ARM Cortex A9 dual cores > − Up to 930 MHz > − 32 KB I-cache and 32 KB D-cache > − 256 KB L2 cache > > I have an SDK for it. SDK contains linux kernel 3.0.8 with some editions for support this device (march-godnet dir in /arch/arm). > Toolchain is arm-hisiv200-linux-gcc (Hisilicon_v200(gcc4.4-290+glibc-2.11+eabi+nptl)) 4.4.1 > There are some precompiled modules for this SoC. Note said that: > > Hi3531 support hardware floating-point. And all libs in default file system are compiled to hardware floating-point. So it's strongly recommen$ >   CFLAGS += -march=armv7-a -mcpu=cortex-a9 –mfloat-abi=softfp -mfpu=vfpv3-d16 >   CXXFlAGS +=-march=armv7-a -mcpu=cortex-a9 –mfloat-abi=softfp -mfpu=vfpv3-d16 > > So, as I understand my ARM is > armv7-a, cortex-a9, softfp, vfpv3-d16 > > On the board there is installed U-boot to SPI slash memory chip. I can connect to board via serial port and get access to U-boot. > So, I can use my kernel via usb or TFTP and edit kernel boot params. > > If I compile kernel with toolchain from SDK, everything is good, kernel loads. > > I try to build my own toolchain for this SoC, with last gcc, binutils and glibc via crosstool-NG 1.9.0 > I have a number of different configs for crosstool-NG, it builds toolchain with no errors, but when I compile kernel (it builds ok), after booting it > via U-boot nothing happens, no errors just a string > Uncopressed kernel ok, booting... (something like this words) > After it usually there is some boot log, but it seems something goes wrong. > > I think my mistake is somewhere in configuring Target options menu (ct-ng menuconfig) > I choose: > Target Architecture - arm > Suffix to the arch-part - nothing > Build a multilib toolchain - NO > Use the MMU - Yes (SoC supports it) > Endianness: - Little endian > Bitness: - 32-bit > Architecture level > Emit assembly for CPU - cortex-a9 > Tune for CPU - nothing > Use specific FPU vfpv3-d16 > Floating point: softfp > Target CFLAGS - nothing > Target LDFLAGS - nothing > Default instruction set mode - arm > Use Thumb-interworking - no > Use EABI - YES > > I use headers from my kernel tree. > gcc - 4.8.1 > > As I understand settings of binutls, glibc, and others don`t affects step of kernel building and booting, so I left them defaults. > > So, I think I need to config Target options right to build and boot kernel. > I`m asking for advice or way to solve this. > > Thanks! > > -- > Nikita Orlov > Skype: nik_stet > QQ: 2717846083 > > -- > For unsubscribe information see http://sourceware.org/lists.html#faq --  Nikita Orlov Skype: nik_stet QQ: 2717846083 -- For unsubscribe information see http://sourceware.org/lists.html#faq