I've managed to get my "bricked" Nexus S working again by doing what is said here.
One small addition was necessary, though.
When you do an lsusb
and the USB subsystem tells you which Android device is attached, mine was giving me back:
$ lsusb
Bus 001 Device 006: ID 18d1:d001 Google Inc.
Note the d001 and not any of the known states, i.e. 4e20, 4e21 or 4e22.
So what I did is to add another row in 51-android.rules
specifically with this unknown state and mark it as "recovery/debug".
Disconnect and reconnect Android. Check lsusb
again to make sure it is at least seen. And... That gave me this
$ adb devices
List of devices attached
34353601BB2000EC recovery
instead of this
$ adb devices -l
List of devices attached
???????????? no permissions usb:1-3
After that, I simply followed the howto for restoring the factory images. Hope it helps.