From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8375 invoked by alias); 22 Apr 2014 02:56:07 -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 8363 invoked by uid 89); 22 Apr 2014 02:56:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f46.google.com Received: from mail-la0-f46.google.com (HELO mail-la0-f46.google.com) (209.85.215.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 22 Apr 2014 02:56:05 +0000 Received: by mail-la0-f46.google.com with SMTP id hr17so3770455lab.19 for ; Mon, 21 Apr 2014 19:56:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=7QZzkvWneFlwKvrTl6moeNXBCu7xQgT4UFuU8D7AZS0=; b=iXlpIUPhDxlmgCBtudlAZkxbgh3f3mlxNu9U+s42ieyXEGL3hFuoeNq3rjoapkZUKt /xDmS8CRJOog5E0Fj23fLgEBWTowhN/d0vGjwicUofMQ4S8FXHn5aVY22o/KtF8goVzb 4KsxRBjog6aoqrY9sW7fhFvC98UTx9eIj/oPfbsg+BeyqVAubAc+VHH2c8W2JVHRHQ9i 7idGRkK0Hl+f5e1cZSoIwIKC2QrG1jBl+vvRkz1J3ujQQXam2zjL1g9/q30Qq6HEN/R6 qPKRNEDzZEJFlN2QhN+48/J5gPwhQmZ1vwPmi5aMSmJ0sa5UfJaSEfCP7G+muf0D4sBI pyjg== X-Gm-Message-State: ALoCoQnFVTIjoKLyokoYPqKD/Os0Hm6qHy107RZZNCMiXsMBhcbPBRL8MrSDre5/IWSe/WfSg4+s MIME-Version: 1.0 X-Received: by 10.112.106.40 with SMTP id gr8mr25478734lbb.0.1398135361394; Mon, 21 Apr 2014 19:56:01 -0700 (PDT) Received: by 10.112.162.170 with HTTP; Mon, 21 Apr 2014 19:56:01 -0700 (PDT) In-Reply-To: <3337751398094113@web28m.yandex.ru> References: <3310291398093393@web28m.yandex.ru> <3337751398094113@web28m.yandex.ru> Date: Tue, 22 Apr 2014 02:56:00 -0000 Message-ID: Subject: Re: Trouble building spec. toolchain for ARM Hi3531 From: Zhenqiang Chen To: Nikita Orlov Cc: "crossgcc@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00010.txt.bz2 Can you show the default config for arm-hisiv200-linux-gcc? arm-hisiv200-linux-gcc -v Please try Linaro 4.7 release. If it works, you can use the same config for your build. https://launchpad.net/linaro-toolchain-binaries/trunk/2012.04/+download/gcc-linaro-arm-linux-gnueabi-2012.04-20120426_linux.tar.bz2 On 21 April 2014 23:28, Nikita Orlov wrote: > 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 > -- For unsubscribe information see http://sourceware.org/lists.html#faq