You are not logged in.
Hi folks
So I wanted to slim down my initcpio image, but I got into some trouble. According to the wiki you can live without the udev hook in exchange to faster boot time. It would seem to me, that I configure /etc/mkinitcpio.conf right, but (obviously) didn't since I am unable to boot from the root device.
Here is my /etc/mkinitcpio.conf:
MODULES="piix pata_acpi ata_generic scsi_mod ata_piix ext3 reiserfs"
HOOKS="base pata keymap resume filesystems"
My /etc/rc.conf (if necessary):
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
#MODULES=(hdaps tp_smapi e100 eepro100 mii slhc ipw2100 ac97_bus snd-mixer-oss snd-pcm-oss snd-page-alloc snd-pcm snd-timer snd snd-ac97-codec snd-intel8x0 snd-intel8x0m soundcore)
MODULES=(hci_usb thinkpad_acpi scsi_mod sd_mod sr_mod cdrom usbhid hid pci_hotplug shpchp usbcore ehci-hcd uhci-hcd led-class ata_generic ata_piix pata_acpi i2c-i801 i2c-core parport parport_pc output agpgart intel-agp !intel-rng lp nvram ppdev yenta_socket pcmcia_core rsrc_nonstatic ff-memless pcspkr joydev serio_raw psmouse evdev slhc mii crc-ccitt eepro100 sir-dev irtty-sir ipw2100 e100 video processor bay dock thermal button ac battery bluetooth ieee80211 ieee80211_crypt irda snd-pcm snd-pcm-oss snd-mixer-oss snd-page-alloc snd snd-timer ac97_bus snd-intel8x0 snd-intel8x0m soundcore tp_smapi hdaps)
Output from lshwd:
Class 0101
piix : Intel Corp.|82801DBM IDE Controller (UltraATA/100)
Class 0200
eepro100 : Intel Corp.|82801BD PRO/100 VE (MOB) Ethernet Controller
Class 0280
ipw2200 : Intel Corp.|PRO/Wireless LAN 2200
Class 0300
vesa : Intel Corp.|852GM/852GME/855GM/855GME Chipset Graphics Controller
Class 0380
vesa : Intel Corp.|852GM/852GME/855GM/855GME Chipset Graphics Controller
Class 0401
snd-intel8x0 : Intel Corp.|ICH4 845G/GL Chipset AC'97 Audio Controller
Class 0600
intel-agp : Intel Corp.|852GM Host-Hub Interface Bridge
Class 0601
i810-tco : Intel Corp.|82801DBM LPC Interface Bridge
Class 0604
hw_random : Intel Corp.|82801 Hub Interface to PCI Bridge
Class 0607
yenta_socket : Texas Instruments|PCI1510 PC Card CardBus Controller
Class 0703
snd-intel8x0m : Intel Corporation|Acer Aspire 2001WLCi (Compal CL50 motherboard) implementation
Class 0880
unknown : Intel Corp.|852GM Configuration Process
unknown : Intel Corp.|852GM System Memory Controller
Class 0c03
ehci-hcd : Intel Corp.|82801DB USB Enhanced Controller
uhci_hcd : Intel Corp.|82801DB USB Controller
uhci_hcd : Intel Corp.|82801DB USB Controller
uhci_hcd : Intel Corp.|82801DB USB Controller
Class 0c05
i2c-i801 : Intel Corp.|82801DB SMBus Controller
And finally from dmesg:
[joey@Kessler ~]$ dmesg | grep ata
BIOS-e820: 000000002f6d0000 - 000000002f6e7000 (ACPI data)
Memory: 760724k/777024k available (2159k kernel code, 15688k reserved, 740k data, 260k init, 0k highmem)
.data : 0xc031be2d - 0xc03d4ea0 ( 740 kB)
ACPI: EC: GPE = 0x1c, I/O: command/status = 0x66, data = 0x62
libata version 3.00 loaded.
ata_piix 0000:00:1f.1: version 2.12
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x1810 irq 14
ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x1818 irq 15
ata1.00: ATA-7: SAMSUNG HM080HC, AM100-16, max UDMA/100
ata1.00: 156301488 sectors, multi 16: LBA48
ata1.00: configured for UDMA/100
ata2.00: ATAPI: HL-DT-STCD-RW/DVD DRIVE GCC-4241N, 0202, max UDMA/33
ata2.00: configured for UDMA/33
EXT3-fs: mounted filesystem with ordered data mode.
ieee80211: 802.11 data/management/control stack, git-1.1.13
hdaps: fake_data_mode set to 0
input: ThinkPad HDAPS accelerometer data as /class/input/input11
ReiserFS: sda8: using ordered data mode
EXT3-fs: mounted filesystem with ordered data mode.
EXT3-fs: mounted filesystem with ordered data mode.
I hope that is all you need.
On an another note. I have noticed that mkinitcpio doesn't provide a proper fallback config for the kernels. A fallback image only builds against the mkinitcpio.conf, leaving you with a fallback image exactly the same as the default. Shouldn't this be changed?
Arch - It's something refreshing
Offline
if you take away udev then you take away the ability for the kernel to auto detect your hardware.
you need to do that job, since udev can't.
On an another note. I have noticed that mkinitcpio doesn't provide a proper fallback config for the kernels. A fallback image only builds against the mkinitcpio.conf, leaving you with a fallback image exactly the same as the default. Shouldn't this be changed?
the fallback mkinitcpio is located in a different directory. you can check the PKGBUILD for mkinitcpio to see where it is installed.
Last edited by rooloo (2008-07-31 20:05:07)
Offline
rooloo
I don't autodetect my modules. I simply put the needed modules in the MODULES array in rc.conf.
And about the fallback image. I remember in the old days when mkinitcpio were introduced, there were /etc/mkinitcpio.d/kernel26-fallback.conf. But as default there isn't such config located in that directory.
Arch - It's something refreshing
Offline
So I made a new discovery. When I have EXT3 and ReiserFS modules in the MODULES array in mkinitcpio.conf while having the filesystems hook loaded, I can't seem to boot either.
If I have the correct modules in mkinitcpio.conf I should not have to have udev and filesystems hooks if I don't autoload modules, right?
Arch - It's something refreshing
Offline