yuanlii 发表于 2003-5-22 08:51:32

内核编译后不能启用??

:?: 提示:kernel panic:No init found.Try passing init= option to kernel
这是什么问题呀

Dragonfly 发表于 2003-5-22 09:18:05

post u /etc/fstab and /etc/grub.conf or /etc/lilo.conf here. and u kernel version. u .config file.

Dragonfly 发表于 2003-5-22 09:31:46

please check
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=24267&highlight=init
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=16839&highlight=init
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=16326&highlight=init
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=15426&highlight=init
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=7653&highlight=init
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=6782&highlight=init
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=7073&highlight=init
to see if u can solve the error.

Dragonfly 发表于 2003-5-22 09:33:31

possible reason:
1) do not modify the grub.conf, lilo.conf correctly;
2) do not include correct fs option. for example. u use reiserfs for u root fs, while u do not choose them
3) neither link to kernel nor use initrd.
4) ...

yuanlii 发表于 2003-5-22 22:26:53

my /etc/fstab:
LABEL=/               /                     ext2    defaults      1 1
none                  /dev/pts                devptsgid=5,mode=6200 0
none                  /proc                   proc    defaults      0 0
none                  /dev/shm                tmpfs   defaults      0 0
/dev/hde8               swap                  swap    defaults      0 0
/dev/hde5               /mnt/d                  vfat    umask=022,iocharset=cp936 0 0
/dev/hde6               /mnt/e                  vfat    umask=022,iocharset=cp936 0 0
/dev/hde9               /mnt/f                  vfat    umask=022,iocharset=cp936 0 0
/dev/hde10            /mnt/g                  vfat    umask=022,iocharset=cp936 0 0
/dev/hde11            /mnt/h                  vfat    umask=002,iocharset=cp936 0 0
/dev/hdf5               /mnt/j                  vfat    umask=022,iocharset=cp936 0 0
/dev/cdrom            /mnt/cdrom            iso9660 noauto,owner,kudzu,ro 0 0

my /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:You do not have a /boot partition.This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,6)
#          kernel /boot/vmlinuz-version ro root=/dev/hdc7
#          initrd /boot/initrd-version.img
#boot=/dev/hdc
default=1
timeout=10
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20)
        root (hd0,6)
        kernel /boot/vmlinuz-2.4.20 ro root=/dev/hde6
        initrd /boot/initrd-2.4.20.img
title Red Hat Linux (2.4.18-14)
        root (hd0,6)
        kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/
        initrd /boot/initrd-2.4.18-14.img
title DOS
        rootnoverify (hd0,0)
        chainloader +1

my new kernel is 2.4.20
today,i try the other way:
run 'make install' after 'make modules_install'
then have the same result
such as:
kmod:failed to exec /sbin/modprobe -s -k nls_cp437,errno=2
      failed to exec /sbin/modprobe -s -k nls_iso8859-1,errno=2
      failed to exec /sbin/modprobe -s -k nls_iso8859-1,errno=2
      failed to exec /sbin/modprobe -s -k nls_iso8859-1,errno=2
Warning:unable to open an initial console
kernel panic:No init found.Try passing init= option

Dragonfly 发表于 2003-5-22 22:46:50

for these problems, under "file system"-> 'nls" choose 437, 8859 as module,
kmod:failed to exec /sbin/modprobe -s -k nls_cp437,errno=2
failed to exec /sbin/modprobe -s -k nls_iso8859-1,errno=2
failed to exec /sbin/modprobe -s -k nls_iso8859-1,errno=2
failed to exec /sbin/modprobe -s -k nls_iso8859-1,errno=2

where are u / ? are u sure it is /dev/hde6?
have u generate the initrd-2.4.20.img?

yuanlii 发表于 2003-5-22 22:50:41

let me try to choose 437,8859 as module

i am sure /dev/hde6,because i have 4 harddisk
after i run make install,/boot has the file initrd-2.4.20.img

yuanlii 发表于 2003-5-22 23:17:56

oh,dear
i have choose 437,8859 as module
but the errno=2 already exist
and No init found already displayed
what can i do?

Dragonfly 发表于 2003-5-22 23:42:21

