Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/snagrecover.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ booting from FEL mode. On some models, this will happen automatically. On
others, further setup is required. We recommend that you check your board
vendor's user guide.

### TI AM62x/AM62Ax/AM62Px/AM62Lx/AM62Dx/AM64x/AM654x
### TI AM62x/AM62Ax/AM62Px/AM62Lx/AM62Dx/AM64x/AM654x/J721e

Connect the USB device port to your host PC. Power your board, making sure that
the SoC is configured to boot from DFU. The SoC can also fall back to DFU if all
Expand Down
1 change: 1 addition & 0 deletions src/snagrecover/50-snagboot.rules
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="efe8", MODE="0660"

#TI rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="6165", MODE="0660", TAG+="uaccess"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="6163", MODE="0660", TAG+="uaccess"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="6162", MODE="0660", TAG+="uaccess"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="6141", MODE="0660", TAG+="uaccess"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="d022", MODE="0660", TAG+="uaccess"
Expand Down
1 change: 1 addition & 0 deletions src/snagrecover/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"am6441": "0451:6165",
"am6548": "0451:6162",
"am6546": "0451:6162",
"j721e": "0451:6163",
},
"am62lx": "0451:6165",
"zynqmp": "03fd:0050",
Expand Down
4 changes: 3 additions & 1 deletion src/snagrecover/recoveries/am6x.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ def send_tiboot3(dev):
# without this delay, USB device will be present but not ready
time.sleep(1)

if recovery_config["soc_model"].startswith("am654"):
# Download sysfw.itb if your device (AM654, j721e) uses the split binary boot flow
# https://docs.u-boot.org/en/latest/board/ti/k3.html#boot-flow-variations
if recovery_config["soc_model"].startswith(("am654", "j721e")):
dev = get_usb(recovery_config["usb_path"])
run_firmware(dev, "sysfw")
time.sleep(1)
Expand Down
2 changes: 2 additions & 0 deletions src/snagrecover/supported_socs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ tested:
family: am6x
am6548:
family: am6x
j721e:
family: am6x
h3:
family: sunxi
imx28:
Expand Down
9 changes: 9 additions & 0 deletions src/snagrecover/templates/j721e-evm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tiboot3:
path: tiboot3.bin
sysfw:
path: sysfw.itb
tispl:
path: tispl.bin
u-boot:
path: u-boot.img