You are not logged in.

#1 2015-10-07 14:20:32

nariox
Member
Registered: 2014-03-19
Posts: 128

[SOLVED] Compiling only a module (ISL29018), but not the entire kernel

I'm trying to build the ISL29018 module (but just building the module itself, not the entire kernel), I am able to build and load the module, but I can't find it in the sysfs (/sys/bus/iio/devices/ is empty). My dmesg states:

isl29018: module is from the staging directory, the quality is unknown, you have been warned.

but nothing else.

I've developed (more like modified an existing one) a script (link). Am I doing something wrong? Do I need to recompile the modules this module depends on (industrial io related modules)? Also, after installing the new module, the change in the config is not shown in:

zcat /proc/config.gz

Thanks for the help

Last edited by nariox (2015-10-13 13:17:16)

Offline

#2 2015-10-07 15:57:17

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: [SOLVED] Compiling only a module (ISL29018), but not the entire kernel

Are you sure it's supposed to just work like that? I2C doesn't have any automatic device discovery capabilities so the driver may require some manual pointing to find the hardware. I'm not sure how it works in Linux. Besides, you may be missing the bus controller driver.

Offline

#3 2015-10-08 11:12:11

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,167

Re: [SOLVED] Compiling only a module (ISL29018), but not the entire kernel

Have you tried this package : https://aur.archlinux.org/packages/isl29018_driver/ ?

Edit : that package looks weird, as there are no sources included.
Either way, creating a PKGBUILD seems a better solution then that script.

Although it's outdated, https://wiki.archlinux.org/index.php/Ke … guidelines might be helpful.
I do agree with that wiki page nvidia package is a good starting point.

Last edited by Lone_Wolf (2015-10-08 11:21:39)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2015-10-08 13:00:54

nariox
Member
Registered: 2014-03-19
Posts: 128

Re: [SOLVED] Compiling only a module (ISL29018), but not the entire kernel

Thank you two,

I've actually recompiled the kernel following another user's suggestions (who has his ISL29018 working), but to no avail. Maybe there's nothing wrong with my script afterall.

Ideally, I'd like to write a dkms package to take care of any kernel, but I'm toying first with the script. The AUR package actually only works for linux=4.2 in the core repo (which is fine, but I've been using 4.1-ck still because 4.2 has some nasty regressions for my intel graphics).

Offline

#5 2015-10-13 13:16:51

nariox
Member
Registered: 2014-03-19
Posts: 128

Re: [SOLVED] Compiling only a module (ISL29018), but not the entire kernel

Actually, just found out my board most likely does not have an ISL29018. Acer stopped including them in some models... Oh bummer... Will mark as solved.

Offline

Board footer

Powered by FluxBB