List Info

Thread: support for powerpc




support for powerpc
country flaguser name
Germany
2008-05-15 12:56:30
Hi all,

crosstool-ng is a great tool, I like it. Thanks for it.

The powerpc arch is currently not supported.
Is there any reason for it?


Daniel

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


Re: support for powerpc
country flaguser name
France
2008-05-16 16:06:10
Hello Daniel,
All,

On Thursday 15 May 2008 19:56:30 Dittmann, Daniel wrote:
> crosstool-ng is a great tool, I like it. Thanks for
it.



> The powerpc arch is currently not supported.
> Is there any reason for it?

For two simple reasons:
 1) I don't have personal interest in PPC, it not being one
of my targets,
    and thus I can't test by myself (although qemu might
come handy);
 2) noone with PPC interest has contributed code so far (or
I missed it).

If you want, you can try to add PPC support. It's fairly
easy to add a new
architecture: please see the file
"docs/overview.txt", chapter
"Internals",
section "Architecture-specific". Then look at what
other targets do in arch/
and adapt to the PPC case.

If you manage to have it working, then please share your
experiment with us!

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.-
-------------------.
|  Yann E. MORIN  | Real-Time Embedded | /" ASCII
RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer |  / CAMPAIGN     | 
 ^                |
| --==< °_° >==-- °------------.-------:  X  AGAINST  
   |  /e  There is no  |
| http://ymorin.is-a-geek.
org/ | * _ * | /  HTML MAIL    |  """ 
conspiracy.  |
°------------------------------°-------°------------------°-
-------------------°


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


Re: support for powerpc
country flaguser name
Germany
2008-05-17 03:58:44
Hi Yann,
All,

I attached a patch to add powerpc support in crosstool-ng.
Could you please make a short review because it my first
patch.

Thanks,
Daniel



Yann E. MORIN schrieb:
> Hello Daniel,
> All,
> 
> On Thursday 15 May 2008 19:56:30 Dittmann, Daniel
wrote:
>> crosstool-ng is a great tool, I like it. Thanks for
it.
> 
> 
> 
>> The powerpc arch is currently not supported.
>> Is there any reason for it?
> 
> For two simple reasons:
>  1) I don't have personal interest in PPC, it not being
one of my targets,
>     and thus I can't test by myself (although qemu
might come handy);
>  2) noone with PPC interest has contributed code so far
(or I missed it).
> 
> If you want, you can try to add PPC support. It's
fairly easy to add a new
> architecture: please see the file
"docs/overview.txt", chapter
"Internals",
> section "Architecture-specific". Then look at
what other targets do in arch/
> and adapt to the PPC case.
> 
> If you manage to have it working, then please share
your experiment with us!
> 
> Regards,
> Yann E. MORIN.
> 


--
For unsubscribe information see http://sourcewar
e.org/lists.html#faq
  
Re: support for powerpc
country flaguser name
France
2008-05-17 06:00:46
Daniel,

On Saturday 17 May 2008 10:58:44 Dittmann, Daniel wrote:
> I attached a patch to add powerpc support in
crosstool-ng.
> Could you please make a short review because it my
first patch.

The structure is OK.

Did it build a toolchain?
Was the toolchain functional?
Did you boot a kernel built with that toolchain?
Some userland?

See other comments in-lined below...

> diff -Naur
crosstool-ng-1.0.0.orig/arch/powerpc/config.in
crosstool-ng-1.0.0/arch/powerpc/config.in

Please, rediff against 1.1.1 or better yet, against svn
HEAD.

> --- crosstool-ng-1.0.0.orig/arch/powerpc/config.in     
1970-01-01 01:00:00.000000000 +0100
> +++ crosstool-ng-1.0.0/arch/powerpc/config.in  
2008-04-14 10:15:54.000000000 +0200
>  -0,0 +1 
> +# powerpc specific configuration file

No PPC specific option?
What about ppc64?

> diff -Naur
crosstool-ng-1.0.0.orig/arch/powerpc/functions
crosstool-ng-1.0.0/arch/powerpc/functions
> --- crosstool-ng-1.0.0.orig/arch/powerpc/functions     
1970-01-01 01:00:00.000000000 +0100
> +++ crosstool-ng-1.0.0/arch/powerpc/functions  
2008-03-28 15:45:51.000000000 +0100
>  -0,0 +1,9 
> +# Compute powerpc-specific values
> +
> +CT_DoArchValues () {
> +    # The architecture part of the tuple:
> +    CT_TARGET_ARCH="$"

PowerPC can work in big and little endian. How do we set
that in the target
tuple?

> +
> +    # The kernel ARCH:
> +    CT_KERNEL_ARCH=powerpc

What's the difference in the kernel between 'ppc' and
'powerpc', as both
exist?

> +}
> diff -Naur crosstool-ng-1.0.0.orig/config/target.in
crosstool-ng-1.0.0/config/target.in
> --- crosstool-ng-1.0.0.orig/config/target.in   
2008-01-16 23:06:15.000000000 +0100
> +++ crosstool-ng-1.0.0/config/target.in 2008-03-27
11:12:46.000000000 +0100
>  -9,6 +9,7 
>      default "arm"     if ARCH_ARM
>      default "ia64"    if ARCH_IA64
>      default "mips"    if ARCH_MIPS
> +    default "powerpc" if ARCH_PPC
>      default "sh"      if ARCH_SH
>      default "x86"     if ARCH_x86
>      default "x86_64"  if ARCH_x86_64
>  -30,6 +31,10 
>      depends on EXPERIMENTAL
>      select ARCH_SUPPORTS_BOTH_ENDIAN
>
> +config ARCH_PPC
> +    bool
> +    prompt "powerpc"

PowerPC can work in big and little endian. Select
ARCH_SUPPORTS_BOTH_ENDIAN.

> +
>  config ARCH_SH
>      bool
>      prompt "sh (EXPERIMENTAL)"
>  -92,6 +97,9 
>  if ARCH_MIPS
>  source config/arch/mips/config.in
>  endif
> +if ARCH_PPC
> +source config/arch/powerpc/config.in
> +endif
>  if ARCH_SH
>  source config/arch/sh/config.in
>  endif

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.-
-------------------.
|  Yann E. MORIN  | Real-Time Embedded | /" ASCII
RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer |  / CAMPAIGN     | 
 ^                |
| --==< °_° >==-- °------------.-------:  X  AGAINST  
   |  /e  There is no  |
| http://ymorin.is-a-geek.
org/ | * _ * | /  HTML MAIL    |  """ 
conspiracy.  |
°------------------------------°-------°------------------°-
-------------------°


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


