summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-09-23imx7: Disable CAAM Job Ring 0Fabio Estevam6-0/+18
Trying to boot a fitImage after a successful hab_auth_img operation causes the following error: ## Loading kernel from FIT Image at 88000000 ... Using 'conf-imx7d-smegw01.dtb' configuration Trying 'kernel-1' kernel subimage Description: Linux kernel Type: Kernel Image Compression: uncompressed Data Start: 0x8800010c Data Size: 9901752 Bytes = 9.4 MiB Architecture: ARM OS: Linux Load Address: 0x80800000 Entry Point: 0x80800000 Hash algo: sha256 Hash value: 28f8779bbf010780f16dd3d84ecb9b604c44c5c2cf7acd098c264a2d3f68e969 Verifying Hash Integrity ... sha256Error in SEC deq CAAM was not setup properly or it is faulty error! The reason for this error is that the BootROM uses the CAAM Job Ring 0, so disable its node in U-Boot to avoid the resource conflict. imx8m dtsi files also have the Job Ring 0 disable since the following kernel commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch?h=v6.5&id=dc9c1ceb555ff661e6fc1081434600771f29657c For a temporary solution, disable the Job Ring 0 in imx7s-u-boot.dtsi. Reported-by: Eduard Strehlau <eduard@lionizers.com> Signed-off-by: Fabio Estevam <festevam@denx.de>
2023-09-23imx: hab: Explain that ivt_offset is optionalFabio Estevam1-2/+2
The ivt_offset parameter is optional for both hab_auth_img_or_fail and hab_auth_img commands. Document it in their usage texts to make it clearer. Signed-off-by: Fabio Estevam <festevam@denx.de>
2023-09-23imx: hab: Improve the hab_auth_img_or_fail usage textFabio Estevam1-1/+1
Split the hab_auth_img_or_fail usage text in two sentences to make it clearer. Signed-off-by: Fabio Estevam <festevam@denx.de>
2023-09-23imx: hab: Allow hab_auth_img_or_fail to be called without ivt_offsetEduard Strehlau1-1/+1
Since commit ea91031b2232 ("imx: hab: extend hab_auth_img to calculate ivt_offset"), it is possible to call the hab_auth_img command without the last ivt_offset argument. Currently, calling hab_auth_img_or_fail without the last ivt_offset parameter causes a failure and the command usage text is shown. Fix this problem by adjusting the argc logic to allow calling hab_auth_img_or_fail with only the address and size parameters. This way, both hab_auth_img and hab_auth_img_or_fail have the same behavior with respect to the allowed number of command parameters. Signed-off-by: Eduard Strehlau <eduard@lionizers.com> Signed-off-by: Fabio Estevam <festevam@denx.de>
2023-09-23mach-imx: bootaux: fix building with disabled bootelfOleksandr Suvorov1-0/+1
If CMD_ELF disabled and IMX_BOOTAUX enabled, the u-boot building ends up with a linking error [1]. Select LIB_ELF to fix the building issue. [1] ld: /tmp/ccaF1rpv.ltrans0.ltrans.o: in function `do_bootaux': arch/arm/mach-imx/imx_bootaux.c:108: undefined reference to `valid_elf_image' Fixes: c0f037f6a2a ("mach-imx: bootaux: elf firmware support") Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
2023-09-23trace: Fix alignment logic in flyrecord headerMichal Simek1-2/+29
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 use new binary format"). Signed-off-by: Michal Simek <michal.simek@amd.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-09-23trace: Move trace_clocks description above record offset calculationMichal Simek1-3/+4
Flyrecord tracing data are page aligned that's why it is necessary to calculate alignment properly. Because trace_clocks description is the part of record length it is necessary to have information about length earlier. Signed-off-by: Michal Simek <michal.simek@amd.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-09-23trace: Use 64bit variable for start and lenMichal Simek1-1/+2
tputq() requires variables to have 64bit width that's why make them 64bit to clean alignment requirement. Signed-off-by: Michal Simek <michal.simek@amd.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-09-23patman: Respect include directive on Git config lookupFei Shao1-2/+2
People may put their user name and email in a local config file and reference it by the include.* directives, however `git config --global` doesn't look up the included configs by default. Enable the --includes option explicitly to support such use cases. Signed-off-by: Fei Shao <fshao@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-09-23sandbox: test: Fix typo in test.dtsMichal Simek1-1/+1
s/parititon/partition/ Signed-off-by: Michal Simek <michal.simek@amd.com> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-09-23binman: Fix SyntaxWarning: invalid escape sequence '\('Rong Tao1-1/+1
Reproduct warning: $ git clean -dfx $ make CROSS_COMPILE="" qemu-x86_64_defconfig $ make -j8 ... u-boot/tools/binman/etype/section.py:25: SyntaxWarning: invalid escape sequence '\(' """Entry that contains other entries Signed-off-by: Rong Tao <rongtao@cestc.cn>
2023-09-23buildman: Fix full help for Python 3.8Simon Glass1-2/+8
With Python versions older than 3.9 Buildman produces an error on start-up. Fix this with a workaround for importlib. There is already a workaround for v3.6 but I am not sure if that is still functioning. Signed-off-by: Simon Glass <sjg@chromium.org>
2023-09-23tools: Fix patman launcher script.Maxim Cournoyer1-1/+1
There is no "run_patman" procedure in patman's __main__.py file, which would cause the following error at execution: "AttributeError: module 'patman.__main__' has no attribute 'run_patman'" Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-09-23Merge branch '2023-09-22-assorted-bugfixes'Tom Rini6-13/+57
- A few driver fixes and MAINTAINER updates
2023-09-22MAINTAINERS: Step up as maintainers of UniPhier SoC platformKunihiko Hayashi1-1/+4
Update maintainers for UniPhier SoC platform. Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
2023-09-22pico-imx7d: Remove Vanessa from MAINTAINERSFabio Estevam1-1/+0
Vanessa's NXP e-mail is no longer active. Contacted her offline and she told me that she does not have access to the board anymore and it is OK to remove her from MAINTAINERS. Signed-off-by: Fabio Estevam <festevam@denx.de>
2023-09-22drivers: mediatek: Fix error handling in mtk_i2c_do_transferFrancois Berder1-1/+1
Errors were handled only if an I2C transfer timed out and received a NACK which is very unlikely. This commit changes the condition such that errors are handled if an I2C transfer times out or received a NACK. Signed-off-by: Francois Berder <fberder@outlook.fr> Reviewed-by: Heiko Schocher <hs@denx.de>
2023-09-22net: sni_netsec: Add workaround for timeout errorRyosuke Saito1-9/+41
The NETSEC GMAC occasionally falls into a weird state where MAC_REG_DESC_SOFT_RST has never been cleared and shows errors like the below when networking commands are issued: => ping 192.168.1.1 ethernet@522d0000 Waiting for PHY auto negotiation to complete... done netsec_wait_while_busy: timeout Using ethernet@522d0000 device ARP Retry count exceeded; starting again ping failed; host 192.168.1.1 is not alive It happens on not only 'ping' but also 'dhcp', 'tftp' and so on. Luckily, restarting the NETSEC GMAC and trying again seems to fix the problematic state. So first ensure that we haven't entered the state by checking MAC_REG_DESC_SOFT_RST to be cleared; otherwise, restarting NETSEC/PHY and trying again would work as a workaround. Signed-off-by: Ryosuke Saito <ryosuke.saito@linaro.org> Tested-by: Masahisa Kojima <masahisa.kojima@linaro.org>
2023-09-22configs: am65x_evm_r5_usbmsc_defconfig: Enable DWC3 wrapper for SPLRavi Gunasekaran1-0/+2
commit 280f45d23977 ("configs: get rid of build warnings due to SPL_USB_DWC3_GENERIC") missed enabling DWC3 glue layer for usbmsc_defconfig and this broke boot from USB mass storage. Fix this by enabling DWC3 glue layer. Fixes: 280f45d23977 ("configs: get rid of build warnings due to SPL_USB_DWC3_GENERIC") Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-09-22net: wget: Avoid packet queue overflowRichard Weinberger1-1/+9
Make sure to stay within bounds, as a misbehaving HTTP server can trigger a buffer overflow if not properly handled. Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Ramon Fried <rfried.dev@gmail.com> Signed-off-by: Richard Weinberger <richard@nod.at>
2023-09-21Merge https://source.denx.de/u-boot/custodians/u-boot-riscvTom Rini2-0/+8
- Fixup memory size passed to kernel on visionfive2
2023-09-20board: visionfive2: Fixup memory size passed to kernelShengyu Qu1-0/+7
Use fdt_fixup_memory to make the memory size data from dtb match the actual size. Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Tested-by: Milan P. Stanić <mps@arvanta.net>
2023-09-20configs: visionfive2: Enable CONFIG_OF_BOARD_SETUPShengyu Qu1-0/+1
Enable CONFIG_OF_BOARD_SETUP, so we could use ft_board_setup() to fixup memory size passed to kernel. Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Tested-by: Milan P. Stanić <mps@arvanta.net>
2023-09-17Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-shTom Rini11-0/+12
- Fix PHY in some cases on some platforms via enabling DM_ETH_PHY.
2023-09-17Merge tag 'doc-2023-10-rc5-2' of ↵Tom Rini6-10/+10
https://source.denx.de/u-boot/custodians/u-boot-efi Pull request doc-2023-10-rc5-2 Documentation: * fix code comments referring to doc/develop/expo.rst * remove unused values from Chromebook kernel command line * correct reference tag placement in tools/binman/binman.rst Others: * test: fix build dependency for event unit tests
2023-09-17ARM: renesas: Enable DM_ETH_PHY on 64-bit R-Car boardsMarek Vasut10-0/+10
Enable DM_ETH_PHY to correctly release the PHY on these boards from reset. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
2023-09-17ARM: dts: renesas: Add compatible properties to KSZ9031 Ethernet PHYs on ↵Marek Vasut1-0/+2
Salvator-X boards Add compatible values to Ethernet PHY subnodes representing Micrel KSZ9031 PHYs on R-Car Gen3 Salvator-X boards. This allows software to identify the PHY model at any time, regardless of the state of the PHY reset line. This is a fix for missed addition of these properties on Salvator-X boards. Ported from Linux kernel commit 722d55f3a9bd810f3a1a31916cc74e2915a994ce . Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
2023-09-16binman: doc: fix reference tag placement for Logging sectionMassimo Pegorer1-1/+1
Move BinmanLogging reference tag after section "Signing FIT container with private key in an image" and just before section "Logging". Fixes: 0f40e23fd22 ("binman: add documentation for binman sign option") Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2023-09-16expo: Fix documentation referenceMassimo Pegorer2-4/+4
Fix typo: doc/develop/expo.rst instead of doc/developer/expo.rst Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2023-09-16doc: delete unused values kernel command lineJaewon Jung2-4/+4
Delete "boot=local", "noswap" unused values in kernel command line Signed-off-by: Jaewon Jung <jw.jung@navercorp.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-09-16test: build dependency for event unit testsHeinrich Schuchardt1-1/+1
The test_event_base and test_event_probe unit tests use function event_register() which depends on CONFIG_EVENT_DYNAMIC=y. Fixes: 7d02645fe4c0 ("event: Add a simple test") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-09-09Merge tag 'doc-2023-10-rc5' of ↵Tom Rini17-747/+984
https://source.denx.de/u-boot/custodians/u-boot-efi Pull request doc-2023-10-rc5 Documentation: * move more TI board documentation to HTML * update TPM usage instructions for qemu-arm * update the EFI app documentation Other: * tpm: Fix autostart for TPM1.2 devices * spl: fix undefined return value in spl_blk_load_image
2023-09-09doc: board: ti: Move documentation from README to .rstNeha Malcom Francis11-724/+965
Make the conversion for all existing TI documentation from README to .rst Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2023-09-09doc: Update path to source_file_format.rstJoao Marcos Costa1-2/+2
Previously, the file extension was .txt, and it referenced the uImage.FIT directory, which no longer exists. This commit updates the path accordingly. Signed-off-by: Joao Marcos Costa <jmcosta944@gmail.com> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2023-09-09timer: document the unit of the timer rateHeinrich Schuchardt1-3/+3
To avoid confusion document that timer_dev_priv.clock_rate and timer_get_rate() yield the timer rate in hertz. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-09-09doc: efi: Update for the 64-bit appSimon Glass1-15/+11
The 64-bit app is supported now, so update the documentation. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2023-09-09doc: qemu: switch swtpm instruction to 'tpm autostart'Ilias Apalodimas1-1/+1
We don't have a documentation page for our TPM subsystem. I plan on sending one in the future, but in the meantime document the new 'tpm autostart' command in the QEMU instructions while using a SWTPM Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-09-09tpm: Fix autostart for TPM1.2 devicesIlias Apalodimas1-1/+1
On commit e663b2ff4ba2("tpm: Add 'tpm autostart' shell command") an autostart function was added for both TPM1.2 and 2.0 devices. Instead of correctly wiring the autostart command for TPM1.2 devices that patch mistakenly added it on 'tpm init' Fixes: commit e663b2ff4ba2("tpm: Add 'tpm autostart' shell command") Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2023-09-09spl: undefined return value in spl_blk_load_imageHeinrich Schuchardt1-1/+1
spl_blk_load_image() should not return an uninitialized value if blk_get_devnum_by_uclass_id() fails. Fixes: 8ce6a2e17577 ("spl: blk: Support loading images from fs") Reported-by: Xavier Drudis Ferran <xdrudis@tinet.cat> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Xavier Drudis Ferran <xdrudis@tinet.cat>
2023-09-05Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-usbTom Rini1-3/+2
- DWC3 fix on Layerscape
2023-09-05Merge tag 'u-boot-imx-20230905' of ↵Tom Rini10-16/+17
https://gitlab.denx.de/u-boot/custodians/u-boot-imx Fixes for release ----------------- - imx9: fix DRAM calculation - thermal: fixes - fixed for DM, DH and Gateworks boards CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/17639
2023-09-05Merge https://source.denx.de/u-boot/custodians/u-boot-riscvTom Rini14-12/+108
+ Implement OpenSBI DBCN extension for early debug console + Fixes for VisionFive2 board + Fix timer missing + Fix L2 LIM issue + Enable PCIE auto enumeration to support USB and NVMe by default + Set eth0 mac address properly + Add __noreturn attribute to spl_invoke_opensbi
2023-09-05risc-v: implement DBCN based debug consoleHeinrich Schuchardt2-1/+24
Use the DBCN SBI extension to implement a debug console. Make it the default for S-mode RISC-V. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2023-09-05risc-v: implement DBCN write byteHeinrich Schuchardt2-0/+17
The DBCN extension provides a Console Write Byte call. Implement function sbi_dbcn_write_byte to invoke it. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2023-09-05spl: add __noreturn attribute to spl_invoke_opensbi functionChanho Park2-4/+5
spl_invoke_opensbi function is not returned to SPL. Thus, we need to set __noreturn function attribute. Signed-off-by: Chanho Park <chanho61.park@samsung.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2023-09-05configs: starfive: Disable SYS_MALLOC_CLEAR_ON_INIT by defaultShengyu Qu1-0/+2
SPL_SYS_MALLOC_CLEAR_ON_INIT would enable SYS_MALLOC_CLEAR_ON_INIT by default, but that's not need on JH7110, so disable that. Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2023-09-05riscv: cpu: jh7110: Imply SPL_SYS_MALLOC_CLEAR_ON_INITShengyu Qu1-0/+1
Starfive JH7110 needs to clear L2 LIM to zero before use or ECC error would be triggered. Currently, we use DDR ram for SPL malloc arena on Visionfive 2 board in defconfig, but it's also possible to use L2 LIM as SPL malloc arena. To avoid triggering ECC error in this scenario, we imply SPL_SYS_MALLOC_CLEAR_ON_INIT as default. Signed-off-by: Bo Gan <ganboing@gmail.com> Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2023-09-05dlmalloc: Add support for SPL_SYS_MALLOC_CLEAR_ON_INITShengyu Qu1-3/+3
To support SPL_SYS_MALLOC_CLEAR_ON_INIT, we have to modify #ifdef CONFIG_SYS_MALLOC_CLEAR_ON_INIT to #if CONFIG_IS_ENABLED(SYS_MALLOC_CLEAR_ON_INIT) Signed-off-by: Bo Gan <ganboing@gmail.com> Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Reviewed-by: Tom Rini <trini@konsulko.com>
2023-09-05Kconfig: Add SPL_SYS_MALLOC_CLEAR_ON_INITShengyu Qu1-0/+11
Add SPL version of SYS_MALLOC_CLEAR_ON_INIT, this would help devices that need to clear ram before use to work correctly. Signed-off-by: Bo Gan <ganboing@gmail.com> Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Reviewed-by: Tom Rini <trini@konsulko.com>
2023-09-05doc: board: starfive: Add more info about supported driverShengyu Qu1-0/+2
Since PLDA PCIE driver is added and VL805 support is enabled in defconfig for Starfive Visionfive 2, modify the document to keep consistent. Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Tested-by: Milan P. Stanić <mps@arvanta.net>