NSLU2-Linux
view · edit · print · history

Main.UpSlugBuildInstructions History

Hide minor edits - Show changes to markup

May 24, 2006, at 06:18 AM by PieteBrooks -- Add alternative CVS root as the published one fails for me
Changed lines 15-16 from:

change directories to upslug, compile by entering the command "make upslug" (without the quotes)

to:

If this fails try "CVSROOT=:pserver:anonymous@nslu.cvs.sourceforge.net:/cvsroot/nslu". Change directories to upslug, compile by entering the command "make upslug" (without the quotes)

September 11, 2005, at 05:44 PM by Phil Endecott -- Using \"make upslug\" avoids confusing errors
Changed lines 15-16 from:

change directories to upslug, compile by entering the command "make" (without the quotes)

to:

change directories to upslug, compile by entering the command "make upslug" (without the quotes)

Changed lines 18-19 from:
make [or gmake in BSD or commercial SysV Unix, or just cc -o upslug upslug.c]
to:
make upslug [or gmake in BSD or commercial SysV Unix, or just cc -o upslug upslug.c]
September 04, 2005, at 06:19 PM by jbowler -- Added note about upslug-pcap
Changed lines 20-21 from:
note: upslug as found in CVS only compiles on Linux boxes. I've ported it to *BSD by making it use libpcap and the pcap_inject() call found in recent libpcaps. If you want a copy drop me a line at wiml@hhhh.org ; I'll be sending a diff to the maintainer when I get a round to vetting it for stupidity.
to:
note: upslug as found in CVS only compiles on Linux boxes. Wim Lewis has ported revision 1.16 to *BSD by making it use libpcap and (optionally) the pcap_inject() call found in recent libpcaps. This version of upslug is built as upslug-pcap. This version does not work on Linux, but should work fine (perhaps with a little extra porting) on other operating systems.
August 22, 2005, at 03:00 PM by tman --
Changed lines 25-29 from:
 su
 Password: [enter root password]
 cp upslug /usr/local/bin
 exit
to:
su
[enter root password]
cp upslug /usr/local/bin
exit
August 22, 2005, at 03:00 PM by tman --
Changed lines 7-14 from:
 mkdir slugtools
 cd slugtools

 export CVSROOT=:pserver:anonymous@cvs.sf.net:/cvsroot/nslu
 cvs login
 [when it asks for a password, leave blank and just press enter]
 cvs -z3 co upslug
to:
mkdir slugtools
cd slugtools
export CVSROOT=:pserver:anonymous@cvs.sf.net:/cvsroot/nslu
cvs login
[when it asks for a password, leave blank and just press enter]
cvs -z3 co upslug
Changed lines 17-19 from:
 cd upslug
 make [or gmake in BSD or commercial SysV? Unix, or just cc -o upslug upslug.c]
to:
cd upslug
make [or gmake in BSD or commercial SysV Unix, or just cc -o upslug upslug.c]
Changed lines 39-40 from:

