LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: jiandaoxu

编译2.6.14.2内核后启动不了,请大家进来帮帮我,谢谢!(重来没有成功编译过内核,恳请相助!)

[复制链接]
 楼主| 发表于 2005-11-21 07:57:25 | 显示全部楼层
有人能帮帮我么?
回复 支持 反对

使用道具 举报

发表于 2005-11-21 10:18:24 | 显示全部楼层
我编译2.6.14.2内核后启动不了,并且编译时间好长,你们大概要多长时间。选择编译项目谁能指教我。??
回复 支持 反对

使用道具 举报

发表于 2005-11-21 10:48:22 | 显示全部楼层
在选项中我去掉了DEVFS的相关选项

楼主请告诉在哪里去哈哈一直找不到。
回复 支持 反对

使用道具 举报

发表于 2005-11-21 11:04:27 | 显示全部楼层
我是按默认选择,可是耗费我大概4、5小时才编译完,我没时间呀,请教大家,关键选哪些?
回复 支持 反对

使用道具 举报

发表于 2005-11-21 11:16:30 | 显示全部楼层
这是我在vmware中编译的2.6.12的配置文件

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2005-11-21 18:44:41 | 显示全部楼层
devfs属于被2.6内核抛弃的东西,奇怪的是在我机子上确实找不到devfs选项。
回复 支持 反对

使用道具 举报

发表于 2005-11-21 19:26:54 | 显示全部楼层
Post by anthonyho
devfs属于被2.6内核抛弃的东西,奇怪的是在我机子上确实找不到devfs选项。

我用的2.6.12仍有devfs,我现在也在使用devfs,需要在引导内核的时候加个参数devfs=mount
回复 支持 反对

使用道具 举报

发表于 2005-11-21 23:08:29 | 显示全部楼层
2.6.13开始就没有devfs了
回复 支持 反对

使用道具 举报

发表于 2005-11-23 08:54:55 | 显示全部楼层
Post by jiandaoxu
springwind426 --我大致明白你说的意思了,也觉得这个方法可行,但烦请把步骤说的详细些好吗?
怎样将那些模块写到/etc/mkinitrd/modules中呢?(能请你贴一个样例上来么?)
还有我mount -o loop /root/initrd.img-xxxx /mnt/tmp时,系统提示说没有定义文件系统的类型?


首先必须将craimfs,ext2,ext3编译进内核中(不能是模块)
cat /etc/mkinitrd/modules
# /etc/mkinitrd/modules: Kernel modules to load for initrd.
#
# This file should contain the names of kernel modules and their arguments
# (if any) that are needed to mount the root file system, one per line.
# Comments begin with a `#', and everything on the line after them are ignored.
#
# You must run mkinitrd(8) to effect this change.
#
# Examples:
#
#  ext2
#  wd io=0x300
vesafb
intelfb
i810fb
vga16fb
fbcon
usbcore
ide-core
scsi_mod
usb-storage
uhci-hcd
ehci-hcd
ohci-hcd
usbkbd
usbhid
piix
generic
ide-generic
ide-disk
sd_mod
sr_mod

cat /etc/mkinitrd/mkinitrd.conf
# /etc/mkinitrd/mkinitrd.conf:
#  Configuration file for mkinitrd(8).  See mkinitrd.conf(5).
#
# This file is meant to be parsed as a shell script.

# What modules to install.
MODULES=dep

# The length (in seconds) of the startup delay during which linuxrc may be
# interrupted.
DELAY=10

# If this is set to probe mkinitrd will try to figure out what's needed to
# mount the root file system.  This is equivalent to the old PROBE=on setting.
ROOT=/dev/sda1

# This controls the permission of the resulting initrd image.
UMASK=022

# Command to generate the initrd image.
MKIMAGE='mkcramfs %s %s > /dev/null'

# Set this to yes if you want to use busybox(1).
BUSYBOX=no

# Set this to no if you want to disable /usr/share/initrd-tools/scripts.
PKGSCRIPTS=yes

# This is the value for LD_LIBRARY_PATH when deciding what goes onto the
# image.
INITRD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH

# Hardcode partition to resume from so it doesn't have to be specified
# on the command line.  The command line will override this setting.
# RESUME=
注:这些是U盘启动时的配置信息,至于scsi启动我就不清楚了。
回复 支持 反对

使用道具 举报

发表于 2005-11-23 08:58:54 | 显示全部楼层
vmware中你设置的scsi是什么模式,在编译内核时必须将相应的驱动编译时内核。
回复 支持 反对

使用道具 举报

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

本版积分规则

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