LINUX.ORG.RU
решено ФорумAdmin

initramfs no sata modules

 , , ,


0

1

Доброго всем времени суток :)

после сборки очередной версии pf-kernel (ради прироста производительности интеловской интеграшки и более-менее рабочей гибернации) Дебиан отказывается загружаться, не находя ни одного диска. Путём методичного обшаривания initramfs было установлено что в нём просто нет модулей (вообще - в /lib/modules/ лежат только списки модулей некие). В прошлой версии ядра, собранной идентичным способом (make oldconfig, make-kpkg, dpkg -i) всё грузится и неплохо работает. Грешу на initramfs-tools потому что модули есть (собраны). Прошу помочь советом как заставить initramfs-tools включить модули в образ. Заранее спасибо :)

dima@dns ~ $ ls -sh /boot/initrd.img-4.4.0-pf62
9,1M /boot/initrd.img-4.4.0-pf62
dima@dns ~ $ ls -sh /boot/initrd.img-4.3.0-pf1
29M /boot/initrd.img-4.3.0-pf1
dima@dns ~ $ sudo lsinitramfs /boot/initrd.img-4.4.0-pf62 | grep ata
lib/udev/ata_id
dima@dns ~ $ sudo lsinitramfs /boot/initrd.img-4.3.0-pf1 | grep ata
lib/modules/4.3.0-pf1/kernel/drivers/scsi/eata.ko
lib/modules/4.3.0-pf1/kernel/drivers/usb/storage/ums-datafab.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata
lib/modules/4.3.0-pf1/kernel/drivers/ata/pdc_adma.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/acard-ahci.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_jmicron.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_sis.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_triflex.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/sata_mv.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_piccolo.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_sch.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_it821x.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_it8213.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_rz1000.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/sata_promise.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_atiixp.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/sata_uli.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/sata_via.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/sata_sis.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/ata_piix.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_pcmcia.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_ns87410.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_serverworks.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_netcell.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_via.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_ninja32.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_sil680.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_ns87415.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_mpiix.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/ata_generic.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/sata_svw.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_pdc2027x.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/sata_sx4.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/sata_nv.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_hpt366.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_rdc.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/libahci.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_efar.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/sata_sil.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_ali.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/sata_qstor.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_atp867x.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/ahci.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_cmd64x.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_artop.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_marvell.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_hpt37x.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_pdc202xx_old.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/sata_vsc.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/libata.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_amd.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/pata_oldpiix.ko
lib/modules/4.3.0-pf1/kernel/drivers/ata/sata_sil24.ko
lib/udev/ata_id

