当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 用新编译的内核UBUNTU不能启动!求助!
帖子发表于 : 2009-06-06 16:41 

注册: 2009-05-31 14:17
帖子: 13
送出感谢: 0 次
接收感谢: 0 次
大家帮帮忙,告诉我这应该怎么办呀!我新手,刚开始学这个系统,看大家编译内核我也跟着学了下,没想到碰到了这个问题,我在这上面都折磨了好几天了,我甚至把device drivers中所有的东西都编译进内核了,还是不行!刚开始编译的时候碰到次WARNING: vmlinux.o(.cpuinit.data+0x0): Section mismatch in reference from the variable initial_code to the function .init.text:i386_start_kernel()The variable __cpuinitdata initial_code references
a function __init i386_start_kernel().错误,在head_32.S中section .cpuinit.data中添加了__REFDATA后就没提示过这个错误,这个应该不影响吧。
我是从www.kernel.org 上下载的linux-2.6.30-rc8完整包然后打上了git1的补丁,在UBUNTU 9.04,linux-2.6.28-12-generic中编译的,编译过程没错误!就是一些warning。刚开始启动的时候提示modproper错误,我以为是它的原因,等解决了这个错误后。仍然是这样,在启动的时候等出现waiting for root system....时在加载了USB和鼠标和触摸板驱动后就停在那不动了 :em06 等一段时间的话就提示/dev/sda8不存在。如果之前按CTRL+ALT+DEL 会提示“sd:0:0:0:0 [syn] synchronizing SCSI cache"。
刚开始我以为驱动没选对, 看了下启动日志,将硬盘驱动改为下面这种模式
ATA/ATAPI/MFM/RLL support......>下选择Support for SATA (deprecated; conflicts with libata SATA driver) 和generic ATA/ATAPI disk support以及ATA disk support。
SCSI device support........>选择SCSI disk support ,CDROM support ,generic support
SCSI Transports..........>使用SAS Domain Transport Attributes 和它下面的ATA support for libsas (requires libata) (SCSI_SAS_ATA)
SCSI low-level drivers (SCSI_LOWLEVEL)........>选择Generic NCR5380/53c400 SCSI MMIO support (SCSI_GENERIC_NCR5380_MMIO)
Serial ATA (prod) and Parallel ATA (experimental) drivers (ATA)...........>选择Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support (ATA_PIIX)
Device Drivers跟File systems中的选项全部编到内核中了。
机器是IBM T40。
这是正常启动时syslog中有关硬盘的项目:
kernel: Inspecting /boot/System.map-2.6.28-12-generic
kernel: Inspecting /usr/src/linux/System.eneric ATA/ATAPI disk supportmap
kernel: Cannot find map file.
Linux version 2.6.28-12-generic (buildd@rothera) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #43-Ubuntu SMP Fri May 1 19:27:06 UTC 2009 (Ubuntu 2.6.28-12.43-generic)
kernel: [ 0.605969] pci 0000:00:1f.1: reg 10 io port: [0x00-0x07]
kernel: [ 0.605977] pci 0000:00:1f.1: reg 14 io port: [0x00-0x03]
kernel: [ 0.605984] pci 0000:00:1f.1: reg 18 io port: [0x00-0x07]
kernel: [ 0.605991] pci 0000:00:1f.1: reg 1c io port: [0x00-0x03]
kernel: [ 0.605999] pci 0000:00:1f.1: reg 20 io port: [0x1860-0x186f]
kernel: [ 0.606006] pci 0000:00:1f.1: reg 24 32bit mmio: [0x000000-0x0003ff]
kernel: [ 0.613305] SCSI subsystem initialized
kernel: [ 0.613305] libata version 3.00 loaded.
kernel: [ 1.493902] VFS: Disk quotas dquot_6.5.1
kernel: [ 1.493989] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
kernel: [ 1.494925] fuse init (API version 7.10)
kernel: [ 1.495046] msgmni has been set to 992(这不知道是个什么东东)
kernel: [ 1.495293] io scheduler noop registered
kernel: [ 1.495295] io scheduler anticipatory registered
kernel: [ 1.495298] io scheduler deadline registered
kernel: [ 1.495330] io scheduler cfq registered (default)
kernel: [ 1.904830] Driver 'sd' needs updating - please use bus_type methods
kernel: [ 1.904841] Driver 'sr' needs updating - please use bus_type methods
kernel: [ 1.904931] ata_piix 0000:00:1f.1: version 2.12
kernel: [ 1.904938] ata_piix 0000:00:1f.1: enabling device (0005 -> 0007)
kernel: [ 1.905415] ata_piix 0000:00:1f.1: PCI INT A -> Link[LNKC] -> GSI 11 (level, low) -> IRQ 11
kernel: [ 1.905469] ata_piix 0000:00:1f.1: setting latency timer to 64
kernel: [ 1.905582] scsi0 : ata_piix
kernel: [ 1.905737] scsi1 : ata_piix
kernel: [ 1.906997] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x1860 irq 14
kernel: [ 1.907001] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x1868 irq 15
kernel: [ 2.068602] ata1.00: ATA-6: WLS, MG2OA55A, max UDMA/100
kernel: [ 2.068605] ata1.00: 78140160 sectors, multi 16: LBA
kernel: [ 2.084544] ata1.00: configured for UDMA/100
kernel: [ 2.248322] ata2.00: ATAPI: HL-DT-STDVD-ROM GDR8085N, 0X02, max UDMA/33
kernel: [ 2.264283] ata2.00: configured for UDMA/33
kernel: [ 2.265351] scsi 0:0:0:0: Direct-Access ATA WLS MG2O PQ: 0 ANSI: 5
kernel: [ 2.265473] sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)
kernel: [ 2.265494] sd 0:0:0:0: [sda] Write Protect is off
kernel: [ 2.265497] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
kernel: [ 2.265527] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
kernel: [ 2.265604] sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)
kernel: [ 2.265621] sd 0:0:0:0: [sda] Write Protect is off
kernel: [ 2.265623] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
kernel: [ 2.265651] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
kernel: [ 2.265656] sda: sda1 sda2 sda3 < sda5 sda6 sda7 sda8 sda9 sda10 >
kernel: [ 2.375152] sd 0:0:0:0: [sda] Attached SCSI disk
Jun 6 03:59:11 baby-laptop kernel: [ 2.375210] sd 0:0:0:0: Attached scsi generic sg0 type 0
Jun 6 03:59:11 baby-laptop kernel: [ 2.379543] scsi 1:0:0:0: CD-ROM HL-DT-ST DVD-ROM GDR8085N 0X02 PQ: 0 ANSI: 5
kernel: [ 2.390518] sr0: scsi3-mmc drive: 24x/24x cd/rw xa/form2 cdda tray
kernel: [ 2.390522] Uniform CD-ROM driver Revision: 3.20
kernel: [ 2.390635] sr 1:0:0:0: Attached scsi CD-ROM sr0
kernel: [ 2.390679] sr 1:0:0:0: Attached scsi generic sg1 type 5
kernel: [ 2.375152] sd 0:0:0:0: [sda] Attached SCSI disk
kernel: [ 2.375210] sd 0:0:0:0: Attached scsi generic sg0 type 0
kernel: [ 2.379543] scsi 1:0:0:0: CD-ROM HL-DT-ST DVD-ROM GDR8085N 0X02 PQ: 0 ANSI: 5
kernel: [ 2.390518] sr0: scsi3-mmc drive: 24x/24x cd/rw xa/form2 cdda tray
kernel: [ 2.390522] Uniform CD-ROM driver Revision: 3.20
kernel: [ 2.390635] sr 1:0:0:0: Attached scsi CD-ROM sr0
kernel: [ 2.390679] sr 1:0:0:0: Attached scsi generic sg1 type 5
kernel: [ 4.723187] PM: Starting manual resume from disk
kernel: [ 4.723191] PM: Resume from partition 8:10
kernel: [ 4.723193] PM: Checking hibernation image.
kernel: [ 4.723392] PM: Resume from disk failed.
kernel: [ 4.726149] EXT4-fs: INFO: recovery required on readonly filesystem.
kernel: [ 4.726154] EXT4-fs: write access will be enabled during recovery.
kernel: [ 4.750590] EXT4-fs: barriers enabled
kernel: [ 6.305863] kjournald2 starting. Commit interval 5 seconds
kernel: [ 6.305886] EXT4-fs: delayed allocation enabled
kernel: [ 6.305888] EXT4-fs: file extents enabled
kernel: [ 6.305982] EXT4-fs: mballoc enabled
kernel: [ 6.305985] EXT4-fs: recovery complete.
kernel: [ 17.439663] EXT4 FS on sda8, internal journal on sda8:8
kernel: [ 17.502955] lp0: using parport0 (interrupt-driven).
kernel: [ 18.012626] psmouse serio2: ID: 10 00 64<6>EXT4-fs: barriers enabled
kernel: [ 18.475208] kjournald2 starting. Commit interval 5 seconds
kernel: [ 18.475506] EXT4 FS on sda9, internal journal on sda9:8
kernel: [ 18.475509] EXT4-fs: delayed allocation enabled
kernel: [ 18.475511] EXT4-fs: file extents enabled
kernel: [ 18.475615] EXT4-fs: mballoc enabled
kernel: [ 18.475620] EXT4-fs: mounted filesystem with ordered data mode.
kernel: [ 6.306818] EXT4-fs: mounted filesystem with ordered data mode.
kernel: [ 13.283145] udev: starting version 141
lspci的项目:
00:00.0 Host bridge: Intel Corporation 82855PM Processor to I/O Controller (rev 03)
00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 81)
00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]
02:00.0 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
02:00.1 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
02:01.0 Ethernet controller: Intel Corporation 82540EP Gigabit Ethernet Controller (Mobile) (rev 03)
02:02.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
fstab的信息:
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda8 during installation
UUID=70114073-9c7d-478e-9606-1cb723972b18 / ext4 relatime,errors=remount-ro 0 1
# /home was on /dev/sda9 during installation
UUID=95893141-a216-4428-b117-0be412567bbf /home ext4 relatime 0 2
# swap was on /dev/sda10 during installation
UUID=796abec2-b9ff-443c-a26e-8266fd8b502e none swap sw 0 0
menu.lst:
title Ubuntu 9.04, kernel 2.6.30-rc8-git1.baby
root (hd0,7)
kernel /boot/vmlinuz-2.6.30-rc8-git1.baby root=/dev/sda8
initrd /boot/initrd.img-2.6.30-rc8-git1.baby
quiet

