Change in osmo-ccid-firmware[master]: ccid_host: Migrate to OpenMoko USB VID/PID

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Sep 3 08:20:02 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/19961 )

Change subject: ccid_host: Migrate to OpenMoko USB VID/PID
......................................................................

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
---
M ccid_host/README.linux-dummy_hcd-ffs
M ccid_host/create_ccid_gadget.sh
M contrib/ccid-control.c
3 files changed, 7 insertions(+), 7 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/ccid_host/README.linux-dummy_hcd-ffs b/ccid_host/README.linux-dummy_hcd-ffs
index 2b98eff..29c6584 100644
--- a/ccid_host/README.linux-dummy_hcd-ffs
+++ b/ccid_host/README.linux-dummy_hcd-ffs
@@ -55,7 +55,7 @@
 
 ----
 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 @@
  		<string>0x08C3</string>
  		<string>0x15E1</string>
  		<string>0x062D</string>
-+		<string>0x2342</string>
++		<string>0x1D50</string>
  	</array>
  
  	<key>ifdProductID</key>
@@ -84,7 +84,7 @@
  		<string>0x0402</string>
  		<string>0x2007</string>
  		<string>0x0001</string>
-+		<string>0x2342</string>
++		<string>0x615F</string>
  	</array>
  
  	<key>ifdFriendlyName</key>
diff --git a/ccid_host/create_ccid_gadget.sh b/ccid_host/create_ccid_gadget.sh
index aafb152..d17b3cc 100755
--- a/ccid_host/create_ccid_gadget.sh
+++ b/ccid_host/create_ccid_gadget.sh
@@ -23,8 +23,8 @@
 [ -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
diff --git a/contrib/ccid-control.c b/contrib/ccid-control.c
index 378828a..d28ddfc 100644
--- a/contrib/ccid-control.c
+++ b/contrib/ccid-control.c
@@ -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

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/19961
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: Idbaf173b0ec1fd80885f26b3df24a4412913c100
Gerrit-Change-Number: 19961
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200903/27989399/attachment.htm>


More information about the gerrit-log mailing list