Hallo zusammen,
ich versuche gerade einen eigenen Kernel zu bauen.
Dazu habe ich mir von kernel.org die letzte stabile Version (2.6.32.3) heruntergeladen.
Zuerst führe ich make localyesconfig aus. Dadurch wird die aktuelle Config geclont und mittels lsmod automatisch alle nicht verwendeten Module entfernt. Die restlichen werden fest in den Kernel integriert.
Deswegen habe ich vorher alles angesteckt, was ich mal benutzen möchte: Usb-Stick, Cardreader, Webcam aktiviert, Bluetooth und Wlan aktiviert.
Anschließend habe ich mit make xconfig noch etwas nachgebessert:
Prozessortyp auf Atom gesetzt, generic x86 support rausgenommen, iptables hinzugefügt und ein paar Soundkartentreiber deaktiviert.
Kompilierung lief ohne Probleme durch, make install, make modules_install ausgeführt, schnell den Eintrag für grub hinzugefügt und testen...
Erstes Problem:
ACPI: I/O resource *** conflicts with ACPI region SMBI
Ich hatte die Meldung leider nicht komplett abgeschrieben, aber es handelt sich wohl um ein Problem mit dem Cardreader und ACPI.
Zweites Problem:
kernel panic - not syncing: no init found, try passing init option to Kernel</quote>Hier ein paar Daten:
lspci
<quote>00:00.0 Host bridge: Intel Corporation Mobile 945GME Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
02:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5906M Fast Ethernet PCI Express (rev 02)
03:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)
lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 04f2:b090 Chicony Electronics Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0a5c:2150 Broadcom Corp.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
fstab
/dev/sda3 /boot ext2 defaults 0 1
/dev/sda5 swap swap defaults 0 0
/dev/sda6 / ext3 defaults 0 1
menu.lst
# (0) Arch Linux
title Arch Linux
root (hd0,2)
kernel /vmlinuz26 root=/dev/disk/by-uuid/3f0f5f5d-dd6f-3e1e-3322-3d35089bca77 ro quiet
initrd /kernel26.img
# (1) Arch Linux
title Arch Linux Fallback
root (hd0,2)
kernel /vmlinuz26 root=/dev/disk/by-uuid/3f0f5f5d-dd6f-3e1e-3322-3d35089bca77 ro
initrd /kernel26-fallback.img
# (2) Windows
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1
# (4)
title 2.6.32.3 Home
root (hd0,2)
kernel /vmlinuz root=/dev/sda6 ro quiet
#initrd /initrd.img
Ich musste root auf/dev/sda6 setzen, da er mit der uuid nicht klar kam und kernel panic auftrat(VFS: unable to mount root fs on unknown-block (0.0).
Stimmt da etwas nicht mehr mit den devices?
.config
Ich wollte hier meine config als Datei anhängen, aber irgendwie hat das nicht funktioniert, die Datei ist ein bisschen zu lang, um sie hier zu posten. Wie mach ich das mit dem anhängen? Bei mir kein Dialog zur Auswahl der Datei.
Ich füge sie hier mal als mittel code-Tag ein. Edit: Dann ist der Beitrag zu lang 😉.
Ich hoffe, mir kann jemand weiterhelfen. Ich wüsste nicht, was ich falsch gemacht haben sollte, zumal die config ja geclont wird und nur unbenutzte Module entfernt werden.