|
14 years ago 0 |
Insert an SD card into the card reader.
At a terminal type:
$ lsusb
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 is <2.6.37 with:
$ uname -r
At a terminal:
$ sudo apt install build-essential
Download this file:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/530277/+attachment/1712997/+files/keucr.tgz
From a terminal cd to a working directory of your choice and extract the tar ball with:
$ cd <working directory path>
$ tar zxvf <path to downloaded file>/keucr.tgz
$ cd keucr
$ 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
$ sudo depmod -a
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
$ lsmod
Check that the module keucr.ko is available with:
$ modprobe -l keucr
$ ls /lib/modules/`uname -r`/build/extra
If no success please refer to the thread for more info and background. It worked for me. Good luck!
Help!! I've been trying for days to follow the instructions in this tutorial, to no effect. The problem is the compile step. i finally found a .deb package of the module, but it also needs to compile. Here are the error msgs it gave me:
make: Entering directory `/usr/src/linux-headers-3.2.0-2-486'
LD /var/lib/dkms/keucr/0.0.1/build/built-in.o
CC [M] /var/lib/dkms/keucr/0.0.1/build/usb.o
/var/lib/dkms/keucr/0.0.1/build/usb.c: In function ‘get_transport’:
/var/lib/dkms/keucr/0.0.1/build/usb.c:346:7: error: ‘US_PR_BULK’ undeclared (first use in this function)
/var/lib/dkms/keucr/0.0.1/build/usb.c:346:7: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/keucr/0.0.1/build/usb.c: In function ‘get_protocol’:
/var/lib/dkms/keucr/0.0.1/build/usb.c:370:7: error: ‘US_SC_SCSI’ undeclared (first use in this function)
/var/lib/dkms/keucr/0.0.1/build/usb.c: In function ‘get_pipes’:
/var/lib/dkms/keucr/0.0.1/build/usb.c:421:44: error: ‘US_PR_CBI’ undeclared (first use in this function)
/var/lib/dkms/keucr/0.0.1/build/usb.c: In function ‘usb_stor_scan_thread’:
/var/lib/dkms/keucr/0.0.1/build/usb.c:567:23: error: ‘US_PR_BULK’ undeclared (first use in this function)
make[3]: *** [/var/lib/dkms/keucr/0.0.1/build/usb.o] Error 1
make[2]: *** [_module_/var/lib/dkms/keucr/0.0.1/build] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2
make: Leaving directory `/usr/src/linux-headers-3.2.0-2-486'
--Thanks!
--eric
**edit: two lines in section 5 updated. Building and installing should work better now.