You are not logged in.

#1 2010-10-31 02:00:17

mrinehart93
Member
Registered: 2010-10-16
Posts: 35

Setting up ARM Toolchain for Kernel Development

Hey guys. So a few other people and I have taken up the project of porting Palm's WebOS over to the HTC Hero phone (running Android). As part of the port, the kernel needs to be recompiled to have ARMv6 CPU support. So, I've downloaded the toolchain, and moved it to /usr/local/bin, and edited my PATH to accomodate that. Now, when I go to where the kernel source is, and run "make dep", I get this:


[root@mike-desktop linux-2.6.24]# make dep
make: arm-none-linux-gnueabi-gcc: Command not found
*** Warning: make dep is unnecessary now.

If I try just "make", I get:


[root@mike-desktop linux-2.6.24]# make
make: arm-none-linux-gnueabi-gcc: Command not found
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  CC      arch/arm/kernel/asm-offsets.s
/bin/sh: arm-none-linux-gnueabi-gcc: command not found
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 127
make: *** [prepare0] Error 2

Now, this is really putting a crimp in the project, so I need to have this figured out as soon as possible. I've gone through about 5 pages of Google searching looking for how to get this to work, but to no avail. Can anyone help me out here?

Offline

#2 2010-10-31 03:08:27

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,487
Website

Re: Setting up ARM Toolchain for Kernel Development

Do you have the file "arm-none-linux-gnueabi-gcc" and is it in your path?   Also, run "file" on it to check it is compatible with your system.

Offline

#3 2010-10-31 04:07:43

mrinehart93
Member
Registered: 2010-10-16
Posts: 35

Re: Setting up ARM Toolchain for Kernel Development

Here is the output of running file:


[mike@mike-desktop linux-2.6.24]$ file arm-none-linux-gnueabi-gcc
arm-none-linux-gnueabi-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped

EDIT

It seems that I've gotten it to work now. I have no idea what was happening, but the path wasn't being added correctly. I just tried it again and double-checked with "echo $PATH", and the patch is there now. Can't believe something so simple like that got me. Thanks anyway big_smile

Last edited by mrinehart93 (2010-10-31 04:11:51)

Offline

#4 2010-10-31 16:45:22

mrinehart93
Member
Registered: 2010-10-16
Posts: 35

Re: Setting up ARM Toolchain for Kernel Development

Well, I need help again. I've found that my problem was that $PATH changes get removed everytime you logout, so you can just edit .bashrc to keep them there. That works. However, I have found a command "PATH=${PATH}:$(find /home/mike/dev/arm -type d | tr '\n' ':' | sed 's/:$//')" that adds all the directories and binaries I need to my $PATH. The only problem is after I do that, I am unable to use "su" or any busybox commands because I get an argument too long error. Is there a script I can use that copies all the binaries out of my /home/mike/dev/arm folder and it's subdirectories into one directory that I can add to my $PATH?

Offline

Board footer

Powered by FluxBB