Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Using linux OS, where can I find arm-elf
« previous next »
  • Print
Pages: [1] 2

Author Topic: Using linux OS, where can I find arm-elf  (Read 5344 times)

Offline onocentaur

  • Member
  • *
  • Posts: 22
Using linux OS, where can I find arm-elf
« on: May 14, 2007, 03:25:19 PM »
I've been playing with compiling from source and adding patches. It's not really working - I'm using Ubuntu linux and an ipod, so I need arm-elf-gcc, but I don't have it! Where can I download it?
And if I've horribly misunderstood things, please excuse me, I'm new to both linux and rockbox...  :-[
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Using linux OS, where can I find arm-elf
« Reply #1 on: May 14, 2007, 03:45:10 PM »
Check out the wiki:

http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler

I recommend the automatic script.  It takes about 30 seconds to setup.  Just run it, and then add the bin directory it creates to your path.
Logged

Offline onocentaur

  • Member
  • *
  • Posts: 22
Re: Using linux OS, where can I find arm-elf
« Reply #2 on: May 15, 2007, 03:54:25 AM »
I actually saw that when I was looking for info, after failing to make the 'simple guide...' work. I figured as step one mentioned something about arm-elf it would fail in the same way so I didn't try it!
But I'll give it a go now, thanks  :)
Logged

Offline onocentaur

  • Member
  • *
  • Posts: 22
Re: Using linux OS, where can I find arm-elf
« Reply #3 on: May 15, 2007, 12:38:21 PM »
Okay, so I tried that. From in the tools folder I ran sudo ./rockboxdev.sh, and it did something. But when I try to make, it still fails the same way... no arm-elf-gcc. What have I done wrong?
???
 
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Using linux OS, where can I find arm-elf
« Reply #4 on: May 15, 2007, 12:54:04 PM »
have you re-run the configure script? Where did you install the compiler, and did you add the path to the PATH variable like the script tells? Have you made sure the changes take effect in your current session?
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline onocentaur

  • Member
  • *
  • Posts: 22
Re: Using linux OS, where can I find arm-elf
« Reply #5 on: May 15, 2007, 01:49:09 PM »
Quote from: bluebrother on May 15, 2007, 12:54:04 PM
have you re-run the configure script?
yeah, I did that

Quote
Where did you install the compiler, and did you add the path to the PATH variable like the script tells?
I don't know where I installed the complier!  :-[ I just ran the command from within the tools folder in a terminal...
And I don't remember being told to add anything to any path variable

Quote
Have you made sure the changes take effect in your current session?
good grief, I don't even know what this mean. perhaps I should just stick with the standard build...
Logged

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: Using linux OS, where can I find arm-elf
« Reply #6 on: May 15, 2007, 08:11:51 PM »
onocentaur, as a fellow ubuntu user, I can tell you that when you run the rockboxdev.sh script you do not have to type make. The process goes something like this

sudo ./rockboxdev.sh

then it should ask which target you are building for (it displays the choices too)
you are using an ipod, so your choice should be arm so type in:

a

then the script does the rest. It installs arm-elf-gcc in the directory

/usr/local/arm-elf

so you need to be able to give commands to this directory through the terminal. This is done by modifying your path. The very last thing the script does is tell you to add this next line to your PATH:

/usr/local/arm-elf/bin:

so, now you need to open a terminal and type

gedit .bash_profile  (or for kubuntu: kedit .bash_profile)

Inside this file there will be a section that says

PATH=blablablab :$PATH

copy the /usr/local/arm-elf/bin: (including the colon) and paste it between the : and the $. Save the file, then log out, and log back in to your PC and you should be good to go.
An easy way to check your path is to open a terminal and type

echo $PATH

the output from this command should have /usr/local/arm-elf/bin in there.

Hope this helps you out ;)
Logged

Offline onocentaur

  • Member
  • *
  • Posts: 22
