public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config
@ 2016-03-02 20:11 Bryan Hundven
  2016-03-02 23:51 ` Mike Ray
  2016-03-10 21:20 ` Thomas Petazzoni
  0 siblings, 2 replies; 12+ messages in thread
From: Bryan Hundven @ 2016-03-02 20:11 UTC (permalink / raw)
  To: crossgcc

[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]

  Branch: refs/heads/master
  Home:   https://github.com/crosstool-ng/crosstool-ng
  Commit: bc9ed3c5cb4a9b003ad9a48381cef0142d617dad
      https://github.com/crosstool-ng/crosstool-ng/commit/bc9ed3c5cb4a9b003ad9a48381cef0142d617dad
  Author: Stefan Hallas Mulvad <kongen@greenwavesystems.com>
  Date:   2016-03-02 (Wed, 02 Mar 2016)

  Changed paths:
    A samples/armv8-rpi3-linux-gnueabihf/crosstool.config
    A samples/armv8-rpi3-linux-gnueabihf/reported.by

  Log Message:
  -----------
  Adds Raspberry Pi 3 sample config

Signed-off-by: Stefan Hallas Mulvad <shm@hallas.nu>


  Commit: 0f76cad2f078bfa2726639c7a812dcc84f331d4a
      https://github.com/crosstool-ng/crosstool-ng/commit/0f76cad2f078bfa2726639c7a812dcc84f331d4a
  Author: Bryan Hundven <bryanhundven@gmail.com>
  Date:   2016-03-02 (Wed, 02 Mar 2016)

  Changed paths:
    A samples/armv8-rpi3-linux-gnueabihf/crosstool.config
    A samples/armv8-rpi3-linux-gnueabihf/reported.by

  Log Message:
  -----------
  Merge pull request #360 from kongen/RPi3

Adds Raspberry Pi 3 sample config


Compare: https://github.com/crosstool-ng/crosstool-ng/compare/785dbce3510a...0f76cad2f078

