From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29332 invoked by alias); 3 Mar 2016 15:19:17 -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 29259 invoked by uid 89); 3 Mar 2016 15:19:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=362, images, H*c:HHHH, H*c:HHHHHHHH X-HELO: mail-pf0-f172.google.com Received: from mail-pf0-f172.google.com (HELO mail-pf0-f172.google.com) (209.85.192.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 03 Mar 2016 15:19:07 +0000 Received: by mail-pf0-f172.google.com with SMTP id w128so16747562pfb.2 for ; Thu, 03 Mar 2016 07:19:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=5T2AJP4OP8Y02rJo5+KlbTm8Uw9oLGxr6RQDIMiHysA=; b=SHvclesfFbBVJWMX/vupkscaebZ/jyJOO1wEBoPmHT7yfJqlPWaSoapOplTP8RAJla g1LKEkIhJ54NVZv2uXiEBwOlgEVYb3z4o50ZIg1Ru9QwtQ+PyJFisDZrqfIVQBls+dMa hqq2NPPHj1xIJR4PkQHBaWZ7lKZL0xQ8piph3kPmGBK8fs9tR3ThUT0//hAkvKvm8N/E TFgRzjm9Sv+5FK3Awef8c/BKHT3tEHvHH5fXl3IB4zK3XMTf3Lau7TPLsJr1vdC0SQCG v6GDwP4TXyZ2J+Ued71t4vQ6WTZI4PU5W/h25/W9Z5dKy/VelE9FhFyhcbXMYM4vn0+r Fu3g== X-Gm-Message-State: AD7BkJLNeOMR+S8nwUVQ6PMLuqCoeL6mlPGaDwOxXKBWJvXkP3/UQiTBNBUTLY6I8Lm7lA== X-Received: by 10.98.15.145 with SMTP id 17mr4354699pfp.19.1457018345486; Thu, 03 Mar 2016 07:19:05 -0800 (PST) Received: from ?IPv6:2601:603:500:c9:e147:3afd:d246:205e? ([2601:603:500:c9:e147:3afd:d246:205e]) by smtp.gmail.com with ESMTPSA id w20sm26283018pfi.31.2016.03.03.07.19.03 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Mar 2016 07:19:03 -0800 (PST) Subject: Re: [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: multipart/signed; boundary="Apple-Mail=_319E24D4-8F16-4D7F-B131-E0589836A19F"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.6b2 From: Bryan Hundven In-Reply-To: <426CA27D-9258-4CF7-877A-C0F53E37CD2A@gmail.com> Date: Thu, 03 Mar 2016 15:19:00 -0000 Cc: crossgcc@sourceware.org Message-Id: <836B878B-7477-460D-916B-8EA03807298A@gmail.com> 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> To: mike@raspberryvi.org X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00008.txt.bz2 --Apple-Mail=_319E24D4-8F16-4D7F-B131-E0589836A19F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Content-length: 3985 > On Mar 3, 2016, at 4:45 AM, Bryan Hundven wrote: >=20 >=20 >> On Mar 2, 2016, at 10:23 PM, Mike Ray wrote: >>=20 >> Hello. >>=20 >> 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. >=20 > Indeed! That=E2=80=99s the spirit! :) >=20 >>=20 >> I will continue to tinker and at the same time wait to see if there are >> changes to this sample. >=20 > 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=E2=80=99t = big changes. >=20 >>=20 >> 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. >=20 > Indeed, but someone has to push the edge and give it a go? >=20 > I need to get myself a PI3. I have to wait till the 15th to order mine, b= ut that doesn=E2=80=99t mean I can=E2=80=99t start getting ct-ng there. I k= now there are others out there waiting for aarch64 support, so let=E2=80=99= s do this. >=20 >>=20 >> Mike >=20 > Cheers, >=20 > -Bryan Well, I feel like I totally missed the mark yesterday. I didn=E2=80=99t rea= lize RPI3 was a 64-bit cpu, and I assumed ct-ng did not have aarch64 suppor= t. 0/2=E2=80=A6 On the plus side, I have something to test: https://github.com/crosstool-ng/crosstool-ng/pull/362 Now, the hard part. You can=E2=80=99t run 64-bit binaries on 32-bit. Also, I=E2=80=99m 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=E2=80=99ll j= ust have to be patient and wait to hear your progress. If you do make progr= ess, and need help, post a git repo somewhere and I=E2=80=99ll try to help = if I can. -Bryan >=20 >>=20 >>=20 >> On 03/03/2016 00:28, Stefan Hallas Mulvad wrote: >>> Hi Bryan, >>>=20 >>> I did test this, but at this time there=E2=80=99s (to my knowledge) no = os images available which supports 64 bit. Mine came with 32 bit raspbian, >>>=20 >>> The chip is capable of running in both 32/64 bit mode - but 64 bit must= come down the road as software becomes available. >>>=20 >>> Best regards, >>> Stefan Mulvad >>>=20 >>>=20 >>>> On Mar 2, 2016, at 4:22 PM, Bryan Hundven wro= te: >>>>=20 >>>> Hello Mike, >>>>=20 >>>>=20 >>>>> On Mar 2, 2016, at 3:51 PM, Mike Ray wrote: >>>>>=20 >>>>> Hello. >>>>>=20 >>>>> I have used this sample to build a toolchain. >>>>>=20 >>>>> However I get 32-bit executables and the '-m64' switch is not recogni= zed. >>>>=20 >>>> Sometimes, I expect that when people open pull-requests that they actu= ally test what they submit and I don=E2=80=99t have to do any work. >>>>=20 >>>> Today I failed at that. Yeay! >>>>=20 >>>> Arm64/aarch64 is kind of a new thing in crosstool-NG, and isn=E2=80=99= t well supported. >>>>=20 >>>> I took the pull-request for the sample without looking at the specs fo= r the new raspberry pi 3. I had no clue it was 64-bit. >>>>=20 >>>> Looks like I will have to take some time and get this going. >>>>=20 >>>>>=20 >>>>> There is obviously a gap in my knowledge which I can't seem to find an >>>>> answer for on Google. >>>>>=20 >>>>> Can I compile a 64-bit executable? If so, how? >>>>>=20 >>>>> Thanks for any help. >>>>>=20 >>>>> Mike >>>>>=20 >>>>>=20 >>>>=20 >>>> Thanks for reporting this issue! >>>>=20 >>>> https://github.com/crosstool-ng/crosstool-ng/issues/361 >>>>=20 >>>> Cheers, >>>>=20 >>>> -Bryan >>>=20 >>=20 >>=20 >> -- >> Michael A. Ray >> Analyst/Programmer >> Witley, Surrey, South-east UK >>=20 >> Eyes-free Linux: >> http://eyesfreelinux.ninja/ >>=20 >> Raspberry VI: >> http://www.raspberryvi.org/ >>=20 >>=20 >> -- >> For unsubscribe information see http://sourceware.org/lists.html#faq >>=20 >=20 --Apple-Mail=_319E24D4-8F16-4D7F-B131-E0589836A19F Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail Content-length: 496 -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJW2FXmAAoJEMrXyPw1uHHRHf0H/0h/ee7RFKx6YCmBAZdSS+Du W/CzCoE99Gj5UoCBHpFvnu8ocT/qmG30bJmn/am9Aw57OebqxnKHY//lbDAtcDIj spNHuIEoYJORs5Z5sO2ZhBqb8Juf4Rq8C/qcGfwISmeREGwaPLyoQ8jwMB7pQQGR rXrW+J38ck2DCEtE6FPNaA5xVuRsIQJICAKVIVCfGW9rlX5EH/Hc9Qasl+45JQhu F32xQHHasAxm3kbM5nXCculx4l7dy6b4nOXwNHh1ywKIRqwtHq2vp1zTcOQDKRyA u+l0W/3XANaaovUdDeOFJmah1uLhPxUtoEPGw585Qf4GPdjZeqEozgR9cx4SUY0= =2EzU -----END PGP SIGNATURE----- --Apple-Mail=_319E24D4-8F16-4D7F-B131-E0589836A19F--