Re: support for powerpc
country flaguser name
Germany
2008-05-17 08:41:14
Yann,

thanks for review.

> Did it build a toolchain?
Yes, I built a powerpc gcc-4.2.1, uclibc 0.9.29
cross-compiler and
gdb-server.

> Was the toolchain functional?
> Did you boot a kernel built with that toolchain?
With this toolchain I built a working u-boot and
linux-kernel.

> Some userland?
I'am working on it.

> Please, rediff against 1.1.1 or better yet, against svn
HEAD.
I'll do it.


> No PPC specific option?
It's currently a generic powerpc compiler. It compiles per
default
generic powerpc code.

> What about ppc64?
I have only a ppc32 hardware. So I couldn't test the ppc64
arch.

> PowerPC can work in big and little endian. How do we
set that in the target
> tuple?
My first try supports only big endian. I have no idea at the
moment.

> What's the difference in the kernel between 'ppc' and
'powerpc', as both
> exist?
As far as I know, the kernel arch ppc will be included in
the powerpc
arch and ppc will be removed from kernel.


Regards,
Daniel



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


Re: support for powerpc
user name
2008-05-17 09:49:04
On Sat, May 17, 2008 at 5:00 AM, Yann E. MORIN
<yann.morin.1998anciens.enib.fr> wrote:
> Daniel,
>
> On Saturday 17 May 2008 10:58:44 Dittmann, Daniel
wrote:
>> I attached a patch to add powerpc support in
crosstool-ng.
>> Could you please make a short review because it my
first patch.
>
> The structure is OK.
>
> Did it build a toolchain?
> Was the toolchain functional?
> Did you boot a kernel built with that toolchain?
> Some userland?
>
> See other comments in-lined below...
>
>> diff -Naur
crosstool-ng-1.0.0.orig/arch/powerpc/config.in
crosstool-ng-1.0.0/arch/powerpc/config.in
>
> Please, rediff against 1.1.1 or better yet, against svn
HEAD.
>
>> --- crosstool-ng-1.0.0.orig/arch/powerpc/config.in 
    1970-01-01 01:00:00.000000000 +0100
