Hi there!
@pancho
$ sudo aptitude install libftdi1
Good point! I did that. But it still complains about the missing library. My guess is that it is searching for this library on the plug.
$ locate libftdi.so
/usr/lib/libftdi.so.1
$ sudo php ./runme.php nand
...
**** Burning uboot and environment variables ... This will take few minutes ...
openocd/openocd: error while loading shared libraries: libftdi.so.1: cannot open shared object file: No such file or directory **** openocd FAILED
**** Is the mini USB cable connected?
**** Try powering down, then replugging the Sheevaplug
Try this:
$locate libftdi.so.1
/usr/lib/libftdi.so.1/usr/lib/libftdi.so.1.17.0
$ ldd uboot/openocd/openocd
linux-gate.so.1 => (0xf771b000)
libdl.so.2 => /
lib32/libdl.so.2 (0xf7700000)
libftdi.so.1 => not found libusb-0.1.so.4 => /
lib32/libusb-0.1.so.4 (0xf76f7000)
libc.so.6 => /
lib32/libc.so.6 (0xf75b3000)
/lib/ld-linux.so.2 (0xf771c000)
The problem is that you (and me, and lots of users) are using an amd64 flavor of debian, and the opencd that is bundled with sheevaplug-installer-1.0 is built and linked against the i386 version.
For that to work you could edit 'runme.php' and change the path to use the debian-provided openocd, which you can install with:
$ sudo aptitude install openocd
To edit runme.php:
$ perl -i -p -e 's,\$openocd_cmd= "openocd/openocd";,\$openocd_cmd= "/usr/bin/openocd";,' runme.php
I know that since your SheevaPlug is in critical condition (won't say dead... yet) this is a bit pointless right now. But let's hope for the best (or a replacement GuruPlug, at least).
Best of luck.
Cheers,