Kernel Problem

Welches Modul/Treiber für welche Hardware, Kernel compilieren...
Antworten
maniatronic
Beiträge: 39
Registriert: 04.04.2002 13:51:49

Kernel Problem

Beitrag von maniatronic » 07.06.2002 19:28:33

HI !
Habe mir nen Wasserkuehler fuer meinen
Router teils gebastelt teils gekauft.
Nun wollte ich ein sript schreiben
das bei einer bestimmten temp den Rechner ausschaltet.
Das ganze soll auf lmsensors basieren.
Dies wiederum braucht die I2O
O.K ... ich dachte mir ich bastel schnell nen neuen Kernel.
Das ist soweit auch kein Problem:
Nur nach dem Eintrag in etc/lilo.conf und dem ausfuehren von lilo
bekomme ich folgende Meldung:
Warning: Int0x13 function 8 and function 0x48
return diffrent head/sector geometries for BIOS drive 0x81
Fatal: Kernel /boot/vmlinuz_2.4.17 is too big
Damit kann ich leider nichts anfangen.
Der Kernel ist ca 2,5 MB gross und mein
boot partition 50 MB.
Ich habs auch mit anderen Kernel, z.b. 2.4.16 und 18 probiert.
Immer die gleiche Meldung ...
Im moment nutze ich den 2.2.19er
Wodurch kommt diese Meldung zusatande ..
Kann mir da jemand weiterhelfen ?

Gruss -maniatronic-

Benutzeravatar
guddl
Beiträge: 159
Registriert: 29.04.2002 13:20:18
Wohnort: Hessen / Wetterau

Beitrag von guddl » 07.06.2002 20:13:36

hi.

kompiliere den kernel mit "make bzimage" dann sollte es gehen.
* LILO Errors: Kernel [name] is too big!

You have compiled a kernel bigger than 512KB with make zImage
instead of make bzImage. Note that 'bzImage' won't make the kernel
smaller, but will instead enable it to be loaded into a different memory
address space.
zu finden unter: http://www.mandrakeuser.org/docs/install/kupgrade4.html

gruss guddl

maniatronic
Beiträge: 39
Registriert: 04.04.2002 13:51:49

Beitrag von maniatronic » 07.06.2002 20:24:31

HI !
Danke fuer den tip , aber ich habe ihn mit

Code: Alles auswählen

make dep clean bzImage modules modules_install
compiliert.
Deswegen kann ich es selbst nicht verstehen.

Gruss -maniatronic-

Benutzeravatar
guddl
Beiträge: 159
Registriert: 29.04.2002 13:20:18
Wohnort: Hessen / Wetterau

Beitrag von guddl » 07.06.2002 21:04:22

und was ist wenn du mal "make bzlilo" probierst?

guddl

Benutzeravatar
minuseins
Beiträge: 123
Registriert: 21.05.2002 17:42:51
Lizenz eigener Beiträge: MIT Lizenz

Beitrag von minuseins » 08.06.2002 17:34:15

wie erhaelt man eigentlich einen kernel der 2.5 MB gross ist? Kernel-Hacking und Debug-Optionen eingeschaltet? Wenn du deinen Rechner als Router verwenden willst gilt: Alles was nicht benötigt wird sollte deaktiviert werden... (der Kernel auf meinem Router ist trotz einiger zusaetzlichen patches (ipsec, XFS) stolze 0.6MB compressed gross.)

es gibt fuer dich nur zwei optionen:

a) kernel an funktionen und treibern abspecken
b) viele teile in modulen auslagern...

so long

[-1]

p.s. ich will nicht ausschliessen, das es zusaetzliche moeglichkeiten gibt, aber die sind mir nicht bekannt...
He who work root can fell trees and knowledge is no substitute for experience.

k-pl
Beiträge: 587
Registriert: 11.01.2002 11:26:44
Wohnort: München
Kontaktdaten:

Beitrag von k-pl » 09.06.2002 19:23:35

Wie schon in http://www.debianforum.de/forum/viewtop ... ace891d337
gesagt, würde ich das mit lmsensors lassen.

maniatronic
Beiträge: 39
Registriert: 04.04.2002 13:51:49

Beitrag von maniatronic » 09.06.2002 20:44:42

