Author Topic: problems installing arm-elf-gcc  (Read 12769 times)

ubbut

  • New to the forum
  • *
  • Posts: 18
problems installing arm-elf-gcc
« on: November 15, 2012, 03:04:04 PM »
Hi,

I am trying to follow the build instructions but when running summon-arm I get the error message:

Code: [Select]
******************************************************************
* Patching gcc to add multilib support
******************************************************************
patch: **** Can't open patch file ../patches/patch-gcc-4.6.2-config-arm-t-arm-elf.diff : No such file or directory

I changed SUDO= to SUDO=sudo, but no difference...

thanks :-)

scrax

  • Contributor
  • Hero Member
  • *****
  • Posts: 1543
  • Code monkey
Re: problems installing arm-elf-gcc
« Reply #1 on: November 15, 2012, 03:41:08 PM »
there is not the folder ../patches/

have you started summon arm script from it's folder?
I'm using ML2.3 for photography with:
EOS 600DML | EOS 400Dplus | EOS 5D MLbeta5- EF 100mm f/2.8 USM Macro  - EF-S 17-85mm f4-5.6 IS USM - EF 70-200mm f/4 L USM - 580EXII - OsX, PS, LR, RawTherapee, LightZone -no video experience-

ubbut

  • New to the forum
  • *
  • Posts: 18
Re: problems installing arm-elf-gcc
« Reply #2 on: November 15, 2012, 06:45:54 PM »
what I did was: (ubuntu)

I downloaded prepare.ubuntu.sh and summon-arm and put them in home/[myuserame]/

I ran sudo prepare.ubuntu.sh  (works)

and then

sudo bash summon-arm  (produces the above error)

I can't see any directory called patches and ~/arm-toolchain462/ is not created ...



nanomad

  • Administrator
  • Hero Member
  • *****
  • Posts: 2918
  • All your websites are belong to us
Re: problems installing arm-elf-gcc
« Reply #3 on: November 15, 2012, 07:52:43 PM »
Step 2b. Or Use a pre-built toolcahin
https://launchpad.net/gcc-arm-embedded

From the sticky topic
EOS 1100D | EOS 650 (No, I didn't forget the D) | Ye Olde Canon EF Lenses ('87): 50 f/1.8 - 28 f/2.8 - 70-210 f/4 | EF-S 18-55 f/3.5-5.6 | Metz 36 AF-5

scrax

  • Contributor
  • Hero Member
  • *****
  • Posts: 1543
  • Code monkey
Re: problems installing arm-elf-gcc
« Reply #4 on: November 15, 2012, 08:06:37 PM »
what I did was: (ubuntu)

I downloaded prepare.ubuntu.sh and summon-arm and put them in home/[myuserame]/

I ran sudo prepare.ubuntu.sh  (works)

and then

sudo bash summon-arm  (produces the above error)

I can't see any directory called patches and ~/arm-toolchain462/ is not created ...

you need do have summon-arm from sources in toolchain folder there are:
prepare.ubuntu.sh
summon-arm and a patches/ folder
seems you missed to copy to your home folder the patches/ folder.

but as nanomad posted you can use a pre-built one
I'm using ML2.3 for photography with:
EOS 600DML | EOS 400Dplus | EOS 5D MLbeta5- EF 100mm f/2.8 USM Macro  - EF-S 17-85mm f4-5.6 IS USM - EF 70-200mm f/4 L USM - 580EXII - OsX, PS, LR, RawTherapee, LightZone -no video experience-

ubbut

  • New to the forum
  • *
  • Posts: 18
Re: problems installing arm-elf-gcc
« Reply #5 on: November 16, 2012, 08:54:09 PM »
Thanks!!

Using the pre-build toolchain I finally managed to compile ML :-)

jplxpto

  • Developer
  • Hero Member
  • *****
  • Posts: 506
Re: problems installing arm-elf-gcc
« Reply #6 on: November 21, 2012, 01:01:48 AM »
I've been through all this. After successfully compiling toolchain and ML I decided to use the pre compiled toolchain.

eduperez

  • Contributor
  • Member
  • *****
  • Posts: 111
Re: problems installing arm-elf-gcc
« Reply #7 on: November 23, 2012, 11:49:39 AM »
I've been through all this. After successfully compiling toolchain and ML I decided to use the pre compiled toolchain.

Is there any particular reason to favorite the pre-compiled toolchain over the self-made version with the "summon-arm" script? Thanks.

nanomad

  • Administrator
  • Hero Member
  • *****
  • Posts: 2918
  • All your websites are belong to us
