I've done the same as above except for a few differences. I decided to use the newest crosstool as well (.38 at the time of this writing). I'm using 10.4.3 with the newest developer tools available to me. I also have fink installed so I used that to install all of the above tools. The only one not available was gnu-expr. So, to fix this problem, a patch exists for hte linux kernel. Goto crosstool-.38/patches/. In this directory, create a directory called linux-2.4.22, and then copy "linux-2.4.24/linux-2.4-bsd-expr.patch" into it. This will let you use the bsd-expr that comes with os x. --Sharth

December 08, 2005, at 01:20 PM
by Sharth -- alternate method for preparing to create crosstool on os x.

Added lines 82-84:

I've done the same as above except for a few differences. I decided to use the newest crosstool as well (.38 at the time of this writing). I'm using 10.4.3 with the newest developer tools available to me. I also have fink installed so I used that to install all of the above tools. The only one not available was gnu-expr. So, to fix this problem, a patch exists for hte linux kernel. Goto crosstool-.38/patches/. In this directory, create a directory called linux-2.4.22, and then copy "linux-2.4.24/linux-2.4-bsd-expr.patch" into it. This will let you use the bsd-expr that comes with os x. --Sharth

Note that I have can now build arm executables, but have not actually tested them on the nlsu2.
You can see my notes on trying to build all the individual tools by hand on the howto
SetUpAToolChanOnAMac? page. (be aware that ath is not wrking yet. crosstool is much easier!)

to:

Note that I can now build arm executables, but have not actually tested them on the nlsu2 yet.
You can see my notes on trying to build all the individual tools by hand on the HowTo.SetUpAToolChanOnAMac? page. (Be aware those steps are not working yet! crosstool is much easier!)

wget http://ftp.gnu.org/pub/gnu/sh-utils/sh-utils-2.0.tar.gz
tar xzf sh-utils-2.0.tar.gz
cd sh-utils-2.0
./configure --prefix=$HOME/local/nslu2 --host=powerpc
make
cp src/expr $HOME/local/nslu2/bin
(I heard there are problems with some of the other utils, so I only install expr)
cd ..
rm -rf sh-utils-2.0

At this point you can follow the directions on the CompileCrossTool page.
(make sure you keep the PATH from above)

Here are my 2 choices for directories in 'demo-nslu2.sh'

TARBALLS_DIR=$HOME/local/downloads
RESULT_TOP=$HOME/local/crosstool

Note that I have can now build arm executables, but have not actually tested them on the nlsu2.
You can see my notes on trying to build all the individual tools by hand on the howto
SetUpAToolChanOnAMac? page. (be aware that ath is not wrking yet. crosstool is much easier!)