![]() |
This page described how to install UpSlug2 on MacOS X. For basic information about UpSlug2, see its wiki page. UpSlug2 and OSXUpSlug2 works well with Mac OS X. You must use/install three pieces of software, the primary one being UpSlug2, and also libpcap, a library needed for UpSlug2 to run, and finally, you need MacPorts, the installation conduit by which you install libpcap. This has been tested on a PPC G5 under Mac OS 10.4.7. The Mac OS X UpSlug2 binary is PPC only while the most recent version of libpcap accessed by MacPorts is an intel binary. Until a universal binary of UpSlug2 is made available, UpSlug2 will have to be compiled from source for Intel Macs (tested on a Macbook Pro running 10.4.9). Installing UpSlug2 on Intel MacOSThe binary version on SourceForge (mentioned in 2.4 below) is a PowerPC binary and will not work with the Intel binary lipcap. Until a universal binary of UpSlug2 is made available, UpSlug2 will have to be compiled from source for Intel Macs. 1.1 Download and install the MacPorts software. 1.2 Install libpcap 1.3 Install GNU autotools 1.4 Download the UpSlug2 source code upslug2-11.tar.gz from http://sourceforge.net/project/showfiles.php?group_id=116564 1.5 Double click on 1.6 Build the UpSlug2 source cd upslug2-11
autoreconf -i
./configure --with-libpcap
sudo make install
Installing UpSlug2 on PowerPC MacOS2.1 Download and install the MacPorts software. 2.2 Update the available ports for installation by opening up a new terminal window and typing: 2.3 Install libpcap in the Terminal by typing: 2.4 Download and install the UpSlug2 binary package for OS X. [The current version at the time of this writing is 2-11, the file for OS X is named "upslug2-11-osx.tgz" 2.5 After the upslug download archive has been expanded, locate the file named "upslug2" This file needs to be moved to the operating directory of the Terminal. 2.6 Use the Terminal to move the upslug2 file to the /usr/bin/ directory 2.6.1 or move upslug2 manually by quitting Terminal and in the Finder goto: Go > Goto Folder... and type /usr/bin/ then click "Go" in the resulatnt dialog box. The /bin/ folder should open.
2.6.2 Drag and drop the "upslug2" file into the /bin/ directory and choose "Authenticate" and type your administrative password to move upslug to the Terminal's working directory.
[ For Fink, upslug2 version 0.11 is available: fink install upslug2 (20080721)] Using UpSlug2 to Flash your NSLU2If your system MTU is not 1500, UpSlug2 may fail with the following error message: The default factory assigned IP address of the NSLU2 is 192.168.1.77 . Use the following steps if you have not changed the default address of your NSLU2. If your NSLU2 is currently on your network and accessable via its Web interface then skip step 3 below and go straight to step 4. 3.1 Connect your NSLU2 directly to your computer's ethernet port [be sure you have downloaded the flash file for reflashing] 3.1.1 If you have not already done so, Duplicate Network Port Configuration:
goto System Preferences > Network Port Configurations.
Select built in ethernet and hit "duplicate" and rename the configuration
Select the new configuration and click the "TCP/IP" tab
Select "Using DHCP with manual address,"
Enter the manual IP of the form 192.168.1.2
3.1.2 Discover NSLU2 Address:
Open Terminal and type arp -a
Find the address for the NSLU2 under 192.168.1.77
4.1 Put your NSLU2 into upgrade mode by restarting it with only the ethernet cable connected while holding a paperclip in the reset hole in the back of the NSLU2. When the ready/status light on the front turns red, remove the paperclip. The NSLU2 should now be blinking red. 4.2 Run upslug2 with a command line option to specify your ethernet device, 4.3 Open a new Terminal window and type the following command: sudo upslug2 -d en0 -t [the NSLU2 address] -i [the path to the flash file]
where -d en0 specifies that you wish to use the "en0" ethernet port, the default on Macintosh computers
-t [the NSLU2 address] specifies the MAC address of the NSLU2 you wish to upgrade
-i [the path to the flash file] specifies the flash image you wish to use.
So, for example, the command would be typed as: sudo upslug2 -d en0 -t 00:0f:66:89:19:69 -i ~/Desktop/NSLU2_V23R63.bin
4.4 Let the command run and let the NSLU2 reboot 4.5 You can now access the NSLU2 via SSH e.g.
view ·
edit ·
print ·
history ·
Last edited by Morten Kjeldgaard.
Based on work by mhornsby, Tom Gross, fcarolo, david, drew harris, and Kyle Harr. Originally by Phil Endecott. Page last modified on July 21, 2008, at 06:13 PM
|