You are not logged in.

#1 2014-11-26 20:22:58

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

[SOLVED] package "hidapi" & kernel module "hidraw"

Hello,

I am currently dealing with openocd and guys at IRC told me that I need to enable
kernel module "hidraw". How can I do this on Arch?

I tried to nstall package "hidapi" from AUR and add line "hidraw" inside a file
"/etc/modules-load.d/MODULES-load.conf" but it didn't load at startup.

Any sugestions?

Last edited by 71GA (2014-11-26 23:01:05)


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#2 2014-11-26 21:12:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] package "hidapi" & kernel module "hidraw"

Can you load it manually?


Edit: Are you sure the package does provide the module?

Edit 2: Arch seems to ship with the module compiled in:

$ zgrep -i hidraw /proc/config.gz
CONFIG_HIDRAW=y

How do you know it's not working?

Last edited by karol (2014-11-26 21:16:20)

Offline

#3 2014-11-26 22:11:02

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] package "hidapi" & kernel module "hidraw"

karol wrote:

Can you load it manually?


Edit: Are you sure the package does provide the module?

Edit 2: Arch seems to ship with the module compiled in:

$ zgrep -i hidraw /proc/config.gz
CONFIG_HIDRAW=y

How do you know it's not working?

I am not sure if package provides it. Guys on openocd said I need hidapi package and module hidraw.
Is there a way to check which kernel modules does a package provide? Where can I find these info?

I get same output.

$ zgrep -i hidraw /proc/config.gz
CONFIG_HIDRAW=y

Does "y" mean hidraw is running? I assume it is not running on my machine because i get nothing after executing:

lsmod | grep hidraw

Last edited by 71GA (2014-11-26 22:11:35)


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#4 2014-11-26 22:43:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] package "hidapi" & kernel module "hidraw"

'pacman -Ql hidapi' will show you all files and directories this package provides.
IIRC lsmod works with loadable modules only. Since the stock Arch kernel has 'CONFIG_HIDRAW=y' and not 'CONFIG_HIDRAW=m' and https://github.com/signal11/hidapi mentions hidraw driver (if I understand, it's a different animal from a module), lsmod won't show it.

What doesn't work? Do you get any errors from openocd or some other application?

Offline

#5 2014-11-26 22:49:38

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] package "hidapi" & kernel module "hidraw"

karol wrote:

'pacman -Ql hidapi' will show you all files and directories this package provides.
IIRC lsmod works with loadable modules only. Since the stock Arch kernel has 'CONFIG_HIDRAW=y' and not 'CONFIG_HIDRAW=m' and https://github.com/signal11/hidapi mentions hidraw driver (if I understand, it's a different animal from a module), lsmod won't show it.

What doesn't work? Do you get any errors from openocd or some other application?

So lsmod doesn't list all the modules I see. I didn't know that. Is there any command to list all modules (loadable and other "animals" like you said it)?
Yes openocd is giving me a headacke but this is not appropriate to be discused here. I will rather ask on openocd IRC chanel.

Thank you.


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#6 2014-11-26 23:03:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] package "hidapi" & kernel module "hidraw"

/proc/config.gz tells you what's compiled in, what's not and what's enabled as a loadable module.
On openocd IRC channel you should ask what exactly are you supposed to do / to look for. Is 'CONFIG_HIDRAW=y' all there is to it?
Ask them if the hidapi package is necessary.

Offline

Board footer

Powered by FluxBB