after u choose 437, 8859 as module and make module modules_install. that error should be able to disappear.

btw,even u have 4 hard drive, it is funny to see /dev/hde. since 4 disk is hda, hdb, hdc, and hdd. anyway i think u are right, because u can confirm that use df with old kernel booted.

yuanlii 发表于 2003-5-23 16:20:30

多谢大哥相助,今天又重新做了一次,编译了437,8859作为module,结果可以用了
虽然新内核启动时有一串failed,不能用鼠标,不能用网卡,不能用X
但是我想这些应该可以解决的:)
起码我的新内核可以用了

btw:我有四个ide接口,理论上可以连接8个ide设备,但是前两个都是DMA33,因次没有启用,
      就是说hda,hdb,hdc,hdd没有用,而是从hde开始的:)

我是第一次编译内核,还请大哥以后不吝赐教:)

jjww 发表于 2003-5-23 17:18:22

这里说到硬盘问题,我有个疑问,如果一个系统挂的硬盘超过‘z’,linux怎么处理?
通过SCSI卡,超过26个硬盘是很正常的萨。

Dragonfly 发表于 2003-5-23 21:49:02

这里说到硬盘问题,我有个疑问,如果一个系统挂的硬盘超过‘z’,linux怎么处理?
通过SCSI卡,超过26个硬盘是很正常的萨。

see this. vanilla 2.4.19 only support up to 128 disks. many patches are available to support more. i believe this will be solved in 2.6.0
http://www.suse.de/~garloff/linux/scsi-many/

Dragonfly 发表于 2003-5-23 21:51:39

多谢大哥相助,今天又重新做了一次,编译了437,8859作为module,结果可以用了
虽然新内核启动时有一串failed,不能用鼠标,不能用网卡,不能用X
但是我想这些应该可以解决的:)
起码我的新内核可以用了

btw:我有四个ide接口,理论上可以连接8个ide设备,但是前两个都是DMA33,因次没有启用,
      就是说hda,hdb,hdc,hdd没有用,而是从hde开始的:)

我是第一次编译内核,还请大哥以后不吝赐教:)

cong! u can post u startup log here and let us see what u need. for the nic, u have to boot with old kernel and pos lsmod result here, tehn i can guess what is u nic module, for x, what is u graphic chip? if u have lspci command, run it and post result here.

btw,u have 4 ide interfaces? many board i see only have 2.

yuanlii 发表于 2003-5-23 22:02:47

lspci:
00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
00:04.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
00:04.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
00:04.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
00:04.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
00:07.0 RAID bus controller: CMD Technology Inc PCI0648 (rev 01)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
for this,i have 4 ide interfaces:)
00:09.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 04)
00:09.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 01)
00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
01:00.0 VGA compatible controller: nVidia Corporation NV15 (rev a4)

lsmod:
Module                  SizeUsed by    Tainted: P
emu10k1                68744   0(autoclean)
ac97_codec             13384   0(autoclean)
sound                  74388   0(autoclean)
soundcore               6532   7(autoclean)
agpgart                43072   3(autoclean)
nvidia               167225610(autoclean)
autofs               13348   0(autoclean) (unused)
ne2k-pci                7296   1
8390                  8236   0
iptable_filter          2412   0(autoclean) (unused)
ip_tables            14936   1
nls_cp936             124988   6(autoclean)
nls_cp437               5116   6(autoclean)
vfat                   13084   6(autoclean)
fat                  38712   0(autoclean)
mousedev                5524   1
keybdev               2976   0(unused)
hid                  22244   0(unused)
input                   5888   0
usb-uhci               26188   0(unused)
usbcore                77024   1

Dragonfly 发表于 2003-5-23 23:06:51

ic. u have a ide raid controller on board.

u audio is the EMU10k1 , nic isRTL-8029(AS)
for audio, u have two choice. simple one is to choose that two creative options under sound section. or u can use alsa. alsa is recommended.
for nic, i think u can try ne2000 first to see if it works. i am not sure
ne2k-pci 7296 1
8390 8236 0 is the choice. if have problem, we can solve it later.
页: [1] 2
查看完整版本: 内核编译后不能启用??