Software - kernel panic ozvb - 17.04.2004 - 18:27 Post subject: kernel panic
Skompiloval som nove jadro, ale s prikazom make bzImage daco nepasuje:
Root device is (3,2)
Boot sector 512 bytes
Setup is 1042 kB
WARNING:kernel is too big from standalone boot from floppy
make[1]:Leaving directoty ΄/usr/src/linux-2.4.20/arch/i386/boot΄
- a konθν
po zavedeni systemu z noveho jadra dostanem hlasku :
EXT2-fs warning (device ide(3,1)): ext2_read_super: mounting ext3 filesystem as ext2
VFS: Mounted root (ext2 filesystem) read only
Freeing unused kernel memory: 292 k freed
Warnin: unable to open an initial console
Kernel panic: No init found. Try passing init = option to kernel.
- θo s tym?
popo - 17.04.2004 - 18:35 Post subject:
Taku hlasku som dostaval ked som vymenil kable na diskoch. Teda musim bootovat z IDE z ktoreho som instaloval. Neviem ci je to tvoj pripad.
ozvb - 17.04.2004 - 20:36 Post subject:
kernel som instaloval priamo z HDD, ale mam nastavene bootovanie z CD-cka
si - 17.04.2004 - 20:44 Post subject:
to vyzera ako neake zle parametre ktore odovzdava bootloader jadru... ako si to jadro instaloval ?
ozvb - 17.04.2004 - 20:50 Post subject:
co mas na mysli?
som urobil aj "make install"
ale to iste
si - 17.04.2004 - 20:52 Post subject:
no co si ja pamatam, tak make install na jadro velmi vhodne neni [teda par ludi spominalo ze s tym malo problemy, ja som nikdy nepouzival]
s najvacsou pravdepodobnostou mas bud sahnuty neaky fajl alebo config bootloaderu, skus si to obzriet a nainstalovat bootloader nanovo...
samotne jadro je (takmer) s istotou ok, len mu treba vysvetlit co ma robit...
ozvb - 17.04.2004 - 21:45 Post subject:
ako viem preinstalovat bootloader?
si - 17.04.2004 - 21:46 Post subject:
co pouzivas ako bootloader ?
ozvb - 17.04.2004 - 21:47 Post subject:
zo stareho jadra viem nabootovat bez problemov
si - 17.04.2004 - 21:58 Post subject:
ja sa ale nepytam ci vies nabootovat zo stareho jadra, ale ze aky pouzivas bootloader... lebo na zaklade toho ti (mozno) budem vediet povedat viacej k tomu, kde mas hladat chybu a vobec
ozvb - 17.04.2004 - 22:07 Post subject:
lilo
ozvb - 17.04.2004 - 22:10 Post subject:
to, ze my vypisal chibu pri kompilacii, to je OK?
si - 17.04.2004 - 22:18 Post subject:
tak chyt konfigurak lila (zvycajne /etc/lilo.conf) a obzri si ho; ako prvy pokus mozes spravit to, ze ze sa pokusis nabootovat nove jadro s rovnakymi parametrami ako stare (jedine co musis zmenit je meno image a profilu )
druha moznost je napisat si cely lilo.conf odznova, neaky zaklad moze vyzerat napriklad takto:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
#compact # faster, but won't work on all systems.
prompt
timeout = 50
# Normal VGA console
vga = 6
append = "console=ttyS0 console=tty0 panic=60 idebus=66 ide0=ata66"
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /bzImage-2.4.25
root = /dev/hda1
label = linux
read-only
image = /bzImage-2.4.24
root = /dev/hda1
label = old
read-only
image = /vmlinuz
root = /dev/hda1
label = generic
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
[to je taka z jedneho mojho servera ]
to co ti vypisal nie je chyba, iba warning moze to byt ale dane tym, ze mas nieco haluzne confnute v lile a tak za bootdevice povazuje floppu...
ozvb - 18.04.2004 - 10:28 Post subject:
Moj lilo.conf:
Prompt
timeout=50
default=linux
boot=/dev/had
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
Predtym "make install" automaticky dopisal do lilo.conf :
image=/boot/vmlinuz-2.4.20
label=linux-2.4.20
initrd=/boot/initrd-2.4.20.img
read-only
append="toto si uz nepametam root=LABEL=/"
ale teraz nevytvory ani initrd-2.4.20.img
jmi - 18.04.2004 - 12:46 Post subject:
RD je ramdisk ak sa nemylim
ten nespravi ak mu to nezaskrtnes v konfigu kernelu pred kompilaciou a nie je potrebny
figska - 18.04.2004 - 15:24 Post subject:
nejsom zadny linux guru ale skus tam k tomu novemu jadru dohodit to "initrd=/...." z toho predosleho.... Dedukujem z tohto "Kernel panic: No init found. Try passing init = option to kernel." Pise ze nenasiel init.... predpokladam ze mas v nadre zakompilovanu podporu ext2/3 alebo ako modul ale v ramdisku a ten mas v jadre... ...
magnum - 18.04.2004 - 16:07 Post subject:
takze do lila daj k novemu kernelu [append="root=/dev/hda1"] .. toto mozes vyskusat pripadne skus ked ti nabehne lilo dat ESC a zadaj "linux1 root=/dev/hda1"
najprv si vsak zmen label v novom jadre za to "linux1" vyhnes sa chybam s bodkami a cislami a napis lilo ...
este skus pozret ci mas subor init a konfiguraky initu v rc.d ...
a este dufam ze si nedaval copy&paste lebo boot=/dev/had sa mi nezda ... jaaaaaaaaj a este map=... si daj zvlast do sekcie s jadrami pre kazde jadro zvlast !!
skus a daj vediet...
magnum
ozvb - 20.04.2004 - 09:07 Post subject:
no neviem. kazdy hovoti, ze kompilacia kernelu je velmi jednoduche. zeby bola chiba umna?
od vtedy ako som tu bol naposledy, minimalne 5x som preinstaloval RedHat, skompiloval kernel, ale vzdy nejaka chiba:
- restart pc dookola - nastavenie proc.
- pri kompilacii chiba vadresacii RAM - ???
- nevie vytvorit adresar /lib/moduls/2.4.20 - musel som rucne vytvorit
a naposledy:
depmod:cannot read ELF header from /lib/modules/2.4.20/modules.dep
depmod:cannot read ELF header from /lib/modules/2.4.20/modules.generic_string
depmod:/lib/modules/2.4.20/modules.ieee1394map is not an ELF file
depmod:/lib/modules/2.4.20/modules.isapnpmap is not an ELF file
depmod:cannot read ELF header from /lib/modules/2.4.20/modules.parportmap
depmod:/lib/modules/2.4.20/modules.pcimap is not an ELF file
depmod:cannot read ELF header from /lib/modules/2.4.20/modules.pnpbiosmap
depmod:/lib/modules/2.4.20/modules.usbmap is not an ELF file
make[1]:Leaving directory /usr/src/linux/linux2.4.20/arc/i386/boot
make install
vytvoril aj subor initrd-2.4.20, aj preisal lilo ale pri satrte takisto vypise:
kernel panik: no init found
naozaj je chiba umna?
si - 20.04.2004 - 11:18 Post subject:
no ono s velkou pravdepodobnostou robis asi neaku blbost, aj ked nevylucuje sa ani vadnost cervenej karkulky, ono to je najj.bnutejsia distribucia s tych co som mal moznost stretnut...
Mi - 20.04.2004 - 12:47 Post subject:
Cele som to cital len zbezne, takze mozno tresnem blbost, ale skus si podporu pre ext3 fs zakompilovat do kernelu a nie ako modul.
mgx - 20.04.2004 - 13:15 Post subject: doplnok
initrd-2.4.20.img vobec nepotrebujes
postup:
cd /usr/src/linux
make menuconfig -> pozri sa ci mas vo FILE SYSTEMS zaskrtnute
ext3 journalling file system, musi tam byt hviezdicka. ak nie, tak dva krat strac medzerovnik
make dep
make bzImage
make modules
make modules_install
cd /usr/src/linux/arch/i386/boot
cp bzImage /boot/skfree
potom musis napisat lilo, aby sa ti upravil zavadzac
# lilo
a potom skus nabootovat.
inak asi by bolo aj dobre, aby si nahral subor .config, ktory mas v /usr/src/linux (je tam tvoja konfiguracia jadra
inak skus ma chytit na ICQ, rad ti pomozem aj on the fly.
milan
ozvb - 20.04.2004 - 15:21 Post subject:
et3 mam zakompilovane do jadra, ale pri make bzImage furd vyhodi nejaki error
magnum - 20.04.2004 - 18:40 Post subject:
to nie je error ale len warning!!! takze ziadna chyba akurat mas asi vecsi subor ako 1.4Mb... a ozaj ako vravi mgx robis aj make modules??? pozor pri "make modules_install sa ti stare prepisu!
ozvb - 20.04.2004 - 20:01 Post subject:
Takto som konfiguroval kernel:
Code maturity level -> nic
Loadable module options -> vsetko
Processor type ->
..*Pentium MMX
..*Machine check exception
..Off High memory
..*Symmetric multiprocessoring support
General setup ->
..*Network support
..*PCI supp.
..any PCI access mode
..*ISA bus support
..*PCI device name database
..*Support for hot pluggable device
..PCMCIA -> nic
..PCI hot plug support > sa neda otvorit
..*Sysctl support
..*ELF Kernel core format
..*Kernel supp. for a.out binaries
..*Kernel supp. for ELF binaries
..*Kernel supp. for MISC binaries
..*Power management support
Memory technology -> nic
Parallel supp. -> nic (lebo nepotrebujem)
Plug and Play -> vsetko
Block device -> *Normal floppy disk
Multi device (RAIDand LVM) -> nic
Network options ->
..*Packet socket
..*Network packet filtering
..*Unix domain socket
..*TCP/IP networking
..*IP: multicasting
..Netfilter config. ->
.. ..*Connection tracking
.. ..*FTP protocol supp.
.. ..*IP tables supp.
.. ..*Limit match supp.
.. ..*MAC address match supp.
.. ..*Packet type match supp
.. ..*Netfilter MARK match supp
.. ..*Multiple port match supp
.. ..*Connection state match supp
.. ..*Connection tracking match supp
.. ..*Packet filtering
.. ..*NAT of local connections
.. ..*Packet maniling
.. ..*Mark target supp.
ATA/IDE/MFM/RLL supp. ->
..*ATA/IDE/MFM/RLL supp.
..IDE,ATA ->
.. ..*Enable IDE/MEM.RLL disc/cdrom/tape/floppy supp.
.. ..*Include IDE/ATA-disc supp.
.. ..*Use multi mode by default
.. ..*Include IDE/ATAPI CDROM supp.
.. ..*CMD640 chipset bugfix/supp.
.. ..*RZ1000 chipset bugfix/supp.
.. ..*Generic PCI IDE chipset supp.
.. ..*Sharing PCI IDE interrupts supp.
.. ..*Generic PCI bus-master supp.
.. ..*Use PCI DMA by default when available
.. ..*Intel PIIXn chipset supp.
.. ..*PIIXn tuning supp.
SCSI supp. -> nic
Fusion MPT device supp. -> sa neda otvorit
I2O device supp. -> nic
Network device supp. ->
..*Network device supp.
..Ethernet 10or 100 Mbit ->
.. ..*EISA,VLB,PCI and onboard controllers
.. ..*Ethernet express pro/100 (eepro100,original Backer driver)
.. ..*Realtek RTL 8139 PCI fast eth. Adapter supp.
..Wirwless LAN ->
.. ..*Hermes chipset 802.11 supp. (Orinoco/prism2/symbol
Amateur radio -> nic
IrDA supp. -> nic
ISDN subsystem -> nic
Old CD-ROM drivers -> nic
Input core supp. -> nic
Character devices ->
..*Virtual terminal
..*Supp. for console on virtual terminal
..*Standard/generic serial supp.
..*Unix98 PTY supp.
..Mice ->
.. ..*Mouse supp. ( not serial and bus mice)
.. ..*PS/2 mouse supp
Multimedia devices -> nic
File systems ->
..*Kernel automounter supp.
..*Ext3 journaling supp.
..*JBB (ext3)debugging supp.
..*Virtual memory file system supp.
..*ISO 9660 CDROM file system supp.
..*/proc files system supp.
..*/dev/pts file system supp. for Unix98 PTYs
..*Second extended fs supp.
..Network file systems ->
.. ..*NFS file system supp.
.. ..*NFS server supp.
Console drivers ->
..*VGA text console
Sound -> nic
USB supp. -> nic
Bluetooth -> nic
Kernel hacking -> nic
Library routines -> nic
Dufam, ze je to dost prehladne.
inac make modules aj install vzdy spravim.
- nic som neoznacil ako modul, ale vsetko som skompiloval do kernelu.
mgx - 21.04.2004 - 09:56 Post subject:
ze sa ti to chcelo pisat
staci uploadnut .config subor umiestneny v /usr/src/linux.
tento subor v mc nevidis, ale urcite tam je.
ak ho chces skopirovat sprav
# cd /usr/src/linux
# cp .config moj_config
a nakopiruj mi ten subor tu, alebo mi ho posli na email spolu s tvojou konfiguraciou PC (CPU,RAM,DOSKA)
# lspci > /usr/src/linux/config_pc.txt
1. skus prepnut procesor na 586/K5/................
2. mas OK RAM? skus to testnut nejakym dos-ram-testerom
Mgx
ozvb - 21.04.2004 - 10:48 Post subject:
kde ti mam poslat?
si - 21.04.2004 - 10:52 Post subject:
2. dosovy ram-tester ? ja som take este ani nevidel, osobne pouzivam http://www.memtest.org/ -> po kompilacii to catnem na disketu z ktorej potom nabootujem...
mgx - 21.04.2004 - 12:51 Post subject: ramtest
nasiel som to na support page agemu. u
kludne to posli na info at skfree dot net
ozvb - 21.04.2004 - 13:47 Post subject:
Peikaz make install doprepise do lilo.conf toto
to mgx:dostal si moj e-mail?
fleg - 22.04.2004 - 03:48 Post subject:
uz znovu tam mas tu istu chybu boot=/dev/had namiesto hda. zeby 2x preklep?
mgx - 22.04.2004 - 08:45 Post subject: spravna verzia (so far)
Prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/bzImage (nove jadro)
root=/dev/hda1
label=linux20
read-only
ozvb - 22.04.2004 - 10:02 Post subject:
to fleg: je to len preklep
to mgx: myslel som na conf_PCI a na .config
mgx - 22.04.2004 - 11:28 Post subject: otazka
ahoj, ziadny email mi nedosiel.
kludne sa spytaj aj tu, ak budem vediet odpoviem
mozno ze by stalo aj za to, nechat pc pripojene na internet a skusit to opravit dialkovo
mgx
ozvb - 22.04.2004 - 13:21 Post subject:
Konecne OK! Konecne OK?
Thnx for all replies!!!!!!!!!!!!!!!!
Konecne my nabootuje bez problemov. Co som nespravil (okrem toho co ste my poradili) je toto:
Block devices ->
..RAM disk support
..(4096) Default RAM disk size
..initial RAM disk (initrd) support
-> ale dalsi problem:
nenajde mz wifi kartu a podporu pre wifi mam zapnute a aj prism II chipset.
Co s tym?
mgx - 22.04.2004 - 14:15 Post subject: 1 thread = 1 problem
prosim ta zaloz novy thread.
skusim tam napisat podrobne how to
1 thread= 1 problem
ak ho budes mat, zaloz tu link
mgx - 22.04.2004 - 14:36 Post subject:
tak, tu to mas
http://www.skfree.net/index.php?name=PN ... highlight=meco - 13.05.2004 - 13:53 Post subject:
RH 9.0
Problem s kompilaciou jadra
make menuconfig - ok
make dep - ok
make clean - ok
make bzImage - ok
make modules - skonci s chybou
Plna instalacia RH9, bez akychkolvek zasahov do zdrojakov.
Nejdem tu pisat cely vypis chyb, ale zacina sa to takto:
make[1]: Entering directory `/usr/src/linux-2.4.20-8/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-str
ict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -D
MODVERSIONS -include /usr/src/linux-2.4.20-8/include/linux/modversions.h -nostdinc -iwithprefix include
-DKBUILD_BASENAME=cpufreq -DEXPORT_SYMTAB -c cpufreq.c
In file included from cpufreq.c:15:
/usr/src/linux-2.4.20-8/include/linux/kernel.h:60: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:60: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:60: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:61: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:61: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:62: `panic_R_ver_str' declared as function returning a fu
nction
a konci:
cpufreq.c: At top level:
cpufreq.c:192: warning: `cpufreq_setup' defined but not used
make[1]: *** [cpufreq.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/kernel'
make: *** [_mod_kernel] Error 2
2ozvb: nemal si s kompilaciou modulov problem, resp. v com je problem?
admin - 13.05.2004 - 16:11 Post subject:
stiahni si nove jadro a nie starinu ako 2.4.20. existuje na nu okamzity exploid root.