- 25 4月, 2020 13 次提交
-
-
由 Simon Glass 提交于
U-Boot's BDF format has its bits in the same position as the device tree PCI definition. Some x86 devices use linux format in their register format and it is useful to be able to convert to U-Boot format. Add a macro for this. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Update the arguments of these functions so they can be called from code which uses constant strings. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Add a helper function for this operation. Update the strtoul() tests to check upper case as well. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Simon Glass 提交于
There are quite a few string functions in U-Boot with no tests. Make a start by adding a test for strtoul(). Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Michal Simek 提交于
This issue has been found when mtd partition are specified. Autodetection code should stop when the first invalid char is found. Here is the example of commands: setenv mtdids nand0=memory-controller@e000e000 setenv mtdparts "mtdparts=nand0:4m(boot),4m(env),64m(kernel),96m(rootfs)" mtd list Before: Zynq> mtd list List of MTD devices: * nand0 - type: NAND flash - block size: 0x20000 bytes - min I/O: 0x800 bytes - OOB size: 64 bytes - OOB available: 16 bytes - ECC strength: 1 bits - ECC step size: 2048 bytes - bitflip threshold: 1 bits - 0x000000000000-0x000010000000 : "nand0" - 0x000000000000-0x000000400000 : "boot" - 0x000000400000-0x000000800000 : "env" - 0x000000800000-0x000006c00000 : "kernel" - 0x000006c00000-0x000010000000 : "rootfs" Where it is visible that kernel partition has 100m instead of 64m After: Zynq> mtd list * nand0 - type: NAND flash - block size: 0x20000 bytes - min I/O: 0x800 bytes - OOB size: 64 bytes - OOB available: 16 bytes - ECC strength: 1 bits - ECC step size: 2048 bytes - bitflip threshold: 1 bits - 0x000000000000-0x000010000000 : "nand0" - 0x000000000000-0x000000400000 : "boot" - 0x000000400000-0x000000800000 : "env" - 0x000000800000-0x000004800000 : "kernel" - 0x000004800000-0x00000a800000 : "rootfs" Signed-off-by: NMichal Simek <michal.simek@xilinx.com> Fixes: 0486497e ("lib: Improve _parse_integer_fixup_radix base 16 detection") Tested-by: NHeiko Schocher <hs@denx.de> Tested-by: NPali Rohár <pali@kernel.org>
-
由 Baruch Siach 提交于
Commit 6293b036 ("mtd: nand: pxa3xx: add raw read support") added the local data_len variable in handle_data_pio() to track read size, but forgot to update the condition of drain_fifo() call. That happens to work when the layout last_chunk_size != 0. But when last_chunk_size == 0, drain_fifo() is not called to read the last chunk, which leads to "Wait timeout!!!" error. Fix this. Fixes: 6293b036 ("mtd: nand: pxa3xx: add raw read support") Cc: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: NBaruch Siach <baruch@tkos.co.il>
-
由 Ovidiu Panait 提交于
Introduce arch_reserve_mmu to allow for architecture-specific reserve_mmu routines. Also, define a weak nop stub for it. Signed-off-by: NOvidiu Panait <ovpanait@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ovidiu Panait 提交于
As a preparation for turning reserve_mmu into an arch-specific variant, introduce arm_reserve_mmu on ARM. It implements the default routine for reserving memory for MMU TLB and needs to be weakly defined in order to allow for machines to override it. Without this decoupling, after introducing arch_reserve_mmu, there would be two weak definitions for it, one in common/board_f.c and one in arch/arm/lib/cache.c. Signed-off-by: NOvidiu Panait <ovpanait@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Ovidiu Panait 提交于
Move the ARM-specific reserve_mmu definition from common/board_f.c to arch/arm/lib/cache.c. Signed-off-by: NOvidiu Panait <ovpanait@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
https://gitlab.denx.de/u-boot/custodians/u-boot-stm由 Tom Rini 提交于
- Solve stm32mp15 pinctrl dts issue (patch conflict in branches master and next) - Split device tree for DHCOR Som and AV 96 board - Update PLL4 setting in AV96 board - Enable bootd, iminfo, imxtract on DHCOM
-
由 Tom Rini 提交于
While the change is correct, generally, it was not intended to be pushed just yet. This reverts commit b8973063. Signed-off-by: NTom Rini <trini@konsulko.com>
-
由 Tom Rini 提交于
- Assorted minor bugfixes. - Resync fixdep with Linux v5.7-rc1 - Numerous changes to reduce SPL in various cases including when we have read-only env support. - Allow mkimage to align the header on FIT images to a specific size.
-
由 Tom Rini 提交于
When moving the PHYLIB PHY drivers around in Kconfig we did not at the same time perform a careful migration of the related drivers and sub-options. This lead to the case where previously Kconfig-enabled driver choices were now disabled on some platforms. Correct this by enabling both the PHY driver and sub-option on the above referenced platforms. Fixes: af2cbfd6 ("drivers: net: Provide Kconfig menu for PHYLIB") Fixes: 8728c97e ("configs: Re-sync") Reported-by: NDario <dario86@tutamail.com> Signed-off-by: NTom Rini <trini@konsulko.com> --- After checking back on the original commit I can see that these are the only two platforms to have been broken in the change.
-
- 24 4月, 2020 27 次提交
-
-
由 Marek Vasut 提交于
Enable these standard U-Boot commands for image manipulation and for starting the default boot command using 'boot' command in U-Boot shell. Signed-off-by: NMarek Vasut <marex@denx.de> Cc: Patrick Delaunay <patrick.delaunay@st.com> Cc: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: NPatrick Delaunay <patrick.delaunay@st.com>
-
由 Simon Glass 提交于
At present if buildman reports an error, the travis build still succeeds. This is because the travis script does not stop when it sees errors; nor does it automatically return the exit code. Also the current error checking never triggers since 'ret' is not set. Fix this by setting 'ret' correctly. Signed-off-by: NSimon Glass <sjg@chromium.org> Reported-by: NMichal Simek <michal.simek@xilinx.com> Acked-by: NMichal Simek <michal.simek@xilinx.com>
-
由 Bin Meng 提交于
If given ptr to free() is NULL, no operation is performed. Hence we can just free buf directly in fit_extract_data(). Signed-off-by: NBin Meng <bin.meng@windriver.com>
-
由 Lihua Zhao 提交于
Without calling munmap(), the follow-up call to open() the same file with a flag O_TRUNC seems not to cause any issue on Linux, but it fails on Windows with error like below: Can't open kernel_fdt.itb.tmp: Permission denied Fix this by unmapping the memory before closing fd in fit_import_data(). Signed-off-by: NLihua Zhao <lihua.zhao@windriver.com> Signed-off-by: NBin Meng <bin.meng@windriver.com>
-
由 Bin Meng 提交于
MinGW build for U-Boot tools has been broken for years. The official support of Windows build is now MSYS2. Remove the MinGW support codes. Signed-off-by: NBin Meng <bin.meng@windriver.com>
-
由 Heinrich Schuchardt 提交于
Remove an invalid documentation link in rstFlatTable.py. This synchronizes the file with Linux next-20200413. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Joel Johnson 提交于
Two nearly concurrent commits (d4d65e11 and bcee8d67) added a SPL_DM_GPIO symbol. Resolve the duplication in favor of the version in drivers/gpio/Kconfig. Signed-off-by: NJoel Johnson <mrjoel@lixil.net> Reviewed-by: NFrieder Schrempf <frieder.schrempf@kontron.de>
-
由 Masahiro Yamada 提交于
fixdep is a standalone host program, so we can just re-sync it with the latest Linux in one commit. I kept the U-Boot own code block surrounded by /* hack for U-Boot */ ... /* U-boot hack end */. Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
-
由 Masahiro Yamada 提交于
Since commit f1c6e192 ("spl: dm: use CONFIG_IS_ENABLED to test for the DM option"), CONFIG_IS_ENABLED() handles CONFIG_TPL_* options, but fixdep still cannot because it hard-codes the "SPL_" prefix as follows: char tmp_buf[256] = "SPL_"; /* hack for U-Boot */ Take care of the "TPL_" prefix too. Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
-
由 Heinrich Schuchardt 提交于
Freescale mail addresses are not valid anymore. Reported-by: NFabio Estevam <festevam@gmail.com> Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Heinrich Schuchardt 提交于
We cannot run unit tests in SPL. So remove the unit test support. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Heinrich Schuchardt 提交于
SPL should not be enlarged by building with CONFIG_HEXDUMP=y. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: NTom Rini <trini@konsulko.com>
-
由 Heinrich Schuchardt 提交于
Do not build image_sign_info helper functions in SPL if not needed. Fixes: b983cc2d ("lib: rsa: decouple rsa from FIT image verification") Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: NTom Rini <trini@konsulko.com>
-
由 Heinrich Schuchardt 提交于
The OID registry is only used by crypto functions that are not built in SPL. So we should not build it in SPL. Fixes: a9b45e6e ("lib: add oid registry utility") Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: NTom Rini <trini@konsulko.com>
-
由 Heinrich Schuchardt 提交于
When building on a 32bit host the following warning occurs: tools/image-host.c: In function ‘fit_image_read_data’: tools/image-host.c:310:42: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘ssize_t’ {aka ‘int’} [-Wformat=] printf("Can't read all file %s (read %ld bytes, expexted %ld)\n", ~~^ %d filename, n, sbuf.st_size); ~ n is of type ssize_t so we should use %zd for printing. Fixes: 7298e422 ("mkimage: fit: add support to encrypt image with aes") Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Heinrich Schuchardt 提交于
Compiling on ARMv7-M fails when trying to address the CPSR register which is not available on this architecture. Atomic functions refer to the CPSR register if compiled with arch/arm/include/asm/proc-armv/system.h. On ARMv7-M we should hence use arch/arm/thumb1/include/asm/proc-armv/system.h instead. Cf. https://stackoverflow.com/questions/61097841/error-selected-processor-does-not-support-requested-special-purpose-registerReported-by: NSicris Rey Embay <sicris.embay@gmail.com> Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Heinrich Schuchardt 提交于
TARGET_QEMU_ARM_64BIT and TARGET_QEMU_ARM_32BIT should be mutually exclusive. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Peter Collingbourne 提交于
FVP now loads an Android boot image named boot.img if available, otherwise it falls back to the existing code path. Signed-off-by: NPeter Collingbourne <pcc@google.com> Reviewed-by: NRyan Harkin <ryan.harkin@linaro.org> Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
-
由 Kever Yang 提交于
The image is usually stored in block device like emmc, SD card, make the offset of image data aligned to block(512 byte) can avoid data copy during boot process. eg. SPL boot from FIT image with external data: - SPL read the first block of FIT image, and then parse the header; - SPL read image data separately; - The first image offset is the base_offset which is the header size; - The second image offset is just after the first image; - If the offset of imge does not aligned, SPL will do memcpy; The header size is a ramdon number, which is very possible not aligned, so add '-B size'to specify the align size in hex for better performance. example usage: ./tools/mkimage -E -f u-boot.its -B 0x200 u-boot.itb Signed-off-by: NKever Yang <kever.yang@rock-chips.com> Reviewed-by: NPunit Agrawal <punit1.agrawal@toshiba.co.jp> Reviewed-by: NTom Rini <trini@konsulko.com>
-
由 Kever Yang 提交于
The tool need to use fdtdec_get_child_count(), make it available for HOST_CC. Signed-off-by: NKever Yang <kever.yang@rock-chips.com> Reviewed-by: NPunit Agrawal <punit1.agrawal@toshiba.co.jp> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Kever Yang 提交于
Use the ALIGN() for size align so that the code is more readable. Signed-off-by: NKever Yang <kever.yang@rock-chips.com> Reviewed-by: NPunit Agrawal <punit1.agrawal@toshiba.co.jp> Reviewed-by: NTom Rini <trini@konsulko.com> Reviewed-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
-
由 Kever Yang 提交于
The align for fit_size has been done twice, remove the first one for it does not make any sense. Signed-off-by: NKever Yang <kever.yang@rock-chips.com> Reviewed-by: NPunit Agrawal <punit1.agrawal@toshiba.co.jp> Reviewed-by: NTom Rini <trini@konsulko.com>
-
由 Kever Yang 提交于
The ALIGN() is now available at imagetool.h, migrate to use it. Signed-off-by: NKever Yang <kever.yang@rock-chips.com> Reviewed-by: NPunit Agrawal <punit1.agrawal@toshiba.co.jp> Reviewed-by: NTom Rini <trini@konsulko.com> Reviewed-by: NStefan Roese <sr@denx.de>
-
由 Kever Yang 提交于
The ALIGN() is now available at imagetool.h, migrate to use it. Signed-off-by: NKever Yang <kever.yang@rock-chips.com> Reviewed-by: NPunit Agrawal <punit1.agrawal@toshiba.co.jp> Reviewed-by: NTom Rini <trini@konsulko.com>
-
由 Kever Yang 提交于
The ALIGN() is available at imagetool.h, no need to self define one. Signed-off-by: NKever Yang <kever.yang@rock-chips.com> Reviewed-by: NPunit Agrawal <punit1.agrawal@toshiba.co.jp> Reviewed-by: NTom Rini <trini@konsulko.com>
-
由 Kever Yang 提交于
The ALIGN code is need by many files who need handle structure or image align, so move the macro to imagetool.h file. Signed-off-by: NKever Yang <kever.yang@rock-chips.com> Reviewed-by: NPunit Agrawal <punit1.agrawal@toshiba.co.jp> Reviewed-by: NTom Rini <trini@konsulko.com>
-
由 Jonathan Corbet 提交于
commit 3bc8088464712fdcb078eefb68837ccfcc413c88 upstream. Our version check in Documentation/conf.py never envisioned a world where Sphinx moved beyond 1.x. Now that the unthinkable has happened, fix our version check to handle higher version numbers correctly. Signed-off-by: NJonathan Corbet <corbet@lwn.net> [rebase for u-boot] Signed-off-by: NSean Anderson <seanga2@gmail.com>
-