Skip to content
Started by user Oliver Smith
Running as SYSTEM
Building remotely on octsimtest in workspace /home/jenkins/workspace/octsim_osmo-ccid-firmware
The recommended git tool is: NONE
No credentials specified
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository https://gerrit.osmocom.org/osmo-ccid-firmware
 > git init /home/jenkins/workspace/octsim_osmo-ccid-firmware # timeout=10
Fetching upstream changes from https://gerrit.osmocom.org/osmo-ccid-firmware
 > git --version # timeout=10
 > git --version # 'git version 2.39.5'
 > git fetch --tags --force --progress -- https://gerrit.osmocom.org/osmo-ccid-firmware +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://gerrit.osmocom.org/osmo-ccid-firmware # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git rev-parse refs/remotes/origin/osmith/wip^{commit} # timeout=10
 > git rev-parse osmith/wip^{commit} # timeout=10
Checking out Revision 8960ca0ceaf513c748e92327930e37fe14764824 (refs/remotes/origin/osmith/wip)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 8960ca0ceaf513c748e92327930e37fe14764824 # timeout=10
Commit message: "tests: debug: run pySim-read.py with --apdu-trace"
 > git rev-list --no-walk eb73af66a629770844b29180a664b341a8e69a4f # timeout=10
[octsim_osmo-ccid-firmware] $ /bin/sh -xe /tmp/jenkins3675339008506569752.sh
+ export PYTHONUNBUFFERED=1
+ cd ./tests
+ mkdir -p sysmo-octsim/dl
+ timeout 30m ./run-tests
==========================================================
            EXECUTING TESTS FOR SYSMO-OCTSIM
==========================================================

Location /home/jenkins/workspace/octsim_osmo-ccid-firmware/tests/sysmo-octsim

WARNING: tempfile is deprecated; consider using mktemp instead.
================ PREPARING TEST RIG ================
resetting target
BITFT_1=1
BITFT_2=0
BITFT_1=0
BITFT_2=0
done
================ TEST RIG PREPARED =================

Prepare done
==> Executing Testcase 01_check_rig.sh
+ . ./test-data
+ USBD_RELAY=16c0:05df
+ USBD_TARGET=1d50:6141
+ DFU_IMAGE=dl/sysmoOCTSIM-latest.bin
+ PYSIMREAD=/home/jenkins/dep/pysim/pySim-read.py --apdu-trace
+ PYSIMSHELL=/home/jenkins/dep/pysim/pySim-shell.py
+ lsusb -d 16c0:05df -v
+ sed -e s/.*Device.*:\ ID/ID/g

ID 16c0:05df Van Ooijen Technische Informatica HID device except mice, keyboards, and joysticks
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x16c0 Van Ooijen Technische Informatica
  idProduct          0x05df HID device except mice, keyboards, and joysticks
  bcdDevice            1.00
  iManufacturer           1 www.dcttech.com
  iProduct                2 USBRelay2
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0022
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               20mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.01
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      22
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              20
Device Status:     0x0000
  (Bus Powered)
