LinuxSir.cn,穿越时空的Linuxsir!

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

[服务新手] gentoo-sources内核.config文件配置服务

[复制链接]
 楼主| 发表于 2009-8-24 05:55:00 | 显示全部楼层
@beyond93 :兄弟,kde语言包不叫 i18n 叫 l10n。

另外,对于intel的卡,反正我没有遇到用不了宽屏分辨率fb的。不能帮您debug了。
回复 支持 反对

使用道具 举报

发表于 2009-8-24 23:17:05 | 显示全部楼层
@zhou3345

由于我的系统是ext3 的, 所以我把你给你配置里面的ext4删除了,把ext3编译进内核,启动提示如下错误。

uvesafb: failed to executs /sbin/v86d
uvesafb: make sure that the v86d helper is installed and executable
uvesafb: Getting VBE info block failed
uvesafb: vbe_init() failed with -22
FAT: utf8 is not a recommanded IO charset for FAT filesystems, filesystem will be case sensitive!
kernel panic  - not syncing: VFS: Unable to mount root fs on unknow-block(1,0)
回复 支持 反对

使用道具 举报

发表于 2009-8-24 23:23:42 | 显示全部楼层
@zhou3345

编译的时候有如下3处提示信息

  CC      drivers/scsi/sd.o
drivers/scsi/sd.c: In function ‘sd_read_capacity’:
drivers/scsi/sd.c:1451: warning: comparison is always false due to limited range of data type
  CC      drivers/scsi/sr.o

  CC      drivers/serial/8250.o
drivers/serial/8250.c: In function ‘serial8250_shutdown’:
drivers/serial/8250.c:1685: warning: ‘i’ may be used uninitialized in this function
  CC      drivers/serial/8250_pnp.o

  CC      drivers/video/console/fbcon.o
drivers/video/console/fbcon.c: In function ‘fbcon_modechanged’:
drivers/video/console/fbcon.c:2964: warning: ISO C90 forbids mixed declarations and code
  CC      drivers/video/console/bitblit.o
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-24 23:59:50 | 显示全部楼层
Post by rogues;2019957
@zhou3345

由于我的系统是ext3 的, 所以我把你给你配置里面的ext4删除了,把ext3编译进内核,启动提示如下错误。

uvesafb: failed to executs /sbin/v86d
uvesafb: make sure that the v86d helper is installed and executable
uvesafb: Getting VBE info block failed
uvesafb: vbe_init() failed with -22
FAT: utf8 is not a recommanded IO charset for FAT filesystems, filesystem will be case sensitive!
kernel panic  - not syncing: VFS: Unable to mount root fs on unknow-block(1,0)

这是提醒你没有安装v86d,如果需要uvesafb的话,就需要装这个组件。
启动不了跟这个也没关系。

启动不了只有一个问题:硬盘分区问题。要么是硬盘驱动没编译好(这个应该不可能);要么就是 /etc/fstab 文件没有修改好,和你的分区不符,请仔细检查。

这个问题跟文件系统没有关系。ext4比ext3性能强很多。

另外编译的时候有一些提示是正常的,没必要理会。
回复 支持 反对

使用道具 举报

发表于 2009-8-25 09:04:20 | 显示全部楼层
@zhou3345
谢谢, 我回去再查查.

我是在原来的基础上内核升级,  分区没做任何修改, 所以 /etc/fstab 文件应该没有问题吧.


补充: 原来的系统还是可以启动的.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-25 09:29:03 | 显示全部楼层
@rogues
能贴出你的分区信息和grub的菜单项吗?
* 运行 fdisk -l ,然后贴出其内容。
* 贴出 fstab 文件内容。
* 贴出 /boot/grub/menu.lst 文件内容。

在有initrd支持的某些情况下,fstab文件不正确也是可以启动的。
回复 支持 反对

使用道具 举报

发表于 2009-8-25 10:18:29 | 显示全部楼层
@zhou3345
谢谢, 可以的, 不过得等下班后了.
回复 支持 反对

使用道具 举报

发表于 2009-8-25 20:39:22 | 显示全部楼层
@zhou3345

[Code]
#fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x624aa2e0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1309    10514511    c  W95 FAT32 (LBA)
/dev/sda2            1310       19326   144721552+   f  W95 Ext'd (LBA)
/dev/sda3   *       19327       19457     1052257+  83  Linux
/dev/sda5            1310        4583    26298373+   b  W95 FAT32
/dev/sda6            4584        9163    36788818+   b  W95 FAT32
/dev/sda7            9164        9537     3004123+  83  Linux
/dev/sda8            9538       19326    78630111   83  Linux

=====================================================================================

#cat /etc/fstab
# /etc/fstab: static file system information.

# <fs>                        <mountpoint>        <type>                <opts>                <dump/pass>

/dev/sda3        /boot        ext3        noatime        1 2
/dev/sda8        /        reiserfs        noatime,notail        0 1
/dev/sda7        none        swap        sw        0 0