>> +++ crosstool-ng-1.0.0/arch/powerpc/config.in  
2008-04-14 10:15:54.000000000 +0200
>>  -0,0 +1 
>> +# powerpc specific configuration file
>
> No PPC specific option?
> What about ppc64?
>
>> diff -Naur
crosstool-ng-1.0.0.orig/arch/powerpc/functions
crosstool-ng-1.0.0/arch/powerpc/functions
>> --- crosstool-ng-1.0.0.orig/arch/powerpc/functions 
    1970-01-01 01:00:00.000000000 +0100
>> +++ crosstool-ng-1.0.0/arch/powerpc/functions  
2008-03-28 15:45:51.000000000 +0100
>>  -0,0 +1,9 
>> +# Compute powerpc-specific values
>> +
>> +CT_DoArchValues () {
>> +    # The architecture part of the tuple:
>> +    CT_TARGET_ARCH="$"
>
> PowerPC can work in big and little endian. How do we
set that in the target
> tuple?

Technically true; but Linux on PowerPC only supports big
endian.

>> +
>> +    # The kernel ARCH:
>> +    CT_KERNEL_ARCH=powerpc
>
> What's the difference in the kernel between 'ppc' and
'powerpc', as both
> exist?

arch/ppc is depreciated and will be removed in 2.6.27

>
>> +}
>> diff -Naur crosstool-ng-1.0.0.orig/config/target.in
crosstool-ng-1.0.0/config/target.in
>> --- crosstool-ng-1.0.0.orig/config/target.in   
2008-01-16 23:06:15.000000000 +0100
>> +++ crosstool-ng-1.0.0/config/target.in 2008-03-27
11:12:46.000000000 +0100
>>  -9,6 +9,7 
>>      default "arm"     if ARCH_ARM
>>      default "ia64"    if ARCH_IA64
>>      default "mips"    if ARCH_MIPS
>> +    default "powerpc" if ARCH_PPC
>>      default "sh"      if ARCH_SH
>>      default "x86"     if ARCH_x86
>>      default "x86_64"  if ARCH_x86_64
>>  -30,6 +31,10 
>>      depends on EXPERIMENTAL
>>      select ARCH_SUPPORTS_BOTH_ENDIAN
>>
>> +config ARCH_PPC
>> +    bool
>> +    prompt "powerpc"
>
> PowerPC can work in big and little endian. Select
ARCH_SUPPORTS_BOTH_ENDIAN.

As mentioned above, not true for Linux support; big endian
only.

>> +
>>  config ARCH_SH
>>      bool
>>      prompt "sh (EXPERIMENTAL)"
>>  -92,6 +97,9 
>>  if ARCH_MIPS
>>  source config/arch/mips/config.in
>>  endif
>> +if ARCH_PPC
>> +source config/arch/powerpc/config.in
>> +endif
>>  if ARCH_SH
>>  source config/arch/sh/config.in
>>  endif
>
> Regards,
> Yann E. MORIN.
>
> --
>
.-----------------.--------------------.------------------.-
-------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /" ASCII
RIBBON | Erics' conspiracy: |
> | +0/33 662376056 | Software  Designer |  / CAMPAIGN  
  |   ^                |
