espressif / rust-esp32-example

Example of Rust integration into an ESP-IDF project, for ESP32 series of chips
MIT License
436 stars 36 forks source link

podman cannot mount the device in macos #50

Open cdaringe opened 8 months ago

cdaringe commented 8 months ago

Problem

🌲rust-esp32-example $ podman run --platform linux/arm64 --rm --device "/dev/cu.usbserial-10" -it espressif/idf-rust-examples
WARNING: image platform (linux/amd64) does not match the expected platform (linux/arm64)
Error: stat /dev/cu.usbserial-10: no such file or directory
🌲rust-esp32-example $ stat /dev/cu.usbserial-10
4035832191 1213 crw-rw-rw- 1 root wheel 150994951 0 "Jan 13 15:23:54 2024" "Jan 13 15:23:54 2024" "Jan 13 15:23:54 2024" "Dec 31 16:00:00 1969" 65536 0 0 /dev/cu.usbserial-10

https://www.redhat.com/sysadmin/files-devices-podman

Discussion

My gut tells me this only works in linux.