U-Boot can pass an initrd to subsequent boot stages via the
EFI_LOAD_FILE2_PROTOCOL. The current implementation only supports
this functionality via the efi boot manager: the initrd is taken
from the load options of the BootCurrent variable. This commit adds
support for registering a memory mapped
Hello Andre,
On 18.03.25 01:39, Andre Przywara wrote:
Some of the X-Power AXP PMICs can be ordered with an alternative I2C
address, for instance an AXP717 could be shipped with address 0x34 or
with address 0x35. Similarly the AXP803 lists two possible addresses.
For DM (DT) based drivers this is
Next boot stages can acces an initrd via a handle with a specific device
path and an EFI_LOAD_FILE2_PROTOCOL installed on it. In U-Boot, this
functionality
is currently only implemented when booting with the EFI boot manager. This
series
implements this functionality also for the bootm command wh
This series collects together some bootstd improvements:
- Improve iteration when there are a lot of devices
- Add a test image for Ubuntu (to compliment Fedora)
- Improve the naming of USB devices and bootdevs
- Add a new command to set the bootdev order
- Add a little more debugging
- Use an abu
Using an abuf for this function simplifies returning the size and also
makes it easier to free memory afterwards. Update the API and callers.
Signed-off-by: Simon Glass
---
boot/bootmeth-uclass.c | 19 ++-
fs/fs.c| 25 +++--
include/fs.h
At present when one bootmeth fails on the final partition, the next
bootmeth is not tried. Adjust the logic to go to the next bootmeth,
which is the more natural behaviour.
Signed-off-by: Simon Glass
---
boot/bootflow.c | 34 --
1 file changed, 16 insertions(+),
Using an abuf for this function simplifies returning the size and also
makes it easier to free memory afterwards. Update the API and callers.
Signed-off-by: Simon Glass
---
boot/bootmeth-uclass.c | 12
boot/bootmeth_script.c | 6 --
cmd/bootflow.c | 2 +-
include/boot
Add a little more debugging to help figure out why bootflows are not
found.
Signed-off-by: Simon Glass
---
boot/bootmeth_extlinux.c | 14 +++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/boot/bootmeth_extlinux.c b/boot/bootmeth_extlinux.c
index bb68391d551..71a90094
It is sometimes useful to select or override the default bootdev order.
Add a command for this.
Signed-off-by: Simon Glass
---
boot/bootdev-uclass.c | 37 +
boot/bootstd-uclass.c | 18 ++
cmd/bootdev.c | 37
Add a number after the node name so that it is clear which controller is
being used.
Signed-off-by: Simon Glass
---
arch/sandbox/dts/test.dts | 4 ++--
test/boot/bootdev.c | 12 ++--
test/boot/bootflow.c | 6 +++---
test/dm/usb.c | 4 ++--
4 files changed, 13 i
Add an extlinux image that contains a few Ubuntu entries.
Increase the number of sandbox-USB-hub ports to permit this.
Signed-off-by: Simon Glass
---
arch/sandbox/dts/test.dts | 9 +++-
drivers/usb/emul/sandbox_hub.c | 2 +-
test/boot/bootdev.c| 34 +++---
The driver name is typically not unique so using that as a basis for the
block and bootdev devices makes them hard to distinguish. This happens
when there are multiple USB controllers using the same driver.
Make use of the parent-device name and the hub port number. This gives a
reasonable chance
To permit easier adding of other images, move the Fedora-specific
portions of setup_bootflow_image() into a separate function.
Signed-off-by: Simon Glass
---
test/py/tests/test_ut.py | 71 ++--
1 file changed, 47 insertions(+), 24 deletions(-)
diff --git a/t
When trying all bootdevs in a uclass, the method flags are not preserved
in the iterator.
This has no impact on the first bootdev, since that is the one which
sets the flags. For the next one, iter_inc() is used and it finds the
next bootdev. However it sets the method_flags to 0
The result is th
Fix a nested check for BOOTSTD in the bootdev.h header file.
Signed-off-by: Simon Glass
---
include/bootdev.h | 47 ---
1 file changed, 20 insertions(+), 27 deletions(-)
diff --git a/include/bootdev.h b/include/bootdev.h
index 12c90c4ec1b..9ab95cebc1
Add more info in this function so that the partition number and the call
to bootmeth_read_bootflow() are logged.
Signed-off-by: Simon Glass
---
boot/bootdev-uclass.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/boot/bootdev-uclass.c b/boot/bootdev-uclass.c
index 282f
Hi Simon,
On Wed, 19 Mar 2025 at 17:04, Simon Glass wrote:
>
> Hi Ilias,
>
> On Wed, 19 Mar 2025 at 08:22, Ilias Apalodimas
> wrote:
> >
> > We currently set both and print both PXN and UXN bits when removing
> > execution for pages. This happens even in the existing per platform
> > definitions
On Wed, 19 Mar 2025 at 15:02, Adriano Córdova wrote:
>
> Hi Ilias,
>
> Ok, I will change that in a v2.
Ok i'll have a look at that
> As a question: in here it is a U-Boot routine the one that is doing the
> memcpy of the initrd, the one implemented in the load_file2 protocol, the OS
> never kn
On 3/12/25 16:36, Mike Looijmans wrote:
Allow config headers that include zynq-common.h to provide their own
(distro) boot strategies. This is implemented by skipping the section
when BOOT_ENV has already been defined.
Signed-off-by: Mike Looijmans
---
Changes in v2:
Avoid #ifdef nesting (
On 3/13/25 13:23, Michal Simek wrote:
Add useful default debug uart values for all Versal platforms to simplify
and speed up debug uart enabling.
The similar change has been done for Zynq/ZynqMP by commit ad55d99e3cc3
("serial: Setup serial base and freq for zynq/zynqmp").
Signed-off-by: Mich
On Wed, Mar 19, 2025 at 03:04:28PM +, Simon Glass wrote:
> Hi Tom,
>
> On Wed, 19 Mar 2025 at 15:52, Tom Rini wrote:
> >
> > On Wed, Mar 19, 2025 at 03:38:03PM +0100, Simon Glass wrote:
> >
> > > Add an extlinux image that contains a few Ubuntu entries.
> > >
> > > Increase the number of sand
On Wed, Mar 19, 2025 at 6:42 AM Fabio Estevam wrote:
>
> On Wednesday, March 19, 2025 00:23 -03, Marek Vasut wrote:
>
> > Sigh, get maintainers missed Fabio, sorry, +CCed now.
I noticed that Fabio was being left off too when I sent some stuff.
adam
> >
> > Fabio, do you want me to resend this w
We currently set both and print both PXN and UXN bits when removing
execution for pages. This happens even in the existing per platform
definitions of 'struct mm_region'.
That's not entirely correct though. For stage-1 translations, if a
platform runs on a translation regime with a single privileg
Split the starting piece of this function into bootflow_menu_start()
and the polling part into bootflow_menu_poll() so that it is possible
for the caller to be in control of the event loop.
Move the expo_destroy() call into the caller.
Signed-off-by: Simon Glass
---
boot/bootflow_menu.c | 86 +
Renesas RZ/G2L USB support, remaining RAVB ethernet fix and
KSZ9031 LED errata fix for next.
The following changes since commit 8bc3542384e3a1219e5ffb62b79d16dddc1b1fb9:
Merge patch series "pxe: Precursor series for supporting read_all() in
extlinux / PXE" (2025-03-18 13:12:51 -0600)
are avai
The UUU tool excepts the interrupt-in endpoint to be ep1in, otherwise
it crashes. This is a result of the previous hard-coded EP setup in
drivers/usb/gadget/epautoconf.c which did special-case EP allocation
for SPL builds, and which was since converted to this callback, but
without the special-case
On 3/19/25 8:13 PM, Adam Ford wrote:
On Tue, Mar 18, 2025 at 9:13 PM Marek Vasut wrote:
On 3/19/25 2:42 AM, Adam Ford wrote:
Much of the data that is display by imx8_cpu.c is also
displayed from arch/arm/mach-imx/cpu.c, except the
speed grade and temperature unless the SoC is an i.MX9.
Expand
Hi Tom,
On Wed, 19 Mar 2025 at 16:35, Tom Rini wrote:
>
> On Wed, Mar 19, 2025 at 03:04:28PM +, Simon Glass wrote:
> > Hi Tom,
> >
> > On Wed, 19 Mar 2025 at 15:52, Tom Rini wrote:
> > >
> > > On Wed, Mar 19, 2025 at 03:38:03PM +0100, Simon Glass wrote:
> > >
> > > > Add an extlinux image th
Hi Marek,
On Thu, 20 Mar 2025 at 00:54, Marek Vasut wrote:
>
> On 3/12/25 1:41 AM, Fabio Estevam wrote:
> > Hi Marek,
> >
> > On Fri, Mar 7, 2025 at 2:42 AM Marek Vasut wrote:
> >
> >> So what should we do about this particular patch ?
> >>
> >> Should this be applied ? Rebased ? Updated somehow
Hi Tom,
On Wed, 19 Mar 2025 at 16:40, Tom Rini wrote:
>
> On Wed, Mar 19, 2025 at 03:03:49PM +, Simon Glass wrote:
> > Hi Tom,
> >
> > On Tue, 18 Mar 2025 at 16:53, Tom Rini wrote:
> > >
> > > On Tue, Mar 18, 2025 at 03:24:02PM +, Simon Glass wrote:
> > > > Hi Tom,
> > > >
> > > > On Tue
Sure.
Let me ask management if I can lend any board to you to work with.
I will let you know if we have the extra board.
Dinesh
From: Michael Nazzareno Trimarchi
Sent: Monday, 17 March 2025 2:11 pm
To: Maniyam, Dinesh
Cc: u-boot@lists.denx.de; Marek ; Simon
; Tom Rini ; Dario
Binacchi ; Johan
Hi Ilias,
On Wed, 19 Mar 2025 at 16:22, Ilias Apalodimas
wrote:
>
> Hi Simon,
>
> On Wed, 19 Mar 2025 at 17:04, Simon Glass wrote:
> >
> > Hi Ilias,
> >
> > On Wed, 19 Mar 2025 at 08:22, Ilias Apalodimas
> > wrote:
> > >
> > > We currently set both and print both PXN and UXN bits when removing
On 3/20/25 3:28 AM, Alice Guo (OSS) wrote:
Hello Alice,
- Basically duplicate the mechanism in 7940a93eb977 ("net: phy:
Iterate over both registered PHYs and struct phy_driver linker list"), call it
e.g.
U_BOOT_SCMI_DRIVER()
- Switch SCMI drivers to use U_BOOT_SCMI_DRIVER , have each one list
On 3/20/25 4:40 AM, Simon Glass wrote:
Hi Marek,
On Thu, 20 Mar 2025 at 00:54, Marek Vasut wrote:
On 3/12/25 1:41 AM, Fabio Estevam wrote:
Hi Marek,
On Fri, Mar 7, 2025 at 2:42 AM Marek Vasut wrote:
So what should we do about this particular patch ?
Should this be applied ? Rebased ? Up
It is useful to be able to edit text, e.g. to allow the user to edit the
environment or the command-line arguments for the OS.
Add the beginnings of an implementation. Future work is needed to finish
this: keypress handling and scrolling. For now it just displays the
text.
Signed-off-by: Simon Gl
Include spl.h to avoid definition errors in custom builds.
Fixes: commit bc07851897bd ("board: ti: Pull redundant DDR functions to a
common location and Fixup DDR size when ECC is enabled")
Signed-off-by: Neha Malcom Francis
---
arch/arm/mach-k3/include/mach/k3-ddr.h | 2 ++
1 file changed, 2 i
MUX_MMIO is required in SPL stage in order to boot hyperflash
successfully. Add configs to enable MUX_MMIO in SPL stage.
Signed-off-by: Anurag Dutta
---
configs/j7200_evm_a72_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/j7200_evm_a72_defconfig b/configs/j7200_evm_a72_def
MUX_MMIO is required in SPL stage in order to boot hyperflash
successfully. Add configs to enable MUX_MMIO in SPL stage.
Signed-off-by: Anurag Dutta
---
configs/j721e_evm_a72_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_def
Add Kconfig options for MUX_MMIO so that it can be enabled
in SPL stage.
Signed-off-by: Anurag Dutta
---
drivers/mux/Kconfig | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/mux/Kconfig b/drivers/mux/Kconfig
index f15ee4f833f..2b95eb02177 100644
--- a/drivers/mux/Kconfig
+
This adds support for ADNL (Amlogic DowNLoad) protocol. This protocol
is supported by some Amlogic SoCs (a1, s4, c1, с2, sc2, t7, etc) in
BootRom code (e.g. it is already supported in "out of the box" mode).
It has similar goals as fastboot - upload and update firmware images
on the device. Differe
Hi Tom,
On Wed, 19 Mar 2025 at 16:38, Tom Rini wrote:
>
> On Wed, Mar 19, 2025 at 03:04:16PM +, Simon Glass wrote:
> > Hi Tom,
> >
> > On Wed, 19 Mar 2025 at 15:24, Tom Rini wrote:
> > >
> > > On Wed, Mar 19, 2025 at 12:59:05PM +0100, Simon Glass wrote:
> > >
> > > > This function trims whit
Hi Tom,
On Wed, 19 Mar 2025 at 15:57, Tom Rini wrote:
>
> On Wed, Mar 19, 2025 at 03:54:05PM +0100, Simon Glass wrote:
>
> > This series collects together some new features for expo to make it more
> > useful for boot menus:
> >
> > - measurement and display of multi-line text objects
> > - inter
On 20/03/25 12:00, Anurag Dutta wrote:
> Add Kconfig options for MUX_MMIO so that it can be enabled
> in SPL stage.
>
> Signed-off-by: Anurag Dutta
> ---
> drivers/mux/Kconfig | 10 ++
> 1 file changed, 10 insertions(+)
>
> diff --git a/drivers/mux/Kconfig b/drivers/mux/Kconfig
> index
Hello Marek,
On 3/18/25 13:20, Marek Vasut wrote:
> On 3/18/25 11:46 AM, Jerome Forissier wrote:
>> To prepare for the introduction of threads in the USB initialization
>> sequence, move code out of usb_init() into a new helper function:
>> usb_init_bus(). No functional change.
>>
>> Signed-off-by
There is no need to repeat the command to clear the console. Remove
it's repeat attribute.
Signed-off-by: Sughosh Ganu
---
cmd/cls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/cls.c b/cmd/cls.c
index 4bee8a18305..b1e0619334b 100644
--- a/cmd/cls.c
+++ b/cmd/cls.c
@@
On Tue, Mar 18, 2025 at 8:42 PM Adam Ford wrote:
>
> Currenty, most peripherals enable/disable their respecive clocks using
> the clock framework, but serial ports various imx platsforms do not. Some
> of the newer NXP SoC's register the UART clocks, but they are not necessarily
> associated the
On Wednesday, March 19, 2025 00:23 -03, Marek Vasut wrote:
> Sigh, get maintainers missed Fabio, sorry, +CCed now.
>
> Fabio, do you want me to resend this with you on CC?
No need to resend. I can get it via patchwork.
Pass a pointer to a memory mapped initrd and its size to
efi_binary_run. The EFI stack will register an EFI_LOAD_FILE2_PROTOCOL
for the next boot stage to access this initrd.
Signed-off-by: Adriano Cordova
---
boot/bootm_os.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/
Default pinmux setting using IRTX and IRRX pins doesn't seem ever used.
Change that to SDB and SDD pins, so that the device can be debugged
through uSD slot when UART is set to UART-A.
Signed-off-by: Artur Kowalski
---
arch/arm/mach-tegra/tegra20/Kconfig | 1 +
1 file changed, 1 insertion(+)
d
Hi,
On Thu, 2025-02-20 at 23:13 +, Jonas Karlman wrote:
> The BootROM in Rockchip SoCs will enter maskrom mode when boot
> firmware
> cannot be found in nand/spi/mmc storage.
>
> In maskrom mode the USB OTG port can accept one of two custom
> commands.
>
> Initially a 0x471 command to load T
On Tue, 18 Mar 2025 at 15:23, Adriano Cordova wrote:
>
> U-Boot can pass an initrd to subsequent boot stages via the
> EFI_LOAD_FILE2_PROTOCOL. The current implementation only supports
> this functionality via the efi boot manager: the initrd is taken
> from the load options of the BootCurrent var
Hi Adriano,
[...]
> */
> static efi_status_t efi_binary_run_dp(void *image, size_t size, void *fdt,
> + void *initrd, size_t initd_sz,
> struct efi_device_path *dp_dev,
> struct efi_
Remove custom string functions and replace them with normal string
functions. Remove the custom strtou32 and replace it with
simple_strtoul.
Signed-off-by: Harsha Vardhan V M
---
cmd/fuse.c | 39 ++-
1 file changed, 18 insertions(+), 21 deletions(-)
diff --gi
Add K3_FUSE config option to add and enable fuse sub-system
implementation function calls.
Signed-off-by: Harsha Vardhan V M
Reviewed-by: Tom Rini
---
drivers/misc/Kconfig | 7
drivers/misc/Makefile | 1 +
drivers/misc/k3_fuse.c | 78 ++
3 files
Add CMD_FUSE_WRITEBUFF config option to add and enable fuse writebuff
sub-system command. Add fuse_writebuff function to be invoked on
writebuff command.
Signed-off-by: Harsha Vardhan V M
Reviewed-by: Tom Rini
---
cmd/Kconfig| 8
cmd/fuse.c | 30 +-
Add fuse writebuff sub-system command documentation.
Signed-off-by: Harsha Vardhan V M
---
doc/usage/cmd/fuse.rst | 20
1 file changed, 20 insertions(+)
diff --git a/doc/usage/cmd/fuse.rst b/doc/usage/cmd/fuse.rst
index 6e330eddfea..42c6e209f99 100644
--- a/doc/usage/cmd/fu
This patch series introduces the fuse writebuff sub-system command and
makes improvements to the existing fuse implementation by removing the
custom string functions. The patches are required to be applied in
sequence.
The series consists of the following changes:
Patch 1 removes custom string fun
This includes some small abuf and test improvements.
Simon Glass (6):
abuf: Add a function to copy a buffer
abuf: Add a way to printf() into a buffer
test: Add a test for strim()
membuf: Add an easy way to set up a buffer with data
sandbox: Enable PHYS_64BIT for 64-bit builds
lib: Pro
It is useful to format a string into a buffer, with the sizing handled
automatically. Add a function for this.
Signed-off-by: Simon Glass
---
include/abuf.h | 21 +
lib/abuf.c | 35
test/lib/abuf.c | 61 +
This function trims whitespace from the start and end of a string. Add a
test for it.
Signed-off-by: Simon Glass
---
test/lib/string.c | 31 +++
1 file changed, 31 insertions(+)
diff --git a/test/lib/string.c b/test/lib/string.c
index 8d22f3fd68f..af84dd0715e 100644
In some cases we want to show a signed value to the user without needing
to use the full printf() implementation. Add a new version of the
simple_itoa() function to handle this.
Update the existing function to use ulong instead of long, to avoid
confusion about which it actually uses.
Signed-off-
In some cases it is useful to set up a buffer with some data to read,
e.g. when reading lines from a text file. Add a helper for this.
Tidy up the comment for membuf_init() while we are here.
Signed-off-by: Simon Glass
---
include/membuf.h | 15 ++-
lib/membuf.c | 8
Sandbox is special in that we use the bitness of the host. This should
extend to PHYS_64BIT as well, so enable this option when building on a
64-bit host.
Update the conditions in io.h so that 64-bit access is available.
Signed-off-by: Simon Glass
---
Kconfig | 1 +
arch/
In order to add support for the Renesas RZ/G2L Ethernet IP in a
subsequent patch, we introduce optional de-assertion and re-assertion of
a reset signal in ravb_probe() and ravb_remove().
Signed-off-by: Paul Barker
---
drivers/net/ravb.c | 31 +--
1 file changed, 29 in
The Renesas R9A07G044L (RZ/G2L) SoC includes two Gigabit Ethernet
interfaces which can be supported using the ravb driver. Some RZ/G2L
specific steps need to be taken during initialization due to differences
between this SoC and previously supported SoCs. We also need to ensure
that the module rese
For Ethernet to work on the RZ/G2L board, we need to enable support for
the ksz9131 PHY and enable random MAC address generation (as no MAC
address is programmed into the board).
We also enable the `dhcp`, `mii` and `ping` commands so that Ethernet
functionality can be tested and used to boot Linu
It is useful to be able to copy an abuf, to allow changes while
preserving the original. Add a function for this.
Signed-off-by: Simon Glass
---
include/abuf.h | 11 +++
lib/abuf.c | 14 ++
test/lib/abuf.c | 23 +++
3 files changed, 48 insertions(+)
El mié, 19 mar 2025 a las 6:28, Ilias Apalodimas (<
ilias.apalodi...@linaro.org>) escribió:
> On Tue, 18 Mar 2025 at 15:23, Adriano Cordova wrote:
> >
> > U-Boot can pass an initrd to subsequent boot stages via the
> > EFI_LOAD_FILE2_PROTOCOL. The current implementation only supports
> > this fun
Hi Ilias,
El mié, 19 mar 2025 a las 6:32, Ilias Apalodimas (<
ilias.apalodi...@linaro.org>) escribió:
> Hi Adriano,
>
> [...]
>
> > */
> > static efi_status_t efi_binary_run_dp(void *image, size_t size, void
> *fdt,
> > + void *initrd, size_t initd_sz,
> >
Hi Ilias,
Ok, I will change that in a v2. As a question: in here it is a U-Boot
routine the one that is doing the memcpy of the initrd, the one implemented
in the load_file2 protocol, the OS never knows about this dp explicitly,
could we technically use reserved data in here then?
Il mer 19 mar 2
On Wed, Mar 19, 2025 at 01:12:30PM +0100, Heinrich Schuchardt wrote:
> Am 19. März 2025 12:59:08 MEZ schrieb Simon Glass :
> >In some cases we want to show a signed value to the user without needing
> >to use the full printf() implementation. Add a new version of the
> >simple_itoa() function to ha
Hi Tom,
On Wed, 19 Mar 2025 at 15:52, Tom Rini wrote:
>
> On Wed, Mar 19, 2025 at 03:38:03PM +0100, Simon Glass wrote:
>
> > Add an extlinux image that contains a few Ubuntu entries.
> >
> > Increase the number of sandbox-USB-hub ports to permit this.
> >
> > Signed-off-by: Simon Glass
>
> I don
Create a measured line for the (single) line of text.
Signed-off-by: Simon Glass
---
drivers/video/console_truetype.c | 36 +++-
test/dm/video.c | 13 +++-
2 files changed, 38 insertions(+), 11 deletions(-)
diff --git a/drivers/video/console
On 3/13/25 13:28, Michal Simek wrote:
Platforms can use uart0, uart1, dcc or even any other console that's why
disable debug console. It should be used for debugging purpose only.
Signed-off-by: Michal Simek
---
configs/amd_versal2_virt_defconfig | 6 --
1 file changed, 6 deletions(-
Add support for left, right and centred alignment for text, in the
horizontal dimension.
Also support top, bottom and centred in the vertical dimension, for the
text object as a whole.
Alignment is not yet implemented for images. It has no meaning for
menus. A textline object uses a text object i
On Wed, Mar 19, 2025 at 12:27 PM Fabio Estevam wrote:
>
> On Wed, Mar 19, 2025 at 1:39 PM Adam Ford wrote:
>
> > Sorry about all the noise.
> >
> > I think I forgot to type 'git add' before the "git commit --amend" so
> > the fix didn't get applied, but because the same file was shown in the
> >
This patch series enables the usage of both Ethernet interfaces on the
Renesas RZ/G2L SMARC EVK board. It can be applied on top of commit
95d10669c0bd ("net: phy: ksz90x1: Simplify ksz9131_config_rgmii_delay")
on the u-boot-sh next branch.
Changes v1->v2:
- Split out from the original 14 patch s
In order to add support for the Renesas RZ/G2L Ethernet IP in a
subsequent patch, we move all R-Car specific code into new functions and
introduce a device_ops function pointer table.
Signed-off-by: Paul Barker
---
drivers/net/ravb.c | 80 +++---
1 file ch
Hello Mike,
On 18.03.25 10:04, Mike Looijmans wrote:
I think I have everything set up to access MTD (and UBI) devices as "block", however, lsblk always
ignores them, and refuses to list anything but the mmc. I can read ubifs and boot from it though,
and since UBI runs on top of MTD block device
On Wed, Mar 19, 2025 at 03:38:03PM +0100, Simon Glass wrote:
> Add an extlinux image that contains a few Ubuntu entries.
>
> Increase the number of sandbox-USB-hub ports to permit this.
>
> Signed-off-by: Simon Glass
I don't understand what this test adds. In neither the current Fedora
test no
Pass a pointer to a memory mapped initrd and its size to
efi_binary_run. The EFI stack will register an EFI_LOAD_FILE2_PROTOCOL
for the next boot stage to access this initrd.
Signed-off-by: Adriano Cordova
---
(no changes since v1)
boot/bootm_os.c | 3 ++-
1 file changed, 2 insertions(+), 1 de
This series collects together some new features for expo to make it more
useful for boot menus:
- measurement and display of multi-line text objects
- internal alignment for objects (e.g. centred text)
- editable strings in text fields
- new 'box' object to draw a rectangle
- highlighting of menu
Use white on black for the expo menu as it is easier on the eyes.
Signed-off-by: Simon Glass
---
arch/sandbox/dts/test.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index caec8c8fd01..2087c91285c 100644
--- a/arch/sandbox/dts/test.
Expo needs to be able to word-wrap lines so that they are displayed as
the user expects. Add a limit on the width of each line and support this
in the measurement algorithm.
Add a log category to truetype while we are here.
Signed-off-by: Simon Glass
---
boot/scene.c | 2
It is useful to be able to embed newline characters in the string and
have the text measured into multiple lines. Add support for this.
Signed-off-by: Simon Glass
---
drivers/video/console_truetype.c | 25 -
include/video_console.h | 4
test/dm/video.c
When writing multiple lines of text we need to be able to control which
text goes on each line. Add a new vidconsole_put_stringn() function to
help with this.
Signed-off-by: Simon Glass
---
drivers/video/vidconsole-uclass.c | 13 ++---
include/video_console.h | 17
Both bootflow_menu and cedit use similar logic to poll an expo. Move
this into the expo library so the code can be shared.
Update bootflow_menu_run() to return -EPIPE when the user quits without
choosing anything, since -EAGAIN is ambiguous and elsewhere means that
there is no input yet.
Signed-o
Provide a way to draw an unfilled box of a certain width. This is useful
for grouping menu items together.
Add a comment showing how to see the copy-framebuffer, for testing.
Signed-off-by: Simon Glass
---
drivers/video/video-uclass.c | 36
include/video.h
Add a test to check that the cedit renders as expected.
Signed-off-by: Simon Glass
---
test/boot/cedit.c | 26 ++
1 file changed, 26 insertions(+)
diff --git a/test/boot/cedit.c b/test/boot/cedit.c
index 4d1b99bc2ea..df191a09f89 100644
--- a/test/boot/cedit.c
+++ b/test
At present when the user moves to a new menu item, the menu code
handles this immediately. This means it is not possible to use an expo
action to effect the same change.
Update this so that EXPOACT_POINT_ITEM is handled in cedit_do_action().
Expand the test to cover this.
Signed-off-by: Simon Gl
Move the boolean flags into struct expo so that the state can be
maintained over function calls.
Signed-off-by: Simon Glass
---
boot/cedit.c | 17 -
include/expo.h | 4
2 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/boot/cedit.c b/boot/cedit.c
index 9bae
Refactor the action-processing code into a new cedit_do_action()
function so we can call it from a test. Check moving to a new field and
opening the menu, to ensure that rendering is correct.
Signed-off-by: Simon Glass
---
boot/cedit.c | 75 ++-
Once 'cedit run' is completed, destroy the expo so that a fresh one is
used for any future editing.
Signed-off-by: Simon Glass
---
cmd/cedit.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cmd/cedit.c b/cmd/cedit.c
index b0eca7b4daf..2e15b063462 100644
--- a/cmd/cedit.c
+++ b/cmd/cedit.
Refactor bootflow_menu_add_all() to call a new bootflow_menu_add() to
add each of its bootflows.
Move the last_bootdev value into struct menu_priv to make this work.
Signed-off-by: Simon Glass
---
boot/bootflow_menu.c | 102 ---
include/bootflow.h | 1
These coordinates are the top left values, so rename them to x0 and y0
in preparation for changing the width and height to x1 and y1
Signed-off-by: Simon Glass
---
boot/scene.c | 24 ++--
boot/scene_menu.c | 8 +++
boot/scene_textline.c | 16 ++---
incl
At present each object has a width and height and the bounding box is
implicit in that.
This is not flexible enough to handle objects which are larger than
their contents might need. For example, when centring a text object we
might want to have it stretch across the whole width of the display eve
It is more convenient to put strings in an abuf so they can easily be
resized. Adjust the struct accordingly.
Signed-off-by: Simon Glass
---
boot/expo.c| 4 ++--
include/expo.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/boot/expo.c b/boot/expo.c
index ba052df93
Add a function to allow the size of an object to be set independently
of its position.
Also add a function to permit the object's bounding box to be set
independently of its dimensions.
Signed-off-by: Simon Glass
---
boot/scene.c | 29 +
include/expo.h | 24 ++
In some cases it is useful to obtain more than just two bounding boxes
from a menu, e.g. to line up all descriptions vertically.
Use an array to obtain bounding-box information and calculate it
separately for each item.
Signed-off-by: Simon Glass
---
boot/scene.c | 61
In preparation for adding more text types, refactor the common fields
into a new structure. This will allow common code to be used.
Signed-off-by: Simon Glass
---
boot/cedit.c | 2 +-
boot/scene.c | 63 ---
boot/scene_menu.c | 12 ++
1 - 100 of 158 matches
Mail list logo