Last active
October 29, 2023 04:46
-
-
Save gtxaspec/df104700d41a91f4b5304a325327852e to your computer and use it in GitHub Desktop.
wyze v3pro flashing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| ## **Wyze V3 PRO Backup & Restore Guide** | |
| ### **Backup Procedure:** | |
| #### **Disable the Boot Timeout:** | |
| 1. Launch the **Ingenic Cloner** program. | |
| 2. Connect the USB cable to the V3 Pro but leave the other end unplugged from your computer. | |
| 3. Short pins 5 & 6 on the NAND chip. | |
| 4. With the pins still shorted, connect the USB cable to your computer. | |
| 5. Once the Ingenic USB boot device is recognized by your computer, remove the short from the pins. | |
| 6. In the Cloner program: | |
| - Click **Config**. | |
| - Select **T** under the **Platform** menu and **T40** in the adjacent dropdown. | |
| - For **Board**, choose **Wyze_V3_PRO_ENV_Write.cfg**. | |
| - Click **Save** (Ensure no other settings are changed). | |
| 7. Click **Start** to write the new environment. The device will reboot. | |
| 8. Monitor the UART output and press **Enter** at the U-Boot prompt. | |
| #### **Backup NAND to MMC:** | |
| 9. Insert the MMC card. | |
| 10. Type: `mmc rescan` | |
| 11. Execute: `nand read 0x80000000 0x0 0x8000000` | |
| 12. Sequentially run each of the following commands. If any command encounters an error, repeat it until you receive an **OK**: | |
| ``` | |
| mmc write 0x80000000 0x0 0x8000 | |
| mmc write 0x81000000 0x8000 0x8000 | |
| mmc write 0x82000000 0x10000 0x8000 | |
| mmc write 0x83000000 0x18000 0x8000 | |
| mmc write 0x84000000 0x20000 0x8000 | |
| mmc write 0x85000000 0x28000 0x8000 | |
| mmc write 0x86000000 0x30000 0x8000 | |
| mmc write 0x87000000 0x38000 0x8000 | |
| mmc write 0x88000000 0x40000 0x8000 | |
| mmc write 0x89000000 0x48000 0x8000 | |
| mmc write 0x8A000000 0x50000 0x8000 | |
| mmc write 0x8B000000 0x58000 0x8000 | |
| mmc write 0x8C000000 0x60000 0x8000 | |
| mmc write 0x8D000000 0x68000 0x8000 | |
| mmc write 0x8E000000 0x70000 0x8000 | |
| mmc write 0x8F000000 0x78000 0x8000 | |
| ``` | |
| 13. Type: `reset` | |
| 14. Eject the MMC card from the V3 Pro and insert it into your computer. | |
| 15. In a terminal, execute the following command: | |
| ``` | |
| sudo dd if=/dev/sdb of=output_file1.bin bs=4M count=32 | |
| ``` | |
| 16. Create an MD5 checksum: | |
| ``` | |
| md5sum output_file1.bin > output_file1.md5 | |
| ``` | |
| 17. Repeat steps 9 through 16 two more times for a total of three files: `output_file1.bin`, `output_file2.bin`, and `output_file3.bin`. | |
| 18. Verify the integrity: | |
| ``` | |
| cat output_file*.md5 | |
| ``` | |
| Ensure the MD5 checksums for all three files match. If not, redo steps 9 to 16. Once you have three successful matches, store your backups securely. | |
| --- | |
| ### **Restore Procedure:** | |
| #### **Using the CLONER:** | |
| *coming soon* | |
| #### **Using MMC:** | |
| 1. Boot to U-Boot. | |
| 2. Type: `mmc rescan` | |
| 3. Erase chip: nand erase 0x0 0x8000000 | |
| 3. Load your backup from the MMC card: `fatload mmc 0:1 0x80000000 output_file.bin` | |
| 4. Restore to NAND: `nand write 0x80000000 0x0 0x8000000` | |
| 5. Type: `reset` | |
| 6. Done | |
| --- | |
| ### **Flashing U-Boot:** | |
| 1. Clear the memory area: `mw.b 0x80000000 0xff 0x50000` | |
| 2. Load U-Boot from MMC: `fatload mmc 0:1 0x80000000 u-boot-t40xp-nand-universal.bin` | |
| 3. Flash U-Boot to NAND: `nand erase 0x0 0x300000; nand write 0x80000000 0x0 0x300000` | |
| 4. Reboot by typing: `reset` | |
| --- | |
| **Note**: Ensure you are familiar with the devices and tools mentioned. Always take backups and exercise caution when performing firmware and hardware operations. | |
| --- | |
| Flashing OpenIPC: | |
| setenv nand_oobsize 64 | |
| setenv bootcmd 'ubi part ubi; ubi readvol 0x84000000 kernel; bootm 0x84000000' | |
| setenv mtdparts mtdparts=nand:1M(uboot),-(ubi) | |
| setenv bootargs console=ttyS1,115200n8 mem=160M@0x0 rmem=64M@0xA000000 nmem=32M@0xE000000 panic=1 init=/init rootfstype=ubifs root=ubi0:rootfs ubi.mtd=ubi rw mtdparts=sfc_nand:1M(uboot),-(ubi) lpj=11968512 | |
| saveenv | |
| nand erase.part ubi | |
| fatload mmc 0:1 0x80800000 rootfs.ubi | |
| nand write 0x80800000 ubi ${filesize} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment