0 Members and 1 Guest are viewing this topic.
harry@biker1:~$ uname -aLinux biker1 3.14.3-dreamlinux-liquorix #1 ZEN SMP PREEMPT Wed May 14 17:21:07 CEST 2014 i686 athlon i686 GNU/Linuxharry@biker1:~$ free total used free shared buffers cachedMem: 3736904 825844 2911060 9084 29568 351124-/+ buffers/cache: 445152 3291752Swap: 0 0 0harry@biker1:~$ dpkg --list | grep linux-imageii linux-image-3.13.0-24-generic 3.13.0-24.47 i386 Linux kernel image for version 3.13.0 on 32 bit x86 SMPii linux-image-3.14.3-dreamlinux-liquorix 1 i386 Linux kernel binary image for version 3.14.3-dreamlinux-liquorixii linux-image-extra-3.13.0-24-generic 3.13.0-24.47 i386 Linux kernel extra modules for version 3.13.0 on 32 bit x86 SMP
harry@biker1:~$ dpkg --list | grep linux-headersii linux-headers-3.13.0-24 3.13.0-24.47 all Header files related to Linux kernel version 3.13.0ii linux-headers-3.13.0-24-generic 3.13.0-24.47 i386 Linux kernel headers for version 3.13.0 on 32 bit x86 SMPii linux-headers-3.14.3-dreamlinux-liquorix 1 i386 Header files related to Linux kernel, specifically,
harry@biker1:~$ sudo update-grub[sudo] password for harry: Generating grub configuration file ...Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.Found linux image: /boot/vmlinuz-3.14.3-dreamlinux-liquorixFound initrd image: /boot/initrd.img-3.14.3-dreamlinux-liquorixFound linux image: /boot/vmlinuz-3.13.0-24-genericFound initrd image: /boot/initrd.img-3.13.0-24-genericFound memtest86+ image: /boot/memtest86+.elfFound memtest86+ image: /boot/memtest86+.bindoneharry@biker1:~$ i
harry@biker1:~$ sudo parted -l[sudo] password for harry: Model: ATA APPLE SSD SM128 (scsi)Disk /dev/sda: 121GBSector size (logical/physical): 512B/512BPartition Table: gptNumber Start End Size File system Name Flags 1 1049kB 9438MB 9437MB ext4 2 9438MB 121GB 112GB ext3Model: SD SD08G (sd/mmc)Disk /dev/mmcblk0: 7948MBSector size (logical/physical): 512B/512BPartition Table: msdosNumber Start End Size Type File system Flags 1 32.3kB 7946MB 7946MB primary fat32
harry@biker1:~$ sudo update-grub[sudo] password for harry: Generating grub configuration file ...Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.Found linux image: /boot/vmlinuz-3.13.0-24-genericFound initrd image: /boot/initrd.img-3.13.0-24-genericFound memtest86+ image: /boot/memtest86+.elfFound memtest86+ image: /boot/memtest86+.bindoneharry@biker1:~$ sudo parted -lModel: ATA APPLE SSD SM128 (scsi)Disk /dev/sda: 121GBSector size (logical/physical): 512B/512BPartition Table: gptNumber Start End Size File system Name Flags 1 1049kB 9438MB 9437MB ext4 2 9438MB 121GB 112GB ext3Model: SD SU16G (sd/mmc)Disk /dev/mmcblk0: 15.9GBSector size (logical/physical): 512B/512BPartition Table: msdosNumber Start End Size Type File system Flags 1 1049kB 15.9GB 15.9GB primary fat32 boot
harry@biker1:~$ lspci -knn<snip>02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader [10ec:5209] (rev 01) Subsystem: Hewlett-Packard Company Device [103c:3577]<snip>
$ inxi -zv7System: Host: biker1 Kernel: 3.15.0-linuxlite i686 (32 bit gcc: 4.6.3) Desktop: Xfce 4.11.6 (Gtk 2.24.23) info: xfce4-panel dm: lightdm Distro: Ubuntu 14.04 trusty Machine: System: Hewlett-Packard (portable) product: Presario CQ57 Notebook PC v: 068C110003204910000620100 Mobo: Hewlett-Packard model: 3577 v: 24.48 Bios: Hewlett-Packard v: F.42 date: 11/07/2011 Chassis: type: 10CPU: Dual core AMD C-50 (-MCP-) cache: 1024 KB flags: (lm nx pae sse sse2 sse3 sse4a ssse3 svm) bmips: 3991 Clock Speeds: 1: 1000 MHz 2: 800 MHzMemory: Using dmidecode: you must be root to run dmidecodeGraphics: Card: Advanced Micro Devices [AMD/ATI] Wrestler [Radeon HD 6250] bus-ID: 00:01.0 chip-ID: 1002:9804 Display Server: X.Org 1.15.1 drivers: ati,radeon (unloaded: fbdev,vesa) Resolution: [email protected] GLX Renderer: Gallium 0.4 on AMD PALM GLX Version: 3.0 Mesa 10.1.3 Direct Rendering: YesAudio: Card Advanced Micro Devices [AMD/ATI] SBx00 Azalia (Intel HDA) driver: snd_hda_intel bus-ID: 00:14.2 chip-ID: 1002:4383 Sound: Advanced Linux Sound Architecture v: k3.15.0-linuxliteNetwork: Card-1: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller driver: r8169 v: 2.3LK-NAPI port: 2000 bus-ID: 06:00.0 chip-ID: 10ec:8136 IF: em1 state: down mac: <filter> Card-2: Ralink RT5390 Wireless 802.11n 1T/1R PCIe driver: rt2800pci v: 2.3.0 bus-ID: 07:00.0 chip-ID: 1814:5390 IF: wlan1 state: up mac: <filter> WAN IP: <filter> IF: em1 ip: N/A ip-v6: N/A IF: wlan1 ip: <filter> ip-v6: <filter> Drives: HDD Total Size: 121.3GB (19.2% used) ID-1: /dev/sda model: APPLE_SSD_SM128 size: 121.3GB serial: DFKU604844ED440 Optical: /dev/sr0 model: hp DVDRAM GT31L rev: MR52 dev-links: cdrom Features: speed: 24x multisession: yes audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r,dvd-ram state: running Partition: ID-1: / size: 8.6G used: 4.7G (58%) fs: ext4 dev: /dev/sda1 label: / uuid: 24580b54-b3d7-418a-96f2-6bbbf1ccccff ID-2: /home size: 103G used: 18G (18%) fs: ext3 dev: /dev/sda2 label: /home uuid: 65f560b2-63b4-41e0-9d4e-4597d237493bRAID: System: supported: N/A No RAID devices: /proc/mdstat, md_mod kernel module present Unused Devices: noneUnmounted: No unmounted partitions detectedSensors: System Temperatures: cpu: 61.0C mobo: N/A gpu: 61.0 Fan Speeds (in rpm): cpu: N/A Info: Processes: 159 Uptime: 2:55 Memory: 523.8/3646.9MB Init: Upstart v: 1.12.1 runlevel: 2 default: 2 Gcc sys: 4.8.2 Client: Shell (bash 4.3.111 running in x-terminal-emul) inxi: 2.2.1
$ sudo modprobe rts_pstor[sudo] password for harry: modprobe: FATAL: Module rts_pstor not found.
harry@biker1:~$ cd Downloadsharry@biker1:~/Downloads$ lsrts_pstor rts_pstor.tar.bz2harry@biker1:~/Downloads$ cd rts_pstorharry@biker1:~/Downloads/rts_pstor$ lsdebug.h ms.c rtsx_chip.c rtsx_transport.c timestamp.indefine.debug ms.h rtsx_chip.h rtsx_transport.h trace.hdefine.release README.txt rtsx.h sd.c xd.cgeneral.c rtsx.c rtsx_scsi.c sd.h xd.hgeneral.h rtsx_card.c rtsx_scsi.h spi.cMakefile rtsx_card.h rtsx_sys.h spi.hharry@biker1:~/Downloads/rts_pstor$ makesed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.hcp -f ./define.release ./define.hmake -C /lib/modules/3.15.0-linuxlite/build/ SUBDIRS=/home/harry/Downloads/rts_pstor modulesmake[1]: Entering directory `/usr/src/linux-headers-3.15.0-linuxlite' CC [M] /home/harry/Downloads/rts_pstor/rtsx.o/home/harry/Downloads/rts_pstor/rtsx.c:275:2: error: unknown field ‘proc_info’ specified in initializer .proc_info = proc_info, ^/home/harry/Downloads/rts_pstor/rtsx.c:275:2: warning: initialization from incompatible pointer type [enabled by default]/home/harry/Downloads/rts_pstor/rtsx.c:275:2: warning: (near initialization for ‘rtsx_host_template.proc_dir’) [enabled by default]/home/harry/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/harry/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/harry/Downloads/rts_pstor/rtsx.c:1106:11: error: ‘rtsx_probe’ undeclared here (not in a function) .probe = rtsx_probe, ^/home/harry/Downloads/rts_pstor/rtsx.c:1107:2: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration] .remove = __devexit_p(rtsx_remove), ^/home/harry/Downloads/rts_pstor/rtsx.c:1107:24: error: ‘rtsx_remove’ undeclared here (not in a function) .remove = __devexit_p(rtsx_remove), ^/home/harry/Downloads/rts_pstor/rtsx.c:485:12: warning: ‘rtsx_control_thread’ defined but not used [-Wunused-function] static int rtsx_control_thread(void * __dev) ^/home/harry/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/harry/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/harry/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/harry/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/harry/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) ^cc1: some warnings being treated as errorsmake[2]: *** [/home/harry/Downloads/rts_pstor/rtsx.o] Error 1make[1]: *** [_module_/home/harry/Downloads/rts_pstor] Error 2make[1]: Leaving directory `/usr/src/linux-headers-3.15.0-linuxlite'make: *** [default] Error 2harry@biker1:~/Downloads/rts_pstor$
PCIE RTS5209 card reader driver for Linux V1.10 2012/7/12
to remove __devinit keywords from rtsx.c file.Open the file with a text editor and modify lines 916, 1080 and 1107:
/* Driver for Realtek PCI-Express card reader * * Copyright(c) 2009 Realtek Semiconductor Corp. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, see <http: * * Author: * wwang ([email protected]) * No. 450, Shenhu Road, Suzhou Industry Park, Suzhou, China<snip>Line 916: static int rtsx_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)<snip>Line 1080: static void rtsx_remove(struct pci_dev *pci)<snip>Line 1107: .remove = rtsx_remove,
harry@biker1:~/Downloads/rts_pstor$ makesed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.hcp -f ./define.release ./define.hmake -C /lib/modules/3.15.0-linuxlite/build/ SUBDIRS=/home/harry/Downloads/rts_pstor modulesmake[1]: Entering directory `/usr/src/linux-headers-3.15.0-linuxlite' CC [M] /home/harry/Downloads/rts_pstor/rtsx.o/home/harry/Downloads/rts_pstor/rtsx.c:275:2: error: unknown field ‘proc_info’ specified in initializer .proc_info = proc_info, ^/home/harry/Downloads/rts_pstor/rtsx.c:275:2: warning: initialization from incompatible pointer type [enabled by default]/home/harry/Downloads/rts_pstor/rtsx.c:275:2: warning: (near initialization for ‘rtsx_host_template.proc_dir’) [enabled by default]make[2]: *** [/home/harry/Downloads/rts_pstor/rtsx.o] Error 1make[1]: *** [_module_/home/harry/Downloads/rts_pstor] Error 2make[1]: Leaving directory `/usr/src/linux-headers-3.15.0-linuxlite'make: *** [default] Error 2harry@biker1:~/Downloads/rts_pstor$
@SamizdataDotOrg I got the same error. To fix it, I deleted the line .proc_name = .proc_name on line 274 of rtsx.c. After that, unload the dependencies and reload rts_pstor.