My plug died again last week. It had been running non-stop without even a reboot for almost 150 days. Something got corrupted and I had no choice but to re-flash and re-build it from scratch. Luckily, that wasn't too difficult. It had a similar issue 10 months ago when I had to rebuild it at that time, too. I have the first model of Sheevaplug. I hope the newer ones are more stable than mine.
For future reference (mainly my own) here's the procedure. I should have taken notes, instead I'm recalling this from memory. This is not a how-to for setting up a new plug. It will
work for that, but it's more than you need. Don't just follow these steps blindly. Understand what each is doing and consider if it's correct for your version of plug and situation. I'm assuming you have some linux knowledge since I'm not detailing every keystroke you need to make.
Use the SheevaPlug Installer
to un-brick the thing. I could not get the windows version (I'm on Win7 64bit) to work at all. The linux version worked fine from my ubuntu box. Follow the instructions, it's pretty straightforward. You'll need a USB thumb drive and a USB cable to connect the plug to your computer.
Use a terminal program to connect to the plug via the USB cable. Reboot the plug by punching the reset button or pulling the power on it. You should get a login prompt after it boots. The root password is "nosoup4u".
Edit /etc/apt/sources.list Change it to 1 line only:
deb http://old-releases.ubuntu.com/ubuntu jaunty main restricted universe multiverse
Update apt-get and install wget so you can download stuff. Then download the kernel updater script.
apt-get install wget
bash ./README-PLUG-UPDATE.sh 126.96.36.199 --nandkernel
I use kernel 188.8.131.52 because I know it works. You might try others.
Still in your terminal session, reboot the plug. Interrupt the boot process before that countdown stops. Enter the commands from the top of the plug-update script above. For my plug, I entered them verbatim. For your plug, you may need to change the arcNumber and/or bootargs.
setenv arcNumber 2097
setenv bootargs rootfstype=jffs2 console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=192.168.1.9:192.168.1.4:192.168.1.4:255.255.255.0:DB88FXX81:eth0:none
The plug will reboot. Log in as root again. Now would be a good time to change the root password. If you want your plug to have a static ip, edit /etc/network/interfaces and restart networking. Make sure your network cable and USB audio adapter are plugged in. SSH to the plug via ip to make sure that's working. You can disconnect the USB cable now.
Install darkice and usb audio utils. Run alsamixer to set input levels (volume). If alsamixer doesn't see your USB audio adapter, then you have a problem.
apt-get install darkice alsa
Create /etc/darkice.cfg Make sure to set device = plughw:0,0
Create /etc/init.d/darkice (or rc.darkice if you prefer, I'll attach or provide a link to mine later)
Set the init script to run at boot:
update-rc.d darkice defaults 99
You can test that darkice is working by running it from the command line. You should be able to listen to your feed at LiveATC.net.
Create a cron job to restart darkice when it goes down (and it will)
*/5 * * * * /etc/init.d/darkice restartifdown 2>&1 > /dev/null
Now wait 5 minutes for darkice to start, or manually start it via the init script.
It should take less than an hour, probably less than 30 minutes, to un-brick your plug and have it streaming again.