board: samsung: e850-96: Enter DFU automatically on USB boot
authorSam Protsenko <semen.protsenko@linaro.org>
Tue, 18 Nov 2025 23:21:19 +0000 (17:21 -0600)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 26 Nov 2025 08:55:57 +0000 (17:55 +0900)
commit17d6b90a5f362612118b029b457471118524657c
tree15181b95ddb3363a1a03f0dcfc427c15eaefbdb3
parent7b583b66639fa1fd883d48bc259aa39490970df6
board: samsung: e850-96: Enter DFU automatically on USB boot

Doing USB boot on E850-96 is most useful in two cases:

  1. For unbricking the board
  2. During the bootloader development

In both cases a U-Boot binary is being re-flashed to eMMC. The most
convenient way to update U-Boot in eMMC is by using DFU. Implement
entering DFU flashing mode automatically when U-Boot is executed on USB
boot. That makes it easier for users to re-flash U-Boot without even
having serial console running, e.g.:

    $ ./smdk-usbdl
    $ dfu-util -D u-boot.bin -a bootloader

See [1,2] for details.

Entering DFU mode is implemented by setting corresponding environment
variables:

    bootcmd="dfu 0 mmc 0"
    bootdelay=0

Do not save the U-Boot environment though, to avoid falling through to
DFU mode on a regular eMMC boot.

[1] doc/board/samsung/e850-96.rst
[2] https://gitlab.com/LinaroLtd/e850-96/tools/dltool/-/tree/uboot

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/e850-96/e850-96.c