NSLU2-Linux
view · edit · print · history

HowTo.MakeGNUPatchOnYourNSLU2Box History

Hide minor edits - Show changes to markup

January 19, 2005, at 02:47 PM by rwhitby --
Added lines 1-2:

Note that you can now use the instructions at NativelyCompileUnslungPackages to natively compile GNU patch directly from the Unslung CVS repository.

December 10, 2004, at 06:12 PM by jeremyeglen --
Changed line 14 from:

The instructions for making GNU gawk are included in README and INSTALL files included in the release. However, this set of instructions are specific for the NSLU2. The only trick involved in making patch is passing the correct options to ./configure All these instructions take place directly on your NSLU2. Don't skip the prerequisites!

to:

The instructions for making GNU patch are included in README and INSTALL files included in the release. However, this set of instructions are specific for the NSLU2. The only trick involved in making patch is passing the correct options to ./configure All these instructions take place directly on your NSLU2. Don't skip the prerequisites!

December 10, 2004, at 12:32 AM by tman --
Changed lines 7-10 from:

Installation of HomePage Unslung?.
Successful completion of NativeNSLU2Toolchain (including setting and exporting C_INCLUDE_PATH), which provides a development environment on your NSLU2.
Successful completion of BuildGNUMakeOnYourNSLU2Box. make is needed to make patch.
Busybox version 1.00 (potentially optional). Use ipkg to install.

to:
  1. Installation of HomePage Unslung?.
  2. Successful completion of NativeNSLU2Toolchain (including setting and exporting C_INCLUDE_PATH), which provides a development environment on your NSLU2.
  3. Successful completion of BuildGNUMakeOnYourNSLU2Box. make is needed to make patch.
  4. Busybox version 1.00 (potentially optional). Use ipkg to install.
Changed lines 16-26 from:

1) Retrieve source code for GNU patch, and then unzip and untar it.

to:
  1. Retrieve source code for GNU patch, and then unzip and untar it.

    cd /share/hdd/data (you can, of course, put it wherever you like -- a src/ dir may be apropos)
    wget ftp://ftp.gnu.org/gnu/patch/patch-2.5.4.tar.gz
    tar -zxvf patch-2.5.4.tar.gz
  2. Create the patch executable, and put it somewhere in your path. The configure script included with gnu patch is old enough not to recognize the armv5b, so we include it in step 2. The --prefix switch will cause make install to put patch into /opt/bin

    cd patch-2.5.4
    ./configure --host=armv5b-softfloat-linux --target=armv5b-softfloat-linux --prefix=/opt
    make install (ensure /opt/bin is in your path)
Changed lines 28-38 from:
    cd /share/hdd/data                  (you can, of course, put it wherever you like -- a src/ dir may be apropos)
wget ftp://ftp.gnu.org/gnu/patch/patch-2.5.4.tar.gz
tar -zxvf patch-2.5.4.tar.gz

2) Create the patch executable, and put it somewhere in your path. The configure included with gnu patch is old enough not to recognize the armv5b, so we include it in step 2. The --prefix switch will cause make install to put patch into /opt/bin

    cd patch-2.5.4
./configure --host=armv5b-softfloat-linux --target=armv5b-softfloat-linux --prefix=/opt make install\\ (ensure /opt/bin is in your path)

That's it, GNU patch for the NSLU2 on the NSLU2.

to:

That's it, GNU patch for the NSLU2 on the NSLU2.

December 07, 2004, at 08:23 PM by jeremyeglen --
Changed lines 1-28 from:
to:

Goal:

Build a native version of GNU patch directly on your NSLU2 Box.

Prerequisites:

Installation of HomePage Unslung?.
Successful completion of NativeNSLU2Toolchain (including setting and exporting C_INCLUDE_PATH), which provides a development environment on your NSLU2.
Successful completion of BuildGNUMakeOnYourNSLU2Box. make is needed to make patch.
Busybox version 1.00 (potentially optional). Use ipkg to install.

Steps:

The instructions for making GNU gawk are included in README and INSTALL files included in the release. However, this set of instructions are specific for the NSLU2. The only trick involved in making patch is passing the correct options to ./configure All these instructions take place directly on your NSLU2. Don't skip the prerequisites!

1) Retrieve source code for GNU patch, and then unzip and untar it.

    cd /share/hdd/data                  (you can, of course, put it wherever you like -- a src/ dir may be apropos)
wget ftp://ftp.gnu.org/gnu/patch/patch-2.5.4.tar.gz
tar -zxvf patch-2.5.4.tar.gz

2) Create the patch executable, and put it somewhere in your path. The configure included with gnu patch is old enough not to recognize the armv5b, so we include it in step 2. The --prefix switch will cause make install to put patch into /opt/bin

    cd patch-2.5.4
./configure --host=armv5b-softfloat-linux --target=armv5b-softfloat-linux --prefix=/opt make install\\ (ensure /opt/bin is in your path)

That's it, GNU patch for the NSLU2 on the NSLU2.

view · edit · print · history · Last edited by jeremyeglen.
Based on work by tman and jeremyeglen.
Originally by rwhitby.
Page last modified on April 14, 2005, at 10:26 PM