Re: [uClinux-dev] USB and /dev/sdx interface

2007-09-17 Thread xavier.montagne
Sent: Wednesday, September 12, 2007 10:17 AM Subject: Re: [uClinux-dev] USB and /dev/sdx interface xavier.montagne ha scritto: OK, it is an idea ! Do you know how to rmmod and insmod a driver from an application ? You can do it with a system. If useful attached the piece of code t

Re: [uClinux-dev] USB and /dev/sdx interface

2007-09-13 Thread Daniele Ziglioli
xavier.montagne ha scritto: > Does the "system"function work well with uClinux 2.4 (vfork instead of > fork) ? > > Cordialement, > Xavier MONTAGNE > Pragmatec > 06.98.06.21.55 I use it on a coldfire NOMMU vfork system, no particular problem at the moment, but of course a problem is always "beside t

Re: [uClinux-dev] USB and /dev/sdx interface

2007-09-12 Thread xavier.montagne
Xavier MONTAGNE Pragmatec 06.98.06.21.55 - Original Message - From: Daniele Ziglioli To: uClinux development list Sent: Tuesday, September 11, 2007 4:56 PM Subject: Re: [uClinux-dev] USB and /dev/sdx interface xavier.montagne

Re: [uClinux-dev] USB and /dev/sdx interface

2007-09-12 Thread Daniele Ziglioli
c > 06.98.06.21.55 > > - Original Message - > *From:* Daniele Ziglioli <mailto:[EMAIL PROTECTED]> > *To:* uClinux development list <mailto:uclinux-dev@uclinux.org> > *Sent:* Tuesday, September 11, 2007 4:56 PM > *Subject:* Re: [uClinux-dev] USB and /d

Re: [uClinux-dev] USB and /dev/sdx interface

2007-09-11 Thread amol sukerkar
nt:* Tuesday, September 11, 2007 7:18 PM > *Subject:* Re: [uClinux-dev] USB and /dev/sdx interface > > Hi Xavier, > I have fixed this problem and it works. I had to be a little > innovative to handle this. This is how I did it. > Every USB thumb drive is assigned a un

Re: [uClinux-dev] USB and /dev/sdx interface

2007-09-11 Thread xavier.montagne
;-) Cordialement, Xavier MONTAGNE Pragmatec 06.98.06.21.55 - Original Message - From: amol sukerkar To: uClinux development list Sent: Tuesday, September 11, 2007 7:18 PM Subject: Re: [uClinux-dev] USB and /dev/sdx interface Hi Xavier, I have fixed this problem and it

Re: [uClinux-dev] USB and /dev/sdx interface

2007-09-11 Thread amol sukerkar
Hi Xavier, I have fixed this problem and it works. I had to be a little innovative to handle this. This is how I did it. Every USB thumb drive is assigned a unique GUID by the USB driver. And the information is stored and updated in the real time in the file /proc/scsi/usb-storage-x/x

Re: [uClinux-dev] USB and /dev/sdx interface

2007-09-11 Thread xavier.montagne
: [uClinux-dev] USB and /dev/sdx interface xavier.montagne ha scritto: Hi, Everytime I insert a new USB key to my SL811 controler, the kernel detects properly the key and affect a new interface : /dev/sda1 /dev/sdb1 /dev/sdc1 If I reuse the same key Linux succeeds to see

Re: [uClinux-dev] USB and /dev/sdx interface

2007-09-11 Thread Daniele Ziglioli
xavier.montagne ha scritto: > Hi, > Everytime I insert a new USB key to my SL811 controler, the kernel > detects properly the key and affect a new interface : > /dev/sda1 > /dev/sdb1 > /dev/sdc1 > If I reuse the same key Linux succeeds to see it and affect the same > previous interface (/dev/sdb fo

[uClinux-dev] USB and /dev/sdx interface

2007-09-11 Thread xavier.montagne
Hi, Everytime I insert a new USB key to my SL811 controler, the kernel detects properly the key and affect a new interface : /dev/sda1 /dev/sdb1 /dev/sdc1 If I reuse the same key Linux succeeds to see it and affect the same previous interface (/dev/sdb for instance). But how to use everytime th