@k-pl
Deshalb mach ich nen neuen Kernel.
Ich moechte lmsensors verwenden und brauche aber ne zusaetzliche Option
die in meinem jetzigem Kernel nicht verfuegbar ist.

@minuseins

Wie hast du deinen Kernel bitte auch ne groesse von 0,6 MB bekommen ?
Ich habe meinen jetzt auch abgespeckt mit folgenden Optionen:

Code: Alles auswählen

[*] Enable loadable module support                            
[*]   Set version information on all module symbols           
[*]   Kernel module loader  
<M> Loopback device support
(Athlon/Duron/K7) Processor family                               ? ?
  ? ?      < > Toshiba Laptop support                                       ? ?
  ? ?      < > Dell laptop support                                          ? ?
  ? ?      < > /dev/cpu/microcode - Intel IA32 CPU microcode support        ? ?
  ? ?      < > /dev/cpu/*/msr - Model-specific register support             ? ?
  ? ?      < > /dev/cpu/*/cpuid - CPU information support                   ? ?
  ? ?      (off) High Memory Support                                        ? ?
  ? ?      [ ] Math emulation                                               ? ?
  ? ?      [ ] MTRR (Memory Type Range Register) support                    ? ?
  ? ?      [*] Symmetric multi-processing support                           ? ?
  ? ?      [ ] Multiquad NUMA system
-----------  ? ?               [*] Networking support                                  ? ?
 
 <M> Loopback device support

------------

<M> Packet socket                                               ? ?
  ? ?       [ ]   Packet socket: mmapped IO                                 ? ?
  ? ?       < > Netlink device emulation                                    ? ?
  ? ?       [ ] Network packet filtering (replaces ipchains)                ? ?
  ? ?       [ ] Socket Filtering                                            ? ?
  ? ?       <M> Unix domain sockets                                         ? ?
  ? ?       [*] TCP/IP networking                                           ? ?
  ? ?       [ ]   IP: multicasting                                          ? ?
  ? ?       [*]   IP: advanced router                                       ? ?
  ? ?       [*]     IP: policy routing                                      ? ?
  ? ?       [*]       IP: fast network address translation                  ? ?
  ? ?       [ ]     IP: equal cost multipath                                ? ?
  ? ?       [ ]     IP: use TOS value as routing key                        ? ?
  ? ?       [ ]     IP: verbose route monitoring                            ? ?
  ? ?       [ ]     IP: large routing tables                                ? ?
  ? ?       [ ]   IP: kernel level autoconfiguration                        ? ?
  ? ?       < >   IP: tunneling                                             ? ?
  ? ?       < >   IP: GRE tunnels over IP                                   ? ?
  ? ?       [ ]   IP: TCP Explicit Congestion Notification support          ? ?
  ? ?       [ ]   IP: TCP syncookie support (disabled per default)          ? ?

---------------------------------------------------------------

 <*> ATA/IDE/MFM/RLL support                             ? ?
  ? ?               IDE, ATA and ATAPI Block devices  --->

----------------------------------------------------------------

 <*> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support              ? ?
  ? ?  --- Please see Documentation/ide.txt for help/info on IDE drives     ? ?
  ? ?  [ ]   Use old disk-only driver on primary interface                  ? ?
  ? ?  <M>   Include IDE/ATA-2 DISK support                                 ? ?
  ? ?  [ ]     Use multi-mode by default                                    ? ?
  ? ?  <M>   Include IDE/ATAPI CDROM support                                ? ?
  ? ?  < >   Include IDE/ATAPI TAPE support                                 ? ?
  ? ?  < >   Include IDE/ATAPI FLOPPY support                               ? ?
  ? ?  --- IDE chipset support/bugfixes                                     ? ?
  ? ?  [ ]   CMD640 chipset bugfix/support                                  ? ?
  ? ?  [ ]   RZ1000 chipset bugfix/support                                  ? ?
  ? ?  [*]   Generic PCI IDE chipset support                                ? ?
  ? ?  [*]     Sharing PCI IDE interrupts support                           ? ?
  ? ?  [*]     Generic PCI bus-master DMA support                           ? ?
  ? ?  [ ]     Boot off-board chipsets first support                        ? ?
  ? ?  [*]       Use PCI DMA by default when available                      ? ?
  ? ?  [ ]     AEC62XX chipset support                                      ? ?
  ? ?  [ ]     ALI M15x3 chipset support                                    ? ?
  ? ?  [ ]     AMD Viper support                                            ? ?
  ? ?  [ ]     CMD64X chipset support
