Tool/software:
Hi:
I use the u-boot ti-u-boot-2024.04. SDK version is 10.00.00.08
In below step, I try to flash u-boot image from fastboot tool.
1. I boot into u-boot mode.
2. Set u-boot environment for eMMC partition:
env set fastboot.fastboot_raw_partition_tiboot3 0x0 0x400 mmcpart 0
env set fastboot.fastboot_raw_partition_tispl 0x400 0x1400 mmcpart 0
env set fastboot.fastboot_raw_partition_uboot 0x1400 0x3400 mmcpart 0
env set fastboot.fastboot_raw_partition_env 0x3400 0x3500 mmcpart 0
env set fastboot.fastboot_raw_partition_bakenv 0x3500 0x3600 mmcpart 0
env set fastboot.fastboot_raw_partition_sysfw 0x3600 0x3E00 mmcpart 0
env set fastboot.has-slot:tiboot3 yes
env set fastboot.has-slot:tispl yes
env set fastboot.has-slot:uboot yes
env set fastboot.has-slot:env yes
env set fastboot.has-slot:bakenv yes
env set fastboot.has-slot:sysfw yes
env set fastboot.has-slot:tiboot3
env set fastboot.has-slot:tispl
env set fastboot.has-slot:uboot
env set fastboot.has-slot:env
env set fastboot.has-slot:bakenv
env set fastboot.has-slot:sysfw
env set fastboot.partition-size:tiboot3 80000
env set fastboot.partition-size:tispl 200000
env set fastboot.partition-size:uboot 400000
env set fastboot.partition-size:env 20000
env set fastboot.partition-size:bakenv 20000
env set fastboot.partition-size:sysfw 100000
env set fastboot_raw_partition_tiboot3 0x0 0x400 mmcpart 0
env set fastboot_raw_partition_tispl 0x400 0x1400 mmcpart 0
env set fastboot_raw_partition_uboot 0x1400 0x3400 mmcpart 0
env set fastboot_raw_partition_env 0x3400 0x3500 mmcpart 0
env set fastboot_raw_partition_bakenv 0x3500 0x3600 mmcpart 0
env set fastboot_raw_partition_sysfw 0x3600 0x3E00 mmcpart 0
3. command u-boot cmd: fastboot usb 0
4. In the windowns side, I command to do "fastboot getvar all". Can get the feedback result like below.
G:\TI\Images\9601_0214_1>fastboot getvar all
(bootloader) version: 0.4
(bootloader) version-bootloader: U-Boot 2024.04-ti-g2f503cf3bf9e
(bootloader) downloadsize: 0x2f000000
(bootloader) max-download-size: 0x2f000000
(bootloader) serialno: 0000000000000000
(bootloader) version-baseband: N/A
(bootloader) product: j721s2
(bootloader) platform: platform not set
(bootloader) current-slot: a
(bootloader) is-userspace: no
all:
Finished. Total time: 0.050s
5. fastboot flash uboot u-boot.img. I got the fail
G:\>fastboot flash uboot G:\TI\Images\9601_0214_1\u-boot_test.img
Sending 'uboot' (1203 KB) FAILED (data write failure (Unknown error))
Finished. Total time: 5.053s
6. u-boot uart log:
=> fastboot -l 0x82000000 -s 0x8000000 usb 0
cdns-usb3-peripheral usb@6000000: DRD version v1 (ID: 0004024e, rev: 00000200)
cdns-usb3-peripheral usb@6000000: Initialized ep0 support:
cdns-usb3-peripheral usb@6000000: Initialized ep1out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep2out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep3out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep4out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep5out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep6out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep7out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep8out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep9out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep10out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep11out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep12out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep13out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep14out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep15out support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep1in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep2in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep3in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep4in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep5in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep6in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep7in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep8in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep9in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep10in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep11in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep12in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep13in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep14in support: BULK, INT ISO
cdns-usb3-peripheral usb@6000000: Initialized ep15in support: BULK, INT ISO
env_desc_name = fastboot_raw_partition_uboot_a
** Bad device specification mmc uboot_a **
** Bad device specification mmc uboot_a **
Couldn't find partition mmc uboot_a
env_desc_name = fastboot_raw_partition_uboot
start = 0x1400
size = 0x3400
blksz = 0x200
name = uboot
mmcpart = 0x0
ret = 0x0
fastboot_buf_size 0x8000000 bytes
Starting download of 1232027 bytes
7. usb bus hound tool capture the usb packet log:
Bus Hound 6.01 capture on Windows Vista (x64). Complements of www.perisoft.net
Device - Device ID (followed by the endpoint for USB devices)
(40) Fastboot Device
Phase - Phase Type
CTL USB control transfer
IN Data in transfer
OUT Data out transfer
Data - Hex dump of the data transferred
Descr - Description of the phase
Cmd... - Position in the captured data
Device Phase Data Description Cmd.Phase.Ofs(rep)
------ ----- ------------------------------------------------------------------------------------------------------ -------------------------------- ------------------
40.0 CTL 80 06 03 03 09 04 40 00 GET DESCRIPTOR 1.1.0
40.0 IN 22 03 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 30 00 ".0.0.0.0.0.0.0.0.0.0.0.0.0.0.0. 1.2.0
30 00 0. 1.2.32
40.1 OUT 67 65 74 76 61 72 3a 68 61 73 2d 73 6c 6f 74 3a 75 62 6f 6f 74 getvar:has-slot:uboot 2.1.0
40.1 IN 4f 4b 41 59 6e 6f OKAYno 3.1.0
40.1 OUT 67 65 74 76 61 72 3a 6d 61 78 2d 64 6f 77 6e 6c 6f 61 64 2d 73 69 7a 65 getvar:max-download-size 4.1.0
40.1 IN 4f 4b 41 59 30 78 38 30 30 30 30 30 30 OKAY0x8000000 5.1.0
40.1 OUT 64 6f 77 6e 6c 6f 61 64 3a 30 30 31 32 63 63 39 62 download:0012cc9b 6.1.0
40.1 IN 44 41 54 41 30 30 31 32 63 63 39 62 DATA0012cc9b 7.1.0