Card reader drivers linux

Драйвер для картридера?

Где найти драйвер для linux для картридера?

скорее всего, он уже есть в системе

Он уже есть. Опиши проблему. Хочешь чтобы у тебя в Nautilus/Konqueror было подписано что есть SD, а что CF? Это есть уже очень очень много лет.

> Если он там есть как его установить?

>Он уже есть. Опиши проблему. Хочешь чтобы у тебя в Nautilus/Konqueror было подписано что есть SD, а что CF? Это есть уже очень очень много лет.

Да, я хочу чтобы sd показывалась в Nautilus

подгрузить нужный модуль командой modprobe

>подгрузить нужный модуль командой modprobe

А как это сделать, можно ссылку?

Что за картридер? Уверены, что ничего не работает? Что говорит команда dmesg | tail после подключения карты памяти?

Я смотрел man modprobe, но не понял как включить поддержку картридера, можно ссылку с примером?

А ты не подумал, что для этого, как минимум, нам необходимо знать, что это за кардридер?!

[code] [179996.520617] sd 9:0:0:0: [sdb] Assuming drive cache: write through [179996.525859] sd 9:0:0:0: [sdb] Assuming drive cache: write through [179996.525869] sdb: sdb1 [179996.532360] sd 9:0:0:0: [sdb] Assuming drive cache: write through [179996.532366] sd 9:0:0:0: [sdb] Attached SCSI removable disk [179997.408512] SELinux: initialized (dev sdb1, type vfat), uses genfs_contexts [180406.224395] usb 1-1: USB disconnect, address 13 [180463.630038] mmc0: error -110 whilst initialising SD card [180640.333026] mmc0: error -110 whilst initialising SD card [181340.087030] mmc0: error -110 whilst initialising SD card [/code]

А как узнать какой картридер?

Да, я хочу чтобы sd показывалась в Nautilus

То есть после втыкания SD-карточки в ридер ничего не происходит?

Нужна следующая информация:

  • Версия дистрибутива.
  • Когда софт в последний раз обновлялся.
  • Модель SD-карточки.
  • uname -a
  • lspci -nn
  • lsusb
  • dmesg после втыкания карточки.

Источник

Card reader drivers linux

у меня версия ядра 4.8 и картридер rts5229 не работает
при выполнении команды make (папка родного драйвера) выдает:

/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c:148:55: error: macro «__DATE__» might prevent reproducible builds [-Werror=date-time]
SPRINTF(» Build: %s, %s\n», __DATE__, __TIME__);
^
/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c:148:55: error: macro «__TIME__» might prevent reproducible builds [-Werror=date-time]
/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c: At top level:
/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c:266:2: error: unknown field ‘proc_info’ specified in initializer
.proc_info = proc_info,
^
/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c:266:17: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.proc_info = proc_info,
^

/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c:266:17: note: (near initialization for ‘rtsx_host_template.proc_dir’)
In file included from ./include/linux/printk.h:6:0,
from ./include/linux/kernel.h:13,
from ./include/linux/sched.h:17,
from ./include/linux/blkdev.h:4,
from /media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c:23:
/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c: In function ‘rtsx_control_thread’:
./include/linux/kern_levels.h:4:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u64 ’ [-Wformat=]
#define KERN_SOH «\001» /* ASCII Start Of Header */
^
./include/linux/kern_levels.h:10:18: note: in expansion of macro ‘KERN_SOH’
#define KERN_ERR KERN_SOH «3» /* error conditions */
^

Читайте также:  Посмотреть дерево процессов linux

