> 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 >> >