none        /proc        proc        defaults        0 0
shm        /dev/shm        tmpfs        nodev,nosuid,noexec        0 0

=====================================================================================

#cat /boot/grub/grub.conf
default 0
timeout 3

title Windows XP professional
root (hd0,0)
makeactive
chainloader +1

title Gentoo Linux
root (hd0,2)
kernel /boot/kernel-genkernel-sata-scsi root=/dev/ram0 real_root=/dev/sda8 quiet
initrd /boot/initramfs-genkernel-x86-2.6.28

title Gentoo Linux (new)
root (hd0,2)
kernel /boot/vmlinuz-2.6.30-r5 root=/dev/ram0 real_root=/dev/sda8 quiet
initrd /boot/initrd-2.6.30-r5.img

=====================================================================================

#lspci -v

00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information <?>
        Kernel modules: intel-agp

00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 00005000-00005fff
        Memory behind bridge: 90000000-92ffffff
        Prefetchable memory behind bridge: 0000000080000000-000000008fffffff
        Capabilities: [88] Subsystem: QUANTA Computer Inc Device 0774
        Capabilities: [80] Power Management version 3
        Capabilities: [90] MSI: Mask- 64bit- Count=1/1 Enable+
        Capabilities: [a0] Express Root Port (Slot+), MSI 00
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [140] Root Complex Link <?>
        Kernel driver in use: pcieport-driver
        Kernel modules: shpchp

00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03) (prog-if 00 [UHCI])
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, medium devsel, latency 0, IRQ 16
        I/O ports at 60c0
        Capabilities: [50] PCIe advanced features <?>
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03) (prog-if 00 [UHCI])
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, medium devsel, latency 0, IRQ 21
        I/O ports at 60a0
        Capabilities: [50] PCIe advanced features <?>
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03) (prog-if 20 [EHCI])
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, medium devsel, latency 0, IRQ 19
        Memory at 99205400 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCIe advanced features <?>
        Kernel driver in use: ehci_hcd
        Kernel modules: ehci-hcd

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, fast devsel, latency 0, IRQ 22
        Memory at 99200000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] MSI: Mask- 64bit+ Count=1/1 Enable-
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [130] Root Complex Link <?>
        Kernel driver in use: HDA Intel
        Kernel modules: snd-hda-intel

00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        I/O behind bridge: 00004000-00004fff
        Memory behind bridge: 98100000-991fffff
        Prefetchable memory behind bridge: 0000000093000000-0000000093ffffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Mask- 64bit- Count=1/1 Enable+
        Capabilities: [90] Subsystem: QUANTA Computer Inc Device 0774
        Capabilities: [a0] Power Management version 2
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [180] Root Complex Link <?>
        Kernel driver in use: pcieport-driver
        Kernel modules: shpchp

00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=03, subordinate=04, sec-latency=0
        I/O behind bridge: 00003000-00003fff
        Memory behind bridge: 97100000-980fffff
        Prefetchable memory behind bridge: 0000000094000000-0000000094ffffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Mask- 64bit- Count=1/1 Enable+
        Capabilities: [90] Subsystem: QUANTA Computer Inc Device 0774
        Capabilities: [a0] Power Management version 2
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [180] Root Complex Link <?>
        Kernel driver in use: pcieport-driver
        Kernel modules: shpchp

00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 03) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
        I/O behind bridge: 00001000-00002fff
        Memory behind bridge: 96100000-970fffff
        Prefetchable memory behind bridge: 0000000095000000-00000000960fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Mask- 64bit- Count=1/1 Enable+
        Capabilities: [90] Subsystem: QUANTA Computer Inc Device 0774
        Capabilities: [a0] Power Management version 2
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [180] Root Complex Link <?>
        Kernel driver in use: pcieport-driver
        Kernel modules: shpchp