xxxxxxxxxxxxxxx
xxxxxxxxxxxx
xxxxxxxxxxx
 [*]     VIA82CXXX chipset support
xxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxx

---------------------------------------------------------------------------

 [*] Network device support                                 ? ?
  ? ?            ARCnet devices  --->                                       ? ?
  ? ?            <M> Dummy net driver support                               ? ?
  ? ?            < > Bonding driver support                                 ? ?
  ? ?            < > EQL (serial line load balancing) support               ? ?
  ? ?            < > Universal TUN/TAP device driver support                ? ?
  ? ?            Ethernet (10 or 100Mbit)  --->                             ? ?
  ? ?            Ethernet (1000 Mbit)  --->                                 ? ?
  ? ?            [ ] FDDI driver support                                    ? ?
  ? ?            <M> PPP (point-to-point protocol) support                  ? ?
  ? ?            < >   PPP support for async serial ports                   ? ?
  ? ?            < >   PPP support for sync tty ports                       ? ?
  ? ?            < >   PPP Deflate compression                              ? ?
  ? ?            < >   PPP BSD-Compress compression                         ? ?
  ? ?            < >   PPP over ATM (EXPERIMENTAL)                          ? ?
  ? ?            < > SLIP (serial line) support                             ? ?
  ? ?            Wireless LAN (non-hamradio)  --->                          ? ?
  ? ?            Token Ring devices  --->                                   ? ?
  ? ?            [ ] Fibre Channel driver support                           ? ?
  ? ?            Wan interfaces  --->

---------------------------------------------------------------------------------------

? [*] Ethernet (10 or 100Mbit)                                          ? ?
  ? ? < >   Sun Happy Meal 10/100baseT support                              ? ?
  ? ? < >   Sun GEM support                                                 ? ?
  ? ? [ ]   3COM cards                                                      ? ?
  ? ? < >   AMD LANCE and PCnet (AT1500 and NE2100) support                 ? ?
  ? ? [ ]   Western Digital/SMC cards                                       ? ?
  ? ? [ ]   Racal-Interlan (Micom) NI cards                                 ? ?
  ? ? < >   DEPCA, DE10x, DE200, DE201, DE202, DE422 support                ? ?
  ? ? < >   HP 10/100VG PCLAN (ISA, EISA, PCI) support                      ? ?
  ? ? [ ]   Other ISA cards                                                 ? ?
  ? ? [*]   EISA, VLB, PCI and on board controllers                         ? ?
  ? ? < >     AMD PCnet32 PCI support                                       ? ?
  ? ? < >     Apricot Xen-II on board Ethernet                              ? ?
  ? ? < >     CS89x0 support                                                ? ?
  ? ? < >     DECchip Tulip (dc21x4x) PCI support                           ? ?
  ? ? < >     Generic DECchip & DIGITAL EtherWORKS PCI/EISA                 ? ?
  ? ? < >     Digi Intl. RightSwitch SE-X support                           ? ?
  ? ? < >     Davicom DM910x/DM980x support                                 ? ?
  ? ? < >     EtherExpressPro/100 support                                   ? ?
  ? ? < >     Myson MTD-8xx PCI Ethernet support
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxx
<M>     RealTek RTL-8139 PCI Fast Ethernet Adapter support
xxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxx

--------------------------------------------------------------------------------------------------

