On Monday 16 January 2023 16:33:09 Tony Dinh wrote:
> Hi all,
>
> On Sat, Jan 14, 2023 at 1:45 PM Tony Dinh wrote:
> >
> > Hi Pali & Tom,
> >
> > On Sat, Jan 14, 2023 at 12:06 PM Pali Rohár wrote:
> > >
> > > On Saturday 14 January 2023 15:03:41 Tom Rini wrote:
> > > > On Sat, Jan 14, 2023 at 07
Hi,
On Wed, 23 Nov 2022 16:42:48 +0100, Mattijs Korpershoek wrote:
> While working on some USB bugs on the VIM3L board, we stumbled upon the fact
> that mach-meson still uses legacy board_usb_*() functions instead of using DM
> [1]
>
> This series aim to switch the g12a based boards to use CONFI
Hello! Thank you for update. It is much better.
On Monday 16 January 2023 21:34:39 Tony Dinh wrote:
> This syncs drivers/ddr/marvell/a38x/ with the master branch of repository
> https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git
>
> up to the commit "mv_ddr: a3700: Use th
Hi Karsten,
thanks for your report.
Can you test with the attached patch?
I do not have access to a hardware today, but I will test it tomorrow.
Regards
Manuel
Am 16.01.2023 um 19:50 hat Karsten Merker geschrieben:
> Hello,
>
> it looks like the following commit has broken the extlinux.conf
>
1. Enable Nuvoton BMC npcm844 function config and add dts node.
2. Add header file for npcm8xx security key feature.
Jim Liu (3):
ARM: dts: npcm8xx: add npcm845 function node
ARM: config: enable function for nuvoton npcm845 bmc
arm: npcm8xx: add security feature header
arch/arm/dts/nuvoto
Add functaion node list as below:
1. i2c
2. gmac
3. otp
4. aes
5. sha
6. rng
7. serial
Signed-off-by: Jim Liu
---
arch/arm/dts/nuvoton-common-npcm8xx.dtsi | 358 +++
arch/arm/dts/nuvoton-npcm845-evb.dts | 198 +
arch/arm/dts/nuvoton-npcm8xx-u-boot.dtsi | 134 +
Enable npcm845 i2c、ethernet、REGULATOR and security feature
Signed-off-by: Jim Liu
---
configs/arbel_evb_defconfig | 19 ++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/configs/arbel_evb_defconfig b/configs/arbel_evb_defconfig
index aa857661d9..8f8a603b50 100644
The NPCM driver can use on npcm7xx/npcm8xx
so add npcm8xx header for driver.
Signed-off-by: Jim Liu
---
arch/arm/include/asm/arch-npcm8xx/aes.h | 53 ++
arch/arm/include/asm/arch-npcm8xx/otp.h | 93 +
arch/arm/include/asm/arch-npcm8xx/rng.h | 43
ers/usb/dwc3/dwc3-meson-gxl.c| 18 +
13 files changed, 28 insertions(+), 266 deletions(-)
---
base-commit: b96640cbfb319071aea7915cfa2f7aefe08bbc08
change-id: 20230117-u-boot-usb-gxl-otg-dm-013ee8718190
Best regards,
--
Neil Armstrong
arch/mach-meson has some custom usb logic, in particular:
* on board_usb_init(), we force USB_DR_MODE_PERIPHERAL
* on board_usb_cleanup(), we force USB_DR_MODE_HOST
With DM_USB_GADGET=y, board_usb_init/cleanup() are no
longer used when we call usb_gadget_initialize().
Instead, the generic (from ud
With CONFIG_DM_USB_GADGET=y, we no longer need any board_usb_*() logic
because:
* the dwc2 driver is DM compatible, and handles its own clock enabling
* the dwc3-meson-gxl glue drivers handles "force mode switching"
Remove all mach-meson gx & axg usb code and enable CONFIG_DM_USB_GADGET.
Note: On
Hi Ye Li
On Tue, 2023-01-17 at 13:34 +0800, Ye Li wrote:
> In commit 48ddafd (imx8mm_evk: Switch to new imx8mm evk board),
> the iMX8MM EVK support was updated to new EVK board which is
> using PCA9450A PMIC.
> But the commit 24a7a3c (imx8mm: synchronise device tree with linux)
> changed DTS node
Sync rockchip,vop2.h from linux-next, and the last commit is
commit <604be85547ce> ("drm/rockchip: Add VOP2 driver")
Reviewed-by: Kever Yang
Signed-off-by: Jagan Teki
---
Changes for v2:
- collect Kever RB
include/dt-bindings/soc/rockchip,vop2.h | 14 ++
1 file changed, 14 inserti
Radxa Compute Module 3(CM3) is one of the modules from a series
System On Module based on the Radxa ROCK 3 series and is compatible
with Raspberry Pi CM4 pinout and form factor.
Specification:
- Rockchip RK3566
- up to 8GB LPDDR4
- up to 128GB high performance eMMC
- Optional wireless LAN, 2.4GHz
Radxa Compute Module 3(CM3) IO board an application board from Radxa
and is compatible with Raspberry Pi CM4 IO form factor.
Specification:
- 1x HDMI,
- 2x MIPI DSI
- 2x MIPI CSI2
- 1x eDP
- 1x PCIe card
- 2x SATA
- 2x USB 2.0 Host
- 1x USB 3.0
- 1x USB 2.0 OTG
- Phone jack
- microSD slot
- 40-pin
Radxa Compute Module 3(CM3) IO board an application board from Radxa
and is compatible with Raspberry Pi CM4 IO form factor.
Radxa CM3 needs to mount on top of this IO board in order to create
complete Radxa CM3 IO board platform.
Add support for Radxa CM3 IO Board defconfig and -u-boot.dtsi
Rev
On Fri, Jan 13, 2023 at 12:43 AM Simon Glass wrote:
>
> Hi,
>
> On Tue, 3 Jan 2023 at 10:05, Simon Glass wrote:
> >
> > Hi Robert,
> >
> > On Fri, 30 Dec 2022 at 13:26, Robert Marko wrote:
> > >
> > >
> > >
> > > On Fri, Dec 30, 2022 at 8:02 PM Simon Glass wrote:
> > >>
> > >> Hi Pali,
> > >>
>
On Tue, Jan 17, 2023 at 10:11, Neil Armstrong wrote:
> arch/mach-meson has some custom usb logic, in particular:
> * on board_usb_init(), we force USB_DR_MODE_PERIPHERAL
> * on board_usb_cleanup(), we force USB_DR_MODE_HOST
>
> With DM_USB_GADGET=y, board_usb_init/cleanup() are no
> longer used w
On Tue, Jan 17, 2023 at 10:11, Neil Armstrong wrote:
> With CONFIG_DM_USB_GADGET=y, we no longer need any board_usb_*() logic
> because:
> * the dwc2 driver is DM compatible, and handles its own clock enabling
> * the dwc3-meson-gxl glue drivers handles "force mode switching"
>
> Remove all mach-
Hi Johan,
On 1/16/23 20:45, Johan Jonker wrote:
Sync rk3066/rk3188 DT files from Linux.
This is the state as of linux-next v6.2-rc4.
New nfc node for MK808 rk3066a.
CRU nodes now have a clock property.
To prefend dtoc errors a fixed clock must also be
included for tpl/spl in the rk3xxx-u-boot.dt
On 1/17/23 10:43, Mattijs Korpershoek wrote:
On Tue, Jan 17, 2023 at 10:11, Neil Armstrong wrote:
arch/mach-meson has some custom usb logic, in particular:
* on board_usb_init(), we force USB_DR_MODE_PERIPHERAL
* on board_usb_cleanup(), we force USB_DR_MODE_HOST
With DM_USB_GADGET=y, board_us
The first name is taken from command name that's why shouldn't be listed in
help. The similar change was also done by commit a84d3b6c5634 ("cmd: pwm:
Remove additional pwm description").
Also remove additional spaces in help message.
Before:
event event list - list event spies
After:
event list
On 1/16/23 18:54, Pali Rohár wrote:
On Monday 16 January 2023 16:34:45 Stefan Roese wrote:
It was noticed that Clearfog is currently broken with this newly
introduced early_init_done() function. Apparently the timer is enabled
here when U-Boot is run but not configured - at least not correctly.
On 12/30/22 06:45, Tony Dinh wrote:
For Kirkwood boards, it is necessary to have early malloc in DRAM area
when Driver Model for Serial is enabled. Please see Michael's patch here:
https://lore.kernel.org/u-boot/20220817193809.1059688-20-mich...@walle.cc/
This patch enables the early malloc in D
Hi Tom,
please pull this small batch of Marvell related patches:
- kirkwood: Convert to DM Serial for various Kirkwood boards (Tony)
- orion-timer: Fix problem in early_init_done() (Stefan)
-
Commit 9591b63531fa ("Convert CONFIG_SYS_NS16550_MEM32 et al to Kconfig")
moved some NS16550 configuration variables into Kconfig.
Among those there is CONFIG_SYS_NS16550_REG_SIZE, which used to be only
defined for SPL build runs, but now is always set (thanks for Kconfig).
However this breaks the
On Tue, 17 Jan 2023 at 15:10, Andre Przywara wrote:
> -#if CONFIG_IS_ENABLED(DM_SERIAL) && !defined(CONFIG_SYS_NS16550_REG_SIZE)
> +#if CONFIG_IS_ENABLED(DM_SERIAL)
> /*
> * For driver model we always use one byte per register, and sort out the
> * differences in the driver
> */
> +#undef
On Tue, Jan 17, 2023 at 12:09:38PM +, Andre Przywara wrote:
> Commit 9591b63531fa ("Convert CONFIG_SYS_NS16550_MEM32 et al to Kconfig")
> moved some NS16550 configuration variables into Kconfig.
> Among those there is CONFIG_SYS_NS16550_REG_SIZE, which used to be only
> defined for SPL build r
On Tue, Jan 17, 2023 at 10:09:00AM +0530, Nikhl M Jain wrote:
> Hi, Tom
>
> On 13/01/23 20:13, Tom Rini wrote:
> > On Fri, Jan 13, 2023 at 01:59:21PM +0530, Nikhil M Jain wrote:
> >
> >> Add device tree node which includes the register
> >> regions to write properties of planes (vidl1 and vid1),
source.denx.de/u-boot/custodians/u-boot-sh (2023-01-15
> 10:31:17 -0500)
>
> are available in the Git repository at:
>
> https://source.denx.de/u-boot/custodians/u-boot-rockchip.git
> tags/u-boot-rockchip-20230117
>
> for you to fetch changes up to c925be73a0a8b1d90060
On Tue, Jan 17, 2023 at 12:49:04PM +0100, Stefan Roese wrote:
> Hi Tom,
>
> please pull this small batch of Marvell related patches:
>
Applied to u-boot/master, thanks!
--
Tom
signature.asc
Description: PGP signature
On Sat, Jan 07, 2023 at 07:49:36PM -0700, Simon Glass wrote:
> So far, standard boot does not replicate all the of the functionality
> of the distro_bootcmd scripts. In particular it lacks some bootdevs and
> some of the bootmeths are incomplete.
>
> Also there is currently no internal mechanism
On Fri, Jan 06, 2023 at 08:52:18AM -0600, Simon Glass wrote:
> So far standard boot lacks a boot menu, although it is possible to create
> a rudimentary one using the existing 'bootmenu' command.
>
> Even then, this text-based menu offer only basic functionality and does
> not take full advantage
On Mon, Jan 16, 2023 at 01:23:53PM +, Abdellatif El Khlifi wrote:
> On Fri, Jan 13, 2023 at 11:00:28AM -0700, Simon Glass wrote:
> > Hi Abdellatif,
> >
> > On Fri, 13 Jan 2023 at 03:44, Abdellatif El Khlifi
> > wrote:
> > >
> > > On Thu, Jan 12, 2023 at 04:43:32PM -0700, Simon Glass wrote:
>
Currently, pinctrl drivers are getting probed during post-bind, however
that is being reverted, and on A37XX pinctrl driver is the one that
registers the GPIO driver during the probe.
So, if the pinctrl driver doesn't get probed GPIO-s won't get registered
and thus they cannot be used.
This is a
From: Andrejs Cainikovs
All Apalis iMX8 variants have 2nd RGMII on SoC, so add the address
for 2nd ethernet.
Signed-off-by: Andrejs Cainikovs
Signed-off-by: Francesco Dolcini
---
board/toradex/apalis-imx8/Kconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/board/toradex/apalis-imx8
On 1/17/23 10:46, Quentin Schulz wrote:
> Hi Johan,
>
> On 1/16/23 20:45, Johan Jonker wrote:
>> Sync rk3066/rk3188 DT files from Linux.
>> This is the state as of linux-next v6.2-rc4.
>> New nfc node for MK808 rk3066a.
>> CRU nodes now have a clock property.
>> To prefend dtoc errors a fixed c
Hi Johan,
On Tue, Jan 17, 2023 at 03:44:07PM +0100, Johan Jonker wrote:
> On 1/17/23 10:46, Quentin Schulz wrote:
> > On 1/16/23 20:45, Johan Jonker wrote:
> >> Sync rk3066/rk3188 DT files from Linux.
> >> This is the state as of linux-next v6.2-rc4.
> >> New nfc node for MK808 rk3066a.
> >> CRU n
On Tue, Jan 17, 2023 at 08:15:18AM -0500, Tom Rini wrote:
> On Tue, Jan 17, 2023 at 12:09:38PM +, Andre Przywara wrote:
>
> > Commit 9591b63531fa ("Convert CONFIG_SYS_NS16550_MEM32 et al to Kconfig")
> > moved some NS16550 configuration variables into Kconfig.
> > Among those there is CONFIG_S
Hi John,
On 1/17/23 16:20, John Keeping wrote:
Hi Johan,
On Tue, Jan 17, 2023 at 03:44:07PM +0100, Johan Jonker wrote:
On 1/17/23 10:46, Quentin Schulz wrote:
On 1/16/23 20:45, Johan Jonker wrote:
Sync rk3066/rk3188 DT files from Linux.
This is the state as of linux-next v6.2-rc4.
New nfc no
Hi Tom,
On Tue, 17 Jan 2023 at 06:57, Tom Rini wrote:
>
> On Sat, Jan 07, 2023 at 07:49:36PM -0700, Simon Glass wrote:
>
> > So far, standard boot does not replicate all the of the functionality
> > of the distro_bootcmd scripts. In particular it lacks some bootdevs and
> > some of the bootmeths
On Tue, 17 Jan 2023 08:15:18 -0500
Tom Rini wrote:
Hi Tom,
> On Tue, Jan 17, 2023 at 12:09:38PM +, Andre Przywara wrote:
>
> > Commit 9591b63531fa ("Convert CONFIG_SYS_NS16550_MEM32 et al to Kconfig")
> > moved some NS16550 configuration variables into Kconfig.
> > Among those there is CONF
On Tue, 17 Jan 2023 16:12:54 +0300
Sergei Antonov wrote:
Hi Sergei,
> On Tue, 17 Jan 2023 at 15:10, Andre Przywara wrote:
>
> > -#if CONFIG_IS_ENABLED(DM_SERIAL) && !defined(CONFIG_SYS_NS16550_REG_SIZE)
> > +#if CONFIG_IS_ENABLED(DM_SERIAL)
> > /*
> > * For driver model we always use one by
On Tue, Jan 17, 2023 at 04:09:14PM +, Andre Przywara wrote:
> On Tue, 17 Jan 2023 08:15:18 -0500
> Tom Rini wrote:
>
> Hi Tom,
>
> > On Tue, Jan 17, 2023 at 12:09:38PM +, Andre Przywara wrote:
> >
> > > Commit 9591b63531fa ("Convert CONFIG_SYS_NS16550_MEM32 et al to Kconfig")
> > > move
On Tue, Jan 17, 2023 at 04:12:54PM +0300, Sergei Antonov wrote:
> On Tue, 17 Jan 2023 at 15:10, Andre Przywara wrote:
>
> > -#if CONFIG_IS_ENABLED(DM_SERIAL) && !defined(CONFIG_SYS_NS16550_REG_SIZE)
> > +#if CONFIG_IS_ENABLED(DM_SERIAL)
> > /*
> > * For driver model we always use one byte per
Hi Johan,
On 1/17/23 15:44, Johan Jonker wrote:
On 1/17/23 10:46, Quentin Schulz wrote:
Hi Johan,
On 1/16/23 20:45, Johan Jonker wrote:
Sync rk3066/rk3188 DT files from Linux.
This is the state as of linux-next v6.2-rc4.
New nfc node for MK808 rk3066a.
CRU nodes now have a clock property.
T
- ARM: tegra: remap clock_osc_freq for all Tegra family
Enum clock_osc_freq was designed to use only with T20.
This patch remaps it to use additional frequencies, added in
T30+ SoC while maintaining backwards compatibility with T20.
- drivers: timer: add timer driver for ARMv7 based Tegra devices
Add timer support for T20/T30/T114 and T124 based devices.
Driver is based on DM, has device tree support and can be
used on SPL and early boot stage.
Tested-by: Andreas Westman Dorcsak # ASUS TF600T T30
Tested-by: Jonas Schwöbel # Surface RT T30
Tested-by: Robert Eckelmann # ASUS TF101 T20
Tes
Enum clock_osc_freq was designed to use only with T20.
This patch remaps it to use additional frequencies, added in
T30+ SoC while maintaining backwards compatibility with T20.
Tested-by: Andreas Westman Dorcsak # ASUS TF600T T30
Tested-by: Jonas Schwöbel # Surface RT T30
Tested-by: Robert Eckel
Enable TIMER as default option for add Tegra devices and
enable TEGRA_TIMER for TEGRA_ARMV7_COMMON. Additionally
enable SPL_TIMER if build as SPL part and drop deprecated
configs from common header.
Signed-off-by: Svyatoslav Ryhel
---
arch/arm/Kconfig | 1 +
arch/arm/mach-tegra/Kco
The RK3288 TRM states that, for 8-bit DDR modes:
The CLKDIV register should always be programmed with a value
higher than zero (0); that is, a clock divider should always be
used for 8-bit DDR mode.
In Linux, the driver applies this logic for all SoCs using the driver
and
y
-CONFIG_RAM_PX30_DDR4=y
+CONFIG_RAM_ROCKCHIP_DDR4=y
CONFIG_DM_RESET=y
CONFIG_DM_RNG=y
CONFIG_RNG_ROCKCHIP=y
---
base-commit: 5b958dea5c678dbdb2aeb6ac3c0c8cc8dfea065c
change-id: 20230117-ringneck-defconfig-ddr-1fd7bca182f4
Best regards,
--
Quentin Schulz
Hi Quentin,
On Tue, Jan 17, 2023 at 04:58:54PM +0100, Quentin Schulz wrote:
> On 1/17/23 16:20, John Keeping wrote:
> > Hi Johan,
> >
> > On Tue, Jan 17, 2023 at 03:44:07PM +0100, Johan Jonker wrote:
> > > On 1/17/23 10:46, Quentin Schulz wrote:
> > > > On 1/16/23 20:45, Johan Jonker wrote:
> > >
So far, standard boot does not replicate all the of the functionality
of the distro_bootcmd scripts. In particular it lacks some bootdevs and
some of the bootmeths are incomplete.
Also there is currently no internal mechanism to enumerate buses in order
to discover bootdevs, e.g. with USB.
This s
A few of these are out of order. Fix them.
Signed-off-by: Simon Glass
---
(no changes since v1)
include/dm/uclass-id.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h
index 376f741cc2b..33e43c20db6 100644
--- a/include/dm/
Add a -s flag to sort the top-level devices in order of uclass ID.
Signed-off-by: Simon Glass
---
(no changes since v1)
cmd/dm.c | 10 +--
doc/usage/cmd/dm.rst | 5 +++-
drivers/core/dump.c | 65
include/dm/util.h|
This obscures the line number. Update the test to avoid make sure that
the line which failed is displayed, so it is possible to diagnose the
failure.
Signed-off-by: Simon Glass
---
(no changes since v1)
test/dm/part.c | 12
1 file changed, 4 insertions(+), 8 deletions(-)
diff --g
Some environment variables provide a space-separated list of strings. It
is easier to process these when they are broken out into an array of
strings.
Add a utility function to handle this.
Signed-off-by: Simon Glass
---
(no changes since v1)
include/vsprintf.h | 24 ++
lib/strto.
The font help has an incorrect newline. Fix it.
Signed-off-by: Simon Glass
Fixes: cdd964e3801 ("test: Tidy up help for ut command")
---
(no changes since v1)
test/cmd_ut.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/cmd_ut.c b/test/cmd_ut.c
index 067bd0828a1..1713d
There is no point in trying to match the alias order for bootdevs, since
build_order() either sorts them by priority, uses the boot_targets
environment variable or the bootdev-order property.
Just use the iterator instead, to simplify the code.
Signed-off-by: Simon Glass
---
(no changes since v
Rather than implement this as its own case in build_order(), process the
boot_targets environment variable in the bootstd_get_bootdev_order()
function. This allows build_order() to be simplified.
Signed-off-by: Simon Glass
---
(no changes since v1)
boot/bootdev-uclass.c | 32 +-
This code is present twice. Fix it so that it is only executed once.
Signed-off-by: Simon Glass
---
(no changes since v1)
test/test-main.c | 4
1 file changed, 4 deletions(-)
diff --git a/test/test-main.c b/test/test-main.c
index 5931e94a915..9ab090b7b33 100644
--- a/test/test-main.c
+++
When running multiple tests the mmc emulator calls malloc() to obtain the
memory for its disk image. Since the memory is not cleared, it is possible
that it happens to contain a partition table.
The dm_test_part() test (for one) relies on mmc0 being empty on startup.
Zero the memory to ensure that
This needs to be able to work (at least partially) without the bloblist
active. Add a condition for this.
Signed-off-by: Simon Glass
---
(no changes since v1)
cmd/vbe.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/cmd/vbe.c b/cmd/vbe.c
index befaf07c64d..600690394
This is not needed anymore since VBE creates the node when it sets up the
OS requests. Drop it.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/sandbox/dts/sandbox.dtsi | 13 -
1 file changed, 13 deletions(-)
diff --git a/arch/sandbox/dts/sandbox.dtsi b/arch/sandbox/dts/
At present this test sets up a partition table on mmc1. But this is used
by the bootstd tests, so it is not possible to run those after this test
has run, without restarting the Python test harness.
This is inconvenient when running tests repeatedly with 'ut dm'. Move the
test to use mmc2, which i
We must call dm_scan_other() after devices from the device tree have been
created, since that function behaves differently if there is no bootstd
device.
Adjust the logic to achieve this.
Also fix the bootflow_system() test which was relying on this broken
behaviour.
Signed-off-by: Simon Glass
We require CONFIG_BLK to be enabled now, so this code is unused. Drop it.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/block/ide.c | 42 +-
1 file changed, 1 insertion(+), 41 deletions(-)
diff --git a/drivers/block/ide.c b/drivers/block/
The code in these functions turns out to often be the same. Add a default
get_bootflow() function and allow the drivers to select it by setting
the method to NULL.
This saves a little code space.
Signed-off-by: Simon Glass
---
(no changes since v1)
boot/bootdev-uclass.c | 27
For bootstd tests it is seldom useful to have ethernet enabled. Add a way
to disable it, so that ethernet operations like tftpboot do nothing.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/sandbox/cpu/state.c | 16
arch/sandbox/include/asm/state.h | 1 +
a
At present MMC uses the bootdev_setup_for_dev() function to set up the
bootdev. This is because MMC only has one block-device child, so does not
need to worry about naming of the bootdev.
However this inconsistency with other bootdevs that use block devices is a
bit annoying. The only real reason
Most tests don't want these and can create a lot of noise. Add a way to
disable them. Use that in tests, with a flag provided to enable them for
tests that need this feature.
Signed-off-by: Simon Glass
---
(no changes since v1)
include/net.h | 16
include/test/test.h | 1
This bootdev is disabled at present since it messes with the tests. Now
that there is a way to disable networking at runtime, enable the driver.
This allows running tests with it if necessary.
Signed-off-by: Simon Glass
---
(no changes since v1)
configs/sandbox_defconfig | 1 -
config
It is often useful to show an error code to give the user a clue as to
what went wrong. When error strings are compiled into U-Boot it is
possible to show a message as well.
But at present it is not very convenient, since code must check if the
error strings are present, then obtain the error stri
Use a different one for each call.
Signed-off-by: Simon Glass
---
(no changes since v1)
common/event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/event.c b/common/event.c
index 231b9e6ffdd..c312556490e 100644
--- a/common/event.c
+++ b/common/event.c
@@ -123,7 +
When this fails it can be time-consuming to debug. Add some debugging
to help with this. Also try to return error codes instead of just using
-1.
Signed-off-by: Simon Glass
---
(no changes since v1)
lib/efi_loader/efi_disk.c | 30 +-
1 file changed, 21 insertions(+)
Since usb_find_and_bind_driver() allocates the device name it should tell
driver about that, to avoid memory leaks. Fix this.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/usb/host/usb-uclass.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/usb/host/usb-uclass.c b
Add a hunter for MMC. This doesn't do anything at present, since MMC is
currently set up when U-Boot starts. If MMC moves to lazy init then we can
add a hunter function.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/mmc/mmc_bootdev.c | 6 ++
test/boot/bootdev.c | 16 +
Add a way to run a bootdev hunter to find bootdevs of a certain type. Add
this to the 'bootdev hunt' command. Test for this are added in a later
patch, since a useful test needs some hunters to work with.
Signed-off-by: Simon Glass
---
(no changes since v1)
boot/bootdev-uclass.c | 61 +
Some bootdevs must be enumerated before they appear. For example, USB
bootdevs are not visible until USB is enumerated.
With standard boot this needs to happen automatically, since we only
want to enumerate a bus if it is needed.
Add a way to define bootdev 'hunters' which can be used to hunt for
If a disk has a bootable partition we are expected to use it to locate the
boot files. Add a function to find it.
To test this, update mmc1 to have two paritions, fixing up other tests
accordingly.
Signed-off-by: Simon Glass
---
(no changes since v1)
disk/part.c | 16 ++
Sometimes ethernet devices are attached to PCI. Since it is quick to scan,
add this into the ethernet hunter.
Run dhcp to establish the network connection. Drop this from the bootdev
since that is not needed now. Update a log message for clarity.
Signed-off-by: Simon Glass
---
(no changes since
At present all partitions are scanned, whether marked bootable or not.
Use only bootable partitions, defaulting to partition 1 if none is
found.
Signed-off-by: Simon Glass
---
(no changes since v1)
boot/bootdev-uclass.c | 10 +-
include/bootflow.h| 2 ++
test/boot/bootdev.c | 37
Add a bootdev for IDE so that these devices can be used with standard
boot.
Signed-off-by: Simon Glass
---
(no changes since v1)
configs/sandbox_flattree_defconfig | 8 ++
drivers/block/ide.c| 44 ++
test/boot/bootdev.c| 16 +
The test code for virtio is fairly simplistic and does not actually create
a block device. Add a way to specify the device type in the device tree.
Add a block device so that we can do more testing.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/sandbox/dts/test.dts | 6 ++
This environment variable is supposed to be set so that the script knows
which partition holds the script. Set it before invoking the script.
Signed-off-by: Simon Glass
---
(no changes since v1)
boot/bootmeth_script.c | 3 +++
include/bootflow.h | 3 +++
2 files changed, 6 insertions(+)
d
Normally the bootmeth driver reads the bootflow from the bootdev, since
it knows the correct way to do it.
However it is easier for some bootdevs to handle this themselves. For
example, reading from SPI flash is quite different from other devices.
Add a way for the bootdev to pass a bootflow to t
Mention that this function is also used with a NULL block devices to
access files on the host, when using sandbox.
Update the comment on struct bootflow also.
Signed-off-by: Simon Glass
---
(no changes since v1)
include/bootflow.h | 2 +-
include/bootmeth.h | 2 +-
2 files changed, 2 insertio
Add a bootdev for virtio so that these devices can be used with standard
boot.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/virtio/virtio-uclass.c | 50 ++
test/boot/bootdev.c| 12
2 files changed, 57 insertions(+), 5 deletio
This device does a check on removal which is better handled in the actual
test. Move it.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/virtio/virtio_sandbox.c | 13 -
test/dm/virtio_device.c | 3 +++
2 files changed, 3 insertions(+), 13 deletions(-)
diff --
Add a bootdev for NVMe so that these devices can be used with standard
boot.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/nvme/nvme-uclass.c | 54 ++
drivers/nvme/nvme.c| 5
test/boot/bootdev.c| 15 ++-
3 files c
With EFI booting the device tree is required but is not actually specified
in any way. The normal method is to use a fdtfile environment variable to
get the filename, then look for that file on the media.
Implement this in the bootmeth.
Signed-off-by: Simon Glass
---
(no changes since v1)
boo
Some bootmeths provide a way to load a device tree as well as the base
OS image. Add a way to store this in the bootflow. Update the
'bootflow info' command to show this information.
Note that the device tree is not allocated, but instead is stored at
an address provided by an environment variable
This is complicated enough to merit its own function, particularly as we
are about to add to it. Create a new label_to_uclass() function to decode
a label.
Also update the code to ignore an empty label or one consisting of just a
number.
Signed-off-by: Simon Glass
---
(no changes since v1)
bo
Use a local variable to hold this name, to reduce the amount of code that
needs to be read.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/virtio/virtio-uclass.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/virtio/virtio-uclass.c b/driver
The controller indicates the number of ports but also has a port map
which specifies which ports are actually valid. Make use of this to
avoid trying to send commands to an invalid port.
This avoids a crash on some controllers.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/ata/
Add a way to run the hunter function for a particular priority, so that
new bootdevs can be found.
Signed-off-by: Simon Glass
---
(no changes since v1)
boot/bootdev-uclass.c | 25 +
include/bootdev.h | 11 +++
test/boot/bootdev.c | 25 +
Add a flag to control whether hunters are used when scanning for
bootflows. Enable it by default and tidy up the flag comments a little.
Fow now this has no effect, until a future patch enables this feature.
Signed-off-by: Simon Glass
---
(no changes since v1)
cmd/bootflow.c | 5 -
i
At present this bootmeth only supports a block device and the sandbox
host filesystem. Add support for obtaining the script from a network
device. Also implement the set_bootflow() method so that it is easy
for other bootdevs (such as enabling SPI flash to support scripts).
Signed-off-by: Simon Gl
These are associated with the ethernet boot device but do not match its
uclass name, so handle them as special cases.
Provide a way to pass flags through with the bootdev so that we know
how to process it. The flags are checked by the bootmeths, to ensure that
only the selected bootmeth is used.
1 - 100 of 179 matches
Mail list logo