00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03) (prog-if 00 [UHCI])
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, medium devsel, latency 0, IRQ 20
        I/O ports at 6080
        Capabilities: [50] PCIe advanced features <?>
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03) (prog-if 00 [UHCI])
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, medium devsel, latency 0, IRQ 19
        I/O ports at 6060
        Capabilities: [50] PCIe advanced features <?>
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03) (prog-if 00 [UHCI])
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, medium devsel, latency 0, IRQ 16
        I/O ports at 6040
        Capabilities: [50] PCIe advanced features <?>
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.3 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03) (prog-if 00 [UHCI])
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, medium devsel, latency 0, IRQ 18
        I/O ports at 6020
        Capabilities: [50] PCIe advanced features <?>
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03) (prog-if 20 [EHCI])
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, medium devsel, latency 0, IRQ 20
        Memory at 99205000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCIe advanced features <?>
        Kernel driver in use: ehci_hcd
        Kernel modules: ehci-hcd

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93) (prog-if 01 [Subtractive decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=06, subordinate=06, sec-latency=32
        Capabilities: [50] Subsystem: QUANTA Computer Inc Device 0774

00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, medium devsel, latency 0
        Capabilities: [e0] Vendor Specific Information <?>
        Kernel modules: iTCO_wdt

00:1f.2 IDE interface: Intel Corporation ICH9M/M-E 2 port SATA IDE Controller (rev 03) (prog-if 8f [Master SecP SecO PriP PriO])
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 19
        I/O ports at 6138
        I/O ports at 614c
        I/O ports at 6130
        I/O ports at 6148
        I/O ports at 6110
        I/O ports at 6100
        Capabilities: [70] Power Management version 3
        Capabilities: [b0] PCIe advanced features <?>
        Kernel driver in use: ata_piix
        Kernel modules: ata_piix

00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: medium devsel, IRQ 18
        Memory at 99205800 (64-bit, non-prefetchable) [size=256]
        I/O ports at 6000
        Kernel driver in use: i801_smbus
        Kernel modules: i2c-i801

00:1f.5 IDE interface: Intel Corporation ICH9M/M-E 2 port SATA IDE Controller (rev 03) (prog-if 85 [Master SecO PriO])
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 19
        I/O ports at 6128
        I/O ports at 6144
        I/O ports at 6120
        I/O ports at 6140
        I/O ports at 60f0
        I/O ports at 60e0
        Capabilities: [70] Power Management version 3
        Capabilities: [b0] PCIe advanced features <?>
        Kernel driver in use: ata_piix
        Kernel modules: ata_piix

00:1f.6 Signal processing controller: Intel Corporation 82801I (ICH9 Family) Thermal Subsystem (rev 03)
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: fast devsel, IRQ 11
        Memory at 99204000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: [50] Power Management version 3

01:00.0 VGA compatible controller: nVidia Corporation GeForce 9300M GS (rev a1) (prog-if 00 [VGA controller])
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at 92000000 (32-bit, non-prefetchable) [size=16M]
        Memory at 80000000 (64-bit, prefetchable) [size=256M]
        Memory at 90000000 (64-bit, non-prefetchable) [size=32M]
        I/O ports at 5000 [size=128]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Mask- 64bit+ Count=1/1 Enable-
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia

02:00.0 Network controller: Intel Corporation Wireless WiFi Link 5100
        Subsystem: Intel Corporation Device 1201
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at 98100000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [c8] Power Management version 3
        Capabilities: [d0] MSI: Mask- 64bit+ Count=1/1 Enable-
        Capabilities: [e0] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number 9a-70-20-ff-ff-6b-21-00

05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
        Subsystem: QUANTA Computer Inc Device 0774
        Flags: bus master, fast devsel, latency 0, IRQ 2299
        I/O ports at 1000 [size=256]
        Memory at 95010000 (64-bit, prefetchable) [size=4K]
        Memory at 95000000 (64-bit, prefetchable) [size=64K]
        Expansion ROM at 95020000 [disabled] [size=64K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Mask- 64bit+ Count=1/1 Enable+
        Capabilities: [70] Express Endpoint, MSI 01
        Capabilities: [ac] MSI-X: Enable- Mask- TabSize=2
        Capabilities: [cc] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel <?>
        Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
        Kernel driver in use: r8169
        Kernel modules: r8169
[/Code]
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-25 21:18:06 | 显示全部楼层
lspci不要 -v,无聊的信息太多了。
你用的genkernel编译的内核?如果不是,不需要 initrd那一行的。
请不要用genkernel来编译。

从你的fdisk -l 信息和 menu.lst文件来看,分区对不上啊。
1. 你没有swap交换分区,可menu.lst文件中有。
2. 你的menu.lst文件中有一个专门的/boot分区,看了一下,似乎有3G那么大。
3. 能告诉我你的根分区,到底是那个吗,为什么要设置/boot分区?
4. grub的配置应该是menu.lst, 有的发行版把真实的启动信息放在了grub.conf中,然后做个menu.lst的链接,链接到grub.conf。但grub启动的时候还是会去找menu.lst。

再说说内核编译,假定你的根分区是/dev/sda8,/boot分区是/dev/sda3:
0. #mount /dev/sda3 /boot (假定事先没有挂载)
1. #make && make modules_install
2. #cp arch/x86_64/boot/bzImage /boot/kernel-2.6.30-r5

menu.lst应该这么写:
  1. title funtoo Linux
  2. root (hd0,2)
  3. kernel /boot/kernel-2.6.30-r5 root=/dev/sda8 ro quiet
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-8-25 21:25:29 | 显示全部楼层
@zhou3345

/dev/sda3 /boot ext3 noatime 1 2
/dev/sda8 / reiserfs noatime,notail 0 1
/dev/sda7 none swap sw 0 0

LINUX 就用这3个分区, sda3是 /BOOT , 以前分的,所以有3G, sda7是SWAP交换分区, sda8 是 根分区 /

我是手动编译的, initrd-2.6.30-r5.img 是我使用 mkinitrd 生成的。 然后 cp System.map /boot/System.map
回复 支持 反对

使用道具 举报

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

本版积分规则

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