Originally Posted by
apienk01
I'm using 3.2.0-32-generic 64-bit on Dell XPS L502x, and after forced rescan detection works either with the card or without. However, before I found this workaround I mailed JMicron, and today got a new driver. Here it is, attached. Didn't try compiling it because I'm pretty happy activating the reader with the command.
Hi
Just tried this driver on Ubuntu 13.04 beta2 and does not seem to work. Guess it's the new kernel? Readme says supported kernel up to 3.2.0.
Code:
patrik@patrik-laptop:~/Downloads/jmb38x_20120501/jmb38x$ sudo make
echo /home/patrik/Downloads/jmb38x_20120501/jmb38x
/home/patrik/Downloads/jmb38x_20120501/jmb38x
make -C /lib/modules/3.8.0-19-generic/build M=/home/patrik/Downloads/jmb38x_20120501/jmb38x
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-19-generic'
CC [M] /home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.o
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c: In function ‘xd_card_copy_tmp’:
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:778:25: error: ‘KM_BIO_SRC_IRQ’ undeclared (first use in this function)
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:778:25: note: each undeclared identifier is reported only once for each function it appears in
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:778:3: error: too many arguments to function ‘kmap_atomic’
In file included from include/linux/pagemap.h:10:0,
from include/linux/blkdev.h:13,
from /home/patrik/Downloads/jmb38x_20120501/jmb38x/linux/xd_card.h:15,
from /home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:16:
include/linux/highmem.h:66:21: note: declared here
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:792:44: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:792:3: error: ‘kunmap_atomic’ undeclared (first use in this function)
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c: In function ‘xd_card_check_ecc’:
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:832:26: error: ‘KM_BIO_SRC_IRQ’ undeclared (first use in this function)
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:832:4: error: too many arguments to function ‘kmap_atomic’
In file included from include/linux/pagemap.h:10:0,
from include/linux/blkdev.h:13,
from /home/patrik/Downloads/jmb38x_20120501/jmb38x/linux/xd_card.h:15,
from /home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:16:
include/linux/highmem.h:66:21: note: declared here
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:835:46: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:835:5: error: ‘kunmap_atomic’ undeclared (first use in this function)
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:840:45: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:857:4: error: too many arguments to function ‘kmap_atomic’
In file included from include/linux/pagemap.h:10:0,
from include/linux/blkdev.h:13,
from /home/patrik/Downloads/jmb38x_20120501/jmb38x/linux/xd_card.h:15,
from /home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:16:
include/linux/highmem.h:66:21: note: declared here
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:859:45: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c: In function ‘xd_card_update_extra’:
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:909:26: error: ‘KM_BIO_SRC_IRQ’ undeclared (first use in this function)
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:909:4: error: too many arguments to function ‘kmap_atomic’
In file included from include/linux/pagemap.h:10:0,
from include/linux/blkdev.h:13,
from /home/patrik/Downloads/jmb38x_20120501/jmb38x/linux/xd_card.h:15,
from /home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:16:
include/linux/highmem.h:66:21: note: declared here
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:912:46: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:912:5: error: ‘kunmap_atomic’ undeclared (first use in this function)
/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.c:917:45: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1
make[2]: *** [/home/patrik/Downloads/jmb38x_20120501/jmb38x/xd_card_blk.o] Error 1
make[1]: *** [_module_/home/patrik/Downloads/jmb38x_20120501/jmb38x] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-19-generic'
make: *** [all] Error 2
Anyone sitting on any newer driver?
Dell XPS 15z
Bookmarks