This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

J722SXH01EVM: [J722S][EVM] How to download image into eMMC when SD card booting into u-boot shell ?

Part Number: J722SXH01EVM

Tool/software:

Hi TI,

[J722S][EVM] How to download image into eMMC when SD card booting into u-boot shell ?

Now I can use SD Card make J722S EVM boot into u-boot shell.
Then I input u-boot commands as follows (a)>(b)>(c)>(d)
I get fail at "dfu 0 mmc 0"

Is there any suggestion ? thanks.

a)
=> mmc info
Device: mmc@fa10000
Manufacturer ID: 13
OEM: 4e
Name: G1M15L
Bus Speed: 200000000
Mode: HS400 (200MHz)
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 29.6 GiB
Bus Width: 8-bit DDR
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 29.6 GiB WRREL
Boot Capacity: 31.5 MiB ENH
RPMB Capacity: 4 MiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected
=>

b)
=> printenv partitions
partitions=name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
=> gpt write mmc 0 ${partitions}
Writing GPT: success!
=> gpt verify mmc 0 ${partitions}
Verify GPT: success!
=> mmc part

Partition Map for MMC device 0 -- Partition Type: EFI

Part Start LBA End LBA Name
Attributes
Type GUID
Partition GUID
1 0x00000022 0x03b47fde "rootfs"
attrs: 0x0000000000000000
type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
guid: 516706c8-9cf7-8645-82a6-8788c5d4b4f5
=>

c)
=> setenv dfu_alt_info $dfu_alt_info_emmc
=> printenv dfu_alt_info
dfu_alt_info=rawemmc raw 0 0x800000 mmcpart 1; rootfs part 0 1; tiboot3.bin.raw raw 0x0 0x400 mmcpart 1; tispl.bin.raw raw 0x400 0x1000 mmcpart 1; u-boot.img.raw raw 0x1400 0x2000 mmcpart 1; u-env.raw raw 0x3400 0x100 mmcpart 1; sysfw.itb.raw raw 0x3600 0x800 mmcpart 1
=>

d)
=> dfu 0 mmc 0
Could not memalign 0x800000 bytesDFU entities configuration failed!
(partition table does not match dfu_alt_info?)
dfu - Device Firmware Upgrade

Usage:
dfu <USB_controller> [<interface> <dev>] [list]
- device firmware upgrade via <USB_controller>
on device <dev>, attached to interface
<interface>
[list] - list available alt settings

=>

e)

U-Boot 2024.04-ti-ga970f6e51043 (Nov 13 2024 - 14:26:23 +0000)

SoC: J722S SR1.0 HS-FS
Model: Texas Instruments J722S EVM
DRAM: 2 GiB (effective 8 GiB)
Core: 79 devices, 29 uclasses, devicetree: separate
MMC: mmc@fa10000: 0, mmc@fa00000: 1
Loading Environment from nowhere... OK
In: serial@2800000
Out: serial@2800000
Err: serial@2800000
Net: eth0: ethernet@8000000port@1
Hit any key to stop autoboot: 0
=> mmc list
mmc@fa10000: 0
mmc@fa00000: 1
=>


Thanks
Jiahao