From: Roger Quadros <rogerq@kernel.org>
To: Siddharth Vadapalli <s-vadapalli@ti.com>
Cc: vigneshr@ti.com, bb@ti.com, trini@konsulko.com, lukma@denx.de,
n-francis@ti.com, mkorpershoek@baylibre.com, afd@ti.com,
glaroque@baylibre.com, sjoerd@collabora.com,
martyn.welch@collabora.com, rasmus.villemoes@prevas.dk,
caleb.connolly@linaro.org, j-humphreys@ti.com, nm@ti.com,
u-boot@lists.denx.de, srk@ti.com
Subject: Re: [PATCH v2 5/5] doc: board: document support for USB DFU boot on AM62Px SoC
Date: Thu, 19 Dec 2024 11:42:09 +0200 [thread overview]
Message-ID: <7bfc8dc4-770b-4e83-987e-2e016ffa0cf7@kernel.org> (raw)
In-Reply-To: <rxpqzluyl7cdpqpujehhej6xycqrcphnkmzppbfq6rmxikcgng@kamzjftilzsy>
On 19/12/2024 08:43, Siddharth Vadapalli wrote:
> On Wed, Dec 18, 2024 at 04:08:01PM +0200, Roger Quadros wrote:
>
> Hello Roger,
>
>>
>>
>> On 18/12/2024 14:45, Siddharth Vadapalli wrote:
>
> [...]
>
>>> +DFU based boot
>>> +--------------
>>> +
>>> +To boot the board over DFU, set the switches to DFU mode and connect to the
>>> +USB type C DRD port on the board. After power-on the build artifacts needs to be
>>> +uploaded one by one with a tool like dfu-util.
>>> +
>>> +The initial ROM will have a DFU alt named `bootloader` for the initial R5 spl
>>> +upload. The next stages as exposed by U-Boot have target alts matching the name
>>> +of the artifacts, for these a USB reset has to be done after each upload.
>>> +
>>> +When using dfu-util the following commands can be used to boot to a U-Boot shell:
>>> +
>>> +.. prompt:: bash $
>>> +
>>> + dfu-util -a bootloader -D tiboot3.bin
>>> + dfu-util -R -a tispl -D tispl.bin
>>> + dfu-util -R -a u-boot.img -D u-boot.img
>>
>> Is there a known reason why -R was not used for the first command but required in last two?
>> What about if -R is not used for all 3 commands?
>
> According to the "dfu-util" help menu, the "-R" option is defined as:
> "Issue USB Reset signalling once we're finished"
>
> While the "-R" option is not required in the first stage / command, it
> is required in the next stages. Without "-R", the user would have to
> press "Ctrl+C" to proceed i.e. tispl.bin / u-boot.img are transferred
> / downloaded onto the device but not executed until user presses "Ctrl+C".
>
> As to why "-R" is not required in the first stage, I suppose that ROM
> automatically executes tiboot3.bin after it has been transferred.
>
Thanks Siddharth for the clarification.
--
cheers,
-roger
next prev parent reply other threads:[~2024-12-19 9:42 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-18 12:45 [PATCH v2 0/5] Add support for USB DFU boot on AM62Px Siddharth Vadapalli
2024-12-18 12:45 ` [PATCH v2 1/5] board: ti: am62px: env: include environment for DFU Boot Siddharth Vadapalli
2024-12-18 13:00 ` Mattijs Korpershoek
2024-12-18 13:48 ` Roger Quadros
2024-12-18 12:45 ` [PATCH v2 2/5] configs: am62x_r5_usbdfu: extend for AM62Px Siddharth Vadapalli
2024-12-18 13:56 ` Roger Quadros
2024-12-18 12:45 ` [PATCH v2 3/5] configs: am62px_evm_a53_defconfig: enable USB DFU support Siddharth Vadapalli
2024-12-18 13:01 ` Mattijs Korpershoek
2024-12-18 13:47 ` Roger Quadros
2024-12-19 5:43 ` Siddharth Vadapalli
2024-12-19 9:38 ` Roger Quadros
2024-12-19 10:00 ` Siddharth Vadapalli
2024-12-18 12:45 ` [PATCH v2 4/5] arm: dts: k3-am62p5-sk-u-boot: enable USB0 for USB DFU boot Siddharth Vadapalli
2024-12-18 14:05 ` Roger Quadros
2024-12-19 5:50 ` Siddharth Vadapalli
2024-12-19 9:41 ` Roger Quadros
2024-12-19 17:00 ` Tom Rini
2024-12-20 4:49 ` Siddharth Vadapalli
2024-12-20 5:49 ` Siddharth Vadapalli
2024-12-20 14:25 ` Tom Rini
2024-12-20 16:19 ` Siddharth Vadapalli
2024-12-20 16:37 ` Tom Rini
2024-12-21 2:54 ` Siddharth Vadapalli
2024-12-18 12:45 ` [PATCH v2 5/5] doc: board: document support for USB DFU boot on AM62Px SoC Siddharth Vadapalli
2024-12-18 13:02 ` Mattijs Korpershoek
2024-12-18 14:08 ` Roger Quadros
2024-12-19 6:43 ` Siddharth Vadapalli
2024-12-19 9:42 ` Roger Quadros [this message]
2024-12-18 12:59 ` [PATCH v2 0/5] Add support for USB DFU boot on AM62Px Mattijs Korpershoek
2024-12-19 5:37 ` Siddharth Vadapalli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7bfc8dc4-770b-4e83-987e-2e016ffa0cf7@kernel.org \
--to=rogerq@kernel.org \
--cc=afd@ti.com \
--cc=bb@ti.com \
--cc=caleb.connolly@linaro.org \
--cc=glaroque@baylibre.com \
--cc=j-humphreys@ti.com \
--cc=lukma@denx.de \
--cc=martyn.welch@collabora.com \
--cc=mkorpershoek@baylibre.com \
--cc=n-francis@ti.com \
--cc=nm@ti.com \
--cc=rasmus.villemoes@prevas.dk \
--cc=s-vadapalli@ti.com \
--cc=sjoerd@collabora.com \
--cc=srk@ti.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox