lpxelinux启动linux

 

 

 

搭建环境:

image

boot file 指定 lpxelinux.0

拷贝 lpxelinux.0 和 ldlinux.c32 到 tftp目录下。

新建pxelinux.cfg 文件夹, 里面放一个名为default的配置文件

配置文件内容如下:

default linux
prompt 1
timeout 10

label linux
menu label ^Install a new system or upgrade an existing system
menu default
kernel http://192.168.73.13/E%3A/evideo%20stuff/%E5%88%A9%E4%BA%91/netboot/bzImage
append initrd=http://192.168.73.13/E%3A/evideo%20stuff/%E5%88%A9%E4%BA%91/netboot/jessie/rootfs.cpio.gz  i915.modeset=1 vga=0x318 console=ttyS0,115200 console=tty1

 

 

lpxelinux.0 支持 http和ftp 下载。

append 传递给linux的参数中:  console=ttyS0,115200 console=tty1 代表 打开两个控制台, 串口和 tty1 (从0开始), 这样串口和tty1都有输出linux启动信息

 

除了minicom外,发现screen也是一个好工具,支持串口通讯:

screen /dev/ttyUSB0 115200

posted on 2015-12-03 12:54  katago  阅读(613)  评论(0编辑  收藏  举报