mirror of https://github.com/arendst/Tasmota.git
Updated Flash Sonoff using Raspberry Pi (markdown)
parent
19d5d54a0a
commit
fe49ad07a3
|
@ -5,6 +5,7 @@ https://www.sigmdel.ca/michel/ha/sonoff/flashing_sonoff_en.html
|
||||||
|
|
||||||
So, I will summarize the process and needed adoptions based on the above blog, please refer there for a more detailed explanation ;)
|
So, I will summarize the process and needed adoptions based on the above blog, please refer there for a more detailed explanation ;)
|
||||||
|
|
||||||
|
|
||||||
# Preparation of the Raspberry:
|
# Preparation of the Raspberry:
|
||||||
1. Install esptool (pip needed)
|
1. Install esptool (pip needed)
|
||||||
`sudo pip install esptool`
|
`sudo pip install esptool`
|
||||||
|
@ -22,17 +23,20 @@ So, I will summarize the process and needed adoptions based on the above blog, p
|
||||||
-> add the line (at the bottom):
|
-> add the line (at the bottom):
|
||||||
enable_uart=1
|
enable_uart=1
|
||||||
|
|
||||||
4. Wire RaspberryPi:
|
# Wire RaspberryPi:
|
||||||
https://www.sigmdel.ca/michel/ha/sonoff/flashing_sonoff_en.html
|
https://www.sigmdel.ca/michel/ha/sonoff/flashing_sonoff_en.html
|
||||||
![Wiring](https://www.sigmdel.ca/michel/ha/sonoff/img/sonoff-rpi.jpg)
|
![Wiring](https://www.sigmdel.ca/michel/ha/sonoff/img/sonoff-rpi.jpg)
|
||||||
(For RaspberryPi 3 (40 GPIO pins) GND is the last pin on the left, the 39th pin.)
|
(For RaspberryPi 3 (40 GPIO pins) GND is the last pin on the left, the 39th pin.)
|
||||||
|
|
||||||
5. Erase flash memory:
|
# Flashing the firmware
|
||||||
|
1. Erase flash memory:
|
||||||
Connect 3,3V while button pressed to enter flash-mode:
|
Connect 3,3V while button pressed to enter flash-mode:
|
||||||
|
|
||||||
`esptool.py —port /dev/ttyS0 erase_flash`
|
`esptool.py —port /dev/ttyS0 erase_flash`
|
||||||
|
|
||||||
6. Flash .bin, which you can download from the release-section of this git:
|
2. Flash .bin, which you can download from the release-section of this git:
|
||||||
Again connect 3,3V while pressing button:
|
Again connect 3,3V while pressing button:
|
||||||
|
|
||||||
`esptool.py —port /dev/ttyS0 write_flash -fs 1MB -fm dout 0x0 /path/to/sonoff.bin`
|
`esptool.py —port /dev/ttyS0 write_flash -fs 1MB -fm dout 0x0 /path/to/sonoff.bin`
|
||||||
|
|
||||||
7. Setup Wifi:
|
7. Setup Wifi:
|
||||||
|
|
Loading…
Reference in New Issue