Test 01_check_rig.sh passed
==> Executing Testcase 02_flash_dfu.sh
+ . ./test-data
+ USBD_RELAY=16c0:05df
+ USBD_TARGET=1d50:6141
+ DFU_IMAGE=dl/sysmoOCTSIM-latest.bin
+ PYSIMREAD=/home/jenkins/dep/pysim/pySim-read.py --apdu-trace
+ PYSIMSHELL=/home/jenkins/dep/pysim/pySim-shell.py
+ ./get_installed_version.sh
installed fw version: 0.3.49-be7b
+ ./fetch_image.sh
fetch image
2026-04-14 11:25:56 URL:https://downloads.osmocom.org/binaries/osmo-ccid-firmware/latest/sysmoOCTSIM.bin [66944/66944] -> "dl/sysmoOCTSIM-latest.bin" [1]
done
+ ./ctl_reset_to_dfu.sh
resetting target to dfu
BITFT_1=1
BITFT_2=0
BITFT_1=0
BITFT_2=0
BITFT_1=0
BITFT_2=1
BITFT_1=1
BITFT_2=1
done
+ ./flash_octsim_dfu.sh
dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Opening DFU capable USB device...
Device ID 1d50:6141
Device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 0110
Device returned transfer size 512
Copying data from PC to DFU device
Download done.
+ sleep 1
+ ./get_installed_version.sh
installed fw version: 0.3.49-be7b
Test 02_flash_dfu.sh passed
==> Executing Testcase 03_check_lsusb.sh
+ . ./test-data
+ USBD_RELAY=16c0:05df
+ USBD_TARGET=1d50:6141
+ DFU_IMAGE=dl/sysmoOCTSIM-latest.bin
+ PYSIMREAD=/home/jenkins/dep/pysim/pySim-read.py --apdu-trace
+ PYSIMSHELL=/home/jenkins/dep/pysim/pySim-shell.py
+ lsusb -d 1d50:6141 -v
+ sed -e s/.*Device.*:\ ID/ID/g
+ + sed -e s/ID\ 1d50:6141\ OpenMoko,\ Inc.\ sysmoOCTSIM.*/ID\ 1d50:6141\ OpenMoko,\ Inc.\ sysmoOCTSIM/
sed -e s/^.*iProduct.*2.*sysmoOCTSIM.*$/  iProduct                2 sysmoOCTSIM/g

ID 1d50:6141 OpenMoko, Inc. sysmoOCTSIM
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x1d50 OpenMoko, Inc.
  idProduct          0x6141 
  bcdDevice            0.00
  iManufacturer           1 sysmocom - s.f.m.c. GmbH
  iProduct                2 sysmoOCTSIM
  iSerial                 7 ecc68ade3335355320202034463715ff
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x006f
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          3 A
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass        11 Chip/SmartCard
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              6 CCID
      ChipCard Interface Descriptor:
        bLength                54
        bDescriptorType        33
        bcdCCID              1.10  (Warning: Only accurate for version 1.0)
        nMaxSlotIndex           7
        bVoltageSupport         7  5.0V 3.0V 1.8V 
        dwProtocols             1  T=0
        dwDefaultClock       2500
        dwMaxiumumClock     20000
        bNumClockSupported      4
        dwDataRate           6720 bps
        dwMaxDataRate      921600 bps
        bNumDataRatesSupp.      0
        dwMaxIFSD               0
        dwSyncProtocols  00000000 
        dwMechanical     00000000 
        dwFeatures       000100B0
          Auto clock change
          Auto baud rate change
          Auto PPS made by CCID
          TPDU level exchange
        dwMaxCCIDMsgLen       272
        bClassGetResponse    echo
        bClassEnvelope       echo
        wlcdLayout           none
        bPINSupport             0 
        bMaxCCIDBusySlots       8
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              16
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       254 Application Specific Interface
      bInterfaceSubClass      1 Device Firmware Update
      bInterfaceProtocol      1 
      iInterface              8 sysmoOCTSIM DFU (Runtime)
      Device Firmware Upgrade Interface Descriptor:
        bLength                             9
        bDescriptorType                    33
        bmAttributes                        8
          Will Detach
          Manifestation Intolerant
          Upload Unsupported
          Download Unsupported
        wDetachTimeout                      0 milliseconds
        wTransferSize                     512 bytes
        bcdDFUVersion                   1.00
Device Status:     0x0000
  (Bus Powered)
Test 03_check_lsusb.sh passed
==> Executing Testcase 04_check_dfu_lsusb.sh
+ . ./test-data
+ USBD_RELAY=16c0:05df
+ USBD_TARGET=1d50:6141
+ DFU_IMAGE=dl/sysmoOCTSIM-latest.bin
+ PYSIMREAD=/home/jenkins/dep/pysim/pySim-read.py --apdu-trace
+ PYSIMSHELL=/home/jenkins/dep/pysim/pySim-shell.py
+ ./ctl_reset_to_dfu.sh
resetting target to dfu
BITFT_1=1
BITFT_2=0
BITFT_1=0
BITFT_2=0
BITFT_1=0
BITFT_2=1
BITFT_1=1
BITFT_2=1
done
+ lsusb -d 1d50:6141 -v
+ sed -e s/.*Device.*:\ ID/ID/g

ID 1d50:6141 OpenMoko, Inc. sysmoOCTSIM DFU-0.2.2-1644
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x1d50 OpenMoko, Inc.
  idProduct          0x6141 
  bcdDevice            0.00
  iManufacturer           1 sysmocom - s.f.m.c. GmbH
  iProduct                2 sysmoOCTSIM DFU-0.2.2-1644
  iSerial                 3 ecc68ade3335355320202034463715ff
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x001b
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       254 Application Specific Interface
      bInterfaceSubClass      1 Device Firmware Update
      bInterfaceProtocol      2 
      iInterface              4 SAM D5x/E5x DFU bootloader (DFU mode)
      Device Firmware Upgrade Interface Descriptor:
        bLength                             9
        bDescriptorType                    33
        bmAttributes                        9
          Will Detach
          Manifestation Intolerant
          Upload Unsupported
          Download Supported
        wDetachTimeout                      0 milliseconds
        wTransferSize                     512 bytes
        bcdDFUVersion                   1.10
Device Status:     0x0000
  (Bus Powered)
+ ./ctl_reset_target.sh
resetting target
BITFT_1=1
BITFT_2=0
BITFT_1=0
BITFT_2=0
done
Test 04_check_dfu_lsusb.sh passed
==> Executing Testcase 05_flash_dfu_from_app.sh
+ . ./test-data
+ USBD_RELAY=16c0:05df
+ USBD_TARGET=1d50:6141
+ DFU_IMAGE=dl/sysmoOCTSIM-latest.bin
+ PYSIMREAD=/home/jenkins/dep/pysim/pySim-read.py --apdu-trace
+ PYSIMSHELL=/home/jenkins/dep/pysim/pySim-shell.py
+ ./get_installed_version.sh
installed fw version: 0.3.49-be7b
+ ./ctl_reset_target.sh
resetting target
BITFT_1=1
BITFT_2=0
BITFT_1=0
BITFT_2=0
done
+ sleep 1
+ ./flash_octsim_dfu.sh
dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Opening DFU capable USB device...
Device ID 1d50:6141
Run-Time device DFU version 0100
Claiming USB DFU (Run-Time) Interface...
Setting Alternate Interface zero...
Determining device status...
DFU state(0) = appIDLE, status(0) = No error condition is present
Device really in Run-Time Mode, send DFU detach request...
Device will detach and reattach...
Opening DFU USB Device...
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 0110
Device returned transfer size 512
Copying data from PC to DFU device
Download done.
+ sleep 1
+ ./get_installed_version.sh
installed fw version: 0.3.49-be7b
Test 05_flash_dfu_from_app.sh passed
==> Executing Testcase 06_test_simcards.sh
+ . ./test-data
+ USBD_RELAY=16c0:05df
+ USBD_TARGET=1d50:6141
+ DFU_IMAGE=dl/sysmoOCTSIM-latest.bin
+ PYSIMREAD=/home/jenkins/dep/pysim/pySim-read.py --apdu-trace
+ PYSIMSHELL=/home/jenkins/dep/pysim/pySim-shell.py
+ ./ctl_reset_target.sh
resetting target
BITFT_1=1
BITFT_2=0
BITFT_1=0
BITFT_2=0
done
+ sleep 1
+ ./get_installed_version.sh
installed fw version: 0.3.49-be7b
+ echo card slot 0 - pysimread
+ /home/jenkins/dep/pysim/pySim-read.py --apdu-trace -pcard slot 0 - pysimread
 0
Build was aborted
Aborted by Oliver Smith
Terminated
Terminated
Terminated
Files 06_test_simcards.out and /tmp/fileFNMUym differ
Finished: ABORTED