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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Cant install rockboxdev.sh
« previous next »
  • Print
Pages: [1]

Author Topic: Cant install rockboxdev.sh  (Read 4549 times)

Offline iPodFoo

  • Member
  • *
  • Posts: 221
  • Ya dig?
    • iPod Nano Rockbox Blog
Cant install rockboxdev.sh
« on: October 26, 2006, 08:40:47 AM »
Have tried looking around for help but its all a bit confusing  ??? Have read and re-read http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler.

I run the script after using "su" as it wont run otherwise, says no write permissions:

Quote
user@debian:~/rockbox-devel$ su
Password:
debian:/home/user/rockbox-devel# ./tools/rockboxdev.sh
/root/tmp has been created to store downloads in
Download directory: /root/tmp (edit script to change dir)
Install prefix: /usr/local/[target] (edit script to change dir)
Build dir: /root/build-rbdev (edit script to change dir)

Select target arch:
s   - sh       (Archos models)
m   - m68k     (iriver h1x0/h3x0, ifp7x0 and iaudio)
a   - arm      (ipods, iriver H10, Sansa, etc)
all - all three compilers
a
== Summary ==
Target: arm-elf
gcc 4.0.3
binutils 2.16.1
install in /usr/local/arm-elf
when complete, make your PATH include /usr/local/arm-elf/bin
ROCKBOXDEV: downloads ftp://ftp.gnu.org/pub/gnu/binutils/binutils-2.16.1.tar.bz2 using wget
--15:06:13--  ftp://ftp.gnu.org/pub/gnu/binutils/binutils-2.16.1.tar.bz2
           => `/root/tmp/binutils-2.16.1.tar.bz2'
Resolving ftp.gnu.org... 199.232.41.7
Connecting to ftp.gnu.org[199.232.41.7]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/gnu/binutils ... done.
==> PASV ... done.    ==> RETR binutils-2.16.1.tar.bz2 ... done.
Length: 12,549,917 (unauthoritative)

100%[====================================>] 12,549,917   236.02K/s    ETA 00:00

15:07:08 (231.92 KB/s) - `/root/tmp/binutils-2.16.1.tar.bz2' saved [12549917]

ROCKBOXDEV: downloads ftp://ftp.gnu.org/pub/gnu/gcc/gcc-4.0.3/gcc-4.0.3.tar.bz2 using wget
--15:07:08--  ftp://ftp.gnu.org/pub/gnu/gcc/gcc-4.0.3/gcc-4.0.3.tar.bz2
           => `/root/tmp/gcc-4.0.3.tar.bz2'
Resolving ftp.gnu.org... 199.232.41.7
Connecting to ftp.gnu.org[199.232.41.7]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/gnu/gcc/gcc-4.0.3 ... done.
==> PASV ... done.    ==> RETR gcc-4.0.3.tar.bz2 ... done.
Length: 32,980,638 (unauthoritative)

100%[====================================>] 32,980,638   186.43K/s    ETA 00:00

15:09:34 (223.94 KB/s) - `/root/tmp/gcc-4.0.3.tar.bz2' saved [32980638]

ROCKBOXDEV: extracting binutils-2.16.1 in /root/build-rbdev
tar: bzip2: Cannot exec: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
ROCKBOXDEV: extracting gcc-4.0.3 in /root/build-rbdev
tar: bzip2: Cannot exec: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
ROCKBOXDEV: mkdir build-binu
ROCKBOXDEV: cd build-binu
ROCKBOXDEV: binutils/configure
./tools/rockboxdev.sh: line 202: ../binutils-2.16.1/configure: No such file or directory
ROCKBOXDEV: binutils/make
make: *** No targets specified and no makefile found.  Stop.
ROCKBOXDEV: binutils/make install to /usr/local/arm-elf
make: *** No rule to make target `install'.  Stop.
ROCKBOXDEV: mkdir build-gcc
ROCKBOXDEV: cd build-gcc
ROCKBOXDEV: gcc/configure
./tools/rockboxdev.sh: line 216: ../gcc-4.0.3/configure: No such file or directory
ROCKBOXDEV: gcc/make
make: *** No targets specified and no makefile found.  Stop.
ROCKBOXDEV: gcc/make install to /usr/local/arm-elf
make: *** No rule to make target `install'.  Stop.
done

