From MeteoBrallo

Main: AlcuniCenni

-1 Flashare con SlugOS l'apparato.

  La cosa piu' comoda e' farlo da windows

scaricare il flasher e l'os

   1. Download the SlugOS image from http://www.slug-firmware.net
   2. Put the NSLU2 into Upgrade Mode
         1. Disconnect any disks and/or devices from the USB ports.
         2. Power off the NSLU2
         3. Press and hold the reset button (accessible through the small hole on the back just above the power input).
         4. Press and release the power button to power on the NSLU2.
         5. Wait for 10 seconds watching the ready/status LED. After 10 seconds it will change from amber to red. Immediately release the reset button.
         6. The NSLU2 ready/status LED will flash alternately red/green (there is a 1 second delay before the first green). 
   3. Flash the NSLU2 by using UpSlug2 or the Win32 Sercomm Utility 

con ssh si accede e la pwd di root e' opeNSLUg

Nota: le nuve NSLU2 hanno il led non rosso ma arancio leggermente piu' scuro...

-2 Installare Il sistema operativo su una chiavetta esterna:

   1. (If necessary) Use fdisk (OpenSlug.InitialisingDisks)to create a partition on your destination disk. (consider making a swap partition as well) REBOOT the slug.
   2. Run turnup init
   3. Do extra network configuration
   4. If not already done, plug in a disk or flash card in USB1? and wait for the device to settle (you can see if the device is detected with the dmesg command)
   5. If necessary (see below) install packages to allow the NSLU2 to function correctly in your network.
   6. Format a hard disk (example: mkfs.ext3 <DEVICE>) (initialize swap on a different device with mkswap <DEVICE>)
   7. Run turnup disk -i <DEVICE> -t ext3 to create a root filesystem on the disk. (Or turnup memstick -i <DEVICE> -t ext3)
   8. Reboot to the new disk partition.
   9. Install packages and configure the NSLU2. 

Please note that <DEVICE> is /dev/sda1 or /dev/sdb1.

Of course you can also use an existing disk. E.g. if you used your disk before with unslung you could create an additional root partition (probably after resizing the existing partition first). That way you can skip the formatting step (5). There is no need that the partition is /dev/sda1. However the current version only supports minor numbers up to and including 4. E.g. using /dev/sda5 does not work in 2.5beta. This will probably be fixed in a later release.

Non ho fatto swap e ho creato un'unica partizione da 1G...

    * autoconf 2.59-1
    * automake 1.9.4-2
    * bash 2.05b-3
    * bison 1.875-2
    * coreutils 5.2.1-4
    * crosstool 0.28-rc37-5
    * findutils 4.1.20-2
    * flex 2.5.4a-1
    * gawk 3.1.4-2
    * grep 2.4.2-3
    * groff 1.19.1-2
    * libtool 1.5.10-2
    * m4 1.4.1-1
    * make 3.80-1
    * patch 2.5.4-2
    * perl 5.8.6-2
    * pkgconfig 0.15.0-1
    * sed 4.1.4-1
    * tar 1.14-2
    * wget-ssl 1.9.1-1 
    * gcc_3.4.4

tolto chiavetta, installato hdu 8G partizione root 2G partizione swap 9G partizione disponibile (home?) riinstallato OS So you want to compile natively eh ?

   1. Make sure you have lots of swap
   2. Add a normal user, 'slug' is recommended
   3. ipkg install slugos-native
   4. Login as the normal user 

At the moment (2006-01-12) it's necessary to download and compile monotone >=0.24 on the slug, because openslug 2.7beta ships with monotone 0.22 and there's no way to use the master Makefile without upgrading to 0.24 or 0.25 by yourself.

   1. Run wget http://www.venge.net/monotone/downloads/monotone-0.25.tar.gz
   2. Run tar xvzf monotone-0.25.tar.gz
   3. Run cd monotone-0.25
   4. Run ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var
   5. This may take some time
   6. Run make && make install 

This takes even more time. You might get a big cup of coffee. If you haven't de-undeclocked your NSLU2 yet, you'll consider it now... Thinking about setting up a cross-compile environment on your 3 Ghz PC? Yeah, me too. This step will take at least 4 hours on an overclocked slug.


Compiling natively is quite possible provided you have plenty of time, swap and diskspace. Below are some instructions to get you going. These should work on SlugOS 3.10 (and probably higher)

   1. Make sure you have lots of swap
   2. Add a normal user, 'slug' is recommended
   3. ipkg install slugos-native
   4. ipkg install libc6-dev (not needed after 3.10)
   5. ipkg install boost-dev
   6. ipkg install libz-dev
   7. ipkg install monotone-5
   8. ipkg --force-overwrite install ipkg-utils 

Fix with ar

The following steps were also required to replace the busybox ar utility with a one enabling building your own libraries:

 # cd /usr/bin
 # rm ar
 # ln -s armeb-linux-ar ar
Retrieved from http://www.meteobrallo.com/site/pmwiki.php?n=Main.AlcuniCenni
Page last modified on December 30, 2007, at 07:53 AM