openSUSE 13.1 and Realtek Semiconductor Co., Ltd. Device 5289 (rev 01)

Hi,

believe you can help me, this is my computer configuration

ASUS FC550CC-XX675H
openSUSE 13.1 64bit
kernel 3.14.4-2.gbebeb6f-default
LED 15,6"
Intel Core i3-3217U - 4GB di RAM
Nvidia GeForce GT720M 2GB
1TB Hard Disk,DVD dual layer, webcam, WiFi, HDMI, 2 USB, bluetooth, card reader

by running the command

**lspci**

I got:

**00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M / GT 620M/625M/630M/720M] (rev a1)
03:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5289 (rev 01)
04:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0a)**

But I can not install the driver closest from here:

http://software.opensuse.org/package/rts5229

When I download the package, Apper

**Error talking to packagekitd.**

and running the rpmbuild --rebuild rts5229-1.07-4.11.src.rpm command gives me error:


**Installazione di rts5229-1.07-4.11.src.rpm in corso
avvertimento: rts5229-1.07-4.11.src.rpm: Header V3 DSA/SHA1 Signature, ID chiave c86537de: NOKEY
errore: linea 28: I token delle dipendenze devono iniziare per alfanumerico, '_' o '/': BuildRequires:  %kernel_module_package_buildreqs**