Make your PATH include :/usr/local/arm-elf/bin

I dont really know what to make of it. Most of the stuff isnt extracting or installing, or cant find file or directory. And what about the last line? Where do I put that path ":/usr/local/arm-elf/bin"? Is it a line in the script itself?

Running Debian with VMWare on XP.

Any help much appreciated.
« Last Edit: October 26, 2006, 01:04:30 PM by ipodfoo »
Logged
Visit my blog at modprojects.blogspot.com for some iPod Nano goodies!

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Cant install rockboxdev.sh
« Reply #1 on: October 26, 2006, 10:12:53 AM »
Quote
ROCKBOXDEV: extracting binutils-2.16.1 in /root/build-rbdev
tar: bzip2: Cannot exec: No such file or directory

You should probably install bzip2 to allow tar to unzip the tar.bz2 files.
Logged

Offline iPodFoo

  • Member
  • *
  • Posts: 221
  • Ya dig?
    • iPod Nano Rockbox Blog
Re: Cant install rockboxdev.sh
« Reply #2 on: October 26, 2006, 11:55:40 AM »
ok. Managed to download bzip2 source, compiled it in debian. Surely I cant be the only one needed to install bzip2. Was never mentioned in the tutorials.

Anyway, after 'make install' of bzip2, I ran the rockboxdev.sh script again, seemed to unzip fine, but from then on, every line had either Cannot open: No space left on device or Cannot open: No such file or direcory. It did this for about 2 minutes on 1000 odd lines. Here an example snippet of the end:

Quote
...
tar: gcc-4.0.3/fixincludes/fixincl.c: Cannot open: No such file or directory
tar: gcc-4.0.3/fixincludes/aclocal.m4: Cannot open: No such file or directory
tar: gcc-4.0.3/fixincludes/fixopts.c: Cannot open: No such file or directory
tar: gcc-4.0.3/LAST_UPDATED: Cannot write: No space left on device
tar: Skipping to next header
tar: gcc-4.0.3/install-sh: Cannot write: No space left on device
tar: Skipping to next header
tar: gcc-4.0.3/bugs.html: Cannot write: No space left on device
tar: Skipping to next header
tar: gcc-4.0.3/FAQ: Cannot write: No space left on device
tar: Skipping to next header
tar: gcc-4.0.3/MD5SUMS: Cannot write: No space left on device
tar: Error exit delayed from previous errors
ROCKBOXDEV: mkdir build-binu
mkdir: cannot create directory `build-binu': No space left on device
ROCKBOXDEV: cd build-binu
./rockboxdev.sh: line 200: cd: build-binu: No such file or directory
ROCKBOXDEV: binutils/configure
./rockboxdev.sh: line 202: ../binutils-2.16.1/configure: No such file or directory
ROCKBOXDEV: binutils/make
make: *** No targets specified and no makefile found.  Stop.
ROCKBOXDEV: binutils/make install to /usr/local/arm-elf
make: *** No rule to make target `install'.  Stop.
ROCKBOXDEV: mkdir build-gcc
mkdir: cannot create directory `build-gcc': No space left on device
ROCKBOXDEV: cd build-gcc
./rockboxdev.sh: line 214: cd: build-gcc: No such file or directory
ROCKBOXDEV: gcc/configure
./rockboxdev.sh: line 216: ../gcc-4.0.3/configure: No such file or directory
ROCKBOXDEV: gcc/make
make: *** No targets specified and no makefile found.  Stop.
ROCKBOXDEV: gcc/make install to /usr/local/arm-elf
make: *** No rule to make target `install'.  Stop.
done

Make your PATH include :/usr/local/arm-elf/bin
debian:/home/user/rockbox-devel/tools#

Is this due to a lack of space or something? This is really annoying.
Logged
Visit my blog at modprojects.blogspot.com for some iPod Nano goodies!

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Cant install rockboxdev.sh
« Reply #3 on: October 26, 2006, 04:07:34 PM »
Quote
Managed to download bzip2 source, compiled it in debian.

In debian you could've just apt-get installed the bzip2 package.

Quote
Surely I cant be the only one needed to install bzip2.

I think the vast majority of people already had it installed.

Quote
Was never mentioned in the tutorials.

Right, since you're the first to face it.

Quote
Cannot open: No space left on device

You're out of disk space on the partition to where rockboxdev.sh unpacks the packages.
Logged

Offline iPodFoo

  • Member
  • *
  • Posts: 221
  • Ya dig?
    • iPod Nano Rockbox Blog
Re: Cant install rockboxdev.sh
« Reply #4 on: October 26, 2006, 05:27:17 PM »
Quote
In debian you could've just apt-get installed the bzip2 package.
I could. But being new to Debian, if its not in the tutorials I wouldnt know to use apt-get command.

Anyway. Removed as much from debian\user folders and ran it script again. All seemed to install now, huzzah!

Very last line says Make your PATH include :/usr/local/arm-elf/bin, what do I do with it, where does it go?

Getting there!  :)

ps. Just out of interest, what is the size of the partition for the rockboxdev.sh to unpack? I had 12GB on the drive free, so i assume its at a set size.
« Last Edit: October 26, 2006, 05:43:19 PM by ipodfoo »
Logged
Visit my blog at modprojects.blogspot.com for some iPod Nano goodies!

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Cant install rockboxdev.sh
« Reply #5 on: October 27, 2006, 02:54:15 AM »
Quote
Very last line says Make your PATH include :/usr/local/arm-elf/bin, what do I do with it, where does it go?

It depends on your system setup, but most users use bash on Debian and then you edit your PATH variable (which tells the shell in what directories to look for executables) in the $HOME/.bashrc file for future invokes of shells.

You can also set the PATH in your current shell with

Code: [Select]
export PATH=$PATH:/usr/local/arm-elf/bin
Logged

Offline iPodFoo

  • Member
  • *
  • Posts: 221
  • Ya dig?
    • iPod Nano Rockbox Blog
Re: Cant install rockboxdev.sh
« Reply #6 on: October 27, 2006, 06:40:55 AM »
Ok. Opened the bashrc file in XP in notepad and the only line I could see on there related to PATH is:

Quote
export PATH=/usr/local/sh/bin:/usr/local/m68k/bin:/usr/local/arm/bin:$PATH
Do I replace this whole line?


I also tried typing in Debian export PATH=$PATH:/usr/local/arm-elf/bin but it didnt seem to do anything. Just returned to the prompt. I checked the file to see if it had been added but it wasnt.

Sorry if Im being a simpleton.  ::)
« Last Edit: October 27, 2006, 07:30:50 AM by ipodfoo »
Logged
Visit my blog at modprojects.blogspot.com for some iPod Nano goodies!

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8963
Re: Cant install rockboxdev.sh
« Reply #7 on: October 27, 2006, 02:24:42 PM »
I don't know much about linux, but I believe typing export just changes the path in your current session, so it won't be in the basrc which (i think) is a startup script that runs everytime you boot.

You could try typing "which gcc-arm-elf" or whatever it is you're adding to the path to see if its working.
Logged

Offline MoD

  • Member
  • *
  • Posts: 28
Re: Cant install rockboxdev.sh
« Reply #8 on: October 27, 2006, 02:57:16 PM »
just exchange:

Code: [Select]
export PATH=/usr/local/sh/bin:/usr/local/m68k/bin:/usr/local/arm/bin:$PATH

with:

Code: [Select]
export PATH=/usr/local/sh/bin:/usr/local/m68k/bin:/usr/local/arm/bin:/usr/local/arm-elf/bin:$PATH

in $HOME/.bashrc
Logged

Offline iPodFoo

  • Member
  • *
  • Posts: 221
  • Ya dig?
    • iPod Nano Rockbox Blog
Re: Cant install rockboxdev.sh
« Reply #9 on: October 27, 2006, 03:58:41 PM »
Excellente. Have made changes. Will do proper test tommorrow as Im in the middle of doing some fonts in fontforge in debian.

One last question. Is there a tutorial in using the cross-compiler or is it used transparently?

Thanks everyone for your help. Much appreciated.
Logged
Visit my blog at modprojects.blogspot.com for some iPod Nano goodies!

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Cant install rockboxdev.sh
 

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

Page created in 0.167 seconds with 22 queries.