<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/include/fastboot.h, branch v2024.01</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>net: share fastboot boot handle logic between transports</title>
<updated>2023-05-05T21:48:44+00:00</updated>
<author>
<name>Dmitrii Merkurev</name>
<email>dimorinny@google.com</email>
</author>
<published>2023-04-12T18:49:31+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c8acbbbf0847744ff2ad98e9d8d4e11d5e37eda2'/>
<id>c8acbbbf0847744ff2ad98e9d8d4e11d5e37eda2</id>
<content type='text'>
Introduce reboot, boot and continue commands support to
TCP fastboot by moving existing UDP logic into the common module.

Signed-off-by: Dmitrii Merkurev &lt;dimorinny@google.com&gt;
Cc: Ying-Chun Liu (PaulLiu) &lt;paul.liu@linaro.org&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Сс: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
Сс: Ramon Fried &lt;rfried.dev@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Ramon Fried &lt;rfried.dev@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce reboot, boot and continue commands support to
TCP fastboot by moving existing UDP logic into the common module.

Signed-off-by: Dmitrii Merkurev &lt;dimorinny@google.com&gt;
Cc: Ying-Chun Liu (PaulLiu) &lt;paul.liu@linaro.org&gt;
Cc: Simon Glass &lt;sjg@chromium.org&gt;
Сс: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
Сс: Ramon Fried &lt;rfried.dev@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Ramon Fried &lt;rfried.dev@gmail.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fastboot: Add OEM run command</title>
<updated>2023-01-11T20:02:24+00:00</updated>
<author>
<name>Sean Anderson</name>
<email>sean.anderson@seco.com</email>
</author>
<published>2022-12-16T18:20:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f3d914cfdd5ac611d99f04096497f4cd13dd6aaa'/>
<id>f3d914cfdd5ac611d99f04096497f4cd13dd6aaa</id>
<content type='text'>
This adds the UUU UCmd functionality as an OEM command. While the
fastboot tool allows sending arbitrary commands as long as they are
prefixed with "oem". This allows running generic U-Boot commands over
fastboot without UUU, which is especially useful when not using USB.
This is really the route we should have gone in the first place when
adding these commands.

While we're here, clean up the UUU Kconfig a bit.

Signed-off-by: Sean Anderson &lt;sean.anderson@seco.com&gt;
Reviewed-by: Heiko Schocher &lt;hs@denx.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds the UUU UCmd functionality as an OEM command. While the
fastboot tool allows sending arbitrary commands as long as they are
prefixed with "oem". This allows running generic U-Boot commands over
fastboot without UUU, which is especially useful when not using USB.
This is really the route we should have gone in the first place when
adding these commands.

While we're here, clean up the UUU Kconfig a bit.

Signed-off-by: Sean Anderson &lt;sean.anderson@seco.com&gt;
Reviewed-by: Heiko Schocher &lt;hs@denx.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fastboot: remove #ifdef CONFIG when it is possible</title>
<updated>2023-01-11T20:02:24+00:00</updated>
<author>
<name>Patrick Delaunay</name>
<email>patrick.delaunay@foss.st.com</email>
</author>
<published>2022-12-15T09:15:50+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d03799004640abfeb656e9db48d6f9b9e24383fb'/>
<id>d03799004640abfeb656e9db48d6f9b9e24383fb</id>
<content type='text'>
Much of the fastboot code predates the introduction of Kconfig and
has quite a few #ifdefs in it which is unnecessary now that we can use
IS_ENABLED() et al.

Signed-off-by: Patrick Delaunay &lt;patrick.delaunay@foss.st.com&gt;
Reviewed-by: Mattijs Korpershoek &lt;mkorpershoek@baylibre.com&gt;
Reviewed-by: Sean Anderson &lt;sean.anderson@seco.com&gt;
Tested-by: Mattijs Korpershoek &lt;mkorpershoek@baylibre.com&gt; # on vim3l
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Much of the fastboot code predates the introduction of Kconfig and
has quite a few #ifdefs in it which is unnecessary now that we can use
IS_ENABLED() et al.

Signed-off-by: Patrick Delaunay &lt;patrick.delaunay@foss.st.com&gt;
Reviewed-by: Mattijs Korpershoek &lt;mkorpershoek@baylibre.com&gt;
Reviewed-by: Sean Anderson &lt;sean.anderson@seco.com&gt;
Tested-by: Mattijs Korpershoek &lt;mkorpershoek@baylibre.com&gt; # on vim3l
</pre>
</div>
</content>
</entry>
<entry>
<title>fastboot: add UUU command UCmd and ACmd support</title>
<updated>2021-02-26T14:30:55+00:00</updated>
<author>
<name>Heiko Schocher</name>
<email>hs@denx.de</email>
</author>
<published>2021-02-10T08:29:03+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=bc820d5bcc507366677c592e400e120481748c05'/>
<id>bc820d5bcc507366677c592e400e120481748c05</id>
<content type='text'>
add support for the UUU commands ACmd and UCmd.

Enable them through the Kconfig option
CONFIG_FASTBOOT_UUU_SUPPORT

base was commit in NXP kernel
9b149c2a2882: ("MLK-18591-3 android: Add FSL android fastboot support")

and ported it to current mainline. Tested this patch
on imx6ul based board.

Signed-off-by: Heiko Schocher &lt;hs@denx.de&gt;
Acked-by: Patrick Delaunay &lt;patrick.delaunay@foss.st.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
add support for the UUU commands ACmd and UCmd.

Enable them through the Kconfig option
CONFIG_FASTBOOT_UUU_SUPPORT

base was commit in NXP kernel
9b149c2a2882: ("MLK-18591-3 android: Add FSL android fastboot support")

and ported it to current mainline. Tested this patch
on imx6ul based board.

Signed-off-by: Heiko Schocher &lt;hs@denx.de&gt;
Acked-by: Patrick Delaunay &lt;patrick.delaunay@foss.st.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fastboot: add command to select the eMMC boot configuration</title>
<updated>2021-02-07T18:22:55+00:00</updated>
<author>
<name>Patrick Delaunay</name>
<email>patrick.delaunay@foss.st.com</email>
</author>
<published>2021-01-27T13:46:49+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0c0394b5026ed3271c92ab1c92a65ae67588d65d'/>
<id>0c0394b5026ed3271c92ab1c92a65ae67588d65d</id>
<content type='text'>
Add command oem bootbus which executes the command
``mmc bootbus &lt;id&gt; &lt;arg&gt;`` on the current fastboot mmc device
(&lt;i&gt; = CONFIG_FASTBOOT_FLASH_MMC_DEV) to set the eMMC boot
configuration on first update, with
&lt;arg&gt; =  boot_bus_width reset_boot_bus_width boot_mode

$&gt; fastboot oem bootbus:&lt;boot_bus_width&gt; &lt;reset_boot_bus_width&gt; &lt;boot_mode&gt;

Signed-off-by: Patrick Delaunay &lt;patrick.delaunay@foss.st.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add command oem bootbus which executes the command
``mmc bootbus &lt;id&gt; &lt;arg&gt;`` on the current fastboot mmc device
(&lt;i&gt; = CONFIG_FASTBOOT_FLASH_MMC_DEV) to set the eMMC boot
configuration on first update, with
&lt;arg&gt; =  boot_bus_width reset_boot_bus_width boot_mode

$&gt; fastboot oem bootbus:&lt;boot_bus_width&gt; &lt;reset_boot_bus_width&gt; &lt;boot_mode&gt;

Signed-off-by: Patrick Delaunay &lt;patrick.delaunay@foss.st.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fastboot: add command to select the default emmc hwpart for boot</title>
<updated>2021-02-07T18:22:55+00:00</updated>
<author>
<name>Patrick Delaunay</name>
<email>patrick.delaunay@foss.st.com</email>
</author>
<published>2021-01-27T13:46:48+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b2f6b97b78b47362c74f2fbe59c1f4f390cb458f'/>
<id>b2f6b97b78b47362c74f2fbe59c1f4f390cb458f</id>
<content type='text'>
Add fastboot command oem partconf which executes the command
``mmc partconf &lt;id&gt; &lt;arg&gt; 0`` on the current &lt;id&gt; mmc device
to configure the eMMC boot partition with
&lt;arg&gt;: boot_ack boot_partition, so the command is:

$&gt; fastboot oem partconf:&lt;boot_ack&gt; &lt;boot_partition&gt;

The partition_access argument is forced to 0 (userdata)

Signed-off-by: Patrick Delaunay &lt;patrick.delaunay@foss.st.com&gt;
[lukma - Kconfig adjustments after merging this patch]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add fastboot command oem partconf which executes the command
``mmc partconf &lt;id&gt; &lt;arg&gt; 0`` on the current &lt;id&gt; mmc device
to configure the eMMC boot partition with
&lt;arg&gt;: boot_ack boot_partition, so the command is:

$&gt; fastboot oem partconf:&lt;boot_ack&gt; &lt;boot_partition&gt;

The partition_access argument is forced to 0 (userdata)

Signed-off-by: Patrick Delaunay &lt;patrick.delaunay@foss.st.com&gt;
[lukma - Kconfig adjustments after merging this patch]
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "fastboot: Add default fastboot_set_reboot_flag implementation"</title>
<updated>2021-02-07T18:22:54+00:00</updated>
<author>
<name>Roman Kovalivskyi</name>
<email>roman.kovalivskyi@globallogic.com</email>
</author>
<published>2021-01-26T20:54:55+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f80798122a726602a239ad7667164a89e98c8328'/>
<id>f80798122a726602a239ad7667164a89e98c8328</id>
<content type='text'>
This reverts commit 0ebf9842e56c5b8cb7cb1f990bb452cc14af6225.

Current generic implementation of fastboot_set_reboot_flag is somewhat
messy and requires some additional configuration option to be enabled
besides CMD_BCB, so it reverts that implementtion in order to bring a
new cleaner one.

Next commit introduces new generic implementation of
fastboot_set_reboot_flag.

Signed-off-by: Roman Kovalivskyi &lt;roman.kovalivskyi@globallogic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 0ebf9842e56c5b8cb7cb1f990bb452cc14af6225.

Current generic implementation of fastboot_set_reboot_flag is somewhat
messy and requires some additional configuration option to be enabled
besides CMD_BCB, so it reverts that implementtion in order to bring a
new cleaner one.

Next commit introduces new generic implementation of
fastboot_set_reboot_flag.

Signed-off-by: Roman Kovalivskyi &lt;roman.kovalivskyi@globallogic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fastboot: Add default fastboot_set_reboot_flag implementation</title>
<updated>2020-09-01T12:47:43+00:00</updated>
<author>
<name>Roman Kovalivskyi</name>
<email>roman.kovalivskyi@globallogic.com</email>
</author>
<published>2020-07-28T20:35:34+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0ebf9842e56c5b8cb7cb1f990bb452cc14af6225'/>
<id>0ebf9842e56c5b8cb7cb1f990bb452cc14af6225</id>
<content type='text'>
Default implementation of fastboot_set_reboot_flag function that depends
on "bcb" commands could be used in general case if there are no need to
make any platform-specific implementation, otherwise it could be
disabled via Kconfig option FASTBOOT_USE_BCB_SET_REBOOT_FLAG.

Please note that FASTBOOT_USE_BCB_SET_REBOOT_FLAG is mutually exclusive
with some platforms which already have their own implementation of this
function.

Signed-off-by: Roman Kovalivskyi &lt;roman.kovalivskyi@globallogic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Default implementation of fastboot_set_reboot_flag function that depends
on "bcb" commands could be used in general case if there are no need to
make any platform-specific implementation, otherwise it could be
disabled via Kconfig option FASTBOOT_USE_BCB_SET_REBOOT_FLAG.

Please note that FASTBOOT_USE_BCB_SET_REBOOT_FLAG is mutually exclusive
with some platforms which already have their own implementation of this
function.

Signed-off-by: Roman Kovalivskyi &lt;roman.kovalivskyi@globallogic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fastboot: Add support for 'reboot fastboot' command</title>
<updated>2020-09-01T12:47:43+00:00</updated>
<author>
<name>Roman Kovalivskyi</name>
<email>roman.kovalivskyi@globallogic.com</email>
</author>
<published>2020-07-28T20:35:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2b2a771b40876c3db456705d5dcc5b60249d4075'/>
<id>2b2a771b40876c3db456705d5dcc5b60249d4075</id>
<content type='text'>
Android 10 adds support for dynamic partitions and in order to support
this userspace fastboot must be used[1]. New tool fastbootd is
included into recovery.

Userspace fastboot works from recovery and is launched if:
1) - Dynamic partitioning is enabled
2) - Boot control block has 'boot-fastboot' value into command field
The bootloader is expected to load and boot into the recovery image
upon seeing boot-fastboot in the BCB command. Recovery then parses the
BCB message and switches to fastbootd mode[2].

Please note that boot script is expected to handle 'boot-fastboot'
command in BCB and load into recovery mode.

Bootloader must support 'reboot fastboot' command which should reboot
device into userspace fastboot to accomodate those changes[3].

Another command that bootloader must support[3] is 'reboot recovery'. This
command should simply reboot device into recovery mode.

[1] - https://source.android.com/devices/bootloader/fastbootd
[2] - https://source.android.com/devices/bootloader/fastbootd#unified_fastboot_and_recovery
[3] - https://source.android.com/devices/bootloader/fastbootd#modifications_to_the_bootloader

Signed-off-by: Roman Kovalivskyi &lt;roman.kovalivskyi@globallogic.com&gt;
Signed-off-by: Roman Stratiienko &lt;r.stratiienko@gmail.com&gt;
Change-Id: I9d2bdc9a6f6f31ea98572fe155e1cc8341e9af76
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Android 10 adds support for dynamic partitions and in order to support
this userspace fastboot must be used[1]. New tool fastbootd is
included into recovery.

Userspace fastboot works from recovery and is launched if:
1) - Dynamic partitioning is enabled
2) - Boot control block has 'boot-fastboot' value into command field
The bootloader is expected to load and boot into the recovery image
upon seeing boot-fastboot in the BCB command. Recovery then parses the
BCB message and switches to fastbootd mode[2].

Please note that boot script is expected to handle 'boot-fastboot'
command in BCB and load into recovery mode.

Bootloader must support 'reboot fastboot' command which should reboot
device into userspace fastboot to accomodate those changes[3].

Another command that bootloader must support[3] is 'reboot recovery'. This
command should simply reboot device into recovery mode.

[1] - https://source.android.com/devices/bootloader/fastbootd
[2] - https://source.android.com/devices/bootloader/fastbootd#unified_fastboot_and_recovery
[3] - https://source.android.com/devices/bootloader/fastbootd#modifications_to_the_bootloader

Signed-off-by: Roman Kovalivskyi &lt;roman.kovalivskyi@globallogic.com&gt;
Signed-off-by: Roman Stratiienko &lt;r.stratiienko@gmail.com&gt;
Change-Id: I9d2bdc9a6f6f31ea98572fe155e1cc8341e9af76
</pre>
</div>
</content>
</entry>
<entry>
<title>fastboot: Extend fastboot_set_reboot_flag with reboot reason</title>
<updated>2020-09-01T12:47:43+00:00</updated>
<author>
<name>Roman Kovalivskyi</name>
<email>roman.kovalivskyi@globallogic.com</email>
</author>
<published>2020-07-28T20:35:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=851737ab8922742732bea5f70407cb95cafcb3ee'/>
<id>851737ab8922742732bea5f70407cb95cafcb3ee</id>
<content type='text'>
Extend fastboot_set_reboot_flag arguments with reboot reason so that
it could handle different reboot cases in future.

Signed-off-by: Roman Kovalivskyi &lt;roman.kovalivskyi@globallogic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Extend fastboot_set_reboot_flag arguments with reboot reason so that
it could handle different reboot cases in future.

Signed-off-by: Roman Kovalivskyi &lt;roman.kovalivskyi@globallogic.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
