Re: sysfs: duplicate filename (usb unusual dev?)

From: Ian E. Morgan
Date: Thu May 15 2008 - 09:53:38 EST


On Thu, May 15, 2008 at 1:09 AM, Greg KH <greg@xxxxxxxxx> wrote:
> On Mon, May 12, 2008 at 11:10:11AM -0400, Ian E. Morgan wrote:
>> My wife got a silly little keychain digital photo frame for a gift.
>> I'm trying to make it work, but no such luck:
>>
>> (This is on vanilla 2.6.25)
>
> These warning messages should be safely ignored (it's odd that I can't
> duplicate this, perhaps it's a CONFIG_SYSFS_DEPRECATED thing...)
>
>> So I don't get the reason for duplicate sysfs nodes, and the scsi
>> device for mass storage never shows up (no /dev/sdb is registered,
>> etc)
>
> Are you sure sd_mod is loaded?
>
> thanks,
>
> greg k-h
>

Yeah, turns out the device really is a piece of CR*P like I figured. I
had to add this to get it to work:

UNUSUAL_DEV( 0x1908, 0x1315, 0x0000, 0x0000,
"BUILDWIN",
"Photo Frame",
US_SC_DEVICE, US_PR_DEVICE, NULL,
US_FL_GO_SLOW ),

after which the device showed up as a removable media device with an
iso9660 fs! Sheesh! And this fs of course just contained some utter
garbage software for Windows to upload pictures onto the device using
a proprietary HID interface. Can you say "what were they thinking?!"

Having given up at this point, I plugged it into a windows box, and
the thing basically gave windows a conniption fit. Yeah, I think I'll
be throwing it out now. What do you expect for a $9.95 trinket from
China? Sorry for wasting everyone's time.

--
Ian Morgan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/