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.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/25062 ) Change subject: add script to generate a inititial osmo-bankd slotconfig sorted by usb path ...................................................................... add script to generate a inititial osmo-bankd slotconfig sorted by usb path Change-Id: Ibb5e7db78c8a2129d2093b0dd5ecaa7c13ab9ee3 --- A contrib/gen_bankd_pcsc_slots-csv.sh 1 file changed, 19 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified osmith: Looks good to me, but someone else must approve laforge: Looks good to me, approved diff --git a/contrib/gen_bankd_pcsc_slots-csv.sh b/contrib/gen_bankd_pcsc_slots-csv.sh new file mode 100755 index 0000000..217fbd2 --- /dev/null +++ b/contrib/gen_bankd_pcsc_slots-csv.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# this script is to scan for octsim boards, sort them by usb path and generate a bankd_pcsc_slots.csv on stdout +# basic flow +# - get usb path and serialno tupel from dfu-util -l +# - reformat and sort by usbpath, drop the usbpath (grep cut tr sort cut) +# - generate the config file from the list of serialno in the format required by osmo-remsim-bankd (awk) + +dfu-util -l \ + | grep "Found Runtime: \[1d50:6141\]" \ + | cut -d ' ' -f 8,13 \ + | tr -d ',' \ + | cut -d \" -f 2,4 \ + | tr \" ' ' \ + | sort \ + | cut -d ' ' -f 2 \ + | awk 'BEGIN {count=0}{for (slot=0; slot<8; slot++) {print count, $0, 0slot; count++}}' \ + | awk '{print "\"1\",\""$1"\",\"sysmocom sysmoOCTSIM \[CCID\] \("$2"\) [A-F0-9]{2} "$3"\""}' + -- To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/25062 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: Ibb5e7db78c8a2129d2093b0dd5ecaa7c13ab9ee3 Gerrit-Change-Number: 25062 Gerrit-PatchSet: 3 Gerrit-Owner: roh <jsteiger at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-Reviewer: osmith <osmith at sysmocom.de> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210802/d4727685/attachment.htm>