Quantcast
Channel: MobileRead Forums - Kobo Reader
Viewing all articles
Browse latest Browse all 11155

USB identification with KSM

$
0
0
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.

Viewing all articles
Browse latest Browse all 11155

Trending Articles