View Single Post
Old 01-08-2015, 12:12 PM   #1
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
USB identification with KSM

As per this post, I have set my enable_usb.sh script like this:

Spoiler:
Code:
#!/bin/sh

# --- change as you see fit (begin)
PRODUCT_ID=0x4203
VERSION=3.11.0
SN=************* #the real number goes here
# --- change as you see fit (end)

MODULE_LOADED=`lsmod | grep -c g_file_storage`


VENDOR_ID=0x2237

DEV="/dev/mmcblk1p1"
if [ -e /dev/mmcblk1p1 ]; then
  LUNS=/dev/mmcblk0p3,/dev/mmcblk1p1
else
  LUNS=/dev/mmcblk0p3
fi

PARAMS="vendor=$VENDOR_ID product=$PRODUCT_ID vendor_id=Kobo product_id=eReader-$VERSION SN=$SN"
sync
echo 3 > /proc/sys/vm/drop_caches
#umount -l /mnt/onboard
umount -l /mnt/sd

/sbin/insmod /drivers/$PLATFORM/usb/gadget/arcotg_udc.ko
sleep 2

/sbin/insmod /drivers/$PLATFORM/usb/gadget/g_file_storage.ko file=$LUNS stall=1 removable=1 $PARAMS
sleep 1


But when I connect the device to the computer, I get this with dmesg:

Code:
[1013937.050551] usb 3-1: new high-speed USB device number 40 using xhci_hcd
[1013937.073685] usb 3-1: New USB device found, idVendor=2237, idProduct=4163
[1013937.073696] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1013937.073700] usb 3-1: Product: eReader-0.0.0
[1013937.073704] usb 3-1: Manufacturer: Kobo
[1013937.073708] usb 3-1: SerialNumber: N000000000000
I wonder if this is related to my problem here, in particular to the fact that with KSM the device is identified as removable, and not with Nickel.
Jellby is offline   Reply With Quote