dima@dns ~ $ sudo update-initramfs -u -vvvvvv -k 4.4.0-pf62 
Keeping /boot/initrd.img-4.4.0-pf62.dpkg-bak
update-initramfs: Generating /boot/initrd.img-4.4.0-pf62
Adding binary /etc/initramfs-tools/conf.d/splash
Adding binary /sbin/modprobe
Adding library /lib/x86_64-linux-gnu/libc.so.6
Adding library /lib64/ld-linux-x86-64.so.2
Adding binary /sbin/rmmod
Calling hook amd64_microcode
amd64-microcode: no AMD processors detected, nothing to do
Calling hook busybox
Calling hook cryptroot
cryptsetup: WARNING: failed to detect canonical device of swap:/dev/sda8
Calling hook fsck
Adding binary /sbin/fsck
Adding library /lib/x86_64-linux-gnu/libmount.so.1
Adding library /lib/x86_64-linux-gnu/libblkid.so.1
Adding library /lib/x86_64-linux-gnu/libselinux.so.1
Adding library /lib/x86_64-linux-gnu/libuuid.so.1
Adding library /lib/x86_64-linux-gnu/libpcre.so.3
Adding library /lib/x86_64-linux-gnu/libdl.so.2
Adding library /lib/x86_64-linux-gnu/libpthread.so.0
Adding binary /sbin/logsave
Adding binary /sbin/sulogin
Adding library /lib/x86_64-linux-gnu/libcrypt.so.1
Adding binary /sbin/e2fsck
Adding library /lib/x86_64-linux-gnu/libext2fs.so.2
Adding library /lib/x86_64-linux-gnu/libcom_err.so.2
Adding library /lib/x86_64-linux-gnu/libe2p.so.2
Calling hook fuse
Adding binary /sbin/mount.fuse
Calling hook intel_microcode
intel-microcode: adding microcode for currently online and selected Intel processors
intel-microcode: using early initramfs microcode update mode (Linux v3.10 and later)...
/usr/sbin/iucode_tool: system has processor(s) with signature 0x000306c3
/usr/sbin/iucode_tool: assuming all processors have the same signature
/usr/sbin/iucode_tool: microcode bundle 1: /lib/firmware/intel-ucode/06-3a-09.initramfs (12288 bytes)
/usr/sbin/iucode_tool: microcode bundle 2: /lib/firmware/intel-ucode/0f-06-08 (2048 bytes)
/usr/sbin/iucode_tool: microcode bundle 3: /lib/firmware/intel-ucode/06-17-07 (4096 bytes)
/usr/sbin/iucode_tool: microcode bundle 4: /lib/firmware/intel-ucode/0f-06-02 (3072 bytes)
/usr/sbin/iucode_tool: microcode bundle 5: /lib/firmware/intel-ucode/06-3d-04.initramfs (16384 bytes)
/usr/sbin/iucode_tool: microcode bundle 6: /lib/firmware/intel-ucode/0f-04-0a (4096 bytes)
/usr/sbin/iucode_tool: microcode bundle 7: /lib/firmware/intel-ucode/0f-04-09 (2048 bytes)
/usr/sbin/iucode_tool: microcode bundle 8: /lib/firmware/intel-ucode/0f-06-04 (6144 bytes)
/usr/sbin/iucode_tool: microcode bundle 9: /lib/firmware/intel-ucode/06-47-01.initramfs (11264 bytes)
/usr/sbin/iucode_tool: microcode bundle 10: /lib/firmware/intel-ucode/06-3c-03.initramfs (21504 bytes)
/usr/sbin/iucode_tool: microcode bundle 11: /lib/firmware/intel-ucode/06-3e-04 (13312 bytes)
/usr/sbin/iucode_tool: microcode bundle 12: /lib/firmware/intel-ucode/06-1d-01 (4096 bytes)
/usr/sbin/iucode_tool: microcode bundle 13: /lib/firmware/intel-ucode/06-2d-07 (17408 bytes)
/usr/sbin/iucode_tool: microcode bundle 14: /lib/firmware/intel-ucode/0f-03-04 (7168 bytes)
/usr/sbin/iucode_tool: microcode bundle 15: /lib/firmware/intel-ucode/0f-04-01 (10240 bytes)
/usr/sbin/iucode_tool: microcode bundle 16: /lib/firmware/intel-ucode/06-17-06 (20480 bytes)
/usr/sbin/iucode_tool: microcode bundle 17: /lib/firmware/intel-ucode/06-3e-07 (15360 bytes)
/usr/sbin/iucode_tool: microcode bundle 18: /lib/firmware/intel-ucode/06-0f-0a (4096 bytes)
/usr/sbin/iucode_tool: microcode bundle 19: /lib/firmware/intel-ucode/06-3f-02.initramfs (30720 bytes)
/usr/sbin/iucode_tool: microcode bundle 20: /lib/firmware/intel-ucode/06-3e-06 (11264 bytes)
/usr/sbin/iucode_tool: microcode bundle 21: /lib/firmware/intel-ucode/06-0f-0d (12288 bytes)
/usr/sbin/iucode_tool: microcode bundle 22: /lib/firmware/intel-ucode/06-25-05 (3072 bytes)
/usr/sbin/iucode_tool: microcode bundle 23: /lib/firmware/intel-ucode/06-0f-06 (12288 bytes)
/usr/sbin/iucode_tool: microcode bundle 24: /lib/firmware/intel-ucode/0f-04-04 (3072 bytes)
/usr/sbin/iucode_tool: microcode bundle 25: /lib/firmware/intel-ucode/06-2f-02 (13312 bytes)
/usr/sbin/iucode_tool: microcode bundle 26: /lib/firmware/intel-ucode/06-45-01.initramfs (20480 bytes)
/usr/sbin/iucode_tool: microcode bundle 27: /lib/firmware/intel-ucode/0f-04-03 (2048 bytes)
/usr/sbin/iucode_tool: microcode bundle 28: /lib/firmware/intel-ucode/06-2d-06 (16384 bytes)
/usr/sbin/iucode_tool: microcode bundle 29: /lib/firmware/intel-ucode/06-0f-02 (8192 bytes)
/usr/sbin/iucode_tool: microcode bundle 30: /lib/firmware/intel-ucode/0f-04-07 (3072 bytes)
/usr/sbin/iucode_tool: microcode bundle 31: /lib/firmware/intel-ucode/06-1e-05 (7168 bytes)
/usr/sbin/iucode_tool: microcode bundle 32: /lib/firmware/intel-ucode/06-16-01 (16384 bytes)
/usr/sbin/iucode_tool: microcode bundle 33: /lib/firmware/intel-ucode/06-1a-05 (10240 bytes)
/usr/sbin/iucode_tool: microcode bundle 34: /lib/firmware/intel-ucode/06-2a-07 (10240 bytes)
/usr/sbin/iucode_tool: microcode bundle 35: /lib/firmware/intel-ucode/06-1c-0a (20480 bytes)
/usr/sbin/iucode_tool: microcode bundle 36: /lib/firmware/intel-ucode/06-1e-04 (6144 bytes)
/usr/sbin/iucode_tool: microcode bundle 37: /lib/firmware/intel-ucode/06-25-02 (8192 bytes)
/usr/sbin/iucode_tool: microcode bundle 38: /lib/firmware/intel-ucode/06-1a-04 (14336 bytes)
/usr/sbin/iucode_tool: microcode bundle 39: /lib/firmware/intel-ucode/0f-04-08 (9216 bytes)
/usr/sbin/iucode_tool: microcode bundle 40: /lib/firmware/intel-ucode/06-0f-0b (28672 bytes)
/usr/sbin/iucode_tool: microcode bundle 41: /lib/firmware/intel-ucode/06-1c-02 (15360 bytes)
/usr/sbin/iucode_tool: microcode bundle 42: /lib/firmware/intel-ucode/06-46-01.initramfs (23552 bytes)
/usr/sbin/iucode_tool: microcode bundle 43: /lib/firmware/intel-ucode/06-0f-07 (8192 bytes)
/usr/sbin/iucode_tool: microcode bundle 44: /lib/firmware/intel-ucode/0f-06-05 (4096 bytes)
/usr/sbin/iucode_tool: microcode bundle 45: /lib/firmware/intel-ucode/06-3f-04.initramfs (14336 bytes)
/usr/sbin/iucode_tool: microcode bundle 46: /lib/firmware/intel-ucode/06-17-0a (24576 bytes)
/usr/sbin/iucode_tool: processed 78 valid microcode(s), 78 signature(s), 78 unique signature(s)
/usr/sbin/iucode_tool: selected 1 microcode(s), 1 signature(s)
/usr/sbin/iucode_tool: Writing selected microcodes to: /var/tmp/mkinitramfs-EFW_FeZypj614K
/usr/sbin/iucode_tool: /var/tmp/mkinitramfs-EFW_FeZypj614K: 1 microcode entries written, 22528 bytes
Calling hook keymap
Adding binary /bin/loadkeys
Calling hook klibc
Calling hook kmod
Adding binary /bin/kmod
Calling hook lvm2
Adding binary /sbin/dmsetup
Adding library /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1
Adding library /lib/x86_64-linux-gnu/libudev.so.1
Adding library /lib/x86_64-linux-gnu/librt.so.1
Adding binary /sbin/lvm
Adding library /lib/x86_64-linux-gnu/libdevmapper-event.so.1.02.1
Adding library /lib/x86_64-linux-gnu/libreadline.so.5
Adding library /lib/x86_64-linux-gnu/libtinfo.so.5
Calling hook plymouth
Adding binary /usr/lib/x86_64-linux-gnu/plymouth//script.so
Adding library /lib/x86_64-linux-gnu/libm.so.6
Adding library /lib/x86_64-linux-gnu/libply.so.2
Adding library /lib/x86_64-linux-gnu/libply-splash-core.so.2
Adding library /lib/x86_64-linux-gnu/libply-splash-graphics.so.2
Adding library /lib/x86_64-linux-gnu/libpng12.so.0
Adding library /lib/x86_64-linux-gnu/libz.so.1
Adding binary /bin/plymouth
Adding binary /sbin/plymouthd
Adding binary /usr/lib/x86_64-linux-gnu/plymouth//text.so
Adding binary /usr/lib/x86_64-linux-gnu/plymouth//details.so
Adding binary /usr/lib/x86_64-linux-gnu/plymouth//label.so
Adding library /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0
Adding library /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0
Adding library /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
Adding library /usr/lib/x86_64-linux-gnu/libcairo.so.2
Adding library /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0
Adding library /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0
Adding library /lib/x86_64-linux-gnu/libglib-2.0.so.0
Adding library /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0
Adding library /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
Adding library /usr/lib/x86_64-linux-gnu/libfreetype.so.6
Adding library /usr/lib/x86_64-linux-gnu/libthai.so.0
Adding library /usr/lib/x86_64-linux-gnu/libffi.so.6
Adding library /usr/lib/x86_64-linux-gnu/libpixman-1.so.0
Adding library /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0
Adding library /usr/lib/x86_64-linux-gnu/libxcb-render.so.0
Adding library /usr/lib/x86_64-linux-gnu/libxcb.so.1
Adding library /usr/lib/x86_64-linux-gnu/libXrender.so.1
Adding library /usr/lib/x86_64-linux-gnu/libX11.so.6
Adding library /usr/lib/x86_64-linux-gnu/libXext.so.6
Adding library /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0
Adding library /lib/x86_64-linux-gnu/libexpat.so.1
Adding library /usr/lib/x86_64-linux-gnu/libdatrie.so.1
Adding library /usr/lib/x86_64-linux-gnu/libXau.so.6
Adding library /usr/lib/x86_64-linux-gnu/libXdmcp.so.6
Adding library /usr/lib/x86_64-linux-gnu/libgraphite2.so.3
Copying module directory kernel/drivers/gpu/drm
(excluding mga r128 savage sis tdfx via)
Adding binary /usr/lib/x86_64-linux-gnu/plymouth/renderers/frame-buffer.so
Adding binary /usr/lib/x86_64-linux-gnu/plymouth/renderers/drm.so
Adding library /usr/lib/x86_64-linux-gnu/libdrm.so.2
Adding binary /lib/x86_64-linux-gnu/libnss_files-2.19.so
Adding binary /lib/x86_64-linux-gnu/libnss_files.so.2
Calling hook resume
Calling hook thermal
Calling hook tuxonice
Adding binary /usr/lib/tuxonice-userui/tuxoniceui
Adding library /usr/lib/x86_64-linux-gnu/libmng.so.1
Adding library /usr/lib/x86_64-linux-gnu/libjpeg.so.62
Adding library /usr/lib/x86_64-linux-gnu/liblcms2.so.2
Calling hook udev
Adding binary /lib/systemd/systemd-udevd
Adding library /lib/x86_64-linux-gnu/libkmod.so.2
Adding library /lib/x86_64-linux-gnu/libacl.so.1
Adding library /lib/x86_64-linux-gnu/libattr.so.1
Adding binary /bin/udevadm
Adding binary /lib/udev/ata_id
Adding binary /lib/udev/scsi_id
Adding binary /sbin/blkid
Calling hook uswsusp
Calling hook v86d
Adding binary /sbin/v86d
Adding library /lib/x86_64-linux-gnu/libx86.so.1
Calling hook zz_nvidia-blacklists-nouveau
Adding binary /etc/modprobe.d/nvidia-blacklists-nouveau.conf
Calling hook cryptpassdev
Calling hook cryptopensc
Calling hook cryptopenct
Calling hook cryptkeyctl
Calling hook cryptgnupg
Calling hook ntfs_3g
Adding binary /bin/ntfs-3g
Adding library /lib/x86_64-linux-gnu/libntfs-3g.so.853
Calling hook dmsetup
Building cpio /boot/initrd.img-4.4.0-pf62.new initramfs

версии pf-kernel (ради прироста производительности интеловской интеграшки и более-менее рабочей гибернации)

Дальше можно не читать, по первой фразе уже ясно в каком классе ТС.

anonymous
()
Ответ на: комментарий от anonymous

Ви таки телепат?

Может быть просветите ТС в каком он классе, и с высоты своего не (может быть) школьного опыта обьясните, что делать с данной initramfs проблемой?

madarexxx
() автор топика
Ответ на: комментарий от anonymous

как насчёт самоликвидироваться?

решение было найдено путём реверса работы update-initramfs - было установлено что в новом ядре оказались сжаты модули, а initramfs-tools не умеют в сжатие. Баг уже известен - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=771158 . Решение - пересобрать ядро, выключив опции.

CONFIG_MODULE_COMPRESS=y


CONFIG_MODULE_COMPRESS_GZIP=y

с полнейшим неуважением, студент электрик-кун



For English-only speaking users:
if you don't have all your modules (sata, graphics, other drivers) in initramfs, you should check if your kernel is compiled with options above. Solution is to rebuild your kernel without these options.

Google optimisation: sata modules, no sata modules in initramfs, initramfs without modules, initrd drivers problem.

madarexxx
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.