mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Apacer SM/CF combo reader driver
@ 2003-08-11 10:05 Andries.Brouwer
  0 siblings, 0 replies; 4+ messages in thread
From: Andries.Brouwer @ 2003-08-11 10:05 UTC (permalink / raw)
  To: Andries.Brouwer, fgrum; +Cc: linux-kernel, linux-usb-devel

	From: Fabien Grumelard <fgrum@free.fr>
	Subject: Re: Apacer SM/CF combo reader driver

	> If you need the SM half, ask me again.

	yes, this is what I want to use.


About the 07c4:a109 CF+SM Apacer LC1 reader:

I just checked status in 2.4.21.

The CF half words if you select CONFIG_USB_STORAGE_DATAFAB.
The SM hals works is you select CONFIG_USB_STORAGE_SDDR55
and apply a tiny patch to unusual devices:

diff -u --recursive --new-file -X /linux/dontdiff a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h
--- a/drivers/usb/storage/unusual_devs.h        Sun Jul  6 14:22:55 2003
+++ b/drivers/usb/storage/unusual_devs.h        Mon Aug 11 12:50:26 2003
@@ -462,6 +462,14 @@
                US_FL_START_STOP ),
 #endif
 
+#ifdef CONFIG_USB_STORAGE_SDDR55
+UNUSUAL_DEV(  0x07c4, 0xa109, 0x0000, 0xffff,
+               "Datafab Systems, Inc.",
+               "USB to CF + SM Combo (LC1)",
+               US_SC_SCSI, US_PR_SDDR55, NULL,
+               US_FL_SINGLE_LUN),
+#endif
+
 #ifdef CONFIG_USB_STORAGE_DATAFAB
 UNUSUAL_DEV(  0x07c4, 0xa000, 0x0000, 0x0015,
                "Datafab",

Andries

[Note: the vanilla kernel setup still does not handle
composite devices like these - you need the twoluns
setup from the URL I gave if you want to use both CF and SM.
But if you are satisfied with having one, then you have it.]

[Note: if you select both CONFIG_USB_STORAGE_DATAFAB and
CONFIG_USB_STORAGE_SDDR55 then the order of the items in
unusual_devs.h will determine which is found first, so
whether you get CF or SM. That is why I put the entry "too early"
in the above.]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Apacer SM/CF combo reader driver
  2003-08-11 21:32 Harm Verhagen
@ 2003-08-11 22:00 ` Andries Brouwer
  0 siblings, 0 replies; 4+ messages in thread
From: Andries Brouwer @ 2003-08-11 22:00 UTC (permalink / raw)
  To: Harm Verhagen; +Cc: lkml

On Mon, Aug 11, 2003 at 11:32:54PM +0200, Harm Verhagen wrote:

> > Apacer SM/CF combo reader, USB 07c4:a109. 

> I needed to compile the kernel (RedHat 2.4.20-19.9) with the "Probe all
> LUNs on each device" option enabled (CONFIG_SCSI_MULTI_LUN) in order to
> access the SM on my apacer combo reader (0x0d7d:0x0240).

That is an entirely different animal. Unrelated.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Apacer SM/CF combo reader driver
@ 2003-08-11 21:32 Harm Verhagen
  2003-08-11 22:00 ` Andries Brouwer
  0 siblings, 1 reply; 4+ messages in thread
From: Harm Verhagen @ 2003-08-11 21:32 UTC (permalink / raw)
  To: lkml

>    I've got an Apacer SM/CF combo reader too. I found your email :
            
>            I just got myself an Apacer SM/CF combo reader, USB
07c4:a109. 
>            The CF part is supported in the stock kernel (by
datafab.c), 
>            the SM part is not. 


I needed to compile the kernel (RedHat 2.4.20-19.9) with the "Probe all
LUNs on each device" option enabled (CONFIG_SCSI_MULTI_LUN) in order to
access the SM on my apacer combo reader (0x0d7d:0x0240).

Or you can manually add it by something like:
echo scsi add-single-device 1 0 0 1 > /proc/scsi/scsi

With one of the above SM access on my device works fine. I can mount it
using:
mount -t vfat /dev/sdb1 /mnt/usbreader

I got this info from:
http://www.qbik.ch/usb/devices/showdev.php?id=1620
http://www.qbik.ch/usb/devices/showdev.php?id=1634


regards,
Harm Verhagen



-- 
Harm Verhagen <h.verhagen@chello.nl>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Apacer SM/CF combo reader driver
@ 2003-08-10 20:22 Andries.Brouwer
  0 siblings, 0 replies; 4+ messages in thread
From: Andries.Brouwer @ 2003-08-10 20:22 UTC (permalink / raw)
  To: Andries.Brouwer, fgrum; +Cc: linux-kernel, linux-usb-devel

    I've got an Apacer SM/CF combo reader too. I found your email :
            
            I just got myself an Apacer SM/CF combo reader, USB 07c4:a109. 
            The CF part is supported in the stock kernel (by datafab.c), 
            the SM part is not. 
            This evening I wrote a read-only driver; hope to add the 
            writing part soon. 
            
            Andries

    Does your driver work well ?

Yes, it reads and writes without problems, both CF and SM,
assuming the surrounding kernel works.

    Is it in the stock kernel now ? If not, is it possible to get it?

Now the question arises what you mean by "stock kernel".

2.6.0-test3 is still in a sorry state.
I cannot insmod usb-storage.o for a vanilla 2.6.0-test3.
It hangs. (Have not checked yet whether this is a permanent hang
or one of these scsi_eh_X that spend hours resetting the bus and
trying again. I booted 33 min ago and it still hangs.)

I have not tried 2.4 recently, but that is supposedly stable.

If you need the CF half, you need no help from me, you must "just"
find some kernel where usb-storage and usb and scsi all work.
Maybe a recent 2.4 would do.

If you need the SM half, ask me again.


Andries



[Long ago I made some general common infrastructure for SM readers.
In May 2002 someone asked me for this stuff and I put something at
ftp://ftp.kernel.org/pub/linux/kernel/people/aeb/usb-storage.tar.gz
Don't recall precisely what this is, or to what kernel it belonged,
in view of the date it may have been 2.5.13 or 2.5.14. But I see
there is an apacer.c, and the source looks healthy at first sight.]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-08-11 22:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-11 10:05 Apacer SM/CF combo reader driver Andries.Brouwer
  -- strict thread matches above, loose matches on Subject: below --
2003-08-11 21:32 Harm Verhagen
2003-08-11 22:00 ` Andries Brouwer
2003-08-10 20:22 Andries.Brouwer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®