Re: problems installing arm-elf-gcc
« Reply #8 on: November 23, 2012, 12:26:30 PM »
Yes, you don't waste time building it. A self-built toolchain may compile faster on YOUR machine but the gain is really minimal
EOS 1100D | EOS 650 (No, I didn't forget the D) | Ye Olde Canon EF Lenses ('87): 50 f/1.8 - 28 f/2.8 - 70-210 f/4 | EF-S 18-55 f/3.5-5.6 | Metz 36 AF-5

eduperez

  • Contributor
  • Member
  • *****
  • Posts: 111
Re: problems installing arm-elf-gcc
« Reply #9 on: November 26, 2012, 08:18:28 AM »
Yes, you don't waste time building it. A self-built toolchain may compile faster on YOUR machine but the gain is really minimal

Ok, many thanks!

mk11174

  • Contributor
  • Hero Member
  • *****
  • Posts: 809
Re: problems installing arm-elf-gcc
« Reply #10 on: March 03, 2014, 09:23:10 PM »
Was wondering how to get the firmware analysis scripts to work with new toolchain such as disasm.py which wants arm-elf? It keeps getting stuck there with a check-elf because I don't have elf and when I try to install elf, it doesn't work with new toolchain?

Is there an easy fix or do I need to start over with an older setup just for the tools.

I already have a good new setup which works perfect for compiling and other scripts work fine, I just want it for the tools to mess with and the disasm just is the one that seems to have a problem so far?

Any tips would be helpful.
500D/T1i  550D/T2i  600D/T3i  700D/T5i

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: problems installing arm-elf-gcc
« Reply #11 on: March 03, 2014, 09:26:50 PM »
Probably changing elf to none-eabi would work (didn't try). I still have a copy of arm-elf.

mk11174

  • Contributor
  • Hero Member
  • *****
  • Posts: 809
Re: problems installing arm-elf-gcc
« Reply #12 on: March 03, 2014, 09:32:01 PM »
Probably changing elf to none-eabi would work (didn't try). I still have a copy of arm-elf.
Yeah, 1st thing i tried, it did not work. I wouldnt mind using arm-elf just need to figure out how to get it to work with new toolchain version i guess. Does it still need to be python 2.6 and ipython 0.10?
500D/T1i  550D/T2i  600D/T3i  700D/T5i

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: problems installing arm-elf-gcc
« Reply #13 on: March 03, 2014, 09:33:54 PM »
I guess so.. didn't update it for a loooong time.

Marsu42

  • Contributor
  • Hero Member
  • *****
  • Posts: 1557
  • 66d + flashes
Re: problems installing arm-elf-gcc
« Reply #14 on: March 03, 2014, 10:03:39 PM »
I've been through all this. After successfully compiling toolchain and ML I decided to use the pre compiled toolchain.

+1 from me - building your own toolchain is kinda interesting and some projects use it by default like OpenWRT, but for ML it makes tracking bugs much harder because any different source part of the toolchain could introduce unknown issues (I had this once with Linaro vs. vanilla gcc).

mk11174

  • Contributor
  • Hero Member
  • *****
  • Posts: 809
Re: problems installing arm-elf-gcc
« Reply #15 on: March 04, 2014, 04:58:26 AM »
Ok, built a whole new Enviroment from scratch in UBUNTU, had to go with 10 because it came with python 2.6, I got everything working, using everything from the Build Instructions page, I was able to create hello.o just fine and can use tools now to dissasemble only thing is for now I need to use terminal to add PATH=~/arm-toolchain462/bin:$PATH

where would I add this in ubuntu to make it so its auto set so I dont have to do that everytime.

I am guessing .profile
Code: [Select]
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

but where exactly would this go so it takes affect?
500D/T1i  550D/T2i  600D/T3i  700D/T5i

mk11174

  • Contributor
  • Hero Member
  • *****
  • Posts: 809
Re: problems installing arm-elf-gcc
« Reply #16 on: March 04, 2014, 05:22:24 AM »
Ok, built a whole new Enviroment from scratch in UBUNTU, had to go with 10 because it came with python 2.6, I got everything working, using everything from the Build Instructions page, I was able to create hello.o just fine and can use tools now to dissasemble only thing is for now I need to use terminal to add PATH=~/arm-toolchain462/bin:$PATH

where would I add this in ubuntu to make it so its auto set so I dont have to do that everytime.

I am guessing .profile
Code: [Select]
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

but where exactly would this go so it takes affect?
UPDATE, I had to add it to the end of .bashrc

Works Now!
500D/T1i  550D/T2i  600D/T3i  700D/T5i