LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-12-2013, 03:49 AM   #1
Phorize
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 218

Rep: Reputation: 26
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?
 
Old 05-12-2013, 04:09 AM   #2
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware 14.0/32bit + Xmonad
Posts: 264

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

Last edited by STDOUBT; 05-12-2013 at 04:09 AM. Reason: typographical error
 
Old 05-12-2013, 11:25 AM   #3
Phorize
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 218

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by STDOUBT View Post
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.
 
Old 05-12-2013, 01:07 PM   #4
GazL
Senior Member
 
Registered: May 2008
Posts: 3,440

Rep: Reputation: 960Reputation: 960Reputation: 960Reputation: 960Reputation: 960Reputation: 960Reputation: 960Reputation: 960
ehci-hcd:uhci-hcd:usbhid are the ones I've used in the past.
 
Old 05-13-2013, 12:39 PM   #5
lopid
Member
 
Registered: Jun 2008
Posts: 107

Rep: Reputation: Disabled
This working command might help.
 
Old 05-15-2013, 02:54 PM   #6
Phorize
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 218

Original Poster
Rep: Reputation: 26
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...
 
Old 05-15-2013, 02:57 PM   #7
Phorize
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 218

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by kristizz View Post
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.
 
Old 06-13-2013, 03:37 PM   #8
Phorize
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 218

Original Poster
Rep: Reputation: 26
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
 
Old 06-15-2013, 09:04 AM   #9
Phorize
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 218

Original Poster
Rep: Reputation: 26
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LUKS / LVM2: Root partition unable to boot, initrd errors ADX Slackware 5 01-13-2012 04:57 PM
usb stick unlocking scheme for root encrypted partition in current escaflown Slackware 6 05-09-2010 04:16 PM
gentoo luks encrypted root partition - lots of trouble (with initramfs) Meson Gentoo 10 10-15-2009 04:15 PM
Slackware64-current: Creation of LUKS encrypted partition segfaults titopoquito Slackware 16 08-16-2009 04:02 AM
Recover encrypted LUKS partition itinlopez Linux - General 3 11-30-2008 02:20 AM


All times are GMT -5. The time now is 04:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration