- Nov 09, 2024
-
-
Simon Glass authored
When the --native flag is given, pretend to be running the host architecture rather than sandbox. Allow the same control for PXE too. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add an 'efidebug filename' command to report the default filename and PXE architecture. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Move this function from the EFI bootmeth to the common efi_helper file. No functional change is intended. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Use a function to obtain the device EFI filename, so that we can control how sandbox behaves. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Sandbox is its own architecture, but sometimes we want to mimic the host architecture, e.g. when running an EFI app not built by U-Boot. Add a -N/--native flag which tells sandbox to reflect the architecture of the host. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a simple app to use for testing. This is intended to do whatever it needs to for testing purposes. For now it just prints a message and exits boot services. There was a considerable amount of discussion about whether it is OK to call exit-boot-services and then return to U-Boot. This is not normally done in a real application, since exit-boot-services is used to completely disconnect from U-Boot. For now, this part is skipped. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
Heinrich Schuchardt authored
In main U-Boot the SBI DBCN extension can be used to supply a debug console. Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
Heinrich Schuchardt authored
Adjust the PDF output options for rst2pdf: * Set start document to 'index'. * Set title to 'Das U-Boot'. * Set author to 'The U-Boot development community'. Correct documentation link. Remove obsolete FIXME. Link: https://rst2pdf.org/static/manual.html Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
Moritz Fischer authored
All call sites are using size rather than end addresses, so instead - as previously done - calculating an end address everywhere, just modify the function to use size and internally calculate the end address Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org> Cc: Patrick Wildt <pwildt@google.com> Signed-off-by:
Moritz Fischer <moritzf@google.com> Reviewed-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
Heinrich Schuchardt authored
For printing a ssize_t variable we must use %zd and not %ld to avoid a -Wformat error on 32-bit systems. Reviewed-by:
Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
mason1920 authored
-
Simon Glass authored
There is already a defined stack-size which is used to reserve space for the stack. It is confusing to add more in the lmb module, since then the memory map (with meminfo command) seems to have a hole in it. Drop this unnecessary feature. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Nov 06, 2024
-
-
https://source.denx.de/u-boot/custodians/u-boot-riscvTom Rini authored
CI: https://source.denx.de/u-boot/custodians/u-boot-riscv/-/pipelines/23239 - configs: visionfive2 defconfig: re-enable SPL_SYS_MMCSD_RAW_MODE - driver: sifive ccache: enable TRUNKCLOCKGATE & REGIONCLOCKGATE - board: support 64bit Microblaze V
-
Michal Simek authored
The commit 7576ab2f ("riscv: Add support for AMD/Xilinx MicroBlaze V") added support for 32bit version. 64bit version is also available that's why wire it up too. DT is providing description for generic QEMU target. Signed-off-by:
Michal Simek <michal.simek@amd.com> Reviewed-by:
Leo Yu-Chi Liang <ycliang@andestech.com>
-
Michal Simek authored
Align smode defconfig with upstream QEMU. It could be the part of commit 9d688e6d ("riscv: mbv: Align DT with QEMU"). Signed-off-by:
Michal Simek <michal.simek@amd.com> Reviewed-by:
Leo Yu-Chi Liang <ycliang@andestech.com>
-
Michal Simek authored
DTB should be also placed to DDR. It should be the part of commit 9d688e6d ("riscv: mbv: Align DT with QEMU"). Signed-off-by:
Michal Simek <michal.simek@amd.com> Reviewed-by:
Leo Yu-Chi Liang <ycliang@andestech.com>
-
Andreas Schwab authored
To restore MMC boot, enable SPL_SYS_MMCSD_RAW_MODE and recover SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION and SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION. Fixes: 2a00d73d ("spl: mmc: Try to clean up raw-mode options") Reviewed-by:
Leo Yu-Chi Liang <ycliang@andestech.com>
-
Nick Hu authored
Enable the clock gating bit of ccache when the platform has the ccache0. Signed-off-by:
Nick Hu <nick.hu@sifive.com> Reviewed-by:
Leo Yu-Chi Liang <ycliang@andestech.com>
-
- Nov 05, 2024
-
-
Yuri Zaporozhets authored
When compiling for riscv64, a bunch of warning is produced for the file drivers/bios_emulator/besys.c. This patch fixes a portion of those warnings, caused by incorrect first argument to pci_{read,write}_config_* functions. Signed-off-by:
Yuri Zaporozhets <yuriz@qrv-systems.net>
-
- Nov 04, 2024
-
-
Yuri Zaporozhets authored
MTRR functionality is available only on x86, so this driver cannot be compiled on other architectures. Fix this with preprocessor directives. Signed-off-by:
Yuri Zaporozhets <yuriz@qrv-systems.net>
-
Yuri Zaporozhets authored
The bios_emulator driver cannot be compiled for RISC-V because the x86emu.h header file doesn't define the comment symbol ("#") for the assembler. With this patch, use the same symbol as for e.g. x86. Signed-off-by:
Yuri Zaporozhets <yuriz@qrv-systems.net>
-
Weijie Gao authored
Record the last active menu item and check if it equals to the current selected item before reprint. Signed-off-by:
Weijie Gao <weijie.gao@mediatek.com> Reviewed-by:
Daniel Golle <daniel@makrotopia.org> Tested-by:
Daniel Golle <daniel@makrotopia.org>
-
Weijie Gao authored
This patch adds a new callback named need_reprint for menu. The need_reprint will be called before printing the menu. If the callback exists and returns FALSE, menu printing will be canceled. This is very useful if the menu was not changed. It can save time for serial-based menu to handle more input data. Signed-off-by:
Weijie Gao <weijie.gao@mediatek.com> Reviewed-by:
Daniel Golle <daniel@makrotopia.org> Tested-by:
Daniel Golle <daniel@makrotopia.org>
-
Weijie Gao authored
It's observed that the bootmenu on a serial console sometimes incorrectly quitted with superfluous characters filled to command line input: > *** U-Boot Boot Menu *** > > 1. Startup system (Default) > 2. Upgrade firmware > 3. Upgrade ATF BL2 > 4. Upgrade ATF FIP > 5. Load image > 0. U-Boot console > > > Press UP/DOWN to move, ENTER to select, ESC to quit >MT7988> [B Analysis shows it was caused by the wrong logic of bootmenu_loop: At first the bootmenu_loop received the first ESC char correctly. However, during the second call to bootmenu_loop, there's no data in the UART Rx FIFO. Due to the low baudrate, the second char of the down array key sequence hasn't be fully received. But bootmenu_loop just did a mdelay(10), and then treated it as a single ESC key press event. It didn't even try tstc() again after the 10ms timeout. This patch fixes this issue by letting bootmenu_loop check tstc() twice. Tested-By:
E Shattow <lucent@gmail.com> Signed-off-by:
Weijie Gao <weijie.gao@mediatek.com> Reviewed-by:
Daniel Golle <daniel@makrotopia.org> Tested-by:
Daniel Golle <daniel@makrotopia.org> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Tom Rini authored
Leo Yan <leo.yan@arm.com> says: This patch series is to refine the booting on Arm Total Compuate platform. It changes to use the info passed in DTB for initialization DRAM info, and dynamically initializes the booting envoironment variables. Another big change is to use an envoironment file for boot commands, based on it, the series extends to support multiple block devices (MMC and virtio). And the env file is extended for booting Debian. The last commit is to update memory mapping info based on the DRAM info passed via DT binding. Link: https://lore.kernel.org/r/20241025171821.624702-1-leo.yan@arm.com
-
Leo Yan authored
This commit introduces build_mem_map() function for updating the mem_map structure with copying info from gd->bd->bi_dram, so that it can keep the consistence for DRAM info passed via DT. The page table size is calculated prior to mem_map is ready, introduce the get_page_table_size() function for a predefined table size. Signed-off-by:
Leo Yan <leo.yan@arm.com>
-
Leo Yan authored
Add booting option for Debian system. Signed-off-by:
Leo Yan <leo.yan@arm.com>
-
Leo Yan authored
Dynamically detect block device in the boot command, this allows to support both MMC and virtio block devices. Signed-off-by:
Leo Yan <leo.yan@arm.com>
-
Boyan Karatotev authored
Tell the AVB command that is loading from MMC. Signed-off-by:
Boyan Karatotev <boyan.karatotev@arm.com> Signed-off-by:
Leo Yan <leo.yan@arm.com>
-
Boyan Karatotev authored
The boot command for Total Compute has many aspects and changes from time to time. So move it to an .env file where it can be a proper script. Signed-off-by:
Boyan Karatotev <boyan.karatotev@arm.com> Signed-off-by:
Leo Yan <leo.yan@arm.com>
-
Boyan Karatotev authored
The whole DRAM bank is used for loading and U-boot can detect the overlap between the kernel and initramfs. So it is safe to drop bootm_size. Signed-off-by:
Boyan Karatotev <boyan.karatotev@arm.com> Signed-off-by:
Leo Yan <leo.yan@arm.com>
-
Boyan Karatotev authored
Initialize the environment variables 'fdt_addr_r' and 'kernel_addr_r' during the misc init phase. The static configurations are not needed, remove them. Signed-off-by:
Boyan Karatotev <boyan.karatotev@arm.com> Signed-off-by:
Leo Yan <leo.yan@arm.com>
-
Boyan Karatotev authored
On Total Compute, TF-A passes the info via DT binding for the hardware description - includes the serial, memory, and arm_ffa nodes. This commit initializes the fdt base address based on the passed the register x1. The similar implementation has already been done for the raspberry pi, so borrow a lot of it. Co-developed-by:
Jackson Cooper-Driver <jackson.cooper-driver@arm.com> Signed-off-by:
Jackson Cooper-Driver <jackson.cooper-driver@arm.com> Signed-off-by:
Boyan Karatotev <boyan.karatotev@arm.com> Signed-off-by:
Leo Yan <leo.yan@arm.com>
-
Tom Rini authored
Andrew Goodbody <andrew.goodbody@linaro.org> says: Starting a sandbox session and running 'ut bootm' on the command line instead of using pytest with --verbose will result in some test failures. This series makes the tests more deterministic so that they will better control their environment and hence will work as expected whether or not they are invoked with '--verbose'. The series starts with a small fix to the parameters of bootm_process_cmdline that one commit incorrectly added using a bool when it had been updated to take flags by the preceeding commit. Link: https://lore.kernel.org/r/20241101130254.473017-1-andrew.goodbody@linaro.org
-
Andrew Goodbody authored
Some bootm tests expect that GD_FLG_SILENT is reset in order to work as expected. This is the state if the test is run with 'pytest --verbose' but not if run from, say, the sandbox command line. So reset the flag for those tests that rely on it being reset. This has to be done in each test as the test infrastructure will set it again before every test when not invoked with 'pytest --verbose'. Signed-off-by:
Andrew Goodbody <andrew.goodbody@linaro.org>
-
Andrew Goodbody authored
The function bootm_process_cmdline_env takes flags as its third parameter, not a bool. Correct the usage by replacing 'true' with BOOTM_CL_ALL so that the intent is clear. A similar change was made throughtout this file in the previous commit to the one mentioned below as being fixed. Fixes: 4448fe8e ("bootm: Allow updating the bootargs in a buffer") Signed-off-by:
Andrew Goodbody <andrew.goodbody@linaro.org>
-
Andrew Goodbody authored
The tests test_usb_ext4load_ext4write, test_usb_ext2load and test_usb_load depend on the command ext4write being present not just the feature of being able to write to an ext4 file system. So update their dependencies to include the ext4write command itself. This will prevent spurious test failures when running the USB tests against USB storage with an ext2/ext4 partition but no ext4write command available. Fixes: 1c5b6eda ("test/py: usb: Add tests for USB device") Signed-off-by:
Andrew Goodbody <andrew.goodbody@linaro.org> Reviewed-by:
Love Kumar <love.kumar@amd.com>
-
Andrew Goodbody authored
When test_usb_load finds multiple partitions of the same type then it will cause a test failure. The call to write the test file will write a different test file to each partition but only return the name and size of the last one written. So the test then fails to load the test file from the first partition as it uses the name of a file on a different partition. Refactor the code so that only one test file is written at a time and is written to only the partition being tested at that time. This allows the correct file name to always be available to the code that runs the load command. This reduces the number of files written and also the number of calls to crc32 needed. Fixes: 1c5b6eda ("test/py: usb: Add tests for USB device") Signed-off-by:
Andrew Goodbody <andrew.goodbody@linaro.org> Reviewed-by:
Love Kumar <love.kumar@amd.com>
-
https://source.denx.de/u-boot/custodians/u-boot-dmTom Rini authored
CI: https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/23152 CI: https://dev.azure.com/simon0972/u-boot/_build/results?buildId=71&view=results - alist enhancements and fixes - minor test and sandbox fixes - some more x86/coreboot patches
-
Simon Glass authored
This should say 'cast' rather than 'case', so fix it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-