Am Wed, 13 Jul 2016 20:16:01 GMT
schrieb checkfrogger <checkfrogger@no-mx.forums.microfocus.com>:
> Good news, everything is working fine.
>
Nice.
> modinfo says
>
> Code:
> --------------------
> filename: /lib/modules/4.1.26-21-default/updates/drivers/mfd/rtsx_pci.ko
>
> --------------------
>
As expected and just to explain briefly what I did:
-
I took the source code from kernel 4.6.3 (as you can see in the package name)
and made it compile against the sources/headers of kernel 4.1.X.
-
This needed a rather simple patch but that was just in order to define some
new constant values unknown to the 4.1.x kernel, some of them being
parameters for the new hardware being added (i.e. your card reader).
So I was pretty optimistic that at least this part would be OK,
but …
> and modprobe says
>
> Code:
> --------------------
> insmod /lib/modules/4.1.26-21-default/kernel/drivers/mfd/mfd-core.ko
> insmod /lib/modules/4.1.26-21-default/updates/drivers/mfd/rtsx_pci.ko
>
> --------------------
>
… that was the main reason for me being very cautious about publishing.
As you can see there is a second module being loaded as a dependency and that
module (as you might guess by its name) is most likely used by many other
(card reader) drivers.
Now if it would not have worked due to an incompatibility of the “old” mfd-core
with the “new” rtsx_pci, I would have been at loss, because I am not really
keen on also packaging the mfd-core module in a KMP-package and by that changing
this core module (and all of its dependencies) for kernel 4.1.x.
This might have worked in making perhaps one or two new devices work but
possibly might have broken many other drivers at the same time.
THAT’s why I needed someone to test ASAP after publishing the packages.
>
> and then everything works with automount.
Evil laughter
“I love it, when a plan works”
Evil laughter
But seriously, there might be still a little step to ensure the driver will
“survive” a kernel upgrade of the openSUSE 42.1 kernel 4.1.x as long as that is
the default distro kernel.
So these are the steps:
- Add repo
zypper ar -f -c -r
http://download.opensuse.org/repositories/home:/Akoellh:/Kernelmodules/openSUSE_Leap_42.1_Update/home:Akoellh:Kernelmodules.repo
Adding repository ‘Kernel Modules for openSUSE
(openSUSE_Leap_42.1_Update)’ …[done]
Repository ‘Kernel Modules for openSUSE (openSUSE_Leap_42.1_Update)’
successfully added Enabled : Yes Autorefresh :
Yes GPG Check :
Yes Priority :
99 URI :
http://download.opensuse.org/repositories/home:/Akoellh:/Kernelmodules/openSUSE_Leap_42.1_Update/
- Refresh repo & accept signing key
zypper ref -r home_Akoellh_Kernelmodules
Retrieving repository ‘Kernel Modules for openSUSE (openSUSE_Leap_42.1_Update)’
metadata
---------------------------------------------------------------------------------------------------------------------]
New repository or package signing key received:
Repository: Kernel Modules for openSUSE (openSUSE_Leap_42.1_Update)
Key Name: home:Akoellh OBS Project
<home:Akoellh<AT>build.opensuse.org> Key Fingerprint: 40423C5F B92D61F3
19E51D74 C1EFE4F9 639EA1F1 Key Created: Sun Jan 11 13:09:15
2015 Key Expires: Tue Mar 21 13:09:15
2017 Rpm Name:
gpg-pubkey-639ea1f1-54b267eb
Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?
shows all options] (r): a Retrieving repository ‘Kernel Modules for openSUSE
(openSUSE_Leap_42.1_Update)’
metadata …[done]
Building repository ‘Kernel Modules for openSUSE (openSUSE_Leap_42.1_Update)’
cache …[done]
Specified repositories have been refreshed.
And you’re done as from now on you will receive updates to the package via zypper.
Notes for other people reading this thread:
- Why are there no packages for openSUSE 13.1/13.2?
- Because for the much older kernels 3.16.x/3.12.x/3.11.x I was not able to get that stuff to compile, so sorry, no packages for 13.1/13.2.
- Will there be packages for upcoming openSUSE 42.2 (or Tumbleweed)?
- No, as 42.2 will have kernel 4.4.x and Tumbleweed is at 4.6.x at the moment, so these packages won’t be necessary any more.
- What do I have to do before upgrading to 42.2?
- Delete my repo or update its url accordingly (to point to the -most likely then existing- URL for openSUSE_Leap_42.2_Update).
AK
–
Never attribute to malice that which can be adequately explained by stupidity.
(R.J. Hanlon)