title Ubuntu 9.04, kernel 2.6.30-rc8-git1.baby (recovery mode)
uuid 70114073-9c7d-478e-9606-1cb723972b18
kernel /boot/vmlinuz-2.6.30-rc8-git1.baby root=UUID=70114073-9c7d-478e-9606-1cb723972b18 ro single
initrd /boot/initrd.img-2.6.30-rc8-git1.baby

title Ubuntu 9.04, kernel 2.6.28-12-generic
uuid 70114073-9c7d-478e-9606-1cb723972b18
kernel /boot/vmlinuz-2.6.28-12-generic root=UUID=70114073-9c7d-478e-9606-1cb723972b18 ro quiet splash
initrd /boot/initrd.img-2.6.28-12-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-12-generic (recovery mode)
uuid 70114073-9c7d-478e-9606-1cb723972b18
kernel /boot/vmlinuz-2.6.28-12-generic root=UUID=70114073-9c7d-478e-9606-1cb723972b18 ro single
initrd /boot/initrd.img-2.6.28-12-generic

title Ubuntu 9.04, memtest86+
uuid 70114073-9c7d-478e-9606-1cb723972b18
kernel /boot/memtest86+.bin
quiet


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 用新编译的内核UBUNTU不能启动!求助!
帖子发表于 : 2009-12-01 8:33 

注册: 2009-12-01 8:30
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
http://wiki.archlinux.org/index.php/Ude ... D%E6%96%87)
如果你是用的其它的固定设备(例如SATA的硬盘,您可以从/etc/fstab中查看)被识别为/dev/sdX,您必须从sd[a-z]中去掉你的那个sdX。例如,如果您的SATA硬盘被是识别为/dev/sda,您就需要把所有的“sd[a-z]”替换成“sd[b-z]”。在规则文件的文件名前加上数字(如:010.udev.rules)是个很好的主意,这样udev在读取标准规则前,将会读取这个规则文件。 这些规则设置后不需要修改/etc/fstab文件。请查看mount命令的参数来修改权限等特性(您可以从论坛搜索查看mount命令的参数,然后根据您的需要修改它们)。

:em06 如果没有用处请自力更生


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译