码迷,mamicode.com
首页 > 系统相关 > 详细

如何设置ubuntu系统的串口输出(三)

时间:2014-12-27 00:17:51      阅读:203      评论:0      收藏:0      [点我收藏+]

标签:

进一步优化/boot/grub/grub.cfg为如下内容:

linux@linux:~$ cat /boot/grub/grub.cfg
set timeout=10
set root='hd0,msdos1'
search --no-floppy --fs-uuid --set=root 2c604c33-d631-4440-b0fc-697bd6f32749
linux   /boot/vmlinuz-3.16.0-23-generic root=UUID=2c604c33-d631-4440-b0fc-697bd6f32749 ro  text console=tty0 console=ttyS0,115200n8
initrd  /boot/initrd.img-3.16.0-23-generic
boot
linux@linux:~$ 


再进一步精简/boot/grub/grub.cfg:


linux@linux:~$ cat /boot/grub/grub.cfg
set timeout=10
set root='hd0,msdos1'
linux   /boot/vmlinuz-3.16.0-23-generic root ro  text console=tty0 console=ttyS0,115200n8
initrd  /boot/initrd.img-3.16.0-23-generic
boot
linux@linux:~$ 

这时候启动就有问题了,问题是:命令行停留在(initramfs),而没有进入到rootfs

接下来需要解决这一问题

如何设置ubuntu系统的串口输出(三)

标签:

原文地址:http://blog.csdn.net/xiangpingli/article/details/42180935

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!