Update sigmastar-unbrick.md

pull/199/head
mixatronik 2023-10-23 11:54:25 +05:00 committed by GitHub
parent 796309aad3
commit afe00c14ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 2 deletions

View File

@ -3,9 +3,29 @@
Sigmastar unbrick
---
**Prerequisite**
- git
- make
- i2c-tools
---
**Disabling ch341 core module loading**
Add the line blacklist ch341 to the file /etc/modprobe.d/blacklist.conf. Update initramfs and reboot the system:
```
sudo update-initramfs -u
reboot
```
---
**Ch341-i2c driver download**
```
git clone https://github.com/frank-zago/ch341-i2c-spi-gpio
make -C ch341-i2c-spi-gpio
sudo insmod ch341-i2c-spi-gpio/ch341-core.ko
sudo insmod ch341-i2c-spi-gpio/i2c-ch341.ko
```
---
**Locate the Sigmastar UART output and connect it to the CH341A I2C:**
- $\color{black}{\texttt{GND -> GND (PIN 1-4)}}$
- $\color{grey}{\texttt{GND -> GND (PIN 1-4)}}$
- $\color{deepskyblue}{\texttt{TX -> SDA I2C (PIN 5)}}$
- $\color{orange}{\texttt{RX -> SCL I2C (PIN 6)}}$
@ -17,7 +37,15 @@ Sigmastar unbrick
**Download snander-mstar:**
- https://github.com/viktorxda/snander-mstar/releases
```
git clone https://github.com/viktorxda/snander-mstar
```
In the /snander-mstar/src/spi_controller.h file, specify your i2c device in the #define I2C_CONNECTION directive and compile the sources
:
```
make -C snander-mstar
mv snander-mstar/snander .
```
---
**Check the device flash with snander:**