LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-05-2014, 04:14 PM   #16
NikolaStanchev
LQ Newbie
 
Registered: Feb 2014
Distribution: Slackware14.1
Posts: 12

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by Richard Cranium View Post
As root, what do you get when you run...
Code:
for i in $(/bin/ls -Ld /sys/module/*_hcd/drivers/*); do  /bin/ls -L ${i}; done
..?

As root, what does the command...
Code:
alias
...return?

As root, what does the command...
Code:
/bin/ls -Ld /sys/module/ehci_hcd/drivers/*
...return?

I've seen an issue where a user had 'ls' aliased to something stupid, which would break some of the above commands. (That user, by the way, was my normal login user on my main system. I fixed that alias this morning due to this thread.)
1.
Code:
/bin/ls: cannot access /sys/module/*_hcd/drivers/*: No such file or directory
2.nothing
3.
Code:
/bin/ls: cannot access /sys/module/ehci_hcd/drivers/*: No such file or directory
have no drivers directory
 
Old 02-05-2014, 04:39 PM   #17
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,494

Rep: Reputation: 438Reputation: 438Reputation: 438Reputation: 438Reputation: 438
Didn't expect that answer for #3.

This should be the last request for output (since you're probably getting tired of running random commands).

What is the output of the command (run as root)
Code:
lspci -k
?
 
Old 02-10-2014, 03:03 PM   #18
NikolaStanchev
LQ Newbie
 
Registered: Feb 2014
Distribution: Slackware14.1
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Richard Cranium View Post
Didn't expect that answer for #3.

This should be the last request for output (since you're probably getting tired of running random commands).

What is the output of the command (run as root)
Code:
lspci -k
?
Code:
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
        Subsystem: Hewlett-Packard Company Device 1858
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
        Subsystem: Hewlett-Packard Company Device 1858
        Kernel driver in use: i915
        Kernel modules: i915
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
        Subsystem: Hewlett-Packard Company Device 1858
        Kernel driver in use: mei_me
        Kernel modules: mei_me
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
        Subsystem: Hewlett-Packard Company Device 1858
        Kernel driver in use: ehci-pci
        Kernel modules: ehci_pci
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
        Subsystem: Hewlett-Packard Company Device 1858
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4)
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
        Subsystem: Hewlett-Packard Company Device 1858
        Kernel driver in use: ehci-pci
        Kernel modules: ehci_pci
00:1f.0 ISA bridge: Intel Corporation 7 Series Chipset Family LPC Controller (rev 04)
        Subsystem: Hewlett-Packard Company Device 1858
        Kernel driver in use: lpc_ich
        Kernel modules: lpc_ich
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
        Subsystem: Hewlett-Packard Company Device 1858
        Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
        Subsystem: Hewlett-Packard Company Device 1858
        Kernel modules: i2c_i801
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 07)
        Subsystem: Hewlett-Packard Company Device 1858
        Kernel driver in use: r8169
        Kernel modules: r8169
02:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe
        Subsystem: Hewlett-Packard Company Device 18ec
        Kernel driver in use: rt2800pci
        Kernel modules: rt2800pci
02:00.1 Bluetooth: Ralink corp. RT3290 Bluetooth
        Subsystem: Hewlett-Packard Company Device 18ec
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
        Subsystem: Hewlett-Packard Company Device 1858
        Kernel driver in use: rtsx_pci
        Kernel modules: rtsx_pci
Sorry for the late response.
 
Old 02-11-2014, 09:41 AM   #19
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,494

Rep: Reputation: 438Reputation: 438Reputation: 438Reputation: 438Reputation: 438
BTW, I'm willing to work with you until we figure out what the problem is. If you have other things to do, found a workaround, or just don't want to spend time to debug this issue for whatever reason, I'm fine with that. Please just let me know.

Looking through the mkinitrd_command_generator.sh code, the portion of the script that blows up for you should only be run if the script concludes that you need a usb device of some sort. It looks for a USB keyboard input device and it also looks for a usb storage device (such as a usb stick/storage card).

Then again, from this post, you either rolled your own mkinitrd command or modified the script to not run "MLIST=$(add_usb_hcd)". If you did the last bit, then you might actually need the usb controller.

From your lsusb output given a while ago, you don't appear to have a usb keyboard; but, it's possible that the script is misinterpreting something. It's also possible that the function determine_blockdev_drivers is returning something with the string "usb" in it.

So, please modify /usr/share/mkinitrd/mkinitrd_command_generator.sh from
Code:
   439  # Determine the list of kernel modules needed to support the root device:
   440  MLIST=$(determine_blockdev_drivers)
   441  
   442  # Check if we are running in a kvm guest with virtio block device driver
to
Code:
   439  # Determine the list of kernel modules needed to support the root device:
   440  MLIST=$(determine_blockdev_drivers)
   441  echo $MLIST
   442  
   443  # Check if we are running in a kvm guest with virtio block device driver
(The line numbers are from my version of the file; they should match yours. The above is a copy from a vi edit buffer with ':set nu'.)

Then run /usr/share/mkinitrd/mkinitrd_command_generator.sh as root (sorry) and post the results. On my machine, I get
Code:
root@darkstar:~# /usr/share/mkinitrd/mkinitrd_command_generator.sh
usb-storage:ehci-hcd:ehci-pci:aic7xxx:aic7xxx
#
# mkinitrd_command_generator.sh revision 1.45
#
# This script will now make a recommendation about the command to use
# in case you require an initrd image to boot a kernel that does not
# have support for your storage or root filesystem built in
# (such as the Slackware 'generic' kernels').
# A suitable 'mkinitrd' command will be:

mkinitrd -c -k 3.10.17 -f xfs -r /dev/mdgroup/rootlv -m usb-storage:ehci-hcd:ehci-pci:aic7xxx:usbhid:hid_generic:ohci-hcd:xfs -L -R -u -o /boot/initrd.gz
root@darkstar:~#
...with the output of the echo command that I just added in bold. (I have a USB flash card reader plugged in to one of my hubs at the moment. I also have a USB keyboard, but that would be detected later in the script.)

If the output of that "echo $MLIST" command does not contain the string "usb" in it, then please provide the output of
Code:
cat /proc/bus/input/devices
since we appear to have an improperly detected USB keyboard.

Last edited by Richard Cranium; 02-11-2014 at 09:45 AM. Reason: It's good to tell people why you ask for output.
 
Old 02-13-2014, 02:41 PM   #20
NikolaStanchev
LQ Newbie
 
Registered: Feb 2014
Distribution: Slackware14.1
Posts: 12

Original Poster
Rep: Reputation: Disabled
Of course, I am willing to work with you too but now I am not with this computer so I will post the output of the commands with delay. Will this be a problem for you? Thank you for the patience.
 
Old 02-13-2014, 05:18 PM   #21
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,494

Rep: Reputation: 438Reputation: 438Reputation: 438Reputation: 438Reputation: 438
It is not a problem at all. Post the output when it is convenient for you.
 
Old 02-21-2014, 08:29 PM   #22
eduardr
LQ Newbie
 
Registered: Sep 2011
Posts: 5

Rep: Reputation: Disabled
I tried a renaming of the ehci item, not sure if it's correct but error went away:

Instead of "for i in $(ls -Ld /sys/module/*_hcd"

used "for i in $(ls -Ld /sys/module/*_pci"

--Ed
 
  


Reply

Tags
boot, ext4, kernel 3.10 initrd, lilo, slackware 14.1


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] switch Huge SMP to Generic czezz Slackware 16 07-07-2011 09:07 AM
[SOLVED] How to switch to the generic kernel Knightron Slackware 9 06-16-2011 05:52 AM
[SOLVED] setting up initrd / generic kernel in Grub2...can't load generic Ubunoob001 Slackware 8 01-05-2011 11:37 PM
how to switch from hugesmp.s to generic.s after intallation markluocanada Slackware 47 06-16-2008 07:41 AM
slack 12, switch to generic kernel from huge kernel, using grub? jaguarrh Slackware 8 09-19-2007 06:29 AM


All times are GMT -5. The time now is 09:08 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