SIMtrace2 (based on AT91SAM3), firmware and host tools, including card emulation https://osmocom.org/projects/simtrace2
Go to file
Eric Wild cb655f9774 firmware: add crc stub to all dfu apps to ensure reliable loading
DFU flashing of apps sometimes aborts, and although rare this leads to
broken devices if no boot button or serial/jtag access exists, because
the bootloader will keep trying to start a half-flashed app that then
crashes at some point.

The easiest fix that works with existing bootloaders is to prepend a
small 512 byte stub that calculcates the crc and compares it with the
crc calculated at build time, and then either starts the actual app, or
sets the dfu flag and resets. This ensures we either have a working,
running app, or end up in the bootloader, ready to flash again.

For obvious reasons this only applies to dfu apps, and not to flash
targets like the actual bootloader itself.

Change-Id: Id6df0486c8b779889d21800dc2441b3aa9af8a5f
2021-12-15 14:04:20 +00:00
contrib firmware: add crc stub to all dfu apps to ensure reliable loading 2021-12-15 14:04:20 +00:00
debian Bump version: 0.8.0.1-8281 → 0.8.1 2021-12-10 10:04:28 +01:00
firmware firmware: add crc stub to all dfu apps to ensure reliable loading 2021-12-15 14:04:20 +00:00
hardware board_gpio.gnumeric: Add ngff-cardem pin-out 2021-07-01 23:28:52 +02:00
host treewide: remove FSF address 2021-12-14 11:47:21 +01:00
.clang-format add our default clang-format file 2021-11-01 14:35:14 +01:00
.gitignore gitignore: add firmware/apps/*/usb_strings.txt.patched 2021-03-05 15:04:06 +01:00
.gitmodules use same USB Product ID for DFU and runtime mode 2017-05-05 00:34:28 +02:00
.gitreview gitreview: new file 2021-07-30 10:32:35 +02:00
Makefile firmware: add bootloader update "app" 2021-11-01 12:03:38 +00:00
README.md Update README 2020-10-27 15:55:07 +01:00
TODO-RELEASE Introduce support for asynchronous USB transmission 2020-05-25 23:00:20 +02:00
clk_calc.py clk calculation: updated max mul val 2015-02-20 14:40:07 +01:00
git-version-gen ensure git version ends up in firmware image 2016-03-19 21:37:55 +01:00

README.md

SIMtrace v2.0

This is the repository for the next-generation SIMtrace devices, providing abilities to trace the communication between (U)SIM card and phone, remote (U)SIM card forward, (U)SIM man-in-the-middle, and more.

NOTE: Nothing in this repository applies to the SIMtrace v1.x hardware or its associated firmware. SIMtrace v1.x is based on a different CPU / microcontroller architecture and uses a completely different software stack and host software.

Supported Hardware

  • Osmocom SIMtrace 1.x with SAM3 controller ** this is open hardware and schematics / PCB design is published
  • sysmocom sysmoQMOD (with 4 Modems, 4 SIM slots and 2 SAM3) ** this is a proprietary device, publicly available from sysmocom
  • sysmocom OWHW (with 2 Modems and 1 SAM3 onboard) ** this is not publicly available hardware, but still supported

This Repository

This repository contains several directory

  • firmware - the firmware to run on the actual devices
  • hardware - some information related to the hardware
  • host - Programs to use on the USB host to interface with the hardware

The host software includes

  • libosmo-simtrace2 - a shared library to talk to devices running the simtrace2 firmware
  • simtrace2-list - list any USB-attached devices running simtrace2 firmware
  • simtrace2-sniff - interface the 'trace' firmware to obtain card protocol traces
  • simtrace2-cardem-pcsc - interface the 'cardem' fimrware to use a SIM in a PC/SC reader