scripts to build toolchains ( arm79 and cortex-m3 )

classic Classic list List threaded Threaded
5 messages Options
Marcelo Politzer Marcelo Politzer
Reply | Threaded
Open this post in threaded view
|

scripts to build toolchains ( arm79 and cortex-m3 )

Hello eLuers,

After some changes of SO ( Gentoo 64bits to Ubuntu 64bits to Ubuntu 32bits ... ) and some rebuilds of the toolchains.
I've decided to create a bash script to do it for me.

It download the required files ( binutils, gcc, newlib ), do the apt-gets, do the patches to get thumb2 and finaly build ( and also creates the symbolic links, to remove this step read Obs1. )

A Special thanks to Bogdan who created the tutorial that I've folowed a few times and shamelessly copied to create the script. :)

  • To run it `sudo ./build_arm79.sh && sudo ./build_arm_cortex_m3.sh'
  • If you already have the needed files: "gcc-4.3.3.tar,bz2, binutils-2.19.50.tar.bz2, newlib-1.17.0.tar.gz" you can create a folder named workdir at the same folder as the scripts and put the files inside to not re download them. If you you don't the script downloads them automagicaly ( tnx to wget ).

The Idea is to put it at the wiki after some more testing.
But before that I'm posting to know
  • if it worth mantaining
  • someone would like to add/remove/say anything about it.
add something more importantly, to share it :)

so...

feedbacks are welcome.

  • Obs1: The script creates the symbolic links I've talked on the other thread. don't know if people aready read about it, but you can comment out the following lines to avoid this:

on file build_arm79.sh:
lines 86 to 88

on file build_arm_cortex_m3.sh:
lines 77 to 81

  • Obs2: The script already adds /usr/local/cross-arm/bin and /usr/local/cross-cortex/bin to the path via .bashrc, to avoid this comment out:
on file build_arm79.sh:
lines 90 to 97

on file build_arm_cortex_m3.sh:
lines 83 to 90

  • Obs3: If you have a diferent linux then ubuntu or gentoo, you have to comment lines 7 to 11 and manualy get the packages. And also you can send me the line to do the job for a path to it. :)
And That's about it...

Best Regards,
Marcelo Politzer Couto

_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev

build_arm79.sh (3K) Download Attachment
build_arm_cortex_m3.sh (3K) Download Attachment
Fernando Araújo Fernando Araújo
Reply | Threaded
Open this post in threaded view
|

Re: scripts to build toolchains ( arm79 and cortex-m3 )

Great! Tested it here and it's fully working!

Best,
--
Fernando Araujo




On Thu, Apr 29, 2010 at 03:55, Marcelo Politzer <[hidden email]> wrote:
Hello eLuers,

After some changes of SO ( Gentoo 64bits to Ubuntu 64bits to Ubuntu 32bits ... ) and some rebuilds of the toolchains.
I've decided to create a bash script to do it for me.

It download the required files ( binutils, gcc, newlib ), do the apt-gets, do the patches to get thumb2 and finaly build ( and also creates the symbolic links, to remove this step read Obs1. )

A Special thanks to Bogdan who created the tutorial that I've folowed a few times and shamelessly copied to create the script. :)

  • To run it `sudo ./build_arm79.sh && sudo ./build_arm_cortex_m3.sh'
  • If you already have the needed files: "gcc-4.3.3.tar,bz2, binutils-2.19.50.tar.bz2, newlib-1.17.0.tar.gz" you can create a folder named workdir at the same folder as the scripts and put the files inside to not re download them. If you you don't the script downloads them automagicaly ( tnx to wget ).

The Idea is to put it at the wiki after some more testing.
But before that I'm posting to know
  • if it worth mantaining
  • someone would like to add/remove/say anything about it.
add something more importantly, to share it :)

so...

feedbacks are welcome.

  • Obs1: The script creates the symbolic links I've talked on the other thread. don't know if people aready read about it, but you can comment out the following lines to avoid this:

on file build_arm79.sh:
lines 86 to 88

on file build_arm_cortex_m3.sh:
lines 77 to 81

  • Obs2: The script already adds /usr/local/cross-arm/bin and /usr/local/cross-cortex/bin to the path via .bashrc, to avoid this comment out:
on file build_arm79.sh:
lines 90 to 97

on file build_arm_cortex_m3.sh:
lines 83 to 90

  • Obs3: If you have a diferent linux then ubuntu or gentoo, you have to comment lines 7 to 11 and manualy get the packages. And also you can send me the line to do the job for a path to it. :)
And That's about it...

Best Regards,
Marcelo Politzer Couto

_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev



_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Mike Panetta Mike Panetta
Reply | Threaded
Open this post in threaded view
|

Re: scripts to build toolchains ( arm79 and cortex-m3 )

Why don't you just do a multilib ARM build and cover all 3 bases with one compiler?  Or just use the codesourcery tools (which are already set up this way)...

Mike

2010/5/8 Fernando Araújo <[hidden email]>
Great! Tested it here and it's fully working!

Best,
--
Fernando Araujo




