Grub

For grub you need to add the following lines to the /boot/grub/menu.lst:

serial --unit=0 --speed=9600
terminal serial