Seite 1 von 1

Mint 19 interner SD card reader [gelöst]

Verfasst: So 30. Sep 2018, 12:57
von eltorro
hallo liebe Mitstreiter,

Ein Thema welches mich beschäftigt ist der im NB integrierte SD Card Reader...

Code: Alles auswählen

# Bus 003 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader
im NB Acer VN7 591
Bisher abgeklärt:exfat-utils installiert
SD 128 GB exfat Karte funktioniert
-mit Win10 im NB
-mit Mint 19 im Externen Card Reader
Interner Card Reader mit Mint 19
- funktioniert bis 64 GB

Da die HW technisch funktioniert
Gehe ich davon aus dass der Treiber nicht so ganz der Richtige ist :oops:

Versuche den Realtek Treiber zu installieren scheiterten mit "make"

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Code: Alles auswählen

sed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.h
cp -f ./define.release ./define.h
make -C /lib/modules/4.15.0-34-generic/build/ SUBDIRS=/home/et/Downloads/rts_pstor modules
make[1]: Verzeichnis „/usr/src/linux-headers-4.15.0-34-generic“ wird betreten
  CC [M]  /home/et/Downloads/rts_pstor/rtsx.o
/home/et/Downloads/rts_pstor/rtsx.c:275:3: error: ‘struct scsi_host_template’ has no member named ‘proc_info’; did you mean ‘show_info’?
  .proc_info =   proc_info,
   ^~~~~~~~~
   show_info
/home/et/Downloads/rts_pstor/rtsx.c:275:17: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .proc_info =   proc_info,
                 ^~~~~~~~~
/home/et/Downloads/rts_pstor/rtsx.c:275:17: note: (near initialization for ‘rtsx_host_template.proc_dir’)
In file included from ./include/linux/printk.h:7:0,
                 from ./include/linux/kernel.h:14,
                 from ./arch/x86/include/asm/percpu.h:45,
                 from ./arch/x86/include/asm/current.h:6,
                 from ./include/linux/sched.h:12,
                 from ./include/linux/blkdev.h:5,
                 from /home/et/Downloads/rts_pstor/rtsx.c:23:
/home/et/Downloads/rts_pstor/rtsx.c: In function ‘rtsx_control_thread’:
./include/linux/kern_levels.h:5:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u64 {aka long long unsigned int}’ [-Wformat=]
 #define KERN_SOH "\001"  /* ASCII Start Of Header */
                  ^
./include/linux/kern_levels.h:11:18: note: in expansion of macro ‘KERN_SOH’
 #define KERN_ERR KERN_SOH "3" /* error conditions */
                  ^~~~~~~~
/home/et/Downloads/rts_pstor/rtsx.c:530:11: note: in expansion of macro ‘KERN_ERR’
    printk(KERN_ERR "Bad target number (%d:%d)\n",
           ^~~~~~~~
/home/et/Downloads/rts_pstor/rtsx.c:530:44: note: format string is defined here
    printk(KERN_ERR "Bad target number (%d:%d)\n",
                                           ~^
                                           %lld
In file included from ./include/linux/printk.h:7:0,
                 from ./include/linux/kernel.h:14,
                 from ./arch/x86/include/asm/percpu.h:45,
                 from ./arch/x86/include/asm/current.h:6,
                 from ./include/linux/sched.h:12,
                 from ./include/linux/blkdev.h:5,
                 from /home/et/Downloads/rts_pstor/rtsx.c:23:
./include/linux/kern_levels.h:5:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u64 {aka long long unsigned int}’ [-Wformat=]
 #define KERN_SOH "\001"  /* ASCII Start Of Header */
                  ^
./include/linux/kern_levels.h:11:18: note: in expansion of macro ‘KERN_SOH’
 #define KERN_ERR KERN_SOH "3" /* error conditions */
                  ^~~~~~~~
/home/et/Downloads/rts_pstor/rtsx.c:536:11: note: in expansion of macro ‘KERN_ERR’
    printk(KERN_ERR "Bad LUN (%d:%d)\n",
           ^~~~~~~~
/home/et/Downloads/rts_pstor/rtsx.c:536:34: note: format string is defined here
    printk(KERN_ERR "Bad LUN (%d:%d)\n",
                                 ~^
                                 %lld
/home/et/Downloads/rts_pstor/rtsx.c: At top level:
/home/et/Downloads/rts_pstor/rtsx.c:916:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtsx_probe’
 static int __devinit rtsx_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
                      ^~~~~~~~~~
/home/et/Downloads/rts_pstor/rtsx.c:1080:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtsx_remove’
 static void __devexit rtsx_remove(struct pci_dev *pci)
                       ^~~~~~~~~~~
/home/et/Downloads/rts_pstor/rtsx.c:1106:11: error: ‘rtsx_probe’ undeclared here (not in a function); did you mean ‘rtsx_writel’?
  .probe = rtsx_probe,
           ^~~~~~~~~~
           rtsx_writel
/home/et/Downloads/rts_pstor/rtsx.c:1107:12: error: implicit declaration of function ‘__devexit_p’; did you mean ‘__exit_p’? [-Werror=implicit-function-declaration]
  .remove = __devexit_p(rtsx_remove),
            ^~~~~~~~~~~
            __exit_p
/home/et/Downloads/rts_pstor/rtsx.c:1107:24: error: ‘rtsx_remove’ undeclared here (not in a function); did you mean ‘rtsx_resume’?
  .remove = __devexit_p(rtsx_remove),
                        ^~~~~~~~~~~
                        rtsx_resume
/home/et/Downloads/rts_pstor/rtsx.c:816:13: warning: ‘rtsx_init_options’ defined but not used [-Wunused-function]
 static void rtsx_init_options(struct rtsx_chip *chip)
             ^~~~~~~~~~~~~~~~~
/home/et/Downloads/rts_pstor/rtsx.c:790:12: warning: ‘rtsx_scan_thread’ defined but not used [-Wunused-function]
 static int rtsx_scan_thread(void * __dev)
            ^~~~~~~~~~~~~~~~
/home/et/Downloads/rts_pstor/rtsx.c:780:13: warning: ‘release_everything’ defined but not used [-Wunused-function]
 static void release_everything(struct rtsx_dev *dev)
             ^~~~~~~~~~~~~~~~~~
/home/et/Downloads/rts_pstor/rtsx.c:745:13: warning: ‘quiesce_and_remove_host’ defined but not used [-Wunused-function]
 static void quiesce_and_remove_host(struct rtsx_dev *dev)
             ^~~~~~~~~~~~~~~~~~~~~~~
/home/et/Downloads/rts_pstor/rtsx.c:596:12: warning: ‘rtsx_polling_thread’ defined but not used [-Wunused-function]
 static int rtsx_polling_thread(void * __dev)
            ^~~~~~~~~~~~~~~~~~~
/home/et/Downloads/rts_pstor/rtsx.c:485:12: warning: ‘rtsx_control_thread’ defined but not used [-Wunused-function]
 static int rtsx_control_thread(void * __dev)
            ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/home/et/Downloads/rts_pstor/rtsx.o' failed
make[2]: *** [/home/et/Downloads/rts_pstor/rtsx.o] Error 1
Makefile:1552: recipe for target '_module_/home/et/Downloads/rts_pstor' failed
make[1]: *** [_module_/home/et/Downloads/rts_pstor] Error 2
make[1]: Verzeichnis „/usr/src/linux-headers-4.15.0-34-generic“ wird verlassen
Makefile:35: recipe for target 'default' failed
make: *** [default] Error 2
**********************************************************************************************************
Hat jemand schon diese Hürde genommen und hat einen guten Tipp für mich?

Danke für Euer Feedback

et

Re: Mint 19 interner SD card reader

Verfasst: So 30. Sep 2018, 13:17
von Webbutterfly
Hmmm... also wenn du mit ExFAT formatiern möchtest, so ist das standardmäßig in Linux enthalten...
Extra Treiber installieren ist sicher nicht notwendig, bzw. eher schlecht und... wie du siehst problematisch
Schau dir das mal an: https://wiki.ubuntuusers.de/exFAT/

PS: Bitte alle Ausgaben des Terminal unter <code> </code> stellen mit eckiger Klammer [] schau hier: https://www.youtube.com/watch?v=Dbjuu4HmvlY
Damit wird das Ganze übersichtlicher und du brauchst keine *** machen ;)

Re: Mint 19 interner SD card reader

Verfasst: So 30. Sep 2018, 14:06
von Webbutterfly
Nachtrag:
Vielleicht hilft dir das...
https://itsfoss.com/mount-exfat/

nicht übersehen!
https://de.wikipedia.org/wiki/File_Allo ... able#exFAT
exFAT ist ein 2006 eingeführtes Microsoft-Dateisystem für Flash-Speicher wie USB-Sticks und SD-Karten. Es ist proprietär und Microsoft besitzt Patente auf mehrere Elemente seines Designs.
Hier eine Möglichkeit unter Ubuntu mit EXFAT zu formatieren...
Programm: Laufwerke
Bild

Re: Mint 19 interner SD card reader

Verfasst: So 30. Sep 2018, 14:35
von eltorro
Danke für das Feedback!

code.. Alles Klar :ugeek:

Die komplette exfat geschichte kenne ich und funktioniert auch (mit externem Card Rader) mit 128GB.

Bloss der Interne hört bei 64GB auf. (nur bei Linux... mit Winxxx nimmt er auch die 128GB)


Danke


et

Re: Mint 19 interner SD card reader

Verfasst: Mo 17. Dez 2018, 07:59
von eltorro
Gelöst ;)

Tip von Gihub
https://github.com/asymingt/rts5139
Checkout, build and install the replacement driver.

cd /tmp
git clone https://github.com/asymingt/rts5139.git
cd rts5139
make
sudo make install

Blacklist the problematic modules by adding the following lines to /etc/modprobe.d/blacklist.conf.

blacklist rtsx_usb_sdmmc
blacklist rtsx_usb_ms
blacklist rtsx_usb

Then, make sure you disable module autoloading (and also in the initial RAM filesystem)

sudo depmod -a
sudo update-initramfs -u

Reboot, and check to see if the card reader works.
SG

ET