Tuesday, November 8, 2011

Linux simple serial console

I am trying to refit an Intel SS4200 NAS unit that came as a Scaleo Home Server 2205 as a linux server. After browsing the internet for what seems like a whole week, looking up ways to install a simple Linux system on a headless server, using the serial console for text-IO instead of a monitor and a keyboard, I finally managed to do so. The SS4200 unit uses 115200 baud configuration for the serial port and you need a null-modem cable to connect it to your PC, but also you need to order a IDC10 to DB9 connector, or possibly just through something together with wire connected to a serial cable. For more explanation, see this blog.

I used a simple Debian netinst ISO (torrent here) and put it on a USB stick made bootable with unetbootin. For serial communication, I use PuTTy. When you have created your USB stick with the debian netinst image, modify the syslinux.cfg file on it to contain just the following:

default linux
prompt 1
display boot.msg
timeout 100
label linux
  kernel vmlinuz
  append $INITRDARG root=$rootdev

Save and close, plug the stick into your SS4200. Connect your PCs serial port to the SS4200 using a nullmodem adapter. Open up PuTTy and set it to connect to your serial port, using 115200 baud. Make sure you know your serial adapters name (most commonly COM1 on Windows, ttyS0 on linux, though be careful when using a USB to serial adapter and check in the device manager on windows, or ls tty* on linux so you have the correct name).

When PuTTy is set up and you power on your SS4200, you should get some text. Immediately hit DEL repeatedly in PuTTy after powering on the unit to get into the BIOS. There you have to alter the boot order to enable booting from the USB stick. Do that, save and exit BIOS. Then when it restarts, it should go to the GRUB screen with a single option. Hit Enter or wait for the timeout to expire, and you should find yourself in the debian expert installation menu.

Good Luck from there!