I need to flash a USB device I have (CC2531, used as a DIY Zigbee controller for home automation).
The tool I’m using is cc-tool
: GitHub - dashesy/cc-tool: Mirror of cc-tool from SourceForge
The fedora package deps I installed in my toolbox container are: dh-autoreconf, boost-devel, libusb1-devel, gcc-c++
When I attempt to flash the device, the tool errors out with:
libusb_open failed, Access denied (insufficient permissions)
All this is running in a toolbox container. I would rather not install the build deps on my SB host. Obviously I don’t expect this forum to help me debug some third-party piece of software, but it does work fine on vanilla Fedora.
So the issue is one of linux device permissions. Using sudo
in the toolbox container obviously doesn’t work.
I have installed the following udev rules, with no luck:
# CC Debugger
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="16a2", MODE="0666"
# CC2531
SUBSYSTEM=="tty", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="16a8", SYMLINK="ttyUSB.CC2531", OWNER="myusername"
I’ve verified that the idVendor
and idProduct
lines match the device as reported by lsusb
on the host