DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-03-05 11:42:06

sjmac
Member
Registered: 2008-01-21
Posts: 222

ARM Toolchain HELP: CROSS_COMPILER_PREFIX ?

I want to set up the tool chain to compile for my DNS323. If I follow the instructions from
http://dns323.kood.org/howto:crosscompile
will my existing (amd64) GCC dev environment be affected?

I have got as far as the "Build the ARM UCLIBC toolchain" and have accepted all of the default values for the options offered during the configuration steps. Is that correct? Options like

Target Architecture: arm TARGET_arm
Target Processor Type: Generic Arm (CONFIG_GENERIC_ARM)
Target Processor Endianess: Little Endian (ARCH_LITTLE_ENDIAN)
Target CPU has a memory management unit (MMU): Y
FORCE_SHAREABLE_TEXT_SEGMENTS: N
Enable Shared library loader cache LDSO_CACHE_SUPPORT: Y
Enable shared library preload support LDSO_PRELOAD_FILE_SUPPORT: N
LDSO_BASE_FILENAME: ld.so
Enable ELF RUNPATH support LDSO_RUNPATH: Y
Ulibc 0.9.27 compatibility DL_FINI_CRT_COMPAT: N
... and others ...

There was one option that I chose a non-default value for:
CROSS_COMPILER_PREFIX: default []

I choose 'arm'. I'm guessing that I'll be able to compile by typing armgcc instead of gcc, is that correct?

Was it a good idea?

Offline

 

#2 2008-03-05 12:03:52

jules
Member
Registered: 2008-01-26
Posts: 78

Re: ARM Toolchain HELP: CROSS_COMPILER_PREFIX ?

When asked for Target Processor Type you can also choose the right model of arm embedded in the soc of the dns323, an arm926t. Some additional optimizations should be done by gcc with that value configured correctly.
For the prefix thing, the only variable that i remember with that name is the PREFIX used by the toolchain to identify the path where the compiled files will be installed, variable that the guide show how to set... so even an incorrect value given while building the toolchain should not be an issue. For the available gcc alias you can look in uclibc-toolchain-src-20040609/gcc-3.3.x/toolchain_arm/bin , there are many of them, the guide suggests to use arm-linux-gcc, but there are many other symbolic links pointing to the arm gcc of the toolchain.


CH3SNAS - Black Box Ed. • FW:1.03b6a • 2 x WD5000AAKS

Offline

 

#3 2008-03-05 13:40:14

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: ARM Toolchain HELP: CROSS_COMPILER_PREFIX ?

jules wrote:

When asked for Target Processor Type you can also choose the right model of arm embedded in the soc of the dns323, an arm926t.

Thanks for that info - I'll spin it again, and maybe update the wiki page if it all works OK.

jules wrote:

For the prefix thing, the only variable that i remember with that name is the PREFIX used by the toolchain to identify the path where the compiled files will be installed

No, that was a different option. I'll have a quick play to see what got compiled when I get home ... (Edit: no, I think you were right. I've compiled again using the default (blank) value.)

jules wrote:

For the available gcc alias you can look in uclibc-toolchain-src-20040609/gcc-3.3.x/toolchain_arm/bin , there are many of them, the guide suggests to use arm-linux-gcc, but there are many other symbolic links pointing to the arm gcc of the toolchain.

Which guide are you referring to?

Thanks for the pointers, I'll take a dig around in toolchain_arm/bin ...

Last edited by sjmac (2008-03-06 00:33:39)

Offline

 

#4 2008-03-05 15:40:17

jules
Member
Registered: 2008-01-26
Posts: 78

Re: ARM Toolchain HELP: CROSS_COMPILER_PREFIX ?

sjmac wrote:

Which guide are you referring to?

Thanks for the pointers, I'll take a dig around in toolchain_arm/bin ...

The toolchain guide on the wiki. You can set the gcc that will be used through the CC variable.


CH3SNAS - Black Box Ed. • FW:1.03b6a • 2 x WD5000AAKS

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB