hi,
On Fri, 22 Sept 2023 at 16:40, Song Sam wrote:
>
> Hi all,
>
> I am currently in the process of booting the Linux kernel using the U-boot
> 'bootefi' command. However, I am facing an issue with the root file system
> (rootfs) disk, which is not functioning properly. As a solution, I am
> cons
After the refactor with conf- nodes in fitImage, overlaystring wasn't
didn't handle the new conf- nodes in FIT Booting. Fix get_overlaystring
to handle conf- nodes.
Fixes: 837833a724b7 ("environment: ti: Add get_fit_config command to get FIT
config string")
Reported-by: Aniket Limaye
Signed-off-
Hi Simon,
On 9/23/23 20:13, Simon Glass wrote:
Current alignment which is using 16 bytes is not correct in connection to
trace_clocks description and it's length.
That's why use start_addr variable and record proper size based on used
entries.
Fixes: be16fc81b2ed ("trace: Update proftool to us
On 9/14/2023 6:21 PM, Heinrich Schuchardt wrote:
> On 9/14/23 09:42, Wu, Fei wrote:
>> On 9/14/2023 3:20 PM, Heinrich Schuchardt wrote:
>>> On 9/14/23 08:48, Wu, Fei wrote:
On 9/14/2023 2:05 PM, Heinrich Schuchardt wrote:
>
>
> Am 14. September 2023 07:30:55 MESZ schrieb Fei Wu
>>>
On 9/22/2023 2:45 PM, Neha Malcom Francis wrote:
According to the TRMs of K3 platform of devices, the ROM boot image
Below tear line, giving some link of TRM, with section information
where this format is mentioned will be helpful for reviewers.
format specifies a "Core Options Field" tha
Hi,
On 21/09/23 21:52, Masahiro Yamada wrote:
> On Fri, Sep 22, 2023 at 12:03 AM Masahiro Yamada wrote:
>>
>> Hi.
>>
>> I am seeing a boot failure on AM64-SK.
>>
>>
>> I got the following error in SPL of the main core.
>> Do you have any clue?
>
>
>
> As a side-topic, I downloaded a prebuilt i
Hi Masahiro,
On 21/09/23 20:33, Masahiro Yamada wrote:
> Hi.
[...]
> spl: mmc boot mode: fs
> Found FIT
> Error reading cluster
> fit read sector 0, sectors=985528, dst=, count=18446744073709551615,
> size=0xf09b8
> SPL: failed to boot from all boot devices
> ### ERROR ### Please RESET the board
On 9/24/2023 7:21 PM, Heinrich Schuchardt wrote:
Am 24. September 2023 13:18:32 MESZ schrieb Udit Kumar :
In case of new memory range to be added is coalesced
with any already added non last lmb region.
And there is possibility that, then region in which new memory
range added is not adjacent
Added support for on-chip EMMC(SMHC2) pin pull ups
for sunxi R528 board. Otherwise, "No pinmux setup
defined for MMC2" appears. Moreover, adding
CONFIG_MMC_SUNXI_SLOT_EXTRA=2 to defconfig might be
needed in order to inform SPL code that another MMC instance on
top of the default 0 for booting shoul
Move this out of the common header and include it only where needed.
Signed-off-by: Simon Glass
---
api/api.c | 1 +
arch/arm/include/asm/arch-tegra/timer.h| 1 +
arch/arm/mach-at91/arm920t/clock.c | 1 +
arch/arm/
This series removes two more header files from the common.h header. It
also tidies up code style for time.h functions, to simplify similar
maintenance in future.
Simon Glass (3):
Fix code style for time functions
common: Drop time.h from common header
common: Drop linux/string.h from common
Fix the code style used for some time functions.
Signed-off-by: Simon Glass
---
arch/powerpc/lib/interrupts.c | 2 +-
arch/powerpc/lib/time.c | 5 +++--
board/armltd/integrator/timer.c | 2 +-
drivers/fpga/ACEX1K.c | 4 ++--
drivers/fpga/spartan2.c | 24 +
On Sun, Sep 24, 2023 at 02:39:18PM -0600, Simon Glass wrote:
> It should be possible to disable CONFIG_CMDLINE and have all commands
> and related functionality dropped from U-Boot. This is useful when
> trying to reduce the size of U-Boot.
>
> Recent changes have stopped this from working.
>
>
The MP5416 PMIC's LDO set-value formula is incorrect. This patch fixes
it by using the correct formula.
Signed-off-by: Sidharth Prabukumar
Cc: Jaehoon Chung
---
include/power/mp5416.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/power/mp5416.h b/include/power/mp54
It should be possible to disable CONFIG_CMDLINE and have all commands
and related functionality dropped from U-Boot. This is useful when
trying to reduce the size of U-Boot.
Recent changes have stopped this from working.
This series repairs the feature for sandbox and adds a test to stop it
break
On Sun, Sep 24, 2023 at 02:39:25PM -0600, Simon Glass wrote:
> This code is normally compiled for Tegra, but sandbox can also compile
> it. We should not use UNIT_TEST as a synonym for SANDBOX, since it is
> possible to disable UNIT_TEST for sandbox.
>
> Correct the condition.
>
> Signed-off-by:
On Sun, Sep 24, 2023 at 02:39:21PM -0600, Simon Glass wrote:
> Make AUTOBOOT depend on CMDLINE since it is mostly meaningless without it.
>
> Signed-off-by: Simon Glass
> ---
>
> boot/Kconfig | 23 ++-
> 1 file changed, 14 insertions(+), 9 deletions(-)
>
> diff --git a/boo
Hi Simon,
On Sun, Sep 24, 2023 at 1:40 PM Simon Glass wrote:
>
> Hi Tony,
>
> On Tue, 5 Sept 2023 at 23:23, Tony Dinh wrote:
> >
> > Add hook in sata_mv probe to enable bootstd bootdev.
> >
> > Note: bootdev_setup_for_sibling_blk() invocation is a noop if bootsd is
> > not enabled for ahci sata
Hi Rogan,
On Sun, Sep 24, 2023 at 5:16 PM Rogan Dawes wrote:
>
> Hi folks,
>
> I eventually decided that I did need to figure out the DRAM timings for the
> Micron chip on my board, but I found an easier way than actually
> "understanding what I'm doing"! :-)
>
> I pulled the vendor U-Boot imag
On Sun, Sep 24, 2023 at 02:39:23PM -0600, Simon Glass wrote:
> Some commands assume that CONFIG_SYS_LONGHELP is always defined.
> Declaration of long help should be bracketed by an #ifdef to avoid an
> 'unused variable' warning.
>
> Fix this treewide.
>
> Signed-off-by: Simon Glass
[snip]
> diff
On Sun, Sep 24, 2023 at 02:39:26PM -0600, Simon Glass wrote:
> When CMDLINE is not enabled, this code fails to build. Correct this by
> adding conditions.
>
> Note that this should not happen in normal use, since the use of
> 'select CMDLINE' will cause a visible warning. But it is needed for the
The BitBlt test leaves the serial console output in disarray.
* Call ClearScreen() where needed.
* Test CheckEvent() for EFI_SIMPLE_TEXT_INPUT_PROTOCOL.WaitForKey
via adding navigation keys
* Correct timer comment
For testing on the sandbox:
CONFIG_CMD_BOOTEFI_SELFTEST=y
CONFIG_CONSOLE
On Sat, Sep 23, 2023 at 01:52:55PM -0600, Simon Glass wrote:
> Hi Tom,
>
> This is for the -next branch
>
> https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/17836
>
>
> The following changes since commit b05a184379631d13c4a49e423aa1324dc1ae6158:
>
> Merge tag 'x86-pull-2023092
On Thu, 14 Sep 2023 18:21:46 -0600, Simon Glass wrote:
> This old patch was marked as deferred. Bring it back to life, to continue
> towards the removal of common.h
>
> Move this out of the common header and include it only where needed.
>
>
Applied to u-boot/next, thanks!
--
Tom
Now that everything is working, add a test to make sure that this
builds correctly.
Signed-off-by: Simon Glass
---
test/py/tests/test_sandbox_opts.py | 20
1 file changed, 20 insertions(+)
create mode 100644 test/py/tests/test_sandbox_opts.py
diff --git a/test/py/tests/te
Use 'imply' rather than 'select' for command-related options, so that
it is possible to build sandbox without CONFIG_CMDLINE enabled.
Signed-off-by: Simon Glass
---
arch/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/Kconfig b/arch/Kconfig
index 19f2891ba
If this option is disabled, commands should not be available. Convert
the CMDLINE option into a menuconfig and make every command in
cmd/Kconfig depend on it.
Signed-off-by: Simon Glass
---
cmd/Kconfig | 29 -
1 file changed, 8 insertions(+), 21 deletions(-)
diff --
This features currently requires the command line, so make this
explicit. Future work could adjust this, but it needs effort within
the booting support first, like the bootm command.
Signed-off-by: Simon Glass
---
lib/efi_loader/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/ef
While it is nice to have the font command, using 'select' makes it
impossible to build the console code without it. Change this to use
'imply' instead.
Signed-off-by: Simon Glass
---
drivers/video/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/Kconfig
Provide a fallback for when CONFIG_SYS_CBSIZE is not provided, so that
the console can still be used.
Signed-off-by: Simon Glass
---
drivers/video/console_truetype.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c
index
When CONFIG_SYS_CBSIZE is not used we need an alternative. For logging
it seems that CONFIG_SYS_PBSIZE is a better choice anyway, so update
this.
Signed-off-by: Simon Glass
---
common/log.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/log.c b/common/log.c
index
At present it isn't possible to use networking without the command line
enabled. Add this as a condition.
Signed-off-by: Simon Glass
---
cmd/Kconfig | 1 +
net/Kconfig | 1 +
2 files changed, 2 insertions(+)
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 5f6834b335dc..c3428d19f31d 100644
--- a/c
This can be accessed even when commands are not enabled. Move it into
the fdt_support.c file, which is where most of the FDT helpers are.
Signed-off-by: Simon Glass
---
boot/fdt_support.c | 5 +
cmd/fdt.c | 5 -
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/boo
There are two cleanup functions needed during boot which depend on
CMD_BOOTM: bootm_disable_interrupts() and board_quiesce_devices()
Provide static inline versions of these for when commands are not
enabled.
Signed-off-by: Simon Glass
---
arch/arm/lib/bootm.c | 2 ++
boot/bootm.c | 10
This relates to printing output and does not need a command line. Move
it next to the other console-related options.
Signed-off-by: Simon Glass
---
cmd/Kconfig| 5 -
common/Kconfig | 5 +
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/cmd/Kconfig b/cmd/Kconfig
index
It is not possible to set environment variables without having
CONFIG_CMD_NVEDIT enabled. When CONFIG_CMDLINE is disabled, we need a
way to set variables.
Split the setting code out into its own file, so that env_set() is
available even when CONFIG_CMDLINE is not. If it is never called, the
code w
We cannot use PXE or sysboot commands without CONFIG_CMDLINE so add the
required condition.
Signed-off-by: Simon Glass
---
cmd/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cmd/Kconfig b/cmd/Kconfig
index cdc22a067b27..a254c41110ec 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -
The help text should not be build unless CONFIG_SYS_LONGHELP is
enabled. Add this as a condition.
Signed-off-by: Simon Glass
---
cmd/armffa.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cmd/armffa.c b/cmd/armffa.c
index 7e6eafc03ad7..28b65678a8e9 100644
--- a/cmd/armffa.c
+++ b/cmd/ar
This conversion function is used by expo which does not require CMDLINE.
The menu feature does require CMDLINE.
Move the function into a separate file so that it can be used even when
CMDLINE is not enabled.
Signed-off-by: Simon Glass
---
common/Makefile| 2 +-
common/cli_getch.c | 1 +
This is not available if CMDLINE is disabled, so add an #ifdef to correct
this.
Signed-off-by: Simon Glass
---
common/cli.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/common/cli.c b/common/cli.c
index 3916a7b10a7d..4d0fea4387f2 100644
--- a/common/cli.c
+++ b/common/cli.c
@@ -129,6 +
This module is used for user input with menus, not just with the command
line. Compile it always, so it is available even when CMDLINE is disabled.
Signed-off-by: Simon Glass
---
common/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/Makefile b/common/Makef
When CMDLINE is not enabled, this code fails to build. Correct this by
adding conditions.
Note that this should not happen in normal use, since the use of
'select CMDLINE' will cause a visible warning. But it is needed for the
sandbox build to pass without CMDLINE.
Signed-off-by: Simon Glass
---
This code is normally compiled for Tegra, but sandbox can also compile
it. We should not use UNIT_TEST as a synonym for SANDBOX, since it is
possible to disable UNIT_TEST for sandbox.
Correct the condition.
Signed-off-by: Simon Glass
---
include/k210/pll.h | 2 +-
1 file changed, 1 insertion(+
Some commands assume that CONFIG_SYS_LONGHELP is always defined.
Declaration of long help should be bracketed by an #ifdef to avoid an
'unused variable' warning.
Fix this treewide.
Signed-off-by: Simon Glass
---
arch/arm/mach-imx/cmd_dek.c| 3 ++-
arch/arm/mach-imx/cmd_mfgprot
Many tests make some use of the command line, so require it for all test
code.
This could be teased apart, perhaps with a test flag indicating that ut
uses the command line. Leave that for later.
Signed-off-by: Simon Glass
---
test/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/te
Hi Tony,
On Tue, 5 Sept 2023 at 23:23, Tony Dinh wrote:
>
> Add hook in sata_mv probe to enable bootstd bootdev.
>
> Note: bootdev_setup_for_sibling_blk() invocation is a noop if bootsd is
> not enabled for ahci sata yet.
>
> Signed-off-by: Tony Dinh
> ---
>
> drivers/ata/sata_mv.c | 8 +++-
Add this to some more commands to avoid build errors with sandbox.
Signed-off-by: Simon Glass
---
cmd/Kconfig | 6 ++
1 file changed, 6 insertions(+)
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 64d723bd483b..cdc22a067b27 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -224,6 +224,7 @@ menu
Make AUTOBOOT depend on CMDLINE since it is mostly meaningless without it.
Signed-off-by: Simon Glass
---
boot/Kconfig | 23 ++-
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/boot/Kconfig b/boot/Kconfig
index f74ac7e9cc72..41ec2c34bf74 100644
--- a/boot/Kcon
With recent changes in boot/Kconfig it is no-longer possible to disable
CMDLINE. It results in various link errors because some options which
require CMDLINE are enabled regardless of whether it is available.
Add the necessary conditions to fix this.
Note that it would be better to have all comma
We cannot be sure that the new config is consistent, particularly when
changing a major item like CONFIG_CMDLINE. Use 'make oldconfig' to
check that and avoid any such problems.
Signed-off-by: Simon Glass
---
tools/buildman/builder.py | 2 +-
tools/buildman/builderthread.py | 6 ++
to
Hi folks,
I eventually decided that I did need to figure out the DRAM timings for the
Micron chip on my board, but I found an easier way than actually
"understanding what I'm doing"! :-)
I pulled the vendor U-Boot image off the flash, skipped the
appropriate number of bytes until I was actually d
Rename this so that SPL is first, as per U-Boot convention. Also add
PAYLOAD_ since this is where in memory the parameters for the payload
have been stored.
Signed-off-by: Simon Glass
---
(no changes since v2)
Changes in v2:
- Rename based on Tom's feedback
arch/arm/cpu/armv8/fsl-layerscape/d
This series tidies up SPL a little and adds some core ofnode functions
needed to support Universal Payload. It also includes a few minor fix-ups
for sandbox.
For SPL the changes include CONFIG naming, removing various #ifdefs and
tidying up the FIT code.
One notable piece of the ofnode improvemen
The PCI helpers read only the base address for a PCI region. In some cases
the size is needed as well, e.g. to pass along to a driver which needs to
know the size of its register area.
Update the functions to allow the size to be returned. For serial, record
the information and provided it with th
This uses ARRAY_SIZE() but does not include the header file which declares
it. Fix this, so that command.h can be included without common.h
Signed-off-by: Simon Glass
---
(no changes since v1)
include/command.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/command.h b/include/
Standard passage provides for a bloblist to be passed from one firmware
phase to the next. That can be used to pass the devicetree along as well.
Add an option to support this.
Tests for this will be added as part of the Universal Payload work.
Signed-off-by: Simon Glass
---
(no changes since v
Typically the bloblist is set up after the devicetree is present. This
makes sense because bloblist may use malloc() to allocate the space it
needs.
However sometimes the devicetree itself may be present in the bloblist.
In that case it is at a known location in memory so we can init the
bloblist
Move this down by 4KB so that it is large enough to hold the devicetree.
Also fix up the devicetree address in the documetation while we are here.
Signed-off-by: Simon Glass
---
(no changes since v1)
common/Kconfig | 2 +-
doc/arch/sandbox/sandbox.rst | 4 ++--
test/lib/kconfig.
We should not read this unless requested. Make it conditional on the
option being provided.
Add some debugging to show the state being written.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/sandbox/cpu/start.c | 8 +---
arch/sandbox/cpu/state.c | 1 +
2 files changed, 6 insert
This currently relies on sandbox attempting to read a state file. At
present it always does, even when there is no state file, in which case it
fails, but still inits the EC.
That is a bug, so update this driver to set the current image always, even
if no state is read.
Signed-off-by: Simon Glass
This should not happen in the argument-parsing function. Move it to the
main program.
Add some debugging for reading/writing.
Signed-off-by: Simon Glass
---
(no changes since v1)
arch/sandbox/cpu/start.c | 19 +++
arch/sandbox/cpu/state.c | 1 +
2 files changed, 12 insertions
Add a few simple tests for getting the root node, since this is handled
as a special case in the implementation.
Signed-off-by: Simon Glass
---
(no changes since v1)
test/dm/ofnode.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/test/dm/ofnode.c b/test/dm/ofnode.c
index e078a9755a8
Add support for writing a single 64-bit value into a property.
Repurpose the existing tests to handle this case too.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/core/ofnode.c | 17 -
include/dm/ofnode.h | 10 ++
test/dm/ofnode.c | 15 +++
Add functions to write a boolean property. This involves deleting it if
the value is false.
Add a new ofnode_has_property() as well. Add a comment about the behaviour
of of_read_property() when the property value is empty.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/core/ofno
Add a way to flatten a devicetree into binary form. For livetree this
involves generating the devicetree using fdt_property() and other calls.
For flattree it simply involves providing the buffer containing the tree.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/core/ofnode.c |
Add a function to delete a node in an existing tree.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/core/of_access.c | 65
drivers/core/ofnode.c| 23 ++
include/dm/of_access.h | 18 +++
include/dm/ofnode.h |
Add a function to copy a node to another place under a new name. This is
useful at least for testing, since copying a test node with existing
properties is easier than writing the code to generate it all afresh.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/core/ofnode.c | 20 ++
Provide a function to create a new, empty tree.
Signed-off-by: Simon Glass
---
(no changes since v1)
drivers/core/ofnode.c | 56 +++
include/dm/ofnode.h | 9 +++
include/of_live.h | 8 +++
lib/of_live.c | 19 +++
test/
Add comments to the functions where the test name does not indicate what
is being tested. Rename functions in a few cases, so that a search for the
function will also file its test.
Signed-off-by: Simon Glass
---
(no changes since v1)
test/dm/ofnode.c | 46 +
We need the UT_TESTF_SCAN_FDT flag set for these tests to run with flat
tree. In some cases it is missing, so add it.
Signed-off-by: Simon Glass
---
(no changes since v1)
test/dm/ofnode.c | 33 ++---
1 file changed, 18 insertions(+), 15 deletions(-)
diff --git a/te
Follow the order used by memcpy() as it may be less confusing.
Signed-off-by: Simon Glass
---
(no changes since v1)
boot/vbe_request.c| 2 +-
boot/vbe_simple_os.c | 2 +-
drivers/core/ofnode.c | 2 +-
include/dm/ofnode.h | 6 +++---
test/dm/ofnode.c | 9 -
5 files changed,
The bloblist should not be finalised until the image is fully set up.
This allows any final handoff information to be included in the bloblist.
Signed-off-by: Simon Glass
---
(no changes since v1)
common/spl/spl.c | 24
1 file changed, 12 insertions(+), 12 deletions(-)
Rather than open-coding the property names, use the existing constants
provided for this purpose. This better aligns the simple-FIT code with
the full FIT implementation.
Signed-off-by: Simon Glass
---
(no changes since v1)
common/spl/spl_fit.c | 11 ++-
1 file changed, 6 insertions(+)
For some reason this code was put in the main spl.c file. Move it out
to the FIT implementation where it belongs.
Signed-off-by: Simon Glass
---
(no changes since v1)
common/spl/spl.c | 108 +++
common/spl/spl_fit.c | 93
We have two functions called spl_load_fit_image(), one in spl.c and one in
spl_fit.c
Rename the second one, to indicate that it relates to simple FIT parsing,
rather than the full version.
Signed-off-by: Simon Glass
---
(no changes since v1)
common/spl/spl_fit.c | 21 ++---
1
This feature has some helpers in its header file so that its functions
resolve to nothing when the feature is disabled. Add a few more and use
these to simplify the code.
With this there are no more #ifdefs in board_init_r()
Signed-off-by: Simon Glass
---
(no changes since v1)
common/spl/spl.
There are copying errors in the help. Fix these.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add new patch to correct help in TPL_DM and VPL_DM
drivers/core/Kconfig | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig
Use an accessor in the header file to avoid this.
Signed-off-by: Simon Glass
---
Changes in v3:
- Rebase on the new patch
Changes in v2:
- Use the same condition for both pieces to avoid possible problems
common/spl/spl.c | 9 +
include/asm-generic/global_data.h | 6 +
Move the useful help to Kconfig.
Drop mention of CONFIG_SYS_MALLOC_SIMPLE since it doesn't exist.
Correct a 'CONFIGSYS_MALLOC_F_LEN' typo
Signed-off-by: Simon Glass
---
Changes in v3:
- Add new patch to clean up SYS_MALLOC_SIMPLE documentation
Kconfig | 15 +++
R
Use CONFIG_SYS_MALLOC_F instead to of CONFIG_SYS_MALLOC_F_LEN to
determine whether pre-relocation malloc() is enabled.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add new patch to tidy up uses of CONFIG_SYS_MALLOC_F_LEN
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -
Use the new SPL/TPL/VPL_SYS_MALLOC_F symbols to determine whether the
malloc pool exists.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add new patch to use SYS_MALLOC_F instead of SYS_MALLOC_F_LEN
Kconfig | 9 -
arch/arm/lib/bdinfo.c
Enable CONFIG_TPL_SYS_MALLOC_F for boards which have a non-zero value
for CONFIG_TPL_SYS_MALLOC_F_LEN
Note that the default is yes in most cases, so no changes are needed to
board defconfig options.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add new patch to nable CONFIG_TPL_SYS_MALLOC_F w
Enable CONFIG_SPL_SYS_MALLOC_F for boards which have a non-zero value
for CONFIG_SPL_SYS_MALLOC_F_LEN
Note that the default is yes in most cases, so no changes are needed to
board defconfig options.
Signed-off-by: Simon Glass
---
Changes in v3:
- Add new patch to enable CONFIG_SPL_SYS_MALLOC_F
For U-Boot proper we have CONFIG_SYS_MALLOC_F which indicates that a
malloc() pool is available before relocation.
For SPL we only have CONFIG_SPL_SYS_MALLOC_F_LEN which indicates the
size of the pool.
In various places we use CONFIG_SPL_SYS_MALLOC_F_LEN == 0 to indicate
that there is no pool.
T
Move the condition to the header file to improve readability.
Signed-off-by: Simon Glass
---
(no changes since v2)
Changes in v2:
- Change the approach to use the header file
common/spl/spl.c | 10 --
include/system-constants.h | 7 +++
2 files changed, 11 insertions(+)
This code is pretty ugly, with many #ifdefs
There are quite a lot of IH_OS_U_BOOT values so the compiler struggles
to create a jump table here. Also, most of the options are normally
disabled.
Change it to an else...if construct instead. Add an accessor for the
spl_image field behind an #ifdef to
Avoid using the preprocessor for these checks.
Signed-off-by: Simon Glass
---
(no changes since v1)
common/spl/spl.c | 10 --
include/spl.h| 8 ++--
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/common/spl/spl.c b/common/spl/spl.c
index 4233390d7de2..68e58c93
It doesn't make sense to have some boards do this differently. Drop the
condition in the hope that the maintainers can figure out any run-time
problems.
This has been tested on qemu-ppce500
Signed-off-by: Simon Glass
---
Changes in v3:
- Mention testing on qemu-ppce500
Changes in v2:
- Explic
Use IF_ENABLED_INT() to avoid needing to use the preprocessor.
Signed-off-by: Simon Glass
---
(no changes since v2)
Changes in v2:
- Improve readability by moving the size part to the header file
common/spl/spl.c | 8
include/system-constants.h | 7 ++-
2 files changed,
Am 24. September 2023 13:18:32 MESZ schrieb Udit Kumar :
>In case of new memory range to be added is coalesced
>with any already added non last lmb region.
>
>And there is possibility that, then region in which new memory
>range added is not adjacent to next region. But have some
>sections are o
Added support for on-chip EMMC(SMHC2) pin pull ups
for sunxi R528 board. Otherwise, "No pinmux setup
defined for MMC2" appears. Moreover, adding
CONFIG_MMC_SUNXI_SLOT_EXTRA=2 to defconfig might be
needed in order to inform SPL code that another MMC instance on
top of the default 0 for booting shoul
Arrays are not cleared entirely because ARRAY_SIZE
returns the number of elements in an array, not the size
in bytes.
This commit fixes the calls to memset by providing the
array size in bytes instead of the number of elements
in the array.
Signed-off-by: Francois Berder
---
drivers/clk/at91/sam
In case of new memory range to be added is coalesced
with any already added non last lmb region.
And there is possibility that, then region in which new memory
range added is not adjacent to next region. But have some
sections are overlapping.
So along with adjacency check with next lmb region,
c
Dear Experts,
I am looking for suggestion/guidance, how to use above 4G memory on in u-boot
for ARM 64-bit based architecture.
On our system, we have low memory from
0x8000_ to 0x_ and above 4G
0x8_8000_ to 0x8__
As per my understanding, we have following pointers in
94 matches
Mail list logo