telnet_redboot [don't press enter yet]

to:

telnet_redboot [don't press enter yet]

August 22, 2005, at 02:58 PM by tman --
Changed lines 3-8 from:

SysV?-compatible Unix, and under Windows with either Cygwin or MSYS.

First, you should install CVS, GCC, and GNU Make. Then open a command line shell, create a directory named something like slugtools, change directories there, and checkout the upslug module with CVS:

to:

SysV-compatible Unix, and under Windows with either Cygwin or MSYS.

First, you should install CVS, GCC, and GNU Make. Then open a command line shell, create a directory named something like slugtools, change directories there, and checkout the upslug module with CVS:

Changed lines 15-17 from:

change directories to upslug, compile by entering the command "make" (without the quotes)

to:

change directories to upslug, compile by entering the command "make" (without the quotes)

Changed lines 31-40 from:

instructions on how to get the NSLU2 to RedBoot mode, where you can flash the ROM with relative ease (the web-based update has never worked reliably with any of my three slugs).

http://www.nslu2-linux.org/wiki/HowTo/TelnetIntoRedBoot

I use the perl script provided in that page, it's not failed me once. Copy and paste the perl script into a file named telnet_redboot.pl, then save it in /usr/local/bin

to:

instructions on how to get the NSLU2 into the bootloader, where you can flash the ROM with relative ease (the web-based update has never worked reliably with any of my three slugs).

TelnetIntoRedBoot

I use the perl script provided in that page, it's not failed me once. Copy and paste the perl script into a file named telnet_redboot.pl, then save it in /usr/local/bin

Changed lines 47-54 from:

RedBoot> upgrade [enter]

The NSLU will stop responding to the keyboard, and the top LED will flash red. That's OK, it means it's ready to be flashed. Quit telnet by typing Ctrl-] then at the telnet> prompt, type quit or exit (Windows's telnet uses quit, most Unix use exit).

to:

RedBoot> upgrade [enter]

The NSLU will stop responding to the keyboard, and the top LED will flash red. That's OK, it means it's ready to be flashed. Quit telnet by typing Ctrl-] then at the telnet> prompt, type quit or exit (Windows's telnet uses quit, most Unix use exit).

Changed lines 56-57 from:

CAREFUL: DO NOT type -U <-- uppercase u. BIG MISTAKE!!! (unless you have JTAG cables and embedded systems experience)

to:

CAREFUL: DO NOT type -U <-- uppercase u. BIG MISTAKE!!! (unless you have JTAG cables and embedded systems experience)

August 22, 2005, at 10:59 AM by wiml -- upslug on non-Linux hosts
Changed lines 21-22 from:
 make [or gmake in BSD or commercial SysV? Unix]
to:
 make [or gmake in BSD or commercial SysV? Unix, or just cc -o upslug upslug.c]
note: upslug as found in CVS only compiles on Linux boxes. I've ported it to *BSD by making it use libpcap and the pcap_inject() call found in recent libpcaps. If you want a copy drop me a line at wiml@hhhh.org ; I'll be sending a diff to the maintainer when I get a round to vetting it for stupidity.
Changed lines 26-27 from:

/usr/local/bin and make sure /usr/local/bin is in your PATH.

to:

/usr/local/bin if you like. Make sure your PATH contains /usr/local/bin or whatever directory upslug is in.

January 07, 2005, at 02:32 PM by tjyang --
Changed line 50 from:

type the command update

to:

type the command upgrade

January 07, 2005, at 02:24 PM by tjyang --
Changed line 52 from:

RedBoot> update [enter]

to:

RedBoot> upgrade [enter]

December 26, 2004, at 08:44 PM by rwhitby --
Changed lines 9-10 from:

mkdir slugtools cd slugtools

to:
 mkdir slugtools
 cd slugtools
Changed lines 12-15 from:

export CVSROOT=:pserver:anonymous@cvs.sf.net:/cvsroot/nslu cvs login [when it asks for a password, leave blank and just press enter] cvs -z3 co upslug

to:
 export CVSROOT=:pserver:anonymous@cvs.sf.net:/cvsroot/nslu
 cvs login
 [when it asks for a password, leave blank and just press enter]
 cvs -z3 co upslug
Changed lines 20-21 from:

cd upslug make [or gmake in BSD or commercial SysV? Unix]

to:
 cd upslug
 make [or gmake in BSD or commercial SysV? Unix]
Changed lines 26-29 from:

su Password: [enter root password] cp upslug /usr/local/bin exit

to:
 su
 Password: [enter root password]
 cp upslug /usr/local/bin
 exit
Changed line 62 from:

upslug -u [unslung-image-filename-goes-here]

to:
 upslug -u [unslung-image-filename-goes-here]
December 26, 2004, at 08:43 PM by rwhitby --
Changed lines 1-2 from:

Right, upslug is written in C. You need to compile it with GNU C

to:

UpSlug is written in C. You need to compile it with GNU C

Changed line 12 from:

export CVSROOT=:pserver:anonymous@c...:/cvsroot/nslu

to:

export CVSROOT=:pserver:anonymous@cvs.sf.net:/cvsroot/nslu

December 23, 2004, at 09:50 PM by ka6sox --
Changed lines 1-66 from:

Describe UpSlugBuildInstructions here.

to:

Right, upslug is written in C. You need to compile it with GNU C Compiler. These instructions are good for Linux, BSD, commercial SysV?-compatible Unix, and under Windows with either Cygwin or MSYS.

First, you should install CVS, GCC, and GNU Make. Then open a command line shell, create a directory named something like slugtools, change directories there, and checkout the upslug module with CVS:

mkdir slugtools cd slugtools

export CVSROOT=:pserver:anonymous@c...:/cvsroot/nslu cvs login [when it asks for a password, leave blank and just press enter] cvs -z3 co upslug

change directories to upslug, compile by entering the command "make" (without the quotes)

cd upslug make [or gmake in BSD or commercial SysV? Unix]

This should create a program called upslug in there. Copy it to /usr/local/bin and make sure /usr/local/bin is in your PATH.

su Password: [enter root password] cp upslug /usr/local/bin exit

Now comes the fun part :-) The following link has very good instructions on how to get the NSLU2 to RedBoot mode, where you can flash the ROM with relative ease (the web-based update has never worked reliably with any of my three slugs).

http://www.nslu2-linux.org/wiki/HowTo/TelnetIntoRedBoot

I use the perl script provided in that page, it's not failed me once. Copy and paste the perl script into a file named telnet_redboot.pl, then save it in /usr/local/bin

Then shut off your NSLU2 unit, and get ready to run the script

telnet_redboot [don't press enter yet]

Press enter at the same time you turn on the NSLU2!

Once you have telnetted into the NSLU2 RedBoot, then do the following:

type the command update

RedBoot> update [enter]

The NSLU will stop responding to the keyboard, and the top LED will flash red. That's OK, it means it's ready to be flashed. Quit telnet by typing Ctrl-] then at the telnet> prompt, type quit or exit (Windows's telnet uses quit, most Unix use exit).

Then run upslug

upslug -u [unslung-image-filename-goes-here]

CAREFUL: DO NOT type -U <-- uppercase u. BIG MISTAKE!!! (unless you have JTAG cables and embedded systems experience)

view · edit · print · history · Last edited by PieteBrooks.
Based on work by Phil Endecott, jbowler, tman, wiml, tjyang, and rwhitby.
Originally by ka6sox.
Page last modified on May 24, 2006, at 06:18 AM