> | --==< °_° >==-- °------------.-------:  X 
AGAINST      |  /e  There is no  |
> | http://ymorin.is-a-geek.
org/ | * _ * | /  HTML MAIL    |  """ 
conspiracy.  |
>
°------------------------------°-------°------------------°-
-------------------°
>
>
> --
> For unsubscribe information see http://sourcewar
e.org/lists.html#faq
>
>



-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

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


Re: support for powerpc
user name
2008-05-17 10:32:01
On Sat, 2008-05-17 at 08:49 -0600, Grant Likely wrote:
> > PowerPC can work in big and little endian.
> 
> As mentioned above, not true for Linux support; big
endian only.

But this is GCC crosstools.  A GCC cross-compiler can target
more than
just Linux.

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


Re: support for powerpc
country flaguser name
France
2008-05-17 10:36:49
Grant, Daniel,
All,

On Saturday 17 May 2008 16:49:04 Grant Likely wrote:
> On Sat, May 17, 2008 at 5:00 AM, Yann E. MORIN
> > PowerPC can work in big and little endian. How do
we set that in the target
> > tuple?
> Technically true; but Linux on PowerPC only supports
big endian.

That's all good, then. crosstool-NG only supports Linux so
far.

> > What's the difference in the kernel between 'ppc'
and 'powerpc', as both
> > exist?
> arch/ppc is depreciated and will be removed in 2.6.27

OK.

Thank you for the explanations.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.-
-------------------.
|  Yann E. MORIN  | Real-Time Embedded | /" ASCII
RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer |  / CAMPAIGN     | 
 ^                |
| --==< °_° >==-- °------------.-------:  X  AGAINST  
   |  /e  There is no  |
| http://ymorin.is-a-geek.
org/ | * _ * | /  HTML MAIL    |  """ 
conspiracy.  |
°------------------------------°-------°------------------°-
-------------------°


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


Re: support for powerpc
country flaguser name
France
2008-05-17 10:43:23
Paul,

On Saturday 17 May 2008 17:32:01 Paul Smith wrote:
> But this is GCC crosstools.  A GCC cross-compiler can
target more than
> just Linux.

Yes, I know. But currently, crosstool-NG only suport
building toolchains
targetting Linux-based systems.

BSD, cygwin (and others) might come in the future, but
that's not _my_
priority so far...

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.-
-------------------.
|  Yann E. MORIN  | Real-Time Embedded | /" ASCII
RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer |  / CAMPAIGN     | 
 ^                |
| --==< °_° >==-- °------------.-------:  X  AGAINST  
   |  /e  There is no  |
| http://ymorin.is-a-geek.
org/ | * _ * | /  HTML MAIL    |  """ 
conspiracy.  |
°------------------------------°-------°------------------°-
-------------------°


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


Re: support for powerpc
country flaguser name
France
2008-05-17 10:50:41
On Saturday 17 May 2008 15:41:14 Dittmann, Daniel wrote:
> Yes, I built a powerpc gcc-4.2.1, uclibc 0.9.29
cross-compiler and
> gdb-server.
> With this toolchain I built a working u-boot and
linux-kernel.

Good!

> > Some userland?
> I'am working on it.
> > Please, rediff against 1.1.1 or better yet,
against svn HEAD.
> I'll do it.

Nice.

> > No PPC specific option?
> It's currently a generic powerpc compiler. It compiles
per default
> generic powerpc code.
> 
> > What about ppc64?
> I have only a ppc32 hardware. So I couldn't test the
ppc64 arch.

Would you mind telling me what HW that is?

> > PowerPC can work in big and little endian. How do
we set that in the target
> > tuple?
> My first try supports only big endian. I have no idea
at the moment.

See other post. AFAIAC, single endianness is then perfectly
OK.

> > What's the difference in the kernel between 'ppc'
and 'powerpc', as both
> > exist?
> As far as I know, the kernel arch ppc will be included
in the powerpc
> arch and ppc will be removed from kernel.

ACK.

Thank you.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.-
-------------------.
|  Yann E. MORIN  | Real-Time Embedded | /" ASCII
RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer |  / CAMPAIGN     | 
 ^                |
| --==< °_° >==-- °------------.-------:  X  AGAINST  
   |  /e  There is no  |
| http://ymorin.is-a-geek.
org/ | * _ * | /  HTML MAIL    |  """ 
conspiracy.  |
°------------------------------°-------°------------------°-
-------------------°


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


[1-10] [11-12]

about | contact  Other archives ( Real Estate discussion Medical topics )