From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119922 invoked by alias); 3 Mar 2016 15:52:29 -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 119913 invoked by uid 89); 3 Mar 2016 15:52:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=A53, a53, H*F:U*mike, H*r:8.6.122 X-HELO: rgout0306.bt.lon5.cpcloud.co.uk Received: from rgout0306.bt.lon5.cpcloud.co.uk (HELO rgout0306.bt.lon5.cpcloud.co.uk) (65.20.0.212) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 03 Mar 2016 15:52:27 +0000 X-OWM-Source-IP: 81.151.158.93 (GB) X-OWM-Env-Sender: mike.ray@btinternet.com X-RazorGate-Suspect: true X-CTCH-RefID: str=0001.0A090202.56D85DB8.00E2,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CTCH-Spam: Unknown Received: from [192.168.0.125] (81.151.158.93) by rgout03.bt.lon5.cpcloud.co.uk (8.6.122.06) (authenticated as mike.ray@btinternet.com) id 56D09A2C00A5E445 for crossgcc@sourceware.org; Thu, 3 Mar 2016 15:52:24 +0000 Reply-To: mike@raspberryvi.org Subject: Re: [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config References: <56d749014b573_18513ffd5c4f72b8239711@hookshot-fe2-cp1-prd.iad.github.net.mail> <56D77C91.9010202@raspberryvi.org> <962659A2-72C0-40B2-8C16-E800EFF01337@gmail.com> <56D7D853.2020306@raspberryvi.org> <426CA27D-9258-4CF7-877A-C0F53E37CD2A@gmail.com> <836B878B-7477-460D-916B-8EA03807298A@gmail.com> To: crossgcc@sourceware.org From: Mike Ray Message-ID: <56D85DBB.5040802@raspberryvi.org> Date: Thu, 03 Mar 2016 15:52:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <836B878B-7477-460D-916B-8EA03807298A@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00009.txt.bz2 Hello Bryan. I'll see if I can tweak the config myself at the same time. But because I'm blind I don't find menuconfig (or other curses apps) all that easy to use. Incidentally apologies for top-posting but that's another thing with not being able to see...and a bit lazy. But there's plenty of ARM Cortex A53 stuff online so I might be able to just use one of the other configs to hack it. Mike On 03/03/2016 15:19, Bryan Hundven wrote: > >> On Mar 3, 2016, at 4:45 AM, Bryan Hundven wrote: >> >> >>> On Mar 2, 2016, at 10:23 PM, Mike Ray wrote: >>> >>> Hello. >>> >>> Good to know it's not just me being an idiot! I was hoping to use a >>> toolchain generated with ct-ng to build a 64-bit root file-system using >>> buildroot or just using the toolchain with cross-LFS. >> >> Indeed! That’s the spirit! :) >> >>> >>> I will continue to tinker and at the same time wait to see if there are >>> changes to this sample. >> >> There may only be one change to the sample, one line added, but the real change will happen in two files (maybe 3). And really, they aren’t big changes. >> >>> >>> It's true that at the moment there are only 32-bit images available. I >>> expect ArchARM to come up with a 64-bit image soon enough though. >> >> Indeed, but someone has to push the edge and give it a go? >> >> I need to get myself a PI3. I have to wait till the 15th to order mine, but that doesn’t mean I can’t start getting ct-ng there. I know there are others out there waiting for aarch64 support, so let’s do this. >> >>> >>> Mike >> >> Cheers, >> >> -Bryan > > Well, I feel like I totally missed the mark yesterday. I didn’t realize RPI3 was a 64-bit cpu, and I assumed ct-ng did not have aarch64 support. 0/2… > > On the plus side, I have something to test: > https://github.com/crosstool-ng/crosstool-ng/pull/362 > > Now, the hard part. You can’t run 64-bit binaries on 32-bit. > Also, I’m not sure if you can boot aarch64 from a 32-bit bootloader? > So you may have to start with making u-boot? > > I wish I had an RPI3, so I could help with that, but for now I’ll just have to be patient and wait to hear your progress. If you do make progress, and need help, post a git repo somewhere and I’ll try to help if I can. > > -Bryan > >> >>> >>> >>> On 03/03/2016 00:28, Stefan Hallas Mulvad wrote: >>>> Hi Bryan, >>>> >>>> I did test this, but at this time there’s (to my knowledge) no os images available which supports 64 bit. Mine came with 32 bit raspbian, >>>> >>>> The chip is capable of running in both 32/64 bit mode - but 64 bit must come down the road as software becomes available. >>>> >>>> Best regards, >>>> Stefan Mulvad >>>> >>>> >>>>> On Mar 2, 2016, at 4:22 PM, Bryan Hundven wrote: >>>>> >>>>> Hello Mike, >>>>> >>>>> >>>>>> On Mar 2, 2016, at 3:51 PM, Mike Ray wrote: >>>>>> >>>>>> Hello. >>>>>> >>>>>> I have used this sample to build a toolchain. >>>>>> >>>>>> However I get 32-bit executables and the '-m64' switch is not recognized. >>>>> >>>>> Sometimes, I expect that when people open pull-requests that they actually test what they submit and I don’t have to do any work. >>>>> >>>>> Today I failed at that. Yeay! >>>>> >>>>> Arm64/aarch64 is kind of a new thing in crosstool-NG, and isn’t well supported. >>>>> >>>>> I took the pull-request for the sample without looking at the specs for the new raspberry pi 3. I had no clue it was 64-bit. >>>>> >>>>> Looks like I will have to take some time and get this going. >>>>> >>>>>> >>>>>> There is obviously a gap in my knowledge which I can't seem to find an >>>>>> answer for on Google. >>>>>> >>>>>> Can I compile a 64-bit executable? If so, how? >>>>>> >>>>>> Thanks for any help. >>>>>> >>>>>> Mike >>>>>> >>>>>> >>>>> >>>>> Thanks for reporting this issue! >>>>> >>>>> https://github.com/crosstool-ng/crosstool-ng/issues/361 >>>>> >>>>> Cheers, >>>>> >>>>> -Bryan >>>> >>> >>> >>> -- >>> Michael A. Ray >>> Analyst/Programmer >>> Witley, Surrey, South-east UK >>> >>> Eyes-free Linux: >>> http://eyesfreelinux.ninja/ >>> >>> Raspberry VI: >>> http://www.raspberryvi.org/ >>> >>> >>> -- >>> For unsubscribe information see http://sourceware.org/lists.html#faq >>> >> > -- Michael A. Ray Analyst/Programmer Witley, Surrey, South-east UK Eyes-free Linux: http://eyesfreelinux.ninja/ Raspberry VI: http://www.raspberryvi.org/ -- For unsubscribe information see http://sourceware.org/lists.html#faq