- Jan 19, 2022
-
-
Heinrich Schuchardt authored
Sphinx expects Return: and not @return to indicate a return value. find . -name '*.c' -exec \ sed -i 's/^\(\s\)\*\(\s*\)@return\(\s\)/\1*\2Return:\3/' {} \; find . -name '*.h' -exec \ sed -i 's/^\(\s\)\*\(\s*\)@return\(\s\)/\1*\2Return:\3/' {} \; Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
Heinrich Schuchardt authored
Use printf code %pUs to print the text representation of the partition type GUID. Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
- Jan 15, 2022
-
-
Heinrich Schuchardt authored
For GPT partition tables the 'part list' command stops at the first invalid partition number. But Ubuntu has images with partitions number 1, 12, 13, 14, 15 In this case only partition 1 was listed by 'part list'. Fixes: 38a3021e ("disk: part_efi: remove indent level from loop") Reported-by:
Alexandre Ghiti <alexandre.ghiti@canonical.com> Signed-off-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Tested-by:
Alexandre Ghiti <alexandre.ghiti@canonical.com>
-
- Dec 18, 2021
-
-
In blk_get_device_by_str(), the comment says: "Updates the partition table for the specified hw partition." Since hw partition is supported only on MMC, it makes no sense to do so for other devices. Signed-off-by:
AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Dec 09, 2021
-
-
UCLASS_EFI_LOADER is used for devices created by applications and drivers loaded by U-Boots UEFI implementation. This patch provides a new uclass (UCLASS_EFI_MEDIA) to be used for devices that provided by a UEFI firmware calling U-Boot as an EFI application. If the two uclasses can be unified, is left to future redesign. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-
- Nov 28, 2021
-
-
Simon Glass authored
When ext is NULL we cannot dereference it. Update the code flow to avoid this, so that layout_mbr_partitions() can be used with partition tables that do not include an extended partition. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Nov 18, 2021
-
-
In some case, get_info() interface can be NULL, add this check to stop from crash. Signed-off-by:
schspa <schspa@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Sep 30, 2021
-
-
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Sep 25, 2021
-
-
Simon Glass authored
The current API is outdated as it requires a devicetree pointer. Move these functions to use the ofnode API and update this globally. Add some tests while we are here. Correct the call in exynos_dsim_config_parse_dt() which is obviously wrong. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Sep 02, 2021
-
-
When running 'part list' for an ISO partition the numbers are not under the labels. Correct the alignment of the ISO partition list. With the patch the output looks like: Part Start Sect x Size Type 1 3720 5024 512 U-Boot Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
- Aug 02, 2021
-
-
It is a pain to have to specify the value 10 in each call. Add a new dectoul() function and update the code to use it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
It is a pain to have to specify the value 16 in each call. Add a new hextoul() function and update the code to use it. Add a proper comment to simple_strtoul() while we are here. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jul 28, 2021
-
-
This file does not correctly handle the various cases, sometimes producing warnings about partition_basic_data_guid being defined but not used. Fix it. There was some discussion about adjusting Kconfig or making HAVE_BLOCK_DEVICE a prerequisite for PARTITIONS, but apparently this is not feasible. Such changes can be undertaken separate from the goal of this series. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jun 22, 2021
-
-
This function is passed *dev not *dev_desc, so pass the right name to part_init(). Fixes: f14c5ee5 ("disk: part_dos: update partition table entries after write") Signed-off-by:
Christian Melki <christian.melki@t2data.com>
-
- May 26, 2021
-
-
Some callers (e.g. cmd/fs.c) of fs_set_blk_dev may use a NULL dev_part_str. While blk_get_device_part_str handles this fine, part_get_info_by_dev_and_name does not. This fixes commands crashing when implicitly using bootdevice. The unit test has also been updated to set bootdevice to a known value and to restore it after we are done. Fixes: 7194527b ("cmd: fs: Use part_get_info_by_dev_and_name_or_num to parse partitions") Reported-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by:
Sean Anderson <seanga2@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Apr 22, 2021
-
-
blk_get_device_by_str returns the device number on success. So we must check if the return was negative to determine an error. Signed-off-by:
Sean Anderson <sean.anderson@seco.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Apr 12, 2021
-
-
The gpt command require the GPT backup header at the standard location at the end of the device. Check the alternate LBA value before reading the GPT backup header from the last usable LBA of the device. Signed-off-by:
Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Reviewed-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
- Feb 26, 2021
-
-
This adds support for things like "#partname" and "0.1#partname". The block device parsing is done like in blk_get_device_part_str. Signed-off-by:
Sean Anderson <sean.anderson@seco.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
This adds an option to part_get_info_by_dev_and_name_or_num to allow callers to specify whether whole-disk partitions are fine. Signed-off-by:
Sean Anderson <sean.anderson@seco.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Several functions in disk/part.c just return -1 on error. This makes them return different errnos for different failures. This helps callers differentiate between failures, even if they cannot read stdout. Signed-off-by:
Sean Anderson <sean.anderson@seco.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Feb 02, 2021
-
-
Move this out of the common header and include it only where needed. In a number of cases this requires adding "struct udevice;" to avoid adding another large header or in other cases replacing / adding missing header files that had been pulled in, very indirectly. Finally, we have a few cases where we did not need to include <asm/global_data.h> at all, so remove that include. Signed-off-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Feb 01, 2021
-
-
Fixes issues when switching from GPT to MBR partition tables. Signed-off-by:
Gary Bisson <gary.bisson@boundarydevices.com> Acked-by:
Marek Szyprowski <m.szyprowski@samsung.com>
-
- Jan 30, 2021
-
-
Commands like 'fatinfo' call dev_print() to print device information. If the block device is created via 'host bind', we should print accurate information. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
- Jan 29, 2021
-
-
Fixes fastboot issues when switching from mbr to gpt partition tables. Signed-off-by:
Gary Bisson <gary.bisson@boundarydevices.com> Reviewed-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
- Jan 16, 2021
-
-
There's no reason to require an appropriately sized output parameter for the string, that's error-prone should the table ever grow an element with a longer string. We can just return the const char* pointer directly. Update the only caller accordingly, and get rid of pointless ifdeffery in the header so that the compiler always sees a declaration and can thus do type-checking, whether or not PARTITION_TYPE_GUID is enabled or not. Signed-off-by:
Rasmus Villemoes <rasmus.villemoes@prevas.dk>
-
- Jan 15, 2021
-
-
Add a code for creating and writing MBR partition layout. The code generates similar layout of EBRs (Exteneded Block Records) and logical volumes as Linux's fdisk utility. Signed-off-by:
Marek Szyprowski <m.szyprowski@samsung.com>
-
Make functions not used outside this file static. Signed-off-by:
Marek Szyprowski <m.szyprowski@samsung.com> [trini: Use __maybe_unused as there are cases they may not be used] Signed-off-by:
Tom Rini <trini@konsulko.com>
-
Use a generic helper for reading LE32 integers. Signed-off-by:
Marek Szyprowski <m.szyprowski@samsung.com>
-
Add some handy defines for some hardcoded magic numbers related to extended partition handling. Signed-off-by:
Marek Szyprowski <m.szyprowski@samsung.com>
-
write_mbr_partition() function name is a bit misleading, so rename it to write_mbr_sector(). This is a preparation for adding code for writing a complete MBR partition layout. Signed-off-by:
Marek Szyprowski <m.szyprowski@samsung.com>
-
- Sep 22, 2020
-
-
512 * 2^32 bytes equals 2 tebibytes. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Aug 14, 2020
-
-
Add initial infrastructure for Xen para-virtualized block device. This includes compile-time configuration and the skeleton for the future driver implementation. Add new class UCLASS_PVBLOCK which is going to be a parent for virtual block devices. Add new interface type IF_TYPE_PVBLOCK. Implement basic driver setup by reading XenStore configuration. Signed-off-by:
Andrii Anisov <andrii_anisov@epam.com> Signed-off-by:
Anastasiia Lukianenko <anastasiia_lukianenko@epam.com> Signed-off-by:
Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
-
- May 19, 2020
-
-
Move this header out of the common header. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- May 18, 2020
-
-
Move this uncommon header out of the common header. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
We should not be using typedefs and these make it harder to use forward declarations (to reduce header file inclusions). Drop the typedef. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Move this header out of the common header. Network support is used in quite a few places but it still does not warrant blanket inclusion. Note that this net.h header itself has quite a lot in it. It could be split into the driver-mode support, functions, structures, checksumming, etc. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Move this uncommon header out of the common header. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- May 15, 2020
-
-
Have this symbol follow the pattern of all other such symbols. Signed-off-by:
Trevor Woerner <twoerner@gmail.com>
-
- Apr 30, 2020
-
-
Heinrich Schuchardt authored
Up to now for MBR and GPT partitions the info field 'bootable' was set to 1 if either the partition was an EFI system partition or the bootable flag was set. Turn info field 'bootable' into a bit mask with separate bits for bootable and EFI system partition. This will allow us to identify the EFI system partition in the UEFI sub-system. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
- Mar 18, 2020
-
-
Some config symbols are found in *almost* every _defconfig file for Allwinner boards, because those options are actually a platform choice, and not a per-board decision. Some of these options are older, some have recently been added. Move those options to be set for all Allwinner boards in their respective Kconfig files. The rationales are as follows: - NR_DRAM_BANKS: All Allwinner SoC map DRAM at one contiguous region of address space only, starting at 1 GB. So it's always one bank. - SPL_{DOS,EFI}_PARTITION: The Allwinner SPL does only support raw MMC accesses, we don't care about filesystems or partitions in there, so there is no need to define those symbols at all. - USE_PREBOOT: We start USB early when a keyboard is configured, using the preboot env variable, so we need to set this variable. - SYS_RELOC_GD_ENV_ADDR: We don't specify any ENV_ADDR, so need this symbol to be set (according to 8d8ee47e). - SYS_USB_EVENT_POLL_VIA_INT_QUEUE: According to commit eab9433a, specifying this reduces the latency of the USB keyboard handling, so this was formerly enabled in config headers for all Allwinner boards. Signed-off-by:
Andre Przywara <andre.przywara@arm.com> Acked-by:
Maxime Ripard <mripard@kernel.org> Tested-by: Jagan Teki <jagan@amarulasolutions.com> # Amarula A64-Relic Reviewed-by:
Jagan Teki <jagan@amarulasolutions.com>
-