[Bug 230038] regression USB mass storage device

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jun 27 20:29:29 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230038

Friedrich Volkmann <bsd at volki.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bsd at volki.at

--- Comment #2 from Friedrich Volkmann <bsd at volki.at> ---
Problem persists in 12.1-STABLE r358922. (My Garmin is a Dakota 20.) I get
another scbus number, so I wrote a shell script that parses the output of
"camcontrol devlist" as a workaround:

#!/bin/bash
camline=`camcontrol devlist|grep 'GARMIN Flash'`
while test -z "$camline" ;do
        echo not found, waiting 5 seconds...
        sleep 5
        camline=`camcontrol devlist|grep 'GARMIN Flash'`
done
# output: <Garmin GARMIN Flash 1.00>         at scbus8 target 0 lun 0
(da0,pass4)
camline=${camline#*scbus}
bus=${camline%% *}
camline=${camline#*target }
target=${camline%% *}
camline=${camline#*lun }
lun=${camline%% *}
echo -n bus:target:lun = $bus:$target:$lun
lun=$(($lun + 1))
echo " -> $bus:$target:$lun"

camcontrol rescan $bus:$target:$lun

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-usb mailing list