Docker image for JelmerT/cc2538-bsl
- This project allows to flash a TI SoC with a single line of code.
- Firmware files are supported as URL or local file, in native (bin/hex) and zipped format.
$ docker run --rm --device /dev/ttyUSB0:/dev/ttyUSB0 -e FIRMWARE_URL=https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_3.x.0/bin/CC1352P2_CC2652P_launchpad_coordinator_20220219.zip ckware/ti-cc-tool -ewv -p /dev/ttyUSB0 --bootloader-sonoff-usb
- This example expects the file
CC1352P2_CC2652P_launchpad_coordinator_20220219.zip
in the local directory -
$ docker run --rm --device /dev/ttyUSB0:/dev/ttyUSB0 -e FIRMWARE_FILE=CC1352P2_CC2652P_launchpad_coordinator_20220219.zip ckware/ti-cc-tool -ewv -p /dev/ttyUSB0 --bootloader-sonoff-usb
- Create a
docker-compose.yml
for your environment - Run
docker-compose run --rm ti-cc-tool
---
services:
ti-cc-tool:
image: "ckware/ti-cc-tool"
environment:
FIRMWARE_URL: "https://github.com/Koenkk/Z-Stack-firmware/raw/master/coordinator/Z-Stack_3.x.0/bin/CC1352P2_CC2652P_launchpad_coordinator_20220219.zip"
devices:
- "/dev/ttyUSB0:/dev/ttyUSB0"
command: [ "-ewv", "-p", "/dev/ttyUSB0", "--bootloader-sonoff-usb" ]
---
services:
ti-cc-tool:
image: "ckware/ti-cc-tool"
devices:
- "/dev/ttyUSB0:/dev/ttyUSB0"
environment:
FIRMWARE_FILE: "/firmware.zip"
volumes:
- "./CC1352P2_CC2652P_launchpad_coordinator_20220219.zip:/firmware.zip"
command: [ "-ewv", "-p", "/dev/ttyUSB0", "--bootloader-sonoff-usb" ]
- Required: Docker
- Optional: Docker Compose
The Docker Compose documentation contains a comprehensive guide explaining several install options. On recent debian-based systems, Docker Compose may be installed by calling
$ sudo apt install docker-compose
- This project is an integration of