LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Initrd for kernel 3.8.11 and encrypted luks root partition in current (http://www.linuxquestions.org/questions/slackware-14/initrd-for-kernel-3-8-11-and-encrypted-luks-root-partition-in-current-4175461616/)

Phorize 05-12-2013 04:49 AM

Initrd for kernel 3.8.11 and encrypted luks root partition in current
 
Hi All,

I have just upgraded from Slackware 64 14.0 to current but am having problems with making a working initrd. Basically the output suggested by the initrd command generator script results in an initrd that can't use my usb keyboard, with the implication that I can't enter a password for the encrypted root partition. I posted here a while back in relation to a similar problem with the 3.5 kernel on 13.37. At that point adding hid-generic to the initrd worked, but this time I'm stumped. I have compared config-generic-3.2.29.x64 and config-generic-3.8.11.x64 and can't see what I'm missing.

Has anyone else hit this snag yet?

STDOUBT 05-12-2013 05:09 AM

Shot in the dark:
Did you try "usbhid" instead of "hid-generic"?

Phorize 05-12-2013 12:25 PM

Quote:

Originally Posted by STDOUBT (Post 4949433)
Shot in the dark:
Did you try "usbhid" instead of "hid-generic"?

Yes, usbhid was included. I'm going to plug away at this and see if I can fix it. I've retained my 3.4 kernel so am still up and running.

GazL 05-12-2013 02:07 PM

ehci-hcd:uhci-hcd:usbhid are the ones I've used in the past.

lopid 05-13-2013 01:39 PM

This working command might help.

Phorize 05-15-2013 03:54 PM

So I have used the folling mkinitrd command:

Code:

mkinitrd -c -k 3.9.2 -f ext4 -r /dev/cryptvg/root -m usbhid:hid-generic:ehci-hcd:xhci-hcd:mbcache:jbd2:ext4 -C /dev/sda5 -L -l uk -u -o /boot/initrd-generic-3.9.2.gz
As you can see from the output of lsmod, the command includes all of the modules that are loaded on a working system with 3.4.45:


Code:

Module                  Size  Used by
ipv6                  284983  22
snd_seq_dummy          1456  0
snd_seq_oss            28697  0
snd_seq_midi_event      5621  1 snd_seq_oss
snd_seq                50755  5 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy
snd_seq_device          5229  3 snd_seq,snd_seq_oss,snd_seq_dummy
snd_pcm_oss            38992  0
snd_mixer_oss          15404  1 snd_pcm_oss
xt_pkttype              1084  1
ipt_REJECT              2306  2
xt_tcpudp              2496  19
xt_LOG                12008  11
xt_conntrack            3322  6
iptable_mangle          1577  0
iptable_nat            4017  0
iptable_filter          1449  1
nf_conntrack_irc        3476  0
nf_nat_ftp              1661  0
nf_conntrack_ftp        6086  1 nf_nat_ftp
nf_nat                14901  2 nf_nat_ftp,iptable_nat
nf_conntrack_ipv4      6832  9 nf_nat,iptable_nat
nf_defrag_ipv4          1332  1 nf_conntrack_ipv4
nf_conntrack          48736  7 nf_nat_ftp,nf_nat,xt_conntrack,nf_conntrack_ftp,nf_conntrack_irc,iptable_nat,nf_conntrack_ipv4
ip_tables              16947  3 iptable_filter,iptable_mangle,iptable_nat
x_tables              16672  9 xt_pkttype,ip_tables,xt_tcpudp,xt_conntrack,xt_LOG,iptable_filter,ipt_REJECT,iptable_mangle,iptable_nat
ext2                  63469  1
fuse                  68445  3
i915                  438622  3
snd_hda_codec_hdmi    23682  1
snd_hda_codec_realtek    59113  1
joydev                  9941  0
drm_kms_helper        26173  1 i915
drm                  207105  4 i915,drm_kms_helper
i2c_algo_bit            5352  1 i915
ath9k                  91826  0
ath9k_common            2025  1 ath9k
ath9k_hw              342630  2 ath9k_common,ath9k
ath                    15322  3 ath9k_common,ath9k,ath9k_hw
mac80211              392334  1 ath9k
cfg80211              167029  3 ath,ath9k,mac80211
rfkill                15461  3 cfg80211
evdev                  10183  6
acpi_cpufreq            5830  0
mperf                  1164  1 acpi_cpufreq
coretemp                5615  0
processor              26457  9 acpi_cpufreq
video                  11550  1 i915
tg3                  138217  0
libphy                16734  1 tg3
intel_agp              10897  1 i915
intel_gtt              13920  3 i915,intel_agp
button                  4530  1 i915
thermal_sys            14491  2 video,processor
agpgart                27252  3 drm,intel_agp,intel_gtt
i2c_i801                8173  0
i2c_core              19986  5 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit
psmouse                71365  0
serio_raw              4646  0
hwmon                  1330  2 coretemp,thermal_sys
mei                    32145  0
mxm_wmi                1428  0
wmi                    8404  1 mxm_wmi
snd_hda_intel          23588  4
snd_hda_codec          87536  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep              6421  1 snd_hda_codec
snd_pcm                73386  5 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc          7082  2 snd_pcm,snd_hda_intel
snd_timer              18831  3 snd_pcm,snd_seq
snd                    58365  18 snd_hda_codec_realtek,snd_pcm_oss,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_hda_codec,snd_hda_intel,snd_seq_oss,snd_seq_device,snd_mixer_oss
soundcore              5315  1 snd
crc32c_intel            1980  0
ghash_clmulni_intel    4270  0
microcode              11258  0
loop                  18161  0
ext4                  422990  2
jbd2                  73234  1 ext4
mbcache                5923  2 ext2,ext4
xhci_hcd              84527  0
ehci_hcd              41121  0
usbhid                36406  0
hid                    84094  1 usbhid

This is interesting...

Phorize 05-15-2013 03:57 PM

Quote:

Originally Posted by kristizz (Post 4951969)
So I have used the folling mkinitrd command:

Code:

mkinitrd -c -k 3.9.2 -f ext4 -r /dev/cryptvg/root -m usbhid:hid-generic:ehci-hcd:xhci-hcd:mbcache:jbd2:ext4 -C /dev/sda5 -L -l uk -u -o /boot/initrd-generic-3.9.2.gz
As you can see from the output of lsmod, the command includes all of the modules that are loaded on a working system with 3.4.45:


Code:

Module                  Size  Used by
ipv6                  284983  22
snd_seq_dummy          1456  0
snd_seq_oss            28697  0
snd_seq_midi_event      5621  1 snd_seq_oss
snd_seq                50755  5 snd_seq_midi_event,snd_seq_oss,snd_seq_dummy
snd_seq_device          5229  3 snd_seq,snd_seq_oss,snd_seq_dummy
snd_pcm_oss            38992  0
snd_mixer_oss          15404  1 snd_pcm_oss
xt_pkttype              1084  1
ipt_REJECT              2306  2
xt_tcpudp              2496  19
xt_LOG                12008  11
xt_conntrack            3322  6
iptable_mangle          1577  0
iptable_nat            4017  0
iptable_filter          1449  1
nf_conntrack_irc        3476  0
nf_nat_ftp              1661  0
nf_conntrack_ftp        6086  1 nf_nat_ftp
nf_nat                14901  2 nf_nat_ftp,iptable_nat
nf_conntrack_ipv4      6832  9 nf_nat,iptable_nat
nf_defrag_ipv4          1332  1 nf_conntrack_ipv4
nf_conntrack          48736  7 nf_nat_ftp,nf_nat,xt_conntrack,nf_conntrack_ftp,nf_conntrack_irc,iptable_nat,nf_conntrack_ipv4
ip_tables              16947  3 iptable_filter,iptable_mangle,iptable_nat
x_tables              16672  9 xt_pkttype,ip_tables,xt_tcpudp,xt_conntrack,xt_LOG,iptable_filter,ipt_REJECT,iptable_mangle,iptable_nat
ext2                  63469  1
fuse                  68445  3
i915                  438622  3
snd_hda_codec_hdmi    23682  1
snd_hda_codec_realtek    59113  1
joydev                  9941  0
drm_kms_helper        26173  1 i915
drm                  207105  4 i915,drm_kms_helper
i2c_algo_bit            5352  1 i915
ath9k                  91826  0
ath9k_common            2025  1 ath9k
ath9k_hw              342630  2 ath9k_common,ath9k
ath                    15322  3 ath9k_common,ath9k,ath9k_hw
mac80211              392334  1 ath9k
cfg80211              167029  3 ath,ath9k,mac80211
rfkill                15461  3 cfg80211
evdev                  10183  6
acpi_cpufreq            5830  0
mperf                  1164  1 acpi_cpufreq
coretemp                5615  0
processor              26457  9 acpi_cpufreq
video                  11550  1 i915
tg3                  138217  0
libphy                16734  1 tg3
intel_agp              10897  1 i915
intel_gtt              13920  3 i915,intel_agp
button                  4530  1 i915
thermal_sys            14491  2 video,processor
agpgart                27252  3 drm,intel_agp,intel_gtt
i2c_i801                8173  0
i2c_core              19986  5 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit
psmouse                71365  0
serio_raw              4646  0
hwmon                  1330  2 coretemp,thermal_sys
mei                    32145  0
mxm_wmi                1428  0
wmi                    8404  1 mxm_wmi
snd_hda_intel          23588  4
snd_hda_codec          87536  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep              6421  1 snd_hda_codec
snd_pcm                73386  5 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc          7082  2 snd_pcm,snd_hda_intel
snd_timer              18831  3 snd_pcm,snd_seq
snd                    58365  18 snd_hda_codec_realtek,snd_pcm_oss,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_hda_codec,snd_hda_intel,snd_seq_oss,snd_seq_device,snd_mixer_oss
soundcore              5315  1 snd
crc32c_intel            1980  0
ghash_clmulni_intel    4270  0
microcode              11258  0
loop                  18161  0
ext4                  422990  2
jbd2                  73234  1 ext4
mbcache                5923  2 ext2,ext4
xhci_hcd              84527  0
ehci_hcd              41121  0
usbhid                36406  0
hid                    84094  1 usbhid

This is interesting...

Thought I'd better point out the newer kernel that I'm working with now.

Phorize 06-13-2013 04:37 PM

Back again! OK, so I am running kernel 3.4.48 to get work done but would still like to play with the latest kernel. Problem is that I still don't get a working keyboard with an initrd made with the following mkinitrd command. No one else seems to be having this problem (a good thing) but any advice would be appreciated:

mkinitrd -c -k 3.9.5 -f ext4 -r /dev/cryptvg/root -m hid-generic:usbhid:ehci-hcd:xhci-hcd:mbcache:jbd2:ext4 -C /dev/sda2 -L -l uk -u -o /boot/initrd.gz

Phorize 06-15-2013 10:04 AM

Bizarre. On the Asrock Extreme 4 Z77 board some of the usb ports work with the initrd and some don't. Solved by moving the usb keyboard to a different usb port.


All times are GMT -5. The time now is 07:39 PM.