?[*] Virtual terminal                                                   ? ?
  ? ?[*]   Support for console on virtual terminal                          ? ?
  ? ?<M> Standard/generic (8250/16550 and compatible UARTs) serial support  ? ?
  ? ?[ ] Extended dumb serial driver options                                ? ?
  ? ?[ ] Non-standard serial port support                                   ? ?
  ? ?[*] Unix98 PTY support                                                 ? ?
  ? ?(256) Maximum number of Unix98 PTYs in use (0-2048)                    ? ?
  ? ?I2C support  --->                                                      ? ?
  ? ?Mice  --->                                                             ? ?
  ? ?Joysticks  --->                                                        ? ?
  ? ?< > QIC-02 tape support                                                ? ?
  ? ?Watchdog Cards  --->                                                   ? ?
  ? ?< > Intel i8x0 Random Number Generator support                         ? ?
  ? ?< > /dev/nvram support                                                 ? ?
  ? ?< > Enhanced Real Time Clock Support                                   ? ?
  ? ?< > Double Talk PC internal speech card support                        ? ?
  ? ?< > Siemens R3964 line discipline                                      ? ?
  ? ?< > Applicom intelligent fieldbus card support                         ? ?
  ? ?Ftape, the floppy tape device driver  --->                             ? ?
  ? ?< > /dev/agpgart (AGP Support)

--------------------------------------------------------------------------------------

 <M> I2C support                                                 ? ?
  ? ?       < > I2C bit-banging interfaces                                  ? ?
  ? ?       < > I2C PCF 8584 interfaces                                     ? ?
  ? ?       < > I2C device interface                                        ? ?
  ? ?       <M> I2C /proc interface (required for hardware sensors)         ? ?
  ? ?

-------------------------------------------------------------------------------------------

 [ ] Quota support                                                   ? ?
  ? ?   < > Kernel automounter support                                      ? ?
  ? ?   <M> Kernel automounter version 4 support (also supports v3)         ? ?
  ? ?   < > Reiserfs support                                                ? ?
  ? ?   < > Ext3 journalling file system support (EXPERIMENTAL)             ? ?
  ? ?   < > DOS FAT fs support                                              ? ?
  ? ?   < > Compressed ROM file system support                              ? ?
  ? ?   [*] Virtual memory file system support (former shm fs)              ? ?
  ? ?   < > Simple RAM-based file system support                            ? ?
  ? ?   < > ISO 9660 CDROM file system support                              ? ?
  ? ?   <*> Minix fs support                                                ? ?
  ? ?   < > FreeVxFS file system support (VERITAS VxFS(TM) compatible)      ? ?
  ? ?   < > NTFS file system support (read only)                            ? ?
  ? ?   < > OS/2 HPFS file system support                                   ? ?
  ? ?   [*] /proc file system support                                       ? ?
  ? ?   [*] /dev/pts file system for Unix98 PTYs                            ? ?
  ? ?   < > ROM file system support                                         ? ?
  ? ?   <*> Second extended fs support                                      ? ?
  ? ?   < > System V/Xenix/V7/Coherent file system support                  ? ?
  ? ?   < > UDF file system support (read only)                             ? ?
Network File Systems  --->                                          ? ?
  ? ?   Partition Types  --->

-----------------------------------------------------------------------------------------------------

  <M> Coda file system support (advanced network fs)                ? ?
  ? ?     <M> NFS file system support                                       ? ?
  ? ?     [ ]   Provide NFSv3 client support                                ? ?
  ? ?     <M> NFS server support                                            ? ?
  ? ?     [ ]   Provide NFSv3 server support                                ? ?
  ? ?     < > SMB file system support (to mount Windows shares etc.)        ? ?
  ? ?     < > NCP file system support (to mount NetWare volumes)            ? ?

-------------------------------------------------------------------------------------------------------

  [*] VGA text console                                 ? ?
  ? ?                  [ ] Video mode selection support

--------------------------------------------------------------------------------------



Kein sound
Kein USB
Kein Kernel-debugging

nichts ...
Der Kernel ist immer noch 1772200 bytes gross.
was 1,69 MB gleich kommt
Das kann doch nicht sein ..
Wie weare es erst wenn ich noch AGP unterstuetzung braeuchte , mein Filesystem auf RFS
umstellen wuerde , ne soundkarte rein , etc.

1.Wie willst du bitte den Kernel noch kleiner bekommen haben ???
Bzw. was kann ich noch entfernen um meinen kleiner zu machen ...

2.Wozu ist dann eigentlich ne boot-partion notwendig ?
Wozu brauch ich diese 50 MB auf /dev/hda1 die als /boot gemountet sind ?

Gruss -maniatronic-

k-pl
Beiträge: 587
Registriert: 11.01.2002 11:26:44
Wohnort: München
Kontaktdaten:

Beitrag von k-pl » 09.06.2002 21:11:41

