ccid_host: Migrate to OpenMoko USB VID/PID

We used 0x2342 just for internal testing.  Let's use a proper
unique allocation even for the FunctionFS version of the code.

Change-Id: Idbaf173b0ec1fd80885f26b3df24a4412913c100
This commit is contained in:
Harald Welte 2020-09-03 10:16:42 +02:00
parent 8dd67e3bbb
commit 6b2ff3bc08
3 changed files with 7 additions and 7 deletions

View File

@ -55,7 +55,7 @@ at which point your 'dmesg' should print something along the lines of
----
usb 3-1: new full-speed USB device number 8 using dummy_hcd
usb 3-1: New USB device found, idVendor=2342, idProduct=2342, bcdDevice= 4.19
usb 3-1: New USB device found, idVendor=1d50, idProduct=615f, bcdDevice= 4.19
usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 3-1: Product: sysmoOCTSIM
usb 3-1: Manufacturer: sysmocom GmbH
@ -76,7 +76,7 @@ to the /etc/libccid_Info.plist with a diff like this:
<string>0x08C3</string>
<string>0x15E1</string>
<string>0x062D</string>
+ <string>0x2342</string>
+ <string>0x1D50</string>
</array>
<key>ifdProductID</key>
@ -84,7 +84,7 @@ to the /etc/libccid_Info.plist with a diff like this:
<string>0x0402</string>
<string>0x2007</string>
<string>0x0001</string>
+ <string>0x2342</string>
+ <string>0x615F</string>
</array>
<key>ifdFriendlyName</key>

View File

@ -23,8 +23,8 @@ gadgetdir="$GADGET_CONFIGFS/$GADGET_NAME"
[ -d $gadgetdir ] || mkdir $gadgetdir || die "Cannot create $gadgetdir. Permission problem?"
set -e -x
cd $gadgetdir
echo 0x2342 > idVendor
echo 0x2342 > idProduct
echo 0x1d50 > idVendor
echo 0x615f > idProduct
[ -d strings/0x409 ] || mkdir strings/0x409
echo 2342 > strings/0x409/serialnumber
echo "sysmocom GmbH" > strings/0x409/manufacturer

View File

@ -26,8 +26,8 @@
#include <libusb-1.0/libusb.h>
static libusb_context *g_uctx;
static uint16_t g_vendor_id = 0x2342;
static uint16_t g_product_id = 0x2342;
static uint16_t g_vendor_id = 0x1d50;
static uint16_t g_product_id = 0x615f;
static uint8_t g_interface = 0;
#define GET_CLOCK_FREQS 0x02