snagboot 2.6__tar.gz → 3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {snagboot-2.6 → snagboot-3.0}/MANIFEST.in +1 -3
- {snagboot-2.6/src/snagboot.egg-info → snagboot-3.0}/PKG-INFO +7 -5
- {snagboot-2.6 → snagboot-3.0}/README.md +1 -1
- {snagboot-2.6 → snagboot-3.0}/pyproject.toml +2 -2
- {snagboot-2.6 → snagboot-3.0/src/snagboot.egg-info}/PKG-INFO +7 -5
- {snagboot-2.6 → snagboot-3.0}/src/snagboot.egg-info/SOURCES.txt +21 -12
- {snagboot-2.6 → snagboot-3.0}/src/snagboot.egg-info/requires.txt +6 -2
- {snagboot-2.6 → snagboot-3.0}/src/snagfactory/__init__.py +0 -4
- {snagboot-2.6 → snagboot-3.0}/src/snagfactory/board.py +10 -9
- {snagboot-2.6 → snagboot-3.0}/src/snagfactory/config.py +45 -33
- {snagboot-2.6 → snagboot-3.0}/src/snagfactory/fastboot.py +2 -1
- snagboot-3.0/src/snagfactory/gui-requirements.txt +3 -0
- snagboot-3.0/src/snagfactory/gui.py +653 -0
- snagboot-3.0/src/snagfactory/qml/SnagBoard.qml +52 -0
- snagboot-3.0/src/snagfactory/qml/SnagBoardID.qml +23 -0
- snagboot-3.0/src/snagfactory/qml/SnagBoardList.qml +91 -0
- snagboot-3.0/src/snagfactory/qml/SnagConfigEntry.qml +18 -0
- snagboot-3.0/src/snagfactory/qml/SnagConfigField.qml +12 -0
- snagboot-3.0/src/snagfactory/qml/SnagConfigTab.qml +8 -0
- snagboot-3.0/src/snagfactory/qml/SnagMainWindow.qml +167 -0
- snagboot-3.0/src/snagfactory/qml/SnagPanelItem.qml +9 -0
- snagboot-3.0/src/snagfactory/qml/SnagTabButton.qml +8 -0
- snagboot-3.0/src/snagfactory/qml/SnagUnpauseButton.qml +8 -0
- snagboot-3.0/src/snagfactory/qml/qmldir +7 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagfactory/session.py +28 -8
- snagboot-3.0/src/snagflash/android_sparse_file/utils.py +448 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagflash/bmaptools/BmapCopy.py +5 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagflash/cli.py +11 -8
- {snagboot-2.6 → snagboot-3.0}/src/snagflash/dfu.py +14 -2
- {snagboot-2.6 → snagboot-3.0}/src/snagflash/fastboot.py +38 -4
- {snagboot-2.6 → snagboot-3.0}/src/snagflash/fastboot_uboot.py +31 -9
- {snagboot-2.6 → snagboot-3.0}/src/snagflash/ums.py +14 -10
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/50-snagboot.rules +6 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/__init__.py +1 -1
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/am335x_usb_setup.sh +62 -28
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/cli.py +11 -8
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/config.py +26 -6
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/bcm.py +28 -23
- snagboot-3.0/src/snagrecover/firmware/fat.py +611 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/firmware.py +4 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/imx_fw.py +1 -0
- snagboot-3.0/src/snagrecover/firmware/qcom_fw.py +62 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/protocols/fastboot.py +59 -16
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/protocols/fel.py +0 -3
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/protocols/hid.py +19 -6
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/protocols/imx_sdp.py +17 -6
- snagboot-3.0/src/snagrecover/protocols/qcom_sahara.py +732 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/recoveries/am6x.py +1 -1
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/recoveries/imx.py +2 -2
- snagboot-3.0/src/snagrecover/recoveries/qcom.py +64 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/supported_socs.yaml +34 -0
- snagboot-3.0/src/snagrecover/templates/iq9075-evk.yaml +6 -0
- snagboot-3.0/src/snagrecover/templates/j721e-evm.yaml +9 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/utils.py +66 -31
- snagboot-2.6/src/snagfactory/assets/config.png +0 -0
- snagboot-2.6/src/snagfactory/assets/load_config.png +0 -0
- snagboot-2.6/src/snagfactory/assets/rescan.png +0 -0
- snagboot-2.6/src/snagfactory/assets/start.png +0 -0
- snagboot-2.6/src/snagfactory/assets/stop.png +0 -0
- snagboot-2.6/src/snagfactory/assets/view_logs.png +0 -0
- snagboot-2.6/src/snagfactory/config.kv +0 -123
- snagboot-2.6/src/snagfactory/gui-requirements.txt +0 -1
- snagboot-2.6/src/snagfactory/gui.kv +0 -352
- snagboot-2.6/src/snagfactory/gui.py +0 -476
- snagboot-2.6/src/snagflash/android_sparse_file/utils.py +0 -62
- {snagboot-2.6 → snagboot-3.0}/LICENSE +0 -0
- {snagboot-2.6 → snagboot-3.0}/setup.cfg +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagboot.egg-info/dependency_links.txt +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagboot.egg-info/entry_points.txt +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagboot.egg-info/top_level.txt +0 -0
- {snagboot-2.6/src/snagfactory/assets → snagboot-3.0/src/snagfactory/qml}/boards.png +0 -0
- {snagboot-2.6/src/snagfactory/assets → snagboot-3.0/src/snagfactory/qml}/lab_penguins.ico +0 -0
- {snagboot-2.6/src/snagfactory/assets → snagboot-3.0/src/snagfactory/qml}/lab_penguins.png +0 -0
- {snagboot-2.6/src/snagfactory/assets → snagboot-3.0/src/snagfactory/qml}/save.png +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagfactory/utils.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagflash/__init__.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagflash/android_sparse_file/__init__.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagflash/android_sparse_file/sparse.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagflash/bmaptools/BmapCreate.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagflash/bmaptools/BmapHelpers.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagflash/bmaptools/Filemap.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagflash/bmaptools/__init__.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/__init__.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/am335x_fw.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/amlogic_fw.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/ivt.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/rom_container.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/sama5_fw.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/samba_applet.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/sunxi_fw/__init__.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/sunxi_fw/fel-to-spl-thunk.S +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/sunxi_fw/fel-to-spl-thunk.bin +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/sunxi_fw/mmu.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/sunxi_fw/soc_info.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/sunxi_fw/sunxi_fw.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/firmware/zynqmp_fw.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/prompt.ps1 +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/protocols/__init__.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/protocols/amlogic.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/protocols/bcm.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/protocols/bootp.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/protocols/dfu.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/protocols/hab_constants.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/protocols/memory_ops.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/protocols/sambamon.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/recoveries/__init__.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/recoveries/am335x.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/recoveries/am62lx.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/recoveries/amlogic.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/recoveries/bcm.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/recoveries/keembay.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/recoveries/rzn1.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/recoveries/sama5.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/recoveries/stm32_flashlayout.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/recoveries/stm32mp.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/recoveries/sunxi.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/recoveries/zynqmp.py +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/am335x-beaglebone-black.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/am62x-beagle-play.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/am62x-phyboard-lyra.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/am654x-evm.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/amlogic_G12x_SM1.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/amlogic_GXx_AXG.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/bcm2711.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/bcm2712.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/imx28-evk.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/imx6-colibri-imx6ull.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/imx6-var-som-mx6.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/imx7-colibri-imx7d.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/imx8-dart-mx8m-mini.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/imx8mp-phyboard-pollux.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/imx8qm-mek.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/imx91-phyboard-segin.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/imx93-evk.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/keembay-generic.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/rzn1d-snarc.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/sama5-sama5d2xplained.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/sama5-sama5d3xplained.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/sama5-sama5d4xplained.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/stm32mp-stm32mp257f-ev1.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/stm32mp1-stm32mp135f-dk.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/stm32mp1-stm32mp157f-dk2.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/sunxi-orangepi-pc.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/templates/zynqmp-generic.yaml +0 -0
- {snagboot-2.6 → snagboot-3.0}/src/snagrecover/usb.py +0 -0
|
@@ -6,8 +6,6 @@ include src/snagrecover/templates/*
|
|
|
6
6
|
include src/snagrecover/50-snagboot.rules
|
|
7
7
|
include src/snagrecover/am335x_usb_setup.sh
|
|
8
8
|
include src/snagrecover/prompt.ps1
|
|
9
|
-
include src/snagfactory/
|
|
10
|
-
include src/snagfactory/config.kv
|
|
11
|
-
include src/snagfactory/assets/*
|
|
9
|
+
include src/snagfactory/qml/*
|
|
12
10
|
include src/snagfactory/gui-requirements.txt
|
|
13
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: snagboot
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0
|
|
4
4
|
Summary: Generic recovery and reflashing tool for embedded platforms
|
|
5
5
|
Author-email: Romain Gantois <romain.gantois@bootlin.com>
|
|
6
6
|
License-Expression: GPL-2.0-only
|
|
@@ -9,7 +9,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
9
9
|
Classifier: Operating System :: POSIX :: Linux
|
|
10
10
|
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
|
|
11
11
|
Classifier: Operating System :: Microsoft :: Windows :: Windows 11
|
|
12
|
-
Requires-Python: >=3.
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
15
|
Requires-Dist: pyyaml>=6.0
|
|
@@ -20,9 +20,11 @@ Requires-Dist: tftpy>=0.8.2
|
|
|
20
20
|
Requires-Dist: crccheck>=1.3.0
|
|
21
21
|
Requires-Dist: pylibfdt>=1.7.2.post1
|
|
22
22
|
Requires-Dist: packaging>=24.2
|
|
23
|
-
Requires-Dist:
|
|
23
|
+
Requires-Dist: backports.zstd; python_version < "3.14"
|
|
24
24
|
Provides-Extra: gui
|
|
25
|
-
Requires-Dist:
|
|
25
|
+
Requires-Dist: PySide6>=6.8.2; extra == "gui"
|
|
26
|
+
Requires-Dist: PySide6_Addons>=6.8.2; extra == "gui"
|
|
27
|
+
Requires-Dist: PySide6_Essentials>=6.8.2; extra == "gui"
|
|
26
28
|
Dynamic: license-file
|
|
27
29
|
|
|
28
30
|
# Snagboot
|
|
@@ -56,7 +58,7 @@ Snagboot currently supports the following families of System-On-Chips (SoCs):
|
|
|
56
58
|
* [Broadcom](https://www.broadcom.com/) BCM2711 and BCM2712, used in [Raspberry Pi 4 & 5](https://www.raspberrypi.com/documentation/computers/processors.html)
|
|
57
59
|
* [AMLogic](https://www.amlogic.com/#Products) series: G12A (eg S905D2), G12B (eg A311D), SM1 (eg S905D3) and series: GXL (eg S905D), GXM (eg S912), GXBB (eg S905), AXG (eg A113D)
|
|
58
60
|
* [Renesas](https://www.renesas.com/en/products/microcontrollers-microprocessors/rz-mpus) RZ/N1 series
|
|
59
|
-
|
|
61
|
+
* [Qualcomm](https://www.qualcomm.com/) [IQ9075](https://www.qualcomm.com/internet-of-things/products/iq9-series/iq-9075)
|
|
60
62
|
|
|
61
63
|
Please check [supported_socs.yaml](https://github.com/bootlin/snagboot/blob/main/src/snagrecover/supported_socs.yaml)
|
|
62
64
|
or run `snagrecover --list-socs` for a more precise list of supported SoCs.
|
|
@@ -29,7 +29,7 @@ Snagboot currently supports the following families of System-On-Chips (SoCs):
|
|
|
29
29
|
* [Broadcom](https://www.broadcom.com/) BCM2711 and BCM2712, used in [Raspberry Pi 4 & 5](https://www.raspberrypi.com/documentation/computers/processors.html)
|
|
30
30
|
* [AMLogic](https://www.amlogic.com/#Products) series: G12A (eg S905D2), G12B (eg A311D), SM1 (eg S905D3) and series: GXL (eg S905D), GXM (eg S912), GXBB (eg S905), AXG (eg A113D)
|
|
31
31
|
* [Renesas](https://www.renesas.com/en/products/microcontrollers-microprocessors/rz-mpus) RZ/N1 series
|
|
32
|
-
|
|
32
|
+
* [Qualcomm](https://www.qualcomm.com/) [IQ9075](https://www.qualcomm.com/internet-of-things/products/iq9-series/iq-9075)
|
|
33
33
|
|
|
34
34
|
Please check [supported_socs.yaml](https://github.com/bootlin/snagboot/blob/main/src/snagrecover/supported_socs.yaml)
|
|
35
35
|
or run `snagrecover --list-socs` for a more precise list of supported SoCs.
|
|
@@ -21,7 +21,7 @@ authors = [
|
|
|
21
21
|
]
|
|
22
22
|
description = "Generic recovery and reflashing tool for embedded platforms"
|
|
23
23
|
readme = "README.md"
|
|
24
|
-
requires-python = ">=3.
|
|
24
|
+
requires-python = ">=3.10"
|
|
25
25
|
license = "GPL-2.0-only"
|
|
26
26
|
classifiers = [
|
|
27
27
|
"Programming Language :: Python :: 3",
|
|
@@ -38,7 +38,7 @@ dependencies = [
|
|
|
38
38
|
"crccheck >= 1.3.0",
|
|
39
39
|
"pylibfdt >= 1.7.2.post1",
|
|
40
40
|
"packaging >= 24.2",
|
|
41
|
-
"
|
|
41
|
+
"backports.zstd; python_version < '3.14'"
|
|
42
42
|
]
|
|
43
43
|
|
|
44
44
|
[project.urls]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: snagboot
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0
|
|
4
4
|
Summary: Generic recovery and reflashing tool for embedded platforms
|
|
5
5
|
Author-email: Romain Gantois <romain.gantois@bootlin.com>
|
|
6
6
|
License-Expression: GPL-2.0-only
|
|
@@ -9,7 +9,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
9
9
|
Classifier: Operating System :: POSIX :: Linux
|
|
10
10
|
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
|
|
11
11
|
Classifier: Operating System :: Microsoft :: Windows :: Windows 11
|
|
12
|
-
Requires-Python: >=3.
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
15
|
Requires-Dist: pyyaml>=6.0
|
|
@@ -20,9 +20,11 @@ Requires-Dist: tftpy>=0.8.2
|
|
|
20
20
|
Requires-Dist: crccheck>=1.3.0
|
|
21
21
|
Requires-Dist: pylibfdt>=1.7.2.post1
|
|
22
22
|
Requires-Dist: packaging>=24.2
|
|
23
|
-
Requires-Dist:
|
|
23
|
+
Requires-Dist: backports.zstd; python_version < "3.14"
|
|
24
24
|
Provides-Extra: gui
|
|
25
|
-
Requires-Dist:
|
|
25
|
+
Requires-Dist: PySide6>=6.8.2; extra == "gui"
|
|
26
|
+
Requires-Dist: PySide6_Addons>=6.8.2; extra == "gui"
|
|
27
|
+
Requires-Dist: PySide6_Essentials>=6.8.2; extra == "gui"
|
|
26
28
|
Dynamic: license-file
|
|
27
29
|
|
|
28
30
|
# Snagboot
|
|
@@ -56,7 +58,7 @@ Snagboot currently supports the following families of System-On-Chips (SoCs):
|
|
|
56
58
|
* [Broadcom](https://www.broadcom.com/) BCM2711 and BCM2712, used in [Raspberry Pi 4 & 5](https://www.raspberrypi.com/documentation/computers/processors.html)
|
|
57
59
|
* [AMLogic](https://www.amlogic.com/#Products) series: G12A (eg S905D2), G12B (eg A311D), SM1 (eg S905D3) and series: GXL (eg S905D), GXM (eg S912), GXBB (eg S905), AXG (eg A113D)
|
|
58
60
|
* [Renesas](https://www.renesas.com/en/products/microcontrollers-microprocessors/rz-mpus) RZ/N1 series
|
|
59
|
-
|
|
61
|
+
* [Qualcomm](https://www.qualcomm.com/) [IQ9075](https://www.qualcomm.com/internet-of-things/products/iq9-series/iq-9075)
|
|
60
62
|
|
|
61
63
|
Please check [supported_socs.yaml](https://github.com/bootlin/snagboot/blob/main/src/snagrecover/supported_socs.yaml)
|
|
62
64
|
or run `snagrecover --list-socs` for a more precise list of supported SoCs.
|
|
@@ -10,24 +10,27 @@ src/snagboot.egg-info/requires.txt
|
|
|
10
10
|
src/snagboot.egg-info/top_level.txt
|
|
11
11
|
src/snagfactory/__init__.py
|
|
12
12
|
src/snagfactory/board.py
|
|
13
|
-
src/snagfactory/config.kv
|
|
14
13
|
src/snagfactory/config.py
|
|
15
14
|
src/snagfactory/fastboot.py
|
|
16
15
|
src/snagfactory/gui-requirements.txt
|
|
17
|
-
src/snagfactory/gui.kv
|
|
18
16
|
src/snagfactory/gui.py
|
|
19
17
|
src/snagfactory/session.py
|
|
20
18
|
src/snagfactory/utils.py
|
|
21
|
-
src/snagfactory/
|
|
22
|
-
src/snagfactory/
|
|
23
|
-
src/snagfactory/
|
|
24
|
-
src/snagfactory/
|
|
25
|
-
src/snagfactory/
|
|
26
|
-
src/snagfactory/
|
|
27
|
-
src/snagfactory/
|
|
28
|
-
src/snagfactory/
|
|
29
|
-
src/snagfactory/
|
|
30
|
-
src/snagfactory/
|
|
19
|
+
src/snagfactory/qml/SnagBoard.qml
|
|
20
|
+
src/snagfactory/qml/SnagBoardID.qml
|
|
21
|
+
src/snagfactory/qml/SnagBoardList.qml
|
|
22
|
+
src/snagfactory/qml/SnagConfigEntry.qml
|
|
23
|
+
src/snagfactory/qml/SnagConfigField.qml
|
|
24
|
+
src/snagfactory/qml/SnagConfigTab.qml
|
|
25
|
+
src/snagfactory/qml/SnagMainWindow.qml
|
|
26
|
+
src/snagfactory/qml/SnagPanelItem.qml
|
|
27
|
+
src/snagfactory/qml/SnagTabButton.qml
|
|
28
|
+
src/snagfactory/qml/SnagUnpauseButton.qml
|
|
29
|
+
src/snagfactory/qml/boards.png
|
|
30
|
+
src/snagfactory/qml/lab_penguins.ico
|
|
31
|
+
src/snagfactory/qml/lab_penguins.png
|
|
32
|
+
src/snagfactory/qml/qmldir
|
|
33
|
+
src/snagfactory/qml/save.png
|
|
31
34
|
src/snagflash/__init__.py
|
|
32
35
|
src/snagflash/cli.py
|
|
33
36
|
src/snagflash/dfu.py
|
|
@@ -55,9 +58,11 @@ src/snagrecover/firmware/__init__.py
|
|
|
55
58
|
src/snagrecover/firmware/am335x_fw.py
|
|
56
59
|
src/snagrecover/firmware/amlogic_fw.py
|
|
57
60
|
src/snagrecover/firmware/bcm.py
|
|
61
|
+
src/snagrecover/firmware/fat.py
|
|
58
62
|
src/snagrecover/firmware/firmware.py
|
|
59
63
|
src/snagrecover/firmware/imx_fw.py
|
|
60
64
|
src/snagrecover/firmware/ivt.py
|
|
65
|
+
src/snagrecover/firmware/qcom_fw.py
|
|
61
66
|
src/snagrecover/firmware/rom_container.py
|
|
62
67
|
src/snagrecover/firmware/sama5_fw.py
|
|
63
68
|
src/snagrecover/firmware/samba_applet.py
|
|
@@ -79,6 +84,7 @@ src/snagrecover/protocols/hab_constants.py
|
|
|
79
84
|
src/snagrecover/protocols/hid.py
|
|
80
85
|
src/snagrecover/protocols/imx_sdp.py
|
|
81
86
|
src/snagrecover/protocols/memory_ops.py
|
|
87
|
+
src/snagrecover/protocols/qcom_sahara.py
|
|
82
88
|
src/snagrecover/protocols/sambamon.py
|
|
83
89
|
src/snagrecover/recoveries/__init__.py
|
|
84
90
|
src/snagrecover/recoveries/am335x.py
|
|
@@ -88,6 +94,7 @@ src/snagrecover/recoveries/amlogic.py
|
|
|
88
94
|
src/snagrecover/recoveries/bcm.py
|
|
89
95
|
src/snagrecover/recoveries/imx.py
|
|
90
96
|
src/snagrecover/recoveries/keembay.py
|
|
97
|
+
src/snagrecover/recoveries/qcom.py
|
|
91
98
|
src/snagrecover/recoveries/rzn1.py
|
|
92
99
|
src/snagrecover/recoveries/sama5.py
|
|
93
100
|
src/snagrecover/recoveries/stm32_flashlayout.py
|
|
@@ -111,6 +118,8 @@ src/snagrecover/templates/imx8mp-phyboard-pollux.yaml
|
|
|
111
118
|
src/snagrecover/templates/imx8qm-mek.yaml
|
|
112
119
|
src/snagrecover/templates/imx91-phyboard-segin.yaml
|
|
113
120
|
src/snagrecover/templates/imx93-evk.yaml
|
|
121
|
+
src/snagrecover/templates/iq9075-evk.yaml
|
|
122
|
+
src/snagrecover/templates/j721e-evm.yaml
|
|
114
123
|
src/snagrecover/templates/keembay-generic.yaml
|
|
115
124
|
src/snagrecover/templates/rzn1d-snarc.yaml
|
|
116
125
|
src/snagrecover/templates/sama5-sama5d2xplained.yaml
|
|
@@ -4,6 +4,7 @@ import uuid
|
|
|
4
4
|
from snagrecover.utils import prettify_usb_addr, parse_usb_path
|
|
5
5
|
import sys
|
|
6
6
|
import os
|
|
7
|
+
import contextlib
|
|
7
8
|
import os.path
|
|
8
9
|
import logging
|
|
9
10
|
import logging.handlers
|
|
@@ -181,30 +182,30 @@ def get_recovery_config(board):
|
|
|
181
182
|
|
|
182
183
|
|
|
183
184
|
def run_recovery(config, soc_family, log_queue):
|
|
184
|
-
sys.stdout = open(os.devnull, "w")
|
|
185
|
-
sys.stderr = open(os.devnull, "w")
|
|
186
|
-
|
|
187
185
|
import snagrecover.config
|
|
188
186
|
|
|
189
187
|
snagrecover.config.recovery_config = config
|
|
190
188
|
logger = logging.getLogger("snagrecover")
|
|
191
189
|
logger.propagate = False
|
|
192
190
|
logger.handlers.clear()
|
|
191
|
+
logger.setLevel(logging.DEBUG)
|
|
193
192
|
log_handler = logging.handlers.QueueHandler(log_queue)
|
|
194
193
|
log_formatter = logging.Formatter(
|
|
195
194
|
f"%(asctime)s,%(msecs)03d [{prettify_usb_addr(config['usb_path'])}][%(levelname)-8s] %(message)s",
|
|
196
195
|
datefmt="%H:%M:%S",
|
|
197
196
|
)
|
|
198
197
|
log_handler.setFormatter(log_formatter)
|
|
198
|
+
log_handler.setLevel(logging.INFO)
|
|
199
199
|
logger.addHandler(log_handler)
|
|
200
|
-
logger.setLevel(logging.INFO)
|
|
201
200
|
|
|
202
201
|
recovery = snagrecover.utils.get_recovery(soc_family)
|
|
203
202
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
203
|
+
with open(os.devnull, "w") as devnull:
|
|
204
|
+
with contextlib.redirect_stdout(devnull), contextlib.redirect_stderr(devnull):
|
|
205
|
+
try:
|
|
206
|
+
recovery()
|
|
207
|
+
except Exception as e:
|
|
208
|
+
logger.error(f"Caught exception from snagrecover: {e}")
|
|
209
|
+
sys.exit(-1)
|
|
209
210
|
|
|
210
211
|
logger.handlers.clear()
|
|
@@ -3,6 +3,7 @@ import os
|
|
|
3
3
|
import re
|
|
4
4
|
|
|
5
5
|
from snagrecover.utils import get_supported_socs, get_soc_aliases
|
|
6
|
+
from snagrecover.config import complete_fw_paths
|
|
6
7
|
|
|
7
8
|
from snagfactory.fastboot import task_table
|
|
8
9
|
from snagfactory.utils import SnagFactoryConfigError
|
|
@@ -33,10 +34,10 @@ def str_rule(pattern: str):
|
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
|
|
36
|
-
name_rule = str_rule("[\w\-]+")
|
|
37
|
-
path_rule = str_rule("[\w\-\/\.:]+")
|
|
37
|
+
name_rule = str_rule(r"[\w\-]+")
|
|
38
|
+
path_rule = str_rule(r"[\w\-\/\.:]+")
|
|
38
39
|
|
|
39
|
-
fastboot_cmd_rule = str_rule("\w+(:.+)?")
|
|
40
|
+
fastboot_cmd_rule = str_rule(r"\w+(:.+)?")
|
|
40
41
|
|
|
41
42
|
int_rule = {"type": int}
|
|
42
43
|
bool_rule = {"type": bool}
|
|
@@ -57,40 +58,40 @@ gp_rule = {
|
|
|
57
58
|
|
|
58
59
|
emmc_hwpart_task_rule = {
|
|
59
60
|
"type": dict,
|
|
60
|
-
"task": str_rule("emmc-hwpart"),
|
|
61
|
+
"task": str_rule(r"emmc-hwpart"),
|
|
61
62
|
"args": {
|
|
62
63
|
"type": dict,
|
|
63
64
|
"euda": euda_rule,
|
|
64
|
-
"gp\d": gp_rule,
|
|
65
|
+
r"gp\d": gp_rule,
|
|
65
66
|
"skip-pwr-cycle": bool_rule,
|
|
66
67
|
},
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
prompt_operator_task_rule = {
|
|
70
71
|
"type": dict,
|
|
71
|
-
"task": str_rule("prompt-operator"),
|
|
72
|
+
"task": str_rule(r"prompt-operator"),
|
|
72
73
|
"args": {
|
|
73
74
|
"type": dict,
|
|
74
|
-
"prompt": str_rule(".+"),
|
|
75
|
+
"prompt": str_rule(r".+"),
|
|
75
76
|
"reset-before": bool_rule,
|
|
76
77
|
},
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
reset_task_rule = {
|
|
80
81
|
"type": dict,
|
|
81
|
-
"task": str_rule("reset"),
|
|
82
|
+
"task": str_rule(r"reset"),
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
flash_rule = {
|
|
85
86
|
"type": dict,
|
|
86
|
-
"part": str_rule("([\w\-\.]+|hwpart \d)"),
|
|
87
|
+
"part": str_rule(r"([\w\-\.]+|hwpart \d)"),
|
|
87
88
|
"image": path_rule,
|
|
88
89
|
"image-offset": int_rule,
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
flash_task_rule = {
|
|
92
93
|
"type": dict,
|
|
93
|
-
"task": str_rule("flash"),
|
|
94
|
+
"task": str_rule(r"flash"),
|
|
94
95
|
"args": {
|
|
95
96
|
"type": list,
|
|
96
97
|
"rules": [
|
|
@@ -103,7 +104,7 @@ mtd_part_rule = {
|
|
|
103
104
|
"type": dict,
|
|
104
105
|
"image": path_rule,
|
|
105
106
|
"image-offset": int_rule,
|
|
106
|
-
"name": str_rule("[\w][\w\-\.]*"),
|
|
107
|
+
"name": str_rule(r"[\w][\w\-\.]*"),
|
|
107
108
|
"start": int_rule,
|
|
108
109
|
"size": int_rule,
|
|
109
110
|
"ro": bool_rule,
|
|
@@ -113,17 +114,17 @@ partition_rule = {
|
|
|
113
114
|
"type": dict,
|
|
114
115
|
"image": path_rule,
|
|
115
116
|
"image-offset": int_rule,
|
|
116
|
-
"name": str_rule("[\w][\w\-]*"),
|
|
117
|
+
"name": str_rule(r"[\w][\w\-]*"),
|
|
117
118
|
"start": int_rule,
|
|
118
119
|
"size": int_rule,
|
|
119
120
|
"bootable": bool_rule,
|
|
120
|
-
"uuid": str_rule("[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"),
|
|
121
|
-
"type()": str_rule("[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"),
|
|
121
|
+
"uuid": str_rule(r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"),
|
|
122
|
+
"type()": str_rule(r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"),
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
run_task_rule = {
|
|
125
126
|
"type": dict,
|
|
126
|
-
"task": str_rule("run"),
|
|
127
|
+
"task": str_rule(r"run"),
|
|
127
128
|
"args": {
|
|
128
129
|
"type": list,
|
|
129
130
|
"rules": [
|
|
@@ -134,7 +135,7 @@ run_task_rule = {
|
|
|
134
135
|
|
|
135
136
|
mtd_parts_task_rule = {
|
|
136
137
|
"type": dict,
|
|
137
|
-
"task": str_rule("mtd-parts"),
|
|
138
|
+
"task": str_rule(r"mtd-parts"),
|
|
138
139
|
"args": {
|
|
139
140
|
"type": list,
|
|
140
141
|
"rules": [
|
|
@@ -145,7 +146,7 @@ mtd_parts_task_rule = {
|
|
|
145
146
|
|
|
146
147
|
gpt_task_rule = {
|
|
147
148
|
"type": dict,
|
|
148
|
-
"task": str_rule("gpt"),
|
|
149
|
+
"task": str_rule(r"gpt"),
|
|
149
150
|
"args": {
|
|
150
151
|
"type": list,
|
|
151
152
|
"rules": [
|
|
@@ -156,7 +157,7 @@ gpt_task_rule = {
|
|
|
156
157
|
|
|
157
158
|
globals_rule = {
|
|
158
159
|
"type": dict,
|
|
159
|
-
"target-device": str_rule("[\w\-]+"),
|
|
160
|
+
"target-device": str_rule(r"[\w\-]+"),
|
|
160
161
|
"fb-buffer-size": int_rule,
|
|
161
162
|
"fb-buffer-addr": int_rule,
|
|
162
163
|
"eraseblk-size": int_rule,
|
|
@@ -180,7 +181,7 @@ config_rule = {
|
|
|
180
181
|
"type": dict,
|
|
181
182
|
"boards": {
|
|
182
183
|
"type": dict,
|
|
183
|
-
"[\da-fA-F]{4}:[\da-fA-F]{4}": str_rule(soc_model_pattern),
|
|
184
|
+
r"[\da-fA-F]{4}:[\da-fA-F]{4}": str_rule(soc_model_pattern),
|
|
184
185
|
},
|
|
185
186
|
"soc-models": {
|
|
186
187
|
"type": dict,
|
|
@@ -215,7 +216,7 @@ def map_config(config, modify):
|
|
|
215
216
|
|
|
216
217
|
|
|
217
218
|
def suffixed_num_to_int(param) -> int:
|
|
218
|
-
pattern = re.compile("^\d+[GMKgmk]?$")
|
|
219
|
+
pattern = re.compile(r"^\d+[GMKgmk]?$")
|
|
219
220
|
|
|
220
221
|
if not isinstance(param, str) or pattern.match(param) is None:
|
|
221
222
|
return param
|
|
@@ -235,20 +236,33 @@ def suffixed_num_to_int(param) -> int:
|
|
|
235
236
|
return int(num) * multiplier
|
|
236
237
|
|
|
237
238
|
|
|
238
|
-
def preprocess_config(config):
|
|
239
|
+
def preprocess_config(config_path: str, config: dict):
|
|
239
240
|
"""
|
|
240
241
|
This performs the following transformations on the parsed YAML config file:
|
|
241
|
-
- find strings of the form "
|
|
242
|
+
- find strings of the form "[0-9]+(M|k)?" and convert them to integers
|
|
243
|
+
- convert relative firmware paths to absolute paths
|
|
242
244
|
"""
|
|
243
245
|
|
|
244
246
|
map_config(config, suffixed_num_to_int)
|
|
245
247
|
|
|
248
|
+
if "boards" not in config:
|
|
249
|
+
# This will be caught by check_config() later.
|
|
250
|
+
return
|
|
251
|
+
|
|
252
|
+
soc_models = set(config["boards"].values())
|
|
253
|
+
for soc_model in soc_models:
|
|
254
|
+
if f"{soc_model}-firmware" not in config["soc-models"]:
|
|
255
|
+
# This will be caught by check_config() later.
|
|
256
|
+
continue
|
|
257
|
+
|
|
258
|
+
complete_fw_paths(config["soc-models"][f"{soc_model}-firmware"], config_path)
|
|
259
|
+
|
|
246
260
|
|
|
247
261
|
def read_config(path, check_paths=True):
|
|
248
262
|
with open(path, "r") as file:
|
|
249
263
|
config = yaml.safe_load(file)
|
|
250
264
|
|
|
251
|
-
preprocess_config(config)
|
|
265
|
+
preprocess_config(path, config)
|
|
252
266
|
|
|
253
267
|
check_config(config, check_paths)
|
|
254
268
|
|
|
@@ -353,23 +367,21 @@ def check_config(config, check_paths=True):
|
|
|
353
367
|
# Check config syntax
|
|
354
368
|
check_entry(config, config_rule)
|
|
355
369
|
|
|
356
|
-
|
|
370
|
+
soc_models = set(config["boards"].values())
|
|
371
|
+
for soc_model in soc_models:
|
|
357
372
|
# check that each soc has a task section and a firmware section
|
|
358
|
-
soc_model, sep, suffix = soc_key.partition("-")
|
|
359
|
-
|
|
360
|
-
if suffix != "firmware":
|
|
361
|
-
if f"{soc_model}-tasks" not in config["soc-models"]:
|
|
362
|
-
raise SnagFactoryConfigError(f"Section {soc_model}-tasks is missing!")
|
|
363
|
-
|
|
364
|
-
continue
|
|
365
|
-
|
|
366
373
|
if f"{soc_model}-firmware" not in config["soc-models"]:
|
|
367
374
|
raise SnagFactoryConfigError(f"Section {soc_model}-firmware is missing!")
|
|
368
375
|
|
|
376
|
+
if f"{soc_model}-tasks" not in config["soc-models"]:
|
|
377
|
+
raise SnagFactoryConfigError(f"Section {soc_model}-tasks is missing!")
|
|
378
|
+
|
|
369
379
|
if not check_paths:
|
|
370
380
|
continue
|
|
371
381
|
|
|
372
|
-
|
|
382
|
+
# check that specified firmware files exist
|
|
383
|
+
|
|
384
|
+
for firmware in config["soc-models"][f"{soc_model}-firmware"].values():
|
|
373
385
|
if not os.path.exists(firmware["path"]):
|
|
374
386
|
raise SnagFactoryConfigError(
|
|
375
387
|
f"firmware file {firmware['path']} does not exist!"
|
|
@@ -36,14 +36,15 @@ def run_fastboot_task(args, log_queue):
|
|
|
36
36
|
|
|
37
37
|
logger.propagate = False
|
|
38
38
|
logger.handlers.clear()
|
|
39
|
+
logger.setLevel(logging.DEBUG)
|
|
39
40
|
log_handler = logging.handlers.QueueHandler(log_queue)
|
|
40
41
|
log_formatter = logging.Formatter(
|
|
41
42
|
f"%(asctime)s,%(msecs)03d [{args.port}][%(levelname)-8s] %(message)s",
|
|
42
43
|
datefmt="%H:%M:%S",
|
|
43
44
|
)
|
|
44
45
|
log_handler.setFormatter(log_formatter)
|
|
46
|
+
log_handler.setLevel(logging.INFO)
|
|
45
47
|
logger.addHandler(log_handler)
|
|
46
|
-
logger.setLevel(logging.INFO)
|
|
47
48
|
|
|
48
49
|
try:
|
|
49
50
|
fastboot(args)
|