On Thu, Apr 29, 2010 at 03:55, Marcelo Politzer <[hidden email]> wrote:
Hello eLuers,

After some changes of SO ( Gentoo 64bits to Ubuntu 64bits to Ubuntu 32bits ... ) and some rebuilds of the toolchains.
I've decided to create a bash script to do it for me.

It download the required files ( binutils, gcc, newlib ), do the apt-gets, do the patches to get thumb2 and finaly build ( and also creates the symbolic links, to remove this step read Obs1. )

A Special thanks to Bogdan who created the tutorial that I've folowed a few times and shamelessly copied to create the script. :)

  • To run it `sudo ./build_arm79.sh && sudo ./build_arm_cortex_m3.sh'
  • If you already have the needed files: "gcc-4.3.3.tar,bz2, binutils-2.19.50.tar.bz2, newlib-1.17.0.tar.gz" you can create a folder named workdir at the same folder as the scripts and put the files inside to not re download them. If you you don't the script downloads them automagicaly ( tnx to wget ).

The Idea is to put it at the wiki after some more testing.
But before that I'm posting to know
  • if it worth mantaining
  • someone would like to add/remove/say anything about it.
add something more importantly, to share it :)

so...

feedbacks are welcome.

  • Obs1: The script creates the symbolic links I've talked on the other thread. don't know if people aready read about it, but you can comment out the following lines to avoid this:

on file build_arm79.sh:
lines 86 to 88

on file build_arm_cortex_m3.sh:
lines 77 to 81

  • Obs2: The script already adds /usr/local/cross-arm/bin and /usr/local/cross-cortex/bin to the path via .bashrc, to avoid this comment out:
on file build_arm79.sh:
lines 90 to 97

on file build_arm_cortex_m3.sh:
lines 83 to 90

  • Obs3: If you have a diferent linux then ubuntu or gentoo, you have to comment lines 7 to 11 and manualy get the packages. And also you can send me the line to do the job for a path to it. :)
And That's about it...

Best Regards,
Marcelo Politzer Couto

_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev



_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev



_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Fernando Araújo Fernando Araújo
Reply | Threaded
Open this post in threaded view
|

Re: scripts to build toolchains ( arm79 and cortex-m3 )

There are some changes from one compiler to another. E.g. Codesourcery gives best performance in floating point operations but outputs a bigger binary file. Also, it's good for testing purposes to have all the toolchains actually installed.

Best,
--
Fernando Araujo




On Sat, May 8, 2010 at 15:46, Mike Panetta <[hidden email]> wrote:
Why don't you just do a multilib ARM build and cover all 3 bases with one compiler?  Or just use the codesourcery tools (which are already set up this way)...

Mike

2010/5/8 Fernando Araújo <[hidden email]>

Great! Tested it here and it's fully working!

Best,
--
Fernando Araujo




On Thu, Apr 29, 2010 at 03:55, Marcelo Politzer <[hidden email]> wrote:
Hello eLuers,

After some changes of SO ( Gentoo 64bits to Ubuntu 64bits to Ubuntu 32bits ... ) and some rebuilds of the toolchains.
I've decided to create a bash script to do it for me.

It download the required files ( binutils, gcc, newlib ), do the apt-gets, do the patches to get thumb2 and finaly build ( and also creates the symbolic links, to remove this step read Obs1. )

A Special thanks to Bogdan who created the tutorial that I've folowed a few times and shamelessly copied to create the script. :)

  • To run it `sudo ./build_arm79.sh && sudo ./build_arm_cortex_m3.sh'
  • If you already have the needed files: "gcc-4.3.3.tar,bz2, binutils-2.19.50.tar.bz2, newlib-1.17.0.tar.gz" you can create a folder named workdir at the same folder as the scripts and put the files inside to not re download them. If you you don't the script downloads them automagicaly ( tnx to wget ).

The Idea is to put it at the wiki after some more testing.
But before that I'm posting to know
  • if it worth mantaining
  • someone would like to add/remove/say anything about it.
add something more importantly, to share it :)

so...

feedbacks are welcome.

  • Obs1: The script creates the symbolic links I've talked on the other thread. don't know if people aready read about it, but you can comment out the following lines to avoid this:

on file build_arm79.sh:
lines 86 to 88

on file build_arm_cortex_m3.sh:
lines 77 to 81

  • Obs2: The script already adds /usr/local/cross-arm/bin and /usr/local/cross-cortex/bin to the path via .bashrc, to avoid this comment out:
on file build_arm79.sh:
lines 90 to 97

on file build_arm_cortex_m3.sh:
lines 83 to 90

  • Obs3: If you have a diferent linux then ubuntu or gentoo, you have to comment lines 7 to 11 and manualy get the packages. And also you can send me the line to do the job for a path to it. :)
And That's about it...

Best Regards,
Marcelo Politzer Couto

_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev



_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev



_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev



_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
jbsnyder jbsnyder
Reply | Threaded
Open this post in threaded view
|

Re: scripts to build toolchains ( arm79 and cortex-m3 )

The scripts that I linked to for making a multilib toolchain
(http://github.com/jsnyder/arm-eabi-toolchain) uses codesourcery's
sources and generates fairly small binaries (I haven't done a recent
comparison with the elf chain, but output is definitely smaller than
standard codesourcery).  The only thing that seems to have a minor
downside with this multilib chain is that it seems like more SRAM is
getting used for something.

I'm planning to give these scripts a try though so I can do some
side-by-side comparisons.

AFAIK, that makefile should work on Mac OS X and Ubuntu (32 or 64-bit)

2010/5/8 Fernando Araújo <[hidden email]>:

> There are some changes from one compiler to another. E.g. Codesourcery gives
> best performance in floating point operations but outputs a bigger binary
> file. Also, it's good for testing purposes to have all the toolchains
> actually installed.
>
> Best,
> --
> Fernando Araujo
>
>
>
>
> On Sat, May 8, 2010 at 15:46, Mike Panetta <[hidden email]> wrote:
>>
>> Why don't you just do a multilib ARM build and cover all 3 bases with one
>> compiler?  Or just use the codesourcery tools (which are already set up this
>> way)...
>>
>> Mike
>>
>> 2010/5/8 Fernando Araújo <[hidden email]>
>>>
>>> Great! Tested it here and it's fully working!
>>>
>>> Best,
>>> --
>>> Fernando Araujo
>>>
>>>
>>>
>>>
>>> On Thu, Apr 29, 2010 at 03:55, Marcelo Politzer <[hidden email]>
>>> wrote:
>>>>
>>>> Hello eLuers,
>>>>
>>>> After some changes of SO ( Gentoo 64bits to Ubuntu 64bits to Ubuntu
>>>> 32bits ... ) and some rebuilds of the toolchains.
>>>> I've decided to create a bash script to do it for me.
>>>>
>>>> It download the required files ( binutils, gcc, newlib ), do the
>>>> apt-gets, do the patches to get thumb2 and finaly build ( and also creates
>>>> the symbolic links, to remove this step read Obs1. )
>>>>
>>>> A Special thanks to Bogdan who created the tutorial that I've folowed a
>>>> few times and shamelessly copied to create the script. :)
>>>>
>>>> To run it `sudo ./build_arm79.sh && sudo ./build_arm_cortex_m3.sh'
>>>> If you already have the needed files: "gcc-4.3.3.tar,bz2,
>>>> binutils-2.19.50.tar.bz2, newlib-1.17.0.tar.gz" you can create a folder
>>>> named workdir at the same folder as the scripts and put the files inside to
>>>> not re download them. If you you don't the script downloads them
>>>> automagicaly ( tnx to wget ).
>>>>
>>>> The Idea is to put it at the wiki after some more testing.
>>>> But before that I'm posting to know
>>>>
>>>> if it worth mantaining
>>>> someone would like to add/remove/say anything about it.
>>>>
>>>> add something more importantly, to share it :)
>>>>
>>>> so...
>>>>
>>>> feedbacks are welcome.
>>>>
>>>> Obs1: The script creates the symbolic links I've talked on the other
>>>> thread. don't know if people aready read about it, but you can comment out
>>>> the following lines to avoid this:
>>>>
>>>> on file build_arm79.sh:
>>>> lines 86 to 88
>>>>
>>>> on file build_arm_cortex_m3.sh:
>>>> lines 77 to 81
>>>>
>>>> Obs2: The script already adds /usr/local/cross-arm/bin and
>>>> /usr/local/cross-cortex/bin to the path via .bashrc, to avoid this comment
>>>> out:
>>>>
>>>> on file build_arm79.sh:
>>>> lines 90 to 97
>>>>
>>>> on file build_arm_cortex_m3.sh:
>>>> lines 83 to 90
>>>>
>>>> Obs3: If you have a diferent linux then ubuntu or gentoo, you have to
>>>> comment lines 7 to 11 and manualy get the packages. And also you can send me
>>>> the line to do the job for a path to it. :)
>>>>
>>>> And That's about it...
>>>>
>>>> Best Regards,
>>>> Marcelo Politzer Couto
>>>>
>>>> _______________________________________________
>>>> eLua-dev mailing list
>>>> [hidden email]
>>>> https://lists.berlios.de/mailman/listinfo/elua-dev
>>>>
>>>
>>>
>>> _______________________________________________
>>> eLua-dev mailing list
>>> [hidden email]
>>> https://lists.berlios.de/mailman/listinfo/elua-dev
>>>
>>
>>
>> _______________________________________________
>> eLua-dev mailing list
>> [hidden email]
>> https://lists.berlios.de/mailman/listinfo/elua-dev
>>
>
>
> _______________________________________________
> eLua-dev mailing list
> [hidden email]
> https://lists.berlios.de/mailman/listinfo/elua-dev
>
>



--
James Snyder
Biomedical Engineering
Northwestern University
[hidden email]
PGP: http://fanplastic.org/key.txt
Phone: (847) 448-0386
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev