分类: LINUX
2006-03-01 14:33:48
Enables a serial port to act as the console. "port" is a number (0 = /dev/ttyS0 = COM1, etc.); if "baudrate" is omitted, the baud rate defaults to 9600 bps. The serial parameters are hardcoded to be 8 bits, no parity, 1 stop bit."flowcontrol" is a combination of the following bits:
0x001
- Assert DTR
0x002
- Assert RTS
0x010
- Wait for CTS assertion
0x020
- Wait for DSR assertion
0x040
- Wait for RI assertion
0x080
- Wait for DCD assertion
0x100
- Ignore input unless CTS asserted
0x200
- Ignore input unless DSR asserted
0x400
- Ignore input unless RI asserted
0x800
- Ignore input unless DCD asserted
For this directive to be guaranteed to work properly, it should be the first directive in the configuration file.
$ more /tftpboot/pxelinux.cfg/default
default local
serial 0
prompt 1
timeout 300
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
F7 snake.msg
label FC4
kernel fc/vmlinuz_FC4
append vga=normal initrd=fc/initrd.img_FC4 ramdisk_size=9372 root=/dev/rd/0 devfs=mount,dall rw
label FC3
kernel fc/vmlinuz_FC3
append vga=normal initrd=fc/initrd.img_FC3 ramdisk_size=9372 root=/dev/rd/0 devfs=mount,dall rw
label FC2
kernel fc/vmlinuz_FC2
append vga=normal initrd=fc/initrd.img_FC2 ramdisk_size=9372 root=/dev/rd/0 devfs=mount,dall rw
label PlanetLab
kernel fc/vmlinuz_PlanetLab
APPEND vga=normal initrd=fc/initrd.img_PlanetLab load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=200744 root=/dev/ram0 rw
label local
localboot 0
$