Re: Using linux OS, where can I find arm-elf
« Reply #7 on: May 16, 2007, 02:33:29 AM »
That looks like just the kind of information I need, brilliant! I can't try it out till this evening, but your instructions look fool-proof, and I'll report back here on how it goes. Thankyou very much!  :D
Logged

Offline onocentaur

  • Member
  • *
  • Posts: 22
Re: Using linux OS, where can I find arm-elf
« Reply #8 on: May 16, 2007, 03:32:56 PM »
So I have no .bash_profile. I eventually worked out that .profile will do, although I don't have any standard PATH stuff in it, just an if conditional to add a local bin/ if I've got one (I don't) so I just added PATH=/usr/local/arm-elf/bin:"$PATH" to the end of the file. This worked when I logged out and tried echo $PATH.
So it knows where to look now. Unfortunately rockboxdev.sh isn't even making /usr/local/arm-elf/bin! After getting the PATH thing to work, I tried to compile but I got the arm-elf missing error. So I thought I'd look myself, and it's not there! Running rockboxdev again I notice this error appears twice:

checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

Which presumably is the issue. Now how do I fix that?  :-\
gcc is definitely installed - I just checked synaptic. I'm using ubuntu 7.04 feisty, if that makes any difference. (I've only had it installed for a week!)
Logged

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: Using linux OS, where can I find arm-elf
« Reply #9 on: May 16, 2007, 10:29:50 PM »
I suggest installing your desktop environment's software development kit, or dev package.

In KDE these are found in the apt repositories under the names:

kde-sdk   and     kde-devel

if you are on regular ubuntu (GNOME, not KDE) I'm sure that installing the above packages will still do the trick. I run both KDE and GNOME, and KDE was first so I am most familiar with it, I'm not sure of the specific GNOME packages, but I'm sure there are similar ones.
Logged

Offline onocentaur

  • Member
  • *
  • Posts: 22
Re: Using linux OS, where can I find arm-elf
« Reply #10 on: May 17, 2007, 03:27:43 AM »
I installed gnome-devel this morning - couldn't find a gnome-sdk! - and set off rockboxdev. It's definitely done something... but I won't be able to test it till this evening.
Thanks again fro your continued help  :)
Logged

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: Using linux OS, where can I find arm-elf
« Reply #11 on: May 17, 2007, 05:58:17 AM »
Just in case anyone reads this thread in the future, the "build-essential" package is the one you need to install.  

Installing your desktop environment's SDK will cause the relevant packages to be installed as well (due to dependencies), but it's not necessary.
Logged

Offline onocentaur

  • Member
  • *
  • Posts: 22
Re: Using linux OS, where can I find arm-elf
« Reply #12 on: May 17, 2007, 02:38:52 PM »
Good work, chaps.
It's worked. I've now compiled Rockbox from source myself.  ;D

Thank you so much for your assistance. No doubt I'll have more questions sooner or later!
Logged

Offline shak

  • Member
  • *
  • Posts: 6
Re: Using linux OS, where can I find arm-elf
« Reply #13 on: August 01, 2007, 03:05:14 PM »
hey I am having trouble setting the path. I am using ubuntu 6.06 and gnome. whenever i set the path and type: echo $PATH , i get this :
shak@shak-desktop:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games

My  .bash_profile file looks like this:
# ~/.bash_profile: executed by bash(1) for login shells.
# 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/login.defs
#umask 022

# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

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


I have tried everything possible but with no success. When i go to /usr/local/arm-elf/bin everything is there! but for some reason it doesn't work. When i go to compile rockbox it says that arm-elf is not in your path!
Could anyone help me out with this? or give me a sample of their .bash_profile file?
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Using linux OS, where can I find arm-elf
« Reply #14 on: August 01, 2007, 03:16:53 PM »
Try adding the path to your .bashrc file instead of your .bash_profile.
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Using linux OS, where can I find arm-elf
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.11 seconds with 15 queries.