Da stimmt doch was nicht. Der Kernel auf meiner Workstation ist ja kleiner als 900KB

Code: Alles auswählen

-rw-r--r--    1 root     root       866617 May 14 19:28 vmlinuz-2.4.18

Benutzeravatar
felix-the-cat
Beiträge: 332
Registriert: 06.01.2002 17:52:43
Wohnort: Germany

Re: Kernel Problem

Beitrag von felix-the-cat » 10.06.2002 09:06:57

maniatronic hat geschrieben: Fatal: Kernel /boot/vmlinuz_2.4.17 is too big

Der Kernel ist ca 2,5 MB gross
das wäre wirklich mal intressant zu sehen, was du da alles so eingebaut hast. vermutlich gehen davon auch 90% oder mehr als modul durch. ich habe mich auch mal vor ner ewigkeit an lmsensors rangemacht und habe damit keine probleme gehabt es zu installieren.
aber wenn du wie die anderen schon sagten deinen kernel nicht sofort kleiner machst und alles was nicht reingehört rausschmeist oder zumindest nicht als modul machst dann..... ;)

lass dich nicht einschüchtern. mach einfach nen "sauberen kernel" mit allem was wirklich notwendig ist auch für lmsensors. installiere die aktuelle version von i2c die zum lmsensorspacket passt und ließ die doku. das kann was werden! bei mir gehts ja auch. habe allerdings die sourcen installiert! 8)

Benutzeravatar
minuseins
Beiträge: 123
Registriert: 21.05.2002 17:42:51
Lizenz eigener Beiträge: MIT Lizenz

Beitrag von minuseins » 10.06.2002 16:12:00

hmmm... tu mir mal den gefallen und poste nur die ".config" im Quellcode-verzeichnis... die Menü-variante die du gepostet hast ist mir zu aufwändig zum lesen... ;) abgesehen davon fehlt auch die haelfte...

zwecks der 0.6MB... zum einen habe ich keine modul-unterstuetzung drinnen, sondern alles in den kernel kompiliert, zum anderen sind fuer den standard-privat-router gebrauch solche dinge wie: advanced router eigentlich nicht notwendig und vergroessern nur unnoetig den kernelumfang, drittens hab ich einiges weggelassen, die ich fuer den router definitiv nicht brauche... => 0,6 MB

achja... UNIX-SOCKETS sollte man NIE als modul-kompilieren und auch das weglassen dieser funktion sorgt fuer nette fehlermeldungen, da diese sockets von programmen fuer die interne kommunikation verwendet werden!

solange "hda1" wirklich nur fuer "/boot" zustaendig ist, sind 50MB mehr als aussreichend... i.d.R. vergebe ich fuer /boot 16MB und bin selbst mit mehreren kernel-versionen aussreichend bedient...

[-1]
He who work root can fell trees and knowledge is no substitute for experience.

maniatronic
Beiträge: 39
Registriert: 04.04.2002 13:51:49

Beitrag von maniatronic » 10.06.2002 17:09:49

Hi !
Erstmal Danke an alle die mir hier helfen :D

oh Man .. hatte noch nie soviele Probleme mit nem Kernel

@minuseins

Ich werde nacher nochmal probieren ihn mit frischen
sourcen zu compilieren.
Koenntest du mir sagen welche Optionen unbedingt fuer das
routing mit iptables zwingend sind ?

Gruss -maniatronic-

Markus Schwaab
Beiträge: 84
Registriert: 07.03.2002 11:33:02
Wohnort: Deutschland

Beitrag von Markus Schwaab » 13.06.2002 09:10:48

Hi !
Hab gestern zwar zum ersten mal einen lauffähigen kernel kompiliert.
(4 mal :wink: )
Aber:
kann es theoretisch sein, das du als kernel die datei /usr/src/<kernel>/vmlinux statt dem bzImage in <kernel>/arch/<architektur>/boot/ genommen hast ????

Die Größen die du angiebst, sind nämlich ziemlich ähnlich wie die, die
ich gestern beobachtet hab. vmlinux hatte immer zwischen 2 und 3 MB;
das bzImage nur zwischen 750 und 860 KB.

Lilo startet Linux übrigens nur bis zu einer bestimmten Kernelgröße.

Hoffe ich konnte helfen

cu
Markus

Antworten