From: Alex S. <ml...@os...> - 2009-08-01 18:03:39
|
Hello, I`m now creating patch to enable auto detection of the USB disks on FreeBSD. Currently SVN version works for me only with "-d usbsunplus", when i`m using it with my USB HDD. I found solution on how to find USB device vendorid/productid/version from FreeBSD disk name. I`m using CAM to ask corresponding umass-sim device and then searching for USB umass driver with the same number It works for me, but i have only very limited number of hardware to test it with. Also for now it tested only with FreeBSD 7.1 (available on my desktop). Please, reply me if you want to test this tool, i`m really need feedback before i will make patch to the smartmonctl. |
From: Dmitry M. <ma...@ri...> - 2009-08-01 19:05:13
|
On Sat, 1 Aug 2009, Alex Samorukov wrote: AS> Hello, AS> AS> I`m now creating patch to enable auto detection of the USB disks on AS> FreeBSD. Currently SVN version works for me only with "-d usbsunplus", AS> when i`m using it with my USB HDD. I found solution on how to find USB AS> device vendorid/productid/version from FreeBSD disk name. I`m using CAM AS> to ask corresponding umass-sim device and then searching for USB umass AS> driver with the same number AS> AS> It works for me, but i have only very limited number of hardware to test AS> it with. Also for now it tested only with FreeBSD 7.1 (available on my AS> desktop). AS> AS> AS> Please, reply me if you want to test this tool, i`m really need feedback AS> before i will make patch to the smartmonctl. Very interested, able to test with {6,7,8}-{i386,amd64}. Thanks! -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- ma...@ri... *** ------------------------------------------------------------------------ |
From: Alex S. <ml...@os...> - 2009-08-01 19:25:43
|
Dmitry Morozovsky wrote: > On Sat, 1 Aug 2009, Alex Samorukov wrote: > > > AS> Please, reply me if you want to test this tool, i`m really need feedback > AS> before i will make patch to the smartmonctl. > > Very interested, able to test with {6,7,8}-{i386,amd64}. > Glad to know that, especially with 8, when USB stack is totally rewritten. To test it you need: 1) fetch http://samm.kiev.ua/camtest.c 2) gcc -Wall camtest.c -o camtest 4) ./camtest <da device> e.g. ./camtest da0. If it works and device is USB mass storage (could be anything, even flash drive) than it should print device vendor, model and version. Please, tell me if it works for you. P.S. I tried to hack os_freebsd.c to add this detection, but now i see that it is not too easy task. os_linux and os_win32 are very different from other OS files and are using OOP, when os_freebsd (and other) still uses old model (plain C style, classless). As far as i could see - i cant simply call get_usb_dev_type_by_id from os_freebsd.c. As far as i understood - it should be rewritten to the new style to get modern features of the core :( > Thanks! > > |