[-- Attachment #2: Type: text/plain, Size: 71 bytes --]

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config
  2016-03-02 20:11 [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config Bryan Hundven
@ 2016-03-02 23:51 ` Mike Ray
  2016-03-03  0:23   ` Bryan Hundven
  2016-03-03  0:25   ` Stefan Hallas Mulvad
  2016-03-10 21:20 ` Thomas Petazzoni
  1 sibling, 2 replies; 12+ messages in thread
From: Mike Ray @ 2016-03-02 23:51 UTC (permalink / raw)
  To: crossgcc

Hello.

I have used this sample to build a toolchain.

However I get 32-bit executables and the '-m64' switch is not recognised.

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


On 02/03/2016 20:11, Bryan Hundven wrote:
>   Branch: refs/heads/master
>   Home:   https://github.com/crosstool-ng/crosstool-ng
>   Commit: bc9ed3c5cb4a9b003ad9a48381cef0142d617dad
>       https://github.com/crosstool-ng/crosstool-ng/commit/bc9ed3c5cb4a9b003ad9a48381cef0142d617dad
>   Author: Stefan Hallas Mulvad <kongen@greenwavesystems.com>
>   Date:   2016-03-02 (Wed, 02 Mar 2016)
> 
>   Changed paths:
>     A samples/armv8-rpi3-linux-gnueabihf/crosstool.config
>     A samples/armv8-rpi3-linux-gnueabihf/reported.by
> 
>   Log Message:
>   -----------
>   Adds Raspberry Pi 3 sample config
> 
> Signed-off-by: Stefan Hallas Mulvad <shm@hallas.nu>
> 
> 
>   Commit: 0f76cad2f078bfa2726639c7a812dcc84f331d4a
>       https://github.com/crosstool-ng/crosstool-ng/commit/0f76cad2f078bfa2726639c7a812dcc84f331d4a
>   Author: Bryan Hundven <bryanhundven@gmail.com>
>   Date:   2016-03-02 (Wed, 02 Mar 2016)
> 
>   Changed paths:
>     A samples/armv8-rpi3-linux-gnueabihf/crosstool.config
>     A samples/armv8-rpi3-linux-gnueabihf/reported.by
> 
>   Log Message:
>   -----------
>   Merge pull request #360 from kongen/RPi3
> 
> Adds Raspberry Pi 3 sample config
> 
> 
> Compare: https://github.com/crosstool-ng/crosstool-ng/compare/785dbce3510a...0f76cad2f078
> 
> 
> 
> --
> 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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config
  2016-03-02 23:51 ` Mike Ray
@ 2016-03-03  0:23   ` Bryan Hundven
  2016-03-03  0:28     ` Stefan Hallas Mulvad
  2016-03-03  0:25   ` Stefan Hallas Mulvad
  1 sibling, 1 reply; 12+ messages in thread
From: Bryan Hundven @ 2016-03-03  0:23 UTC (permalink / raw)
  To: mike; +Cc: crossgcc

[-- Attachment #1: Type: text/plain, Size: 1004 bytes --]

Hello Mike,


> On Mar 2, 2016, at 3:51 PM, Mike Ray <mike@raspberryvi.org> 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

[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 496 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config
  2016-03-02 23:51 ` Mike Ray
  2016-03-03  0:23   ` Bryan Hundven
@ 2016-03-03  0:25   ` Stefan Hallas Mulvad
  1 sibling, 0 replies; 12+ messages in thread
From: Stefan Hallas Mulvad @ 2016-03-03  0:25 UTC (permalink / raw)
  To: mike; +Cc: crossgcc

[-- Attachment #1: Type: text/plain, Size: 2358 bytes --]

Hi Mike,

No, I don’t believe you can - this toolchain is for 32 bit / cortex-a53. You’re looking for aarch64, which I’m also looking into - for the minute this works for RPi3 / raspbian.

Best regards,
Stefan Mulvad


> On Mar 2, 2016, at 3:51 PM, Mike Ray <mike@raspberryvi.org> wrote:
> 
> Hello.
> 
> I have used this sample to build a toolchain.
> 
> However I get 32-bit executables and the '-m64' switch is not recognised.
> 
> 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
> 
> 
> On 02/03/2016 20:11, Bryan Hundven wrote:
>>  Branch: refs/heads/master
>>  Home:   https://github.com/crosstool-ng/crosstool-ng
>>  Commit: bc9ed3c5cb4a9b003ad9a48381cef0142d617dad
>>      https://github.com/crosstool-ng/crosstool-ng/commit/bc9ed3c5cb4a9b003ad9a48381cef0142d617dad
>>  Author: Stefan Hallas Mulvad <kongen@greenwavesystems.com>
>>  Date:   2016-03-02 (Wed, 02 Mar 2016)
>> 
>>  Changed paths:
>>    A samples/armv8-rpi3-linux-gnueabihf/crosstool.config
>>    A samples/armv8-rpi3-linux-gnueabihf/reported.by
>> 
>>  Log Message:
>>  -----------
>>  Adds Raspberry Pi 3 sample config
>> 
>> Signed-off-by: Stefan Hallas Mulvad <shm@hallas.nu>
>> 
>> 
>>  Commit: 0f76cad2f078bfa2726639c7a812dcc84f331d4a
>>      https://github.com/crosstool-ng/crosstool-ng/commit/0f76cad2f078bfa2726639c7a812dcc84f331d4a
>>  Author: Bryan Hundven <bryanhundven@gmail.com>
>>  Date:   2016-03-02 (Wed, 02 Mar 2016)
>> 
>>  Changed paths:
>>    A samples/armv8-rpi3-linux-gnueabihf/crosstool.config
>>    A samples/armv8-rpi3-linux-gnueabihf/reported.by
>> 
>>  Log Message:
>>  -----------
>>  Merge pull request #360 from kongen/RPi3
>> 
>> Adds Raspberry Pi 3 sample config
>> 
>> 
>> Compare: https://github.com/crosstool-ng/crosstool-ng/compare/785dbce3510a...0f76cad2f078
>> 
>> 
>> 
>> --
>> 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
> 


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 496 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config
  2016-03-03  0:23   ` Bryan Hundven
@ 2016-03-03  0:28     ` Stefan Hallas Mulvad
  2016-03-03  6:23       ` Mike Ray
  0 siblings, 1 reply; 12+ messages in thread
From: Stefan Hallas Mulvad @ 2016-03-03  0:28 UTC (permalink / raw)
  To: Bryan Hundven; +Cc: mike, crossgcc

[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]

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 <bryanhundven@gmail.com> wrote:
> 
> Hello Mike,
> 
> 
>> On Mar 2, 2016, at 3:51 PM, Mike Ray <mike@raspberryvi.org> 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


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 496 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config
  2016-03-03  0:28     ` Stefan Hallas Mulvad
@ 2016-03-03  6:23       ` Mike Ray
  2016-03-03 12:45         ` Bryan Hundven
  0 siblings, 1 reply; 12+ messages in thread
From: Mike Ray @ 2016-03-03  6:23 UTC (permalink / raw)
  To: crossgcc

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.

I will continue to tinker and at the same time wait to see if there are
changes to this sample.

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.

Mike


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 <bryanhundven@gmail.com> wrote:
>>
>> Hello Mike,
>>
>>
>>> On Mar 2, 2016, at 3:51 PM, Mike Ray <mike@raspberryvi.org> 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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config
  2016-03-03  6:23       ` Mike Ray
@ 2016-03-03 12:45         ` Bryan Hundven
  2016-03-03 15:19           ` Bryan Hundven
  0 siblings, 1 reply; 12+ messages in thread
From: Bryan Hundven @ 2016-03-03 12:45 UTC (permalink / raw)
  To: mike; +Cc: crossgcc

[-- Attachment #1: Type: text/plain, Size: 2991 bytes --]


> On Mar 2, 2016, at 10:23 PM, Mike Ray <mike@raspberryvi.org> 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

> 
> 
> 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 <bryanhundven@gmail.com> wrote:
>>> 
>>> Hello Mike,
>>> 
>>> 
>>>> On Mar 2, 2016, at 3:51 PM, Mike Ray <mike@raspberryvi.org> 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
> 


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 496 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config
  2016-03-03 12:45         ` Bryan Hundven
@ 2016-03-03 15:19           ` Bryan Hundven
  2016-03-03 15:52             ` Mike Ray
  0 siblings, 1 reply; 12+ messages in thread
From: Bryan Hundven @ 2016-03-03 15:19 UTC (permalink / raw)
  To: mike; +Cc: crossgcc

[-- Attachment #1: Type: text/plain, Size: 3881 bytes --]


> On Mar 3, 2016, at 4:45 AM, Bryan Hundven <bryanhundven@gmail.com> wrote:
> 
> 
>> On Mar 2, 2016, at 10:23 PM, Mike Ray <mike@raspberryvi.org> 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 <bryanhundven@gmail.com> wrote:
>>>> 
>>>> Hello Mike,
>>>> 
>>>> 
>>>>> On Mar 2, 2016, at 3:51 PM, Mike Ray <mike@raspberryvi.org> 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
>> 
> 


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 496 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config
  2016-03-03 15:19           ` Bryan Hundven
@ 2016-03-03 15:52             ` Mike Ray
  2016-03-03 15:58               ` Bryan Hundven
  0 siblings, 1 reply; 12+ messages in thread
From: Mike Ray @ 2016-03-03 15:52 UTC (permalink / raw)
  To: crossgcc

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 <bryanhundven@gmail.com> wrote:
>>
>>
>>> On Mar 2, 2016, at 10:23 PM, Mike Ray <mike@raspberryvi.org> 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 <bryanhundven@gmail.com> wrote:
>>>>>
>>>>> Hello Mike,
>>>>>
>>>>>
>>>>>> On Mar 2, 2016, at 3:51 PM, Mike Ray <mike@raspberryvi.org> 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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config
  2016-03-03 15:52             ` Mike Ray
@ 2016-03-03 15:58               ` Bryan Hundven
  0 siblings, 0 replies; 12+ messages in thread
From: Bryan Hundven @ 2016-03-03 15:58 UTC (permalink / raw)
  To: mike; +Cc: crossgcc

[-- Attachment #1: Type: text/plain, Size: 5348 bytes --]


> On Mar 3, 2016, at 7:52 AM, Mike Ray <mike@raspberryvi.org> wrote:
> 
> 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.

I think the toolchain built here should work fine, I’m just saying that the platform itself might need a little love. When I get my rpi3, I’ll definitely be wanting to running the test-suite on it asap.


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

PS: it’s hard to keep context of the message when you top post. Please don’t top post. :)
https://en.wikipedia.org/wiki/Posting_style

> 
> On 03/03/2016 15:19, Bryan Hundven wrote:
>> 
>>> On Mar 3, 2016, at 4:45 AM, Bryan Hundven <bryanhundven@gmail.com> wrote:
>>> 
>>> 
>>>> On Mar 2, 2016, at 10:23 PM, Mike Ray <mike@raspberryvi.org> 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 <bryanhundven@gmail.com> wrote:
>>>>>> 
>>>>>> Hello Mike,
>>>>>> 
>>>>>> 
>>>>>>> On Mar 2, 2016, at 3:51 PM, Mike Ray <mike@raspberryvi.org> 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
> 


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 496 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config
  2016-03-02 20:11 [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config Bryan Hundven
  2016-03-02 23:51 ` Mike Ray
@ 2016-03-10 21:20 ` Thomas Petazzoni
  2016-03-11  2:06   ` Bryan Hundven
  1 sibling, 1 reply; 12+ messages in thread
From: Thomas Petazzoni @ 2016-03-10 21:20 UTC (permalink / raw)
  To: Bryan Hundven; +Cc: crossgcc

Hello,

On Wed, 02 Mar 2016 12:11:45 -0800, Bryan Hundven wrote:

>   Changed paths:
>     A samples/armv8-rpi3-linux-gnueabihf/crosstool.config
>     A samples/armv8-rpi3-linux-gnueabihf/reported.by

I think it is not a good idea to have a configuration named after a
board, as the discussion generated around this addition shows.

Indeed, an ARMv8 processor can run both in 32 bits mode or 64 bits mode
depending on the use cases. So a single board like the RPi3 can
require the use of either an ARM toolchain, or an AArch64 toolchain.

So, I think you should stick to configurations for processor cores, not
boards. So:

	arm-cortex-a15
	arm-cortex-a7
	aarch64-cortex-a53
	aarch64-cortex-a72
	...

Then, a RPi3 user can chose either an arm-* toolchain or an aarch64-*
toolchain depending on what he wants to do.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config
  2016-03-10 21:20 ` Thomas Petazzoni
@ 2016-03-11  2:06   ` Bryan Hundven
  0 siblings, 0 replies; 12+ messages in thread
From: Bryan Hundven @ 2016-03-11  2:06 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: crossgcc

[-- Attachment #1: Type: text/plain, Size: 1078 bytes --]


> On Mar 10, 2016, at 1:20 PM, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:
> 
> Hello,
> 
> On Wed, 02 Mar 2016 12:11:45 -0800, Bryan Hundven wrote:
> 
>>  Changed paths:
>>    A samples/armv8-rpi3-linux-gnueabihf/crosstool.config
>>    A samples/armv8-rpi3-linux-gnueabihf/reported.by
> 
> I think it is not a good idea to have a configuration named after a
> board, as the discussion generated around this addition shows.
> 
> Indeed, an ARMv8 processor can run both in 32 bits mode or 64 bits mode
> depending on the use cases. So a single board like the RPi3 can
> require the use of either an ARM toolchain, or an AArch64 toolchain.
> 
> So, I think you should stick to configurations for processor cores, not
> boards. So:
> 
> 	arm-cortex-a15
> 	arm-cortex-a7
> 	aarch64-cortex-a53
> 	aarch64-cortex-a72
> 	...
> 
> Then, a RPi3 user can chose either an arm-* toolchain or an aarch64-*
> toolchain depending on what he wants to do.

I can agree with that. I’ll look into renaming the samples soon!

Cheers,

-Bryan

[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 496 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-03-11  2:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-02 20:11 [crosstool-ng/crosstool-ng] bc9ed3: Adds Raspberry Pi 3 sample config Bryan Hundven
2016-03-02 23:51 ` Mike Ray
2016-03-03  0:23   ` Bryan Hundven
2016-03-03  0:28     ` Stefan Hallas Mulvad
2016-03-03  6:23       ` Mike Ray
2016-03-03 12:45         ` Bryan Hundven
2016-03-03 15:19           ` Bryan Hundven
2016-03-03 15:52             ` Mike Ray
2016-03-03 15:58               ` Bryan Hundven
2016-03-03  0:25   ` Stefan Hallas Mulvad
2016-03-10 21:20 ` Thomas Petazzoni
2016-03-11  2:06   ` Bryan Hundven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).