Thanks
:’(

openSUSE 13.1 does not have kernel 3.14.4.
Where do you have that from?
Kernel:stable? Or are you using Tumbleweed in fact?

But I can not install the driver closest from here:

openSUSE Software

When I download the package, Apper

**Error talking to packagekitd.**

Yes, you cannot use Apper to compile or install a src rpm. You cannot really “install” a src rpm anyway.

and running the rpmbuild --rebuild rts5229-1.07-4.11.src.rpm command gives me error:


**Installazione di rts5229-1.07-4.11.src.rpm in corso
avvertimento: rts5229-1.07-4.11.src.rpm: Header V3 DSA/SHA1 Signature, ID chiave c86537de: NOKEY
errore: linea 28: I token delle dipendenze devono iniziare per alfanumerico, '_' o '/': BuildRequires:  %kernel_module_package_buildreqs**

Please post the output in english. Not everybody here speaks Italian.

LANG=C rpmbuild --rebuild rts5229-1.07-4.11.src.rpm

Apparently it is a problem with the %kernel_module_package_buildreqs macro though.
Do you have the appropriate kernel-syms for your kernel installed?
From the package’s description:

This package is needed for compiling kernel module packages with proper
package dependencies.

Try to unpack and compile the source directly, you should find it in ~/rpmbuild/SOURCES/.

This is my repo “kernel-default” but I don’t remember is Tumbleweed or not
http://download.opensuse.org/repositories/home:/Alsbz/openSUSE_13.1/

from here:
http://software.opensuse.org/package/kernel-default

Sorry :(, I forgot to translate…


Installing rts5229-1:07-4.11.src.rpm in progress 
Warning: rts5229-1:07-4.11.src.rpm: Header V3 DSA/SHA1 Signature, key ID c86537de: NOKEY
error: line 28: Dependency tokens must begin with alpha-numeric,  '_' or '/': BuildRequires:% kernel_module_package_buildreqs

I tried to compile with make, but


make
cp -f ./define.release ./define.h 
cp: can not stat of  ". / define.release": File or directory does not exist 
make: *** [default] Error 1

[QUOTE=Mahler;2644996]This is my repo “kernel-default” but I don’t remember is Tumbleweed or not
http://download.opensuse.org/repositories/home:/Alsbz/openSUSE_13.1/

from here:
http://software.opensuse.org/package/kernel-default

Sorry :(, I forgot to translate…


Installing rts5229-1:07-4.11.src.rpm in progress 
Warning: rts5229-1:07-4.11.src.rpm: Header V3 DSA/SHA1 Signature, key ID c86537de: NOKEY
error: line 28: Dependency tokens must begin with alpha-numeric,  '_' or '/': BuildRequires:% kernel_module_package_buildreqs

Apparently there is an offending space between the ‘%’ and the rest. Try to remove that in the spec file.
Or is that just a typo in your post? I don’t see that space in the package on OBS.

I tried to compile with make, but

make
cp -f ./define.release ./define.h
cp: can not stat of “. / define.release”: File or directory does not exist
make: *** [default] Error 1

Apparently the file define.release is missing in the archive. But define.debug is there, so try “make debug” instead of just “make”.

But AFAICS that pakage does not build for Factory (kernel 4.14) anyway. No idea about the kernel from 13.1 (3.11), it builds for 12.3 though.
You would need to patch it I suppose, but I don’t know how.

Sorry :(, I forgot the space

also make debug fail


cp -f ./define.debug ./define.h
cp: can not remove "./define.h": Permission denied 
make: *** [debug] Error 1

thank you anyway

???
You forgot the space?
In the error message is a space too much… :wink:

also make debug fail

cp -f ./define.debug ./define.h
cp: can not remove “./define.h”: Permission denied
make: *** [debug] Error 1

Try to run that as root, either use “su” or “sudo”.
Apparently you don’t have write permissions to ./define.h.

yes, I forgot to delete this space after my translation from italian

su
make debug


cp -f ./define.debug ./define.h
make -C /lib/modules/3.14.4-2.gbebeb6f-default/build/ SUBDIRS= modules
make[1]: Entering directory `/lib/modules/3.14.4-2.gbebeb6f-default/build'
make [1]: *** No rule to generate the target "modules". Stop.
make[1]: Leaving directory `/lib/modules/3.14.4-2.gbebeb6f-default/build'
make: *** [debug] Errore 2

Ah, ok.

su
make debug

cp -f ./define.debug ./define.h
make -C /lib/modules/3.14.4-2.gbebeb6f-default/build/ SUBDIRS= modules
make[1]: Entering directory /lib/modules/3.14.4-2.gbebeb6f-default/build' make [1]: *** No rule to generate the target "modules". Stop. make[1]: Leaving directory /lib/modules/3.14.4-2.gbebeb6f-default/build’
make: *** [debug] Errore 2

You don’t seem to have the necessary kernel development packages installed.
Please install kernel-syms matching to you kernel as I already wrote. You might need kernel-source as well.
And try to run “make prepare” or “make modules” inside the kernel source directory (/usr/src/linux)

OTOH, according to Linux Kernel Driver DataBase: CONFIG_MFD_RTSX_PCI: Realtek PCI-E card reader, a driver for that reader should already be contained in the standard kernel.
Can you please run this and post the output?

/sbin/modinfo rtsx_pci

Does it work with the standard 13.1 kernel maybe? (3.11)

:\ I have some problem with Yast, it does not install the packages. Usually happens when I have to try again after some time.

I did update the kernel because I’ve read that new kernel on ibrid intel/nvidia video card increasing battery life on laptop

This is the output of /sbin/modinfo rtsx_pci


# /sbin/modinfo rtsx_pci
filename:       /lib/modules/3.14.4-2.gbebeb6f-default/kernel/drivers/mfd/rtsx_pci.ko
description:    Realtek PCI-E Card Reader Driver
author:         Wei WANG <wei_wang@realsil.com.cn>
license:        GPL
srcversion:     C8107BAF45FBD86B956C2F4
alias:          pci:v000010ECd00005286sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005287sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005249sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005227sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005289sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005229sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005209sv*sd*bcFFsc*i*
depends:        mfd-core
intree:         Y
vermagic:       3.14.4-2.gbebeb6f-default SMP mod_unload modversions 
parm:           msi_en:Enable MSI (bool)

:open_mouth:

But my SD card reader does not read anything…
How can I reinstall this rtsx_pci.ko driver? or How can downgrade the kernel?

Error in Yast2:
Subprocess failed. Error: RPM failed: error: unpacking of archive failed on file /lib/modules/3.14.4-2.gbebeb6f-default/build: cpio: rename failed - Is a directory

error: kernel-default-devel-3.14.4-2.1.gbebeb6f.x86_64: install failed

Repo (from here: http://software.opensuse.org/package/kernel-syms?search_term=kernel-syms) for 3.14.4 kernel

And what error message do you get?
Maybe that happens when the update applet is looking for updates.

This is the output of /sbin/modinfon rtsx_pci


# /sbin/modinfo rtsx_pci
filename:       /lib/modules/3.14.4-2.gbebeb6f-default/kernel/drivers/mfd/rtsx_pci.ko
description:    Realtek PCI-E Card Reader Driver
author:         Wei WANG <wei_wang@realsil.com.cn>
license:        GPL
srcversion:     C8107BAF45FBD86B956C2F4
alias:          pci:v000010ECd00005286sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005287sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005249sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005227sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005289sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005229sv*sd*bcFFsc*i*
alias:          pci:v000010ECd00005209sv*sd*bcFFsc*i*
depends:        mfd-core
intree:         Y
vermagic:       3.14.4-2.gbebeb6f-default SMP mod_unload modversions 
parm:           msi_en:Enable MSI (bool)


:O 

But my SD card reader does not read anything...

But that module is installed and should support your reader.
What is the output of:

"/sbin/lspci -nnk | grep -A3 5289"

What happens when you manually try to load the driver:

sudo /sbin/modprobe -v rtsx_pci

Please post the output of “dmesg|tail” afterwards.

How can I reinstall this rtsx_pci.ko driver?

By re-installing the kernel package. But this should not be necessary as the driver is actually installed.

or How can downgrade the kernel?

Select “Versions” in YaST to specifically install/remove certain package versions.
But probably you still have it installed anyway. You can boot it in “Advanced Options” in the boot menu.

You already have a directory /lib/modules/3.14.4-2.gbebeb6f-default/build, but this should be a symlink.
Remove it and the installation should work:

sudo rm -r /lib/modules/3.14.4-2.gbebeb6f-default/build

My output:


Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device [10ec:5289] (rev 01)
Subsystem: ASUSTeK Computer Inc. Device [1043:202f]
Kernel driver in use: rtsx_pci
Kernel modules: rtsx_pci

Nothing

My output:


[36537.737056] SFW2-INext-DROP-DEFLT IN=wlp3s0 OUT= MAC= SRC=fe80:0000:0000:0000:6e71:d9ff:fea7:ea85 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
[37969.250312] nouveau E   PFIFO][0000:01:00.0] write fault at 0x0000000000 [INVALID_STORAGE_TYPE] from BAR3/BAR_WRITE on channel 0x003fe38000 [unknown]
[37969.250427] nouveau E   PFIFO][0000:01:00.0] write fault at 0x0000001000 [INVALID_STORAGE_TYPE] from BAR3/BAR_WRITE on channel 0x003fe38000 [unknown]
[37969.250756] nouveau E   PFIFO][0000:01:00.0] write fault at 0x0000104000 [INVALID_STORAGE_TYPE] from BAR3/BAR_WRITE on channel 0x003fe38000 [unknown]
[37969.250778] nouveau E   PFIFO][0000:01:00.0] write fault at 0x0000080000 [INVALID_STORAGE_TYPE] from BAR1/BAR_WRITE on channel 0x003fe1f000 [unknown]
[37969.250801] nouveau E   PFIFO][0000:01:00.0] write fault at 0x0000000000 [INVALID_STORAGE_TYPE] from BAR3/BAR_WRITE on channel 0x003fe38000 [unknown]
[37974.729063] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[37974.729539] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[37974.729964] nouveau E   PFIFO][0000:01:00.0] write fault at 0x0000000000 [INVALID_STORAGE_TYPE] from BAR1/BAR_WRITE on channel 0x003fe1f000 [unknown]
[37974.730041] nouveau !   PFIFO][0000:01:00.0] unhandled status 0x08000000

Uhm, :open_mouth: Should I remove the entire path or just build?

Yes, because it is already loaded.
No idea why it doesn’t work then.

Have you tried a 3.11 kernel as well?

My output:

[36537.737056] SFW2-INext-DROP-DEFLT IN=wlp3s0 OUT= MAC= SRC=fe80:0000:0000:0000:6e71:d9ff:fea7:ea85 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44
[37969.250312] nouveau E PFIFO][0000:01:00.0] write fault at 0x0000000000 [INVALID_STORAGE_TYPE] from BAR3/BAR_WRITE on channel 0x003fe38000 [unknown]
[37969.250427] nouveau E PFIFO][0000:01:00.0] write fault at 0x0000001000 [INVALID_STORAGE_TYPE] from BAR3/BAR_WRITE on channel 0x003fe38000 [unknown]
[37969.250756] nouveau E PFIFO][0000:01:00.0] write fault at 0x0000104000 [INVALID_STORAGE_TYPE] from BAR3/BAR_WRITE on channel 0x003fe38000 [unknown]
[37969.250778] nouveau E PFIFO][0000:01:00.0] write fault at 0x0000080000 [INVALID_STORAGE_TYPE] from BAR1/BAR_WRITE on channel 0x003fe1f000 [unknown]
[37969.250801] nouveau E PFIFO][0000:01:00.0] write fault at 0x0000000000 [INVALID_STORAGE_TYPE] from BAR3/BAR_WRITE on channel 0x003fe38000 [unknown]
[37974.729063] ACPI Warning: _SB_.PCI0.PEG0.PEGP.DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[37974.729539] ACPI Warning: _SB
.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[37974.729964] nouveau E PFIFO][0000:01:00.0] write fault at 0x0000000000 [INVALID_STORAGE_TYPE] from BAR1/BAR_WRITE on channel 0x003fe1f000 [unknown]
[37974.730041] nouveau ! PFIFO][0000:01:00.0] unhandled status 0x08000000

That’s unrelated because you did not actually load the module (as it has been loaded already during boot)

Only build.

Well, I remove only build and the installation is successful… but

I’m getting errors with the commands

make prepare


scripts/kconfig/conf --silentoldconfig Kconfig
make[1]: *** No rule to generate the target «/usr/src/linux-3.14.4-2.gbebeb6f/arch/x86/syscalls/syscall_32.tbl», necessary for «arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h».  Stop.
make: *** [archheaders] Error 2

make menuconfig

 
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
*** 
*** Install ncurses (ncurses-devel) and try again.                             
***                                                                            
make[1]: *** [scripts/kconfig/dochecklxdialog] Errore 1                         
make: *** [menuconfig] Error 2

make xconfig


  CHECK   qt
* Unable to find the QT4 tool qmake. Trying to use QT3
*
* Unable to find any QT installation. Please make sure that
* the QT4 or QT3 development package is correctly installed and
* either qmake can be found or install pkg-config or set
* the QTDIR environment variable to the correct location.
*
make[1]: *** No rule to generate the target «scripts/kconfig/.tmp_qtcheck», necessary for «scripts/kconfig/qconf.o».  Stop.
make: *** [xconfig] Error 2

make prepare


make[1]: *** No rule to generate the target «/usr/src/linux-3.14.4-2.gbebeb6f/arch/x86/syscalls/syscall_32.tbl», necessary for  «arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h».  Stop.
make: *** [archheaders] Error 2
linux-8yf3:/usr/src/linux # make modules
make[1]: *** No rule to generate the target  «/usr/src/linux-3.14.4-2.gbebeb6f/arch/x86/syscalls/syscall_32.tbl», necessary for «arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h».  Stop.
make: *** [archheaders] Error 2

Now I try to downgrade the kernel, if SD Card works then I keep the default kernel on 13.1

You don’t seem to have kernel-source installed.

And you should use “make oldconfig”, that would take your current kernel config.

After downgrade of kernel to the previous one, my SD card is now recognized and read. Thanks for your help and I apologize if I have wasted your time. Next time I will avoid so fresh updates if everything works! :\

Nice to hear that it’s working. :slight_smile:

Well, maybe something is missing in that kernel package you installed.
You could try to install the latest kernel from http://download.opensuse.org/repositories/Kernel:/stable/standard/ to see whether it works there.

If your reader works with Kernel 3.11 but not with 3.14, you might want to (should?) file a bugreport.