You are not logged in.

#1 2009-06-01 13:41:27

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Discovery what modules are needed by a device

Hi!

I have laptop with a card reader, it already works but I like to know what modules are needed for it.

I like to create a install hook for mkinitcpio for use it on boot time.

Someone know how to get that info?

Thanks!

Offline

#2 2009-06-01 13:57:58

Peanut
Member
From: Norway
Registered: 2009-05-24
Posts: 99

Re: Discovery what modules are needed by a device

Have you tried using extra/hwdetect?

You can also try using lsmod to list all modules currently loaded by the system; the modules you're looking for should be somewhere in that list.

Offline

#3 2009-06-01 21:12:02

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Discovery what modules are needed by a device

Peanut wrote:

Have you tried using extra/hwdetect?

You can also try using lsmod to list all modules currently loaded by the system; the modules you're looking for should be somewhere in that list.

Uhhh... The others option of hwdetect give me nothing. I tried to list all drivers with lsmod and get the info of modinfo but I cannot find a entry for a card reader, at the end of the post is a list (I removed the most obvious).

Is possible that my card reader only uses usb-storage? because the inserted card are recognized as a /dev/sdb.

                                 :    Jack detection support for ALSA
usblp                            :    USB Printer Device Class driver
ac                               :    ACPI AC Adapter Driver
acpi_cpufreq                     :    ACPI Processor P-States Driver
aes_generic                      :    Rijndael (AES) Cipher Algorithm
aes_x86_64                       :    Rijndael (AES) Cipher Algorithm, asm optimized
arc4                             :    ARC4 Cipher Algorithm
ata_generic                      :    low-level driver for generic ATA
battery                          :    ACPI Battery Driver
bluetooth                        :    Bluetooth Core ver 2.14
btusb                            :    Generic Bluetooth USB driver ver 0.4
button                           :    ACPI Button Driver
cdrom  ahci                      :    AHCI SATA low-level driver
cfg80211                         :    wireless configuration support
cn                               :    Generic userspace <-> kernelspace connector.
cpufreq_ondemand                 :    'cpufreq_ondemand' - A dynamic cpufreq governor for Low Latency Frequency Transition capable processors
dm_crypt                         :    device-mapper target for transparent encryption / decryption
dm_mod                           :    device-mapper driver
ecb                              :    ECB block cipher algorithm
ehci_hcd                         :    USB 2.0 'Enhanced' Host Controller (EHCI) Driver
evdev                            :    Input driver event char devices
ext2                             :    Second Extended Filesystem
fan                              :    ACPI Fan Driver
freq_table                       :    CPUfreq frequency table helpers
gf128mul                         :    Functions for multiplying elements of GF(2^128)
hp_accel                         :    Glue between LIS3LV02Dx and HP ACPI BIOS and support for disk protection LED.
i2c_i801                         :    I801 SMBus driver
iTCO_vendor_support              :    Intel TCO Vendor Specific WatchDog Timer Driver Support
intel_agp  r8169                 :    RealTek RTL-8169 Gigabit Ethernet driver
iwlagn                           :    Intel(R) Wireless WiFi Link AGN driver for Linux
iwlcore                          :    iwl core
jbd  mbcache                     :    Meta block cache (for extended attributes)
joydev                           :    Joystick device interfaces
led_class                        :    LED Class Interface
libata                           :    Library module for ATA devices
lis3lv02d                        :    ST LIS3LV02Dx three-axis digital accelerometer driver
mac80211                         :    IEEE 802.11 subsystem
mii                              :    MII hardware support library
nvidia  i2c_core                 :    I2C-Bus main module
output                           :    Display Output Switcher Lowlevel Control Abstraction
pata_atiixp                      :    low-level driver for ATI IXP200/300/400
processor                        :    ACPI Processor Driver
psmouse                          :    PS/2 mouse driver
rfkill                           :    RF switch support
rtc_cmos                         :    Driver for PC-style 'CMOS' RTCs
rtc_core                         :    RTC class support
rtc_lib  ext3                    :    Second Extended Filesystem with journaling extensions
scsi_mod                         :    SCSI core
sd_mod                           :    SCSI disk (sd) driver
serio_raw                        :    Raw serio driver
sg                               :    SCSI generic (sg) driver
soundcore                        :    Core sound module
sr_mod                           :    SCSI cdrom (sr) driver
thermal                          :    ACPI Thermal Zone Driver
nf_conntrack_amanda              :    Amanda connection tracking module
uhci_hcd                         :    USB Universal Host Controller Interface driver
usbcore  iTCO_wdt                :    Intel TCO WatchDog Timer Driver
uvcvideo                         :    USB Video Class driver
uvesafb                          :    Framebuffer driver for VBE2.0+ compliant graphics boards
v4l1_compat                      :    v4l(1) compatibility layer for v4l2 drivers.
usb_storage                      :    USB Mass Storage driver for Linux
video                            :    ACPI Video Driver
videodev                         :    Device registrar for Video4Linux drivers v2
wmi                              :    ACPI-WMI Mapping Driver
xts                              :    XTS block cipher mode

Offline

#4 2009-06-01 22:22:53

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: Discovery what modules are needed by a device

boot without the card reader, lsmod

insert the card reader, lsmod

compare both outputs?


Arch i686 on Phenom X4 | GTX760

Offline

#5 2009-06-02 01:16:09

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: Discovery what modules are needed by a device

stefanwilkens wrote:

boot without the card reader, lsmod

insert the card reader, lsmod

compare both outputs?

I cannot remove the card reader, but I can do this with a card, and lsmod show the same output before and after.

I really thinking that my card reader only use usb-storage, tomorrow I'm gonna test it.

Offline

Board footer

Powered by FluxBB