You are not logged in.

#1 2017-03-27 20:58:47

Foryah
Member
Registered: 2016-06-02
Posts: 27

[SOLVED] ERROR: module not found: `usbhid'

I'm trying to install a custom kernel for the first time following : this wiki. Everything worked like a charm until I had to use mkinitcpio to generate the ram disk.

I followed both the automated and the manual method and the same result :

==> Starting build: 4.11.0-rc3-Custom
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
==> ERROR: module not found: `usbhid'
  -> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.

Initially I thought I really don't have the usbhid module, so I did :

sudo modprobe -r usbhid
sudo modprobe usbhid

which produced this:

[ 1671.101656] usbcore: deregistering interface driver usbhid
[ 1683.033061] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3:1.0/0003:046D:C52F.0005/input/input17
[ 1683.033336] hid-generic 0003:046D:C52F.0005: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:14.0-3/input0
[ 1683.035137] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3:1.1/0003:046D:C52F.0006/input/input18
[ 1683.090278] hid-generic 0003:046D:C52F.0006: input,hiddev0,hidraw1: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-3/input1
[ 1683.090348] usbcore: registered new interface driver usbhid
[ 1683.090349] usbhid: USB HID core driver

I already did an

 sudo pacman -Syyu 

and I tried reinstalling a bunch of packages pointed out by some solutions in the forum but nothing worked...

My question is : if I have the module, why does mkinitcpio fail ?

Last edited by Foryah (2017-03-29 20:29:07)

Offline

#2 2017-03-27 21:29:34

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: [SOLVED] ERROR: module not found: `usbhid'

Foryah wrote:

Initially I thought I really don't have the usbhid module, so I did :

sudo modprobe -r usbhid
sudo modprobe usbhid

With which kernel running did you perform these commands?
What is the output of

$ modinfo -k 4.11.0-rc3-Custom usbhid

Please also post the config used for building the kernel.
Edit:
moved misplaced /quote tag

Last edited by loqs (2017-03-27 21:34:14)

Offline

#3 2017-03-27 21:30:31

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,723
Website

Re: [SOLVED] ERROR: module not found: `usbhid'

What .config did you use for your kernel? Did you remember to compile the modules?


EDIT:

My question is : if I have the module, why does mkinitcpio fail ?

You have the module for the running kernel, not the custom kernel.

Last edited by WorMzy (2017-03-27 21:32:22)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2017-03-28 17:55:57

Foryah
Member
Registered: 2016-06-02
Posts: 27

Re: [SOLVED] ERROR: module not found: `usbhid'

 ~ modinfo -k 4.11.0-rc3-Custom usbhid
modinfo: ERROR: Module usbhid not found.

@loqs  Uuuups smile Here's the kernel configuration.

@WorMzy I think I remembered to compile the modules. I see a folder got generated in /lib/modules/4.11.0-rc3-Custom so I guess I did compiled them, right ?

I used this method to generate the .config file.

I'm looking in the  .config file and I'm seeing this :

CONFIG_USB_HID=y

Isn't this the line that's suppose to enable the module ?

Offline

#5 2017-03-28 18:08:27

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: [SOLVED] ERROR: module not found: `usbhid'

Foryah wrote:
CONFIG_USB_HID=y

Isn't this the line that's suppose to enable the module ?

It would build the module but as part of the kernel not a standalone module.
As it is not a standalone module mkinitcpio generates the warning

==> ERROR: module not found: `usbhid'

From the config you provided

CONFIG_XEN_TMEM=m
CONFIG_XEN_PRIVCMD=m

So only two standalone modules would be built and those are not needed to boot so you get

==> WARNING: No modules were added to the image. This is probably not what you want.

Offline

#6 2017-03-28 18:10:04

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] ERROR: module not found: `usbhid'

Foryah wrote:
CONFIG_USB_HID=y

Isn't this the line that's suppose to enable the module ?

That builds it into the kernel. It should be "m" to create a module.

(edit) snaked again.

(edit2) If you built everything into the kernel like that, you may be able to boot without an initramfs. I build my kernels to boot this way.

Last edited by 2ManyDogs (2017-03-28 18:12:35)

Offline

#7 2017-03-28 18:21:39

Foryah
Member
Registered: 2016-06-02
Posts: 27

Re: [SOLVED] ERROR: module not found: `usbhid'

Thanks guys !

Last edited by Foryah (2017-03-29 20:28:48)

Offline

Board footer

Powered by FluxBB