LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1527|回复: 15

a kernel problem

[复制链接]
发表于 2006-1-2 13:32:11 | 显示全部楼层 |阅读模式
Fcitx crashing makes me can input english only.

I install a debian system under a redhat . then I complied a kernel for debian using same .config file as the redhat .config file . But it can not work. It can boot by using the kernel which i had complied for redhat. But they using same .config file.


When i try to boot under the kernel complied for debian  , it told me that it can not mount the root file system. But the redhat kernel can do that.

Help me . thank you
发表于 2006-1-2 14:43:27 | 显示全部楼层
I install a debian system under a redhat
What does it mean?  No CD installation method via RedHat?
then I complied a kernel for debian using same .config file as the redhat .config file . But it can not work. It can boot by using the kernel which i had complied for redhat. But they using same .config file.
How did you compile the kernel for Debian?  Before your compilation, were you able to start Debian?

In general, kernel compiled for Redhat under Redhat environment cannot be used for Debian!
When i try to boot under the kernel complied for debian , it told me that it can not mount the root file system. But the redhat kernel can do that.
Are there any initrd in use?

By the way, what is your kernel version?

Please provide as many information as possible.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-2 14:59:57 | 显示全部楼层
What i mean is the old kernel i complied work well with my debian distribtion.
I change my grub configuration file. the root value (from the old hda1 to the new one hda5)
But when i complied a new kenel under debian ENV. it can not find the root partitition even if they using same .config file.

Know what i mean?

Kernel version is 2.6.14.4
回复 支持 反对

使用道具 举报

发表于 2006-1-2 15:13:58 | 显示全部楼层
What is the reason to change hda1 to hda5?

RedHat on hda1 and Debian on hda5?

What is the old kernel version? How did you compile your Debian kernel?

Are there any initrd in use?  If you use initrd for the new 2.6.14.x kernel, you must install yaird first.

Please describe in a more detail.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-2 15:21:24 | 显示全部楼层
I already use redhat linux for about 4 years. I found that made me crazy. I had to be control by rpm and its relationship. Then  i install debian.  I using the way which is learn for install manual. Install debian from a linux/Unix.
http://debian.linuxsir.cn/book/d ... 86.html/apcs04.html
回复 支持 反对

使用道具 举报

发表于 2006-1-2 15:40:22 | 显示全部楼层
OK, can you give me the answers of my previous questions?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-2 15:49:58 | 显示全部楼层
Thanks a lot. Firstly.

I use the same way to install debian step by step from the docment(i had show you the link to it).
But the last step install the kernel. I liks using the kernel complied by my self . then i complied a kernel in usual way . But it can not load root filesystem. Then i copy the old kernel ((from redhat) and overwrite the broken one. it works well.
So i think may be there is something wrong in my gcc.
Others ( source code, Envorment , .config file) are completely same.
redhat fc4 using gcc4
and my debian distrbution using gcc 3.3

will you agree with me ? How can i  upgrade my gcc to gcc 4.
Thanks again
回复 支持 反对

使用道具 举报

发表于 2006-1-2 16:13:28 | 显示全部楼层
I liks using the kernel complied by my self . then i complied a kernel in usual way .
This is the most important answer I am asking for.  What are the commands you issue to the system to build your kernel?

Would you please also post your /boot/grub/menu.lst for study?

As I mentioned earlier, kernel from other distros cannot work in Debian.  It is not a matter of whether they are using the same .config file, it is a matter on how the kernel is compiled.  It is very likely that the kernel compiled in RedHat or other distros that are linked with different version of Glibc that is not compatible with your Debian system.  GCC may not matter because you can download the Debian kernels from the Sid branch which are also compiled with GCC-4.

GCC-4 is only available in the testing, unstable and experimental branches.  You may need to make changes on your source.list before you can apt-get it.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-2 16:15:32 | 显示全部楼层
the only kernel version i had is 2.6.14.4 the old one is complied under rh
the new one is complied under debian  . I had using initrd.
What is yaird. I cant find them
回复 支持 反对

使用道具 举报

发表于 2006-1-2 16:26:15 | 显示全部楼层
是不是忘了制作initrd.img?呵呵
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表