/media/sda2/DISTRIBS/OS/Linux/distr/rts5229/rtsx.c:521:11: note: in expansion of macro ‘KERN_ERR’
printk(KERN_ERR «Bad target number (%d:%d)\n»,
^

./include/linux/kern_levels.h:4:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘u64 ’ [-Wformat=]
#define KERN_SOH «\001» /* ASCII Start Of Header */
^
./include/linux/kern_levels.h:10:18: note: in expansion of macro ‘KERN_SOH’
#define KERN_ERR KERN_SOH «3» /* error conditions */

Любые редактирования файлов дистрибутива родного драйвера по советам из интернета не помогают, ошибки те же выскакивают, драйвер не устанавливается.

Источник

Ubuntu Documentation

Many computers contain readers for SD, MMC, SM, MS, CF, and other storage media cards. These should be automatically detected and mounted . Here are some troubleshooting steps if they are not:

Make sure that the card is put in correctly. Many cards look as though they are upside down when correctly inserted. Also make sure that the card is firmly seated in the slot; some cards, especially CF, require a small amount of force to insert correctly. (Be careful not to push too hard! If you come up against something solid, do not force it.)

Open Files from the Activities overview. Does the inserted card appear in the left sidebar? Sometimes the card appears in this list but is not mounted; click it once to mount. (If the sidebar is not visible, press F9 or click Files in the top bar and select the Sidebar .)

If your card does not show up in the sidebar, press Ctrl + L , then type computer:/// and press Enter . If your card reader is correctly configured, the reader should come up as a drive when no card is present, and the card itself when the card has been mounted.

If you see the card reader but not the card, the problem may be with the card itself. Try a different card or check the card on a different reader if possible.

If no cards or drives are shown when browsing the Computer location, it is possible that your card reader does not work with Linux due to driver issues. If your card reader is internal (inside the computer instead of sitting outside) this is more likely. The best solution is to directly connect your device (camera, cell phone, etc.) to a USB port on the computer. USB external card readers are also available, and are far better supported by Linux.

Источник

Thread: How to Install SD Card Reader ENE Technology, Inc. (USB)

Thread Tools
Display

How to Install SD Card Reader ENE Technology, Inc. (USB)

Howto get your netbook SD card reader working (this article is a litle modification from http://community.linuxmint.com/tutorial/view/309)
This is a summary of the steps necessary to get my SD card reader working on MSI Wind like netbook running. It involves downloading, building and installing the driver module.
This is also relevant to other laptops/netbooks using the same internal card reader (ENE Technology UB6250).
The source for this solution was https://bugs.launchpad.net/ubuntu/+s. ux/+bug/530277. All credit goes to its contributors.
Disclaimer: Whilst I foresee no problems with this you copy the actions in this summary entirely at your own risk.

1. Confirm that you have the relevant SD card reader that is not working and check kernel version.
2. Install building tools.
3. Download the driver module source.
4. Extract the source files from the package.
5. Build and install the module.
6. Load the module and test.

Читайте также:  Как отключить подпись драйверов windows 10 home

1. Confirm that you have the same type of non-working SD card reader.

Insert an SD card into the card reader.

At a terminal type:

you should see output like this:

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0cf2:6250 ENE Technology, Inc.
Bus 001 Device 002: ID 0402:9665 ALi Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The 0cf2:6250 confirms you have the correct SD card reader for this howto.

Remove the SD card.

Check that your kernel:

2. Install building tools.

$ sudo apt install build-essential

3. Download the driver module source.

Download this file:

back to top
4. Extract the package keucr.tgz

From a terminal cd to a working directory of your choice and extract the tar ball with:

edit usb.c ($gedit usb.c) and change this:

If your kernel is = 2.6.34 put:

5. Build and install the module.

$ make -C /usr/src/linux-headers-`uname -r` M=`pwd`

$ sudo make -C /usr/src/linux-headers-`uname -r` O=/lib/modules/`uname -r`/build M=`pwd` modules_install

update your initrd:

$ sudo update-initramfs -u -k `uname -r`

Insert your SD card.

See if it appears in Computer.

It should be mounted under /media.

At a terminal check that the module keucr is loaded with

Check that the module keucr.ko is available with:

$ modprobe -l keucr

$ ls /lib/modules/`uname -r`/build/extra

Add keucr to /etc/modules listing:

$ sudo gedit /etc/modules

This file seens like that:

If no success please refer to the thread for more info and background. It worked for me. Good luck!

Last edited by Wilian; June 6th, 2011 at 08:37 PM .

Re: How to Install SD Card Reader ENE Technology, Inc. (USB)

I’m actually having problems with this bug, and with the solution proposed as well.

I’m running Xubuntu 12.04 (more than a fresh install) on an Emachines e350 (ENE’s card reader).

I’m aware about the discussion on the Official Bug Report (and I’ll post there also) but my problem is that I can’t actually build the keucr module on my system.

With regards to the solution proposed in this thread, the compiling process stops because the compiler can’t find a bunch of defines, more specifically:

Читайте также:  Npm install linux centos

#define US_PR_BULK 0x50
#define US_SC_SCSI 0x06
#define US_PR_CBI 0x00
#define US_SC_CYP_ATACB 0xf1
#define US_PR_CB 0x01
#define US_SC_UFI 0x04
#define US_PR_DPCM_USB 0xf0
#define US_SC_RBC 0x01

which in previous versions of the kernel were defined in usb_usual.h .
By adding these defines to usb.h file in the keucr directory, you are actually able to compile the module without mistakes.

But of course, I guess this is not a proper solution to apply. In fact, at the end, it still doesn’t work.

Thus, I am still searching for a proper solution of the problem.

What I can say is that before upgrading to Xubuntu 12.04 I was running Ubuntu Maverick 10.10 . At that time I had the Card Reader working by simply upgrading the kernel to 2.38.XX (I can’t remember the XX part^^) — while keeping Maverick.
So this could be a good hint for further investigation on this bug.

I hope this problem will be solved in a short time but I guess this won’t be the case, unless a lot of people start to face the same issue by upgrading their systems.

If you are aware about other solutions, or if I’m missing some part, please let me know.
Thanks and best regards.

In any case I’ll keep an eye on this thread!

Источник

Записки на полях

Грабли, на которые я наступил. Руководства, инструкции, ощущения.

вторник, 13 марта 2018 г.

Ubuntu. Не работает картридер в ноутбуке

Статья — вольный перевод рекомендации из ветки на AskUbuntu.com.

Проблема. Не работает встроенные в ноутбук картридер.

В выводе команды lspci есть похожая строка:

13:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)

Как исправить (опробовано на версии 17.10). Нужен модуль ядра (драйвер). Те, что идут с дистрибутивом не подходят. На сайте производителя модуля, компании Realtek, есть исходник модуля под старую версию Linux от июля 2012 года. Рекомендации, как их использовать, тоже есть в Интернете — надо немного подправить код и собрать модуль.

Но кто-то это уже сделал за нас и выложил на Github.

Итак,

  1. Устанавливаем, нужные для сборки пакеты:
    sudo apt-get install git dkms
  2. Переходим в папку /usr/src:
    cd /usr/src
  3. Загружаем исходники с GitHub:
    sudo git clone https://github.com/chrisnew/rts_pstor.git rts_pstor-1.11
  4. Собираем и устанавливаем командой dkms (в исходной статье и на GitHub ошибка — вместо «-» стоит «/»:
    sudo dkms install rts_pstor-1.11
  5. Если сборка прошла успешно, загружаем модуль:
    sudo modprobe rts_pstor
  6. Должно работать. Перезагрузка не требуется. Проверяем командой lspci:
    Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
    и командой dmesg при вставленной флешке
    [ 744.395191] Initializing Realtek PCIE storage driver.
    [ 903.017115] mmc0: new high speed SDHC card at address 1234
    [ 903.052409] mmcblk0: mmc0:1234 SA16G 14.6 GiB
    [ 903.054433] mmcblk0: p1
  • Всё.
  • Есть еще рекомендации использовать модуль ядра «tifm_sd». Но также есть свидетельства, что может отвалиться Wi-Fi и/или слететь управление электропитанием.

    Источник

    Оцените статью