Re: 师兄

3 views
Skip to first unread message

zhangjin wu

unread,
Jun 8, 2008, 2:08:48 AM6/8/08
to zhang chuande, lzuos...@googlegroups.com

这两天编译一下内核可是到了让我头疼的问题

第一种使用内核启动后停在开始的uncompressing linux...ok,booting the kernel..不动了

二种启动后输入用户名密码但是进入不了桌面一直显示白屏

只有一次是正常进入的而且网络还不能用以后编译重启都是上面两种问题弄的我头都了:-(

把每次编译得到的新内核映像(arch/i386/boot/bzImage)拷贝到/boot下面并命名为bzImage-new了,

然后修改/boot/grub/menu.lst文件

原来的

title Ubuntu 8.04, kernel 2.6.24-17-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=12e4787d-f6e3-4018-9885-fe4f633d3bbc ro quiet splash
initrd /boot/initrd.img-2.6.24-17-generic
quiet

title Ubuntu 8.04, kernel 2.6.24-17-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=12e4787d-f6e3-4018-9885-fe4f633d3bbc ro single
initrd /boot/initrd.img-2.6.24-17-generic

前面加上了一部分修改了kernel内容


成了

title new system call 
root (hd0,2)
kernel /boot/bzImage-new root=UUID=12e4787d-f6e3-4018-9885-fe4f633d3bbc ro quiet splash
initrd /boot/initrd.img-2.6.24-17-generic
quiet


title Ubuntu 8.04, kernel 2.6.24-17-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=12e4787d-f6e3-4018-9885-fe4f633d3bbc ro quiet splash
initrd /boot/initrd.img-2.6.24-17-generic
quiet

title Ubuntu 8.04, kernel 2.6.24-17-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.24-17-generic root=UUID=12e4787d-f6e3-4018-9885-fe4f633d3bbc ro single
initrd /boot/initrd.img-2.6.24-17-generic

问题那呢大阿



--
Student. Wu Zhangjin
Lanzhou University http://www.lzu.edu.cn
Distributed & Embedded System Lab http://dslab.lzu.edu.cn
School of Information Science and Engeneering http://xxxy.lzu.edu.cn
zhan...@gmail.com http://falcon.oss.lzu.edu.cn
Address:Tianshui South Road 222,Lanzhou,P.R.China Zip Code:730000
Tel:+86-931-8912025

Wang, Baojun

unread,
Jun 8, 2008, 2:25:33 AM6/8/08
to lzuos...@googlegroups.com, Wu, Zhangjin, Zhang, Chuande
在 2008-06-08日的 14:08 +0800,zhangjin wu写道:
>
> 我这两天想编译一下内核,可是碰到了让我头疼的问题:
>
> 第一种:使用新内核启动后,停在开始的uncompressing
> linux...ok,booting the kernel..那不动了

这个可能是因为修改内核出问题了,尤其对比较底层的改动(head.S entry.S 中断
/异常相关)容易出现这样的问题。如果这样的话,最好先不要做任何改动,make
menuconfig,确认这样没问题后再做修改。
>
> 第二种:启动后,输入用户名、密码,但是进入不了桌面,一直显示白
> 屏
同上
>
> 只有一次是正常进入的,而且网络还不能用,以后再编译重启都是上面
> 的两种问题,弄的我头都大了:-(
如果修改了内核的代码什么都有可能发生呵呵,最好一步步来不要着急(确认没一
步都没问题,就很容易找到问题的根源了,不要一下改动太大)
>
> 我把每次编译得到的新内核映像(arch/i386/boot/bzImage)拷贝
> 到/boot下面,并命名为bzImage-new了,
>
> 然后修改/boot/grub/menu.lst文件:
>
>
>
> 原来的是:
>
> title Ubuntu 8.04, kernel 2.6.24-17-generic
> root (hd0,2)
> kernel /boot/vmlinuz-2.6.24-17-generic
> root=UUID=12e4787d-f6e3-4018-9885-fe4f633d3bbc ro quiet splash
> initrd /boot/initrd.img-2.6.24-17-generic
> quiet
>
> title Ubuntu 8.04, kernel 2.6.24-17-generic (recovery mode)
> root (hd0,2)
> kernel /boot/vmlinuz-2.6.24-17-generic
> root=UUID=12e4787d-f6e3-4018-9885-fe4f633d3bbc ro single
> initrd /boot/initrd.img-2.6.24-17-generic
>
>
> 我在前面加上了一部分(只修改了kernel的内容):
>
>
> 变成了:
>
>
> title new system call
> root (hd0,2)
> kernel /boot/bzImage-new
> root=UUID=12e4787d-f6e3-4018-9885-fe4f633d3bbc ro quiet splash
> initrd /boot/initrd.img-2.6.24-17-generic
> quiet
initrd一般不能直接使用的,最好生成一个,如编译的内核版本为
2.6.24-custerm,则mkinitrd -o /boot/inird.img 2.6.24-custom
>
> title Ubuntu 8.04, kernel 2.6.24-17-generic
> root (hd0,2)
> kernel /boot/vmlinuz-2.6.24-17-generic
> root=UUID=12e4787d-f6e3-4018-9885-fe4f633d3bbc ro quiet splash
> initrd /boot/initrd.img-2.6.24-17-generic
> quiet
>
> title Ubuntu 8.04, kernel 2.6.24-17-generic (recovery mode)
> root (hd0,2)
> kernel /boot/vmlinuz-2.6.24-17-generic
> root=UUID=12e4787d-f6e3-4018-9885-fe4f633d3bbc ro single
> initrd /boot/initrd.img-2.6.24-17-generic
>
>
> 问题在那呢,头好大阿。
>
>
>
> --
> Student. Wu Zhangjin
> Lanzhou University http://www.lzu.edu.cn
> Distributed & Embedded System Lab http://dslab.lzu.edu.cn
> School of Information Science and Engeneering http://xxxy.lzu.edu.cn
> zhan...@gmail.com http://falcon.oss.lzu.edu.cn
> Address:Tianshui South Road 222,Lanzhou,P.R.China Zip Code:730000
> Tel:+86-931-8912025
> --~--~---------~--~----~------------~-------~--~----~
> 您收到此信息是由于您订阅了 Google 论坛“lzuossteam”论坛。
> 要在此论坛发帖,请发电子邮件到 lzuos...@googlegroups.com
> 要退订此论坛,请发邮件至 lzuossteam-...@googlegroups.com
> 更多选项,请通过 http://groups.google.com/group/lzuossteam?hl=zh-CN
> 访问该论坛
> -~----------~----~----~----~------~----~------~--~---
>
--
Wang, Baojun Lanzhou University
Distributed & Embedded System Lab http://dslab.lzu.edu.cn
School of Information Science and Engeneering wan...@dslab.lzu.edu.cn
Tianshui South Road 222. Lanzhou 730000 .P.R.China
Tel: +86-931-8912025 Fax: +86-931-8912022

signature.asc

kang kang

unread,
Jun 9, 2008, 9:46:37 PM6/9/08
to lzuos...@googlegroups.com
把kernel 那行的quiet去掉看。

2008/6/8 zhangjin wu <zhan...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages