<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/cmd/x86/zboot.c, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/cmd/x86/zboot.c?h=main</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/cmd/x86/zboot.c?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2026-07-10T21:52:59Z</updated>
<entry>
<title>cmd: x86: zboot: remove duplicate zboot_setup() call in do_zboot_setup</title>
<updated>2026-07-10T21:52:59Z</updated>
<author>
<name>Naveen Kumar Chaudhary</name>
<email>naveen.osdev@gmail.com</email>
</author>
<published>2026-06-26T03:50:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e0d10a4b85cb3adfff152494afe74d3a0cac1090'/>
<id>urn:sha1:e0d10a4b85cb3adfff152494afe74d3a0cac1090</id>
<content type='text'>
do_zboot_setup() invokes zboot_setup() twice: once with proper error
reporting, and again immediately afterwards with no diagnostic. The
second call re-runs the entire boot parameter setup on the
already-populated zero page, which is at best wasted work and at
worst leaves the structure in an unexpected state.

Drop the stray second invocation; the first call already covers both
success and failure handling.

Fixes: cb19931ee56 ("x86: zboot: Drop intermediate zboot_setup() function")
Signed-off-by: Naveen Kumar Chaudhary &lt;naveen.osdev@gmail.com&gt;
</content>
</entry>
<entry>
<title>global: Avoid indirect inclusion of &lt;env.h&gt; from &lt;command.h&gt;</title>
<updated>2025-05-29T14:29:16Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2025-05-14T22:46:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=dcb7d927d181b5798c6fd4a1b1650cd821e3b6ed'/>
<id>urn:sha1:dcb7d927d181b5798c6fd4a1b1650cd821e3b6ed</id>
<content type='text'>
The include file &lt;command.h&gt; does not need anything from &lt;env.h&gt;.
Furthermore, include/env.h itself includes other headers which can lead
to longer indirect inclusion paths. To prepare to remove &lt;env.h&gt; from
&lt;command.h&gt; fix all of the places which had relied on this indirect
inclusion to instead include &lt;env.h&gt; directly.

Reviewed-by: Mattijs Korpershoek &lt;mkorpershoek@kernel.org&gt; # android, bcb
Reviewed-by: Jerome Forissier &lt;jerome.forissier@linaro.org&gt; # spawn
Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>zboot: Correct use of state_mask argument</title>
<updated>2024-06-26T19:17:52Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2024-06-19T12:34:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=52ff1f5da0ef16e07984eee9a32408c71443812e'/>
<id>urn:sha1:52ff1f5da0ef16e07984eee9a32408c71443812e</id>
<content type='text'>
There is confusion in this function between the flag and state_mask
parameters, which prevents the boot from actually happening. Correct
this by using state_mask instead of flag for deciding which states to go
through.

This fixes booting of some 32-bit Debian kernels.

Note: Some sort of CI for this is in the works.

Fixes: 228c6722d44 ("x86: zboot: Avoid iteration in do_zboot_states()")

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>zboot: Add debugging for booting</title>
<updated>2024-06-26T19:17:52Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2024-06-19T12:34:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=bce4c15f26e164d1c96bf0f1c4d33bf0f0dc8a90'/>
<id>urn:sha1:bce4c15f26e164d1c96bf0f1c4d33bf0f0dc8a90</id>
<content type='text'>
Show the boot arguments and the state mask, to aid debugging.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>x86: zboot: Separate logic functions from commands</title>
<updated>2024-04-10T19:49:16Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-12-04T00:29:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9ad5fdf1a8a10d2c3daad33ba69cd88b7f7ea86b'/>
<id>urn:sha1:9ad5fdf1a8a10d2c3daad33ba69cd88b7f7ea86b</id>
<content type='text'>
Move zboot_start() and zboot_info() in with the other logic functions.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>x86: zboot: Move argument processing outside zboot_start()</title>
<updated>2024-04-10T19:49:16Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-12-04T00:29:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=02ed6c333ec480e2b36485bfcf804e9b12984266'/>
<id>urn:sha1:02ed6c333ec480e2b36485bfcf804e9b12984266</id>
<content type='text'>
Process the arguments before calling zboot_start() so that we can
separate the command line from the internal logic.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>x86: zboot: Drop intermediate zboot_go() function</title>
<updated>2024-04-10T19:49:16Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-12-04T00:29:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d531499749e7069a49995f3215c783dc1c2abb68'/>
<id>urn:sha1:d531499749e7069a49995f3215c783dc1c2abb68</id>
<content type='text'>
This function only calls zboot_go() so drop it.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>x86: zboot: Drop intermediate zboot_setup() function</title>
<updated>2024-04-10T19:49:16Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-12-04T00:29:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=cb19931ee56f52779d6dba97a0934afe97167840'/>
<id>urn:sha1:cb19931ee56f52779d6dba97a0934afe97167840</id>
<content type='text'>
Move error checking into the caller so that do_zboot_setup() can call
zboot_setup() directly.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>x86: zboot: Move environment setting into zboot_load()</title>
<updated>2024-04-10T19:49:16Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-12-04T00:29:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=db0c6f47c37f91db5a0caf27ebc870b8fe72c6aa'/>
<id>urn:sha1:db0c6f47c37f91db5a0caf27ebc870b8fe72c6aa</id>
<content type='text'>
The only difference between the command and the underlying logic is the
setting of envrionment variables. Move this out of the command
processing since it needs to be done in any case.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>x86: zboot: Create separate functions for the logic</title>
<updated>2024-04-10T19:49:16Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-12-04T00:29:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=42a99d0df66d3092dfc1c922de9143448a863118'/>
<id>urn:sha1:42a99d0df66d3092dfc1c922de9143448a863118</id>
<content type='text'>
Separate out the commands from the logic. This will eventually allow
the logic to be used when CONFIG_CMDLINE is not enabled.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
