SparkFun Edge with SparkFun Serial Basic Breakout - CH340C on Fedora Silverblue 30

I would like to post a successful setup for Fedora Silverblue 30 as I stayed up until 0400 this morning trying to communicate with my new SparkFun Edge Development Board - Apollo3 Blue using the SparkFun Serial Basic Breakout - CH340C. This may not be the prettiest setup but it works. You can always clean it up after you have confirmed you can flash the Apollo3 Blue using the CH340C via the patched ch34x module.

BLUF: Use the patched ch34x module! If it does not have an x on the end its worthless.

Python3 environment install and patched CH340 on Fedora Silverblue

Associated documentation

https://codelabs.developers.google.com/ … sorflow/#3

replace mycon with whatever container name you care to use in below examples

toolbox create --container mycon
toolbox enter --container mycon
sudo dnf -y update
sudo dnf -y install python3 g++ python3-devel arm-none-eabi-binutils-cs arm-none-eabi-gcc-cs-c++ arm-none-eabi-gcc-cs arm-none-eabi-newlib

git clone https://github.com/dlitz/pycrypto.git

git clone https://github.com/pyserial/pyserial.git

For both repositories: ```
python3 setup.py install --user


Exit toolbox container: exit

Run below on host Fedora Silverblue not within your container 

lsmod | grep ch34

sudo rmmod ch341


#rmmod probably not needed 

#blacklist will work until next rpm-ostree update to a new kernel I believe

vi /etc/modprobe.d/blacklist.conf

blacklist ch341


sudo systemctl reboot


<B>**Associated documentation**</B>

[https://learn.sparkfun.com/tutorials/ho ... vers#linux](https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers#linux)

git clone [https://github.com/juliagoda/CH341SER.git](https://github.com/juliagoda/CH341SER.git)

make clean
make
sudo make load
sudo lsmod | grep ch34
ch34x 24576 0


toolbox enter --container mycon


[git clone https://github.com/tensorflow/tensorflow.git](git%20clone%20https%3A//github.com/tensorflow/tensorflow.git)

Verify you have <B>**FULLY**</B> followed through the tutorial here: [https://codelabs.developers.google.com/ ... sorflow/#3](https://codelabs.developers.google.com/codelabs/sparkfun-tensorflow/#3) before you run the below command:

export DEVICENAME=/dev/ttyUSB0
export BAUD_RATE=921600


python3 tensorflow/lite/experimental/micro/tools/make/downloads/AmbiqSuite-Rel2.0.0/tools/apollo3_scripts/uart_wired_update.py -b ${BAUD_RATE} ${DEVICENAME} -r 1 -f main_nonsecure_wire.bin -i 6

Cool, thanks!