Skip to content

Commit

Permalink
Docker commands don't work with SELinux
Browse files Browse the repository at this point in the history
  • Loading branch information
mbooth101 authored Jul 14, 2022
1 parent 1e8d3ce commit b9e003e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ This is (currently) very large. You can alternatively build this locally yoursel

At this stage, you can run the image, mounting the current working directory as the firmware target:

docker run -it -v "$(pwd)"/:/firmware matthewwilkes/esp_idf:4.4 IOT_SOLUTION_PATH=/firmware/esp-iot-solution TARGET=esp32s3
docker run -it -v "$(pwd)"/:/firmware:Z matthewwilkes/esp_idf:4.4 IOT_SOLUTION_PATH=/firmware/esp-iot-solution TARGET=esp32s3

This will leave the firmware build context in `./micropython/ports/esp32/build-tildamk6` and output the flashing command. Only the three .bin files referenced are important.

However, if you have the device plugged into the machine running the docker container you can skip straight to a flash, just mount the device and add the deploy argument when running:

docker run -it --device /dev/ttyUSB0 -v "$(pwd)"/:/firmware matthewwilkes/esp_idf:4.4 IOT_SOLUTION_PATH=/firmware/esp-iot-solution TARGET=esp32s3 deploy
docker run -it --device /dev/ttyUSB0 -v "$(pwd)"/:/firmware:Z matthewwilkes/esp_idf:4.4 IOT_SOLUTION_PATH=/firmware/esp-iot-solution TARGET=esp32s3 deploy

(Note: flashing from within Docker won't work on a Mac because of a [known issue](https://github.com/docker/for-mac/issues/900) - use `esptool` outside Docker to execute the flashing command printed at the end of the build

Expand All @@ -52,7 +52,7 @@ if you're using the electo magentic yield prototype, use:

If you need to switch which version you're building, run

docker run -it -v "$(pwd)"/:/firmware matthewwilkes/esp_idf:4.4 IOT_SOLUTION_PATH=/firmware/esp-iot-solution TARGET=esp32s3 clean
docker run -it -v "$(pwd)"/:/firmware:Z matthewwilkes/esp_idf:4.4 IOT_SOLUTION_PATH=/firmware/esp-iot-solution TARGET=esp32s3 clean

to remove the cached definitions.

Expand All @@ -62,7 +62,7 @@ You might need to force download mode on the board (by holding the Boot button d

If your serial port is on a different name then map that with docker:

docker run -it --device /dev/ttyACM0:/dev/ttyUSB0 -v "$(pwd)"/:/firmware matthewwilkes/esp_idf:4.4 IOT_SOLUTION_PATH=/firmware/esp-iot-solution TARGET=esp32s3 deploy
docker run -it --device /dev/ttyACM0:/dev/ttyUSB0 -v "$(pwd)"/:/firmware:Z matthewwilkes/esp_idf:4.4 IOT_SOLUTION_PATH=/firmware/esp-iot-solution TARGET=esp32s3 deploy

## Accessing the REPL

Expand Down

0 comments on commit b9e003e

Please sign in to comment.