summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-02-07power: Drop fg_max77693Simon Glass
This is not used in U-Boot. Drop it. Signed-off-by: Simon Glass <[email protected]>
2023-02-07moveconfig: Add an option to compare Kconfig against sourceSimon Glass
Sometimes the Makefile rules or source code refers to Kconfig options which don't exist. Update the moveconfig tool to check this and produce a series of reports about inconsistencies. This can then be used to generate patches to correct the problems. Signed-off-by: Simon Glass <[email protected]>
2023-02-07Merge branch '2023-02-07-assorted-updates'Tom Rini
- Default to dynamic LMB allocation, and fix an issue with the EFI one, assorted TI platform updates, socrates platform updates, switch qemu-arm to using bootstd, imagetool fixes, macOS host build fixes, keymile platform upates, spl FPGA load fix, MMC env bugfix, add seama command, usb bootdev test bugfix.
2023-02-06cmd: Add a SEAMA image load commandLinus Walleij
Add a command to load SEAMA (Seattle Image), a NAND flash on-flash storage format. This type of flash image is found in some D-Link routers such as DIR-645, DIR-842, DIR-859, DIR-860L, DIR-885L, DIR890L and DCH-M225, as well as in WD and NEC routers on the ath79 (MIPS), Broadcom BCM53xx, and RAMIPS platforms. This U-Boot command will read and decode a SEAMA image from raw NAND flash on any platform. As it is always using big endian format for the data decoding is always necessary on platforms such as ARM. The command is needed to read a SEAMA-encoded boot image on the D-Link DIR-890L router for boot from NAND flash in an upcoming port of U-Boot to the Broadcom Northstar (BCM4709, BCM53xx) architecture. A basic test and documentation is added as well. The test must be run on a target with NAND flash support and at least one resident SEAMA image in flash. Cc: Rafał Miłecki <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
2023-02-06env: mmc: Fix offset issue for env saveYe Li
Fix the issue in commit 46c9016 ("env: mcc: Drop unnecessary #ifdefs") If CONFIG_SYS_REDUNDAND_ENVIRONMENT is not defined, the offset value becomes undetermined, so write env to unexpected offset. Signed-off-by: Ye Li <[email protected]> Reviewed-by: Jaehoon Chung <[email protected]>
2023-02-06MAINTAINERS: m68k: Change Angelo's email addressAngelo Dureghello
Set my new current personal email. Signed-off-by: Angelo Dureghello <[email protected]>
2023-02-06tools: default_image: Accept images with paddingPali Rohár
If image file is stored on flash partition then it contains padding, which is not part of the image itself. Image data size is stored in the image header. So use image size from the header instead of expecting that total image file size is size of the header plus size of the image data. This allows dumpimage to parse image files with padding (e.g. dumped from flash partition). Signed-off-by: Pali Rohár <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-02-06tools: default_image: Verify header sizePali Rohár
Before reading image header, verify that image size is at least size of the image header. Signed-off-by: Pali Rohár <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-02-06tools: imagetool: Skip autodetection of gpimage typePali Rohár
gpimage type requires only that two first 32-bit words of data file are non-zero. So basically every random data file can be guessed and verified as gpimage. So completely skip gpimage type from image autodetection code to prevent lot of false positive results. Data file with gpimage type can be still verified and parsed by explicitly specifying -T gpimage. Signed-off-by: Pali Rohár <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-02-06tools: imagetool: Show error message when detecting image type failedPali Rohár
Signed-off-by: Pali Rohár <[email protected]>
2023-02-06tools: imagetool: Fix error message when verify_header is undefinedPali Rohár
Signed-off-by: Pali Rohár <[email protected]>
2023-02-06arm: qemu: Move GUIDs to the C fileSimon Glass
These are only used in one place, so move them there. Signed-off-by: Simon Glass <[email protected]>
2023-02-06arm: qemu: Switch to a text environmentSimon Glass
Use the new environment format so we can drop most of the config.h file. Signed-off-by: Simon Glass <[email protected]>
2023-02-06arm: qemu: Switch to standard bootSimon Glass
Drop use of the distro scripts and use standard boot instead. Enable BOOTDEV_FULL just for convenience, although this does add quite a bit to the size. Signed-off-by: Simon Glass <[email protected]>
2023-02-06qemu: Add a bootmeth for qfwSimon Glass
This supports reading a kernel and ramdisk from qfw, then loading it with either the booti or bootz commands. For now this uses the existing booti and bootz commands, rather than trying to call that functionality directly (e.g. do_bootm_states()). It does not require the HUSH parser though, which helps a little with size. Signed-off-by: Simon Glass <[email protected]>
2023-02-06qemu: Add a bootdev for qfwSimon Glass
Add a bootdev device for qfw so that it can be used with standard boot. This simply checks for the correct method and then does the read. Most of the other logic is handed in a new bootmeth driver. Signed-off-by: Simon Glass <[email protected]>
2023-02-06qemu: Move qfw kernel setup into a common fileSimon Glass
This is currently in the cmd/ file but we want to call it from a driver. Move it into a common place. Tidy up the header-file order while we are here. Signed-off-by: Simon Glass <[email protected]>
2023-02-06qemu: Update qfw command to use addressesSimon Glass
This uses casts all over the place. Use the correct type so that these can be avoided, as is done with other commands. Also simplify a few conditionals. Signed-off-by: Simon Glass <[email protected]>
2023-02-06bootstd: Add some default filesystems and commandsSimon Glass
We need to support a basic set of filesystems for booting to work in most cases. Add these in via a new option, letting the board disable them individually (for space reasons) if desired. This enables the filesystem commands as well as the actual functionality, even though bootstd is quite happy to use ext4 without the ext4 command. Further work would be needed to disintangle this and reduce code size. Add several other options as well, providing sensible defaults. We cannot enable this by default, since it expands the size of many boards quite a lot. Signed-off-by: Simon Glass <[email protected]>
2023-02-06bootstd: Correct virtio block-device handlingSimon Glass
At present virtio tries to attach QEMU services to a bootdev device, which cannot work. Add a check for this. Also use bootdev_setup_sibling_blk() to create the bootdev device, since it allows the correct name to be used and bootdev_get_sibling_blk() to work as expected. The bootdev is not created on sandbox since it does have a real virtio device and it is not possible to read blocks. Signed-off-by: Simon Glass <[email protected]> Fixes: a60f7a3e35b ("bootstd: Add a virtio bootdev") Reported-by: Ilias Apalodimas <[email protected]>
2023-02-06bootstd: Probe the block device before useSimon Glass
In some cases the block device is obtained but is not probed, since it is a sibling of the bootdev. Make sure it is probed, so it can be used without any trouble. This fixes a bug with virtio, where the device is accessed before it has been set up by the virtio uclass. Signed-off-by: Simon Glass <[email protected]> Fixes: 201417d700a ("bootstd: Add the bootdev uclass") Reported-by: Ilias Apalodimas <[email protected]>
2023-02-06bootstd: Allow enabling BOOTSTD_FULL without needing EXPOSimon Glass
It is sometimes useful to have one without the other, e.g. on a device without a display, since at present the expo feature requires CONFIG_VIDEO to be enabled. Update the Makefile and bootflow command to support this, as well as the EXPO dependency. Signed-off-by: Simon Glass <[email protected]>
2023-02-06virtio: Add some debuggingSimon Glass
When QEMU does not respond for some reason, it is helpful to have debugging info to show. Add some. Signed-off-by: Simon Glass <[email protected]>
2023-02-06log: Add a category for filesystemsSimon Glass
Sometimes it is useful to log things related to filesystems. Add a new category and place it at the top of one of the FAT files. Signed-off-by: Simon Glass <[email protected]>
2023-02-06am335x_evm_defconfig: Enable CONFIG_CMD_EXTENSIONMatwey V. Kornilov
am335x_evm_defconfig is used for BeagleBone Black, popular single board computer with wide extension support. Enable CONFIG_CMD_EXTENSION by default since extension detection is already implemented for am335x. Also run make savedefconfig for am335x_evm_defconfig Signed-off-by: Matwey V. Kornilov <[email protected]>
2023-02-06ti: j721e_evm: Add USB to the default boot orderTom Rini
This family of platforms typically has a USB port, and so attempting to boot from it, and making it first, will provide a better overall user experience. Signed-off-by: Tom Rini <[email protected]>
2023-02-06powerpc/mpc85xx: socrates: enable signed fitImagesHeiko Schocher
allow only to boot signed fitimages (and signed u-boot scripts). Signed-off-by: Heiko Schocher <[email protected]>
2023-02-06powerpc/mpc85xx: socrates: enable protected EnvironmentHeiko Schocher
enable protected Environment on socrates board. Signed-off-by: Heiko Schocher <[email protected]>
2023-02-06powerpc/mpc85xx: socrates: add autoboot delay stringHeiko Schocher
add autoboot delay string for socrates board. use sha256 for abort autoboot, use "ao" to abort. Signed-off-by: Heiko Schocher <[email protected]>
2023-02-06powerpc/mpc85xx: socrates: add support for i2c eeprom at 0x51Heiko Schocher
add support for i2c eeprom on address 0x51. Signed-off-by: Heiko Schocher <[email protected]>
2023-02-06powerpc/mpc85xx: socrates: Add boot retry featureHeiko Schocher
add boot retry feature and reboot after 120 seconds. Signed-off-by: Heiko Schocher <[email protected]>
2023-02-06powerpc/mpc85xx: socrates: drop second flash bankHeiko Schocher
drop second flash bank, as not used anymore. Signed-off-by: Heiko Schocher <[email protected]>
2023-02-06powerpc/mpc85xx: socrates: add initrd_high default environment variableHeiko Schocher
we need to set initrd_high to get fitimage booting. Without, U-Boot drops when booting fitimage: ERROR: Failed to allocate 0x59a0b6 bytes below 0x800000. ramdisk - allocation error bootm - boot application image from memory Signed-off-by: Heiko Schocher <[email protected]>
2023-02-06powerpc/mpc85xx: socrates: add MTD partitioning supportHeiko Schocher
setup MTD partitioning through mtdparts variable and set it to: mtdparts=fe0000000.nor:13312k(system1),13312k(system2),5120k(data),128k(env),128k(env-red),768k(u-boot) and pass this to linux per kernel commandline. Signed-off-by: Heiko Schocher <[email protected]>
2023-02-06powerpc: dts: updates socrates boardHeiko Schocher
include common e500v2_power_isa.dtsi and rearrange some nodes. Signed-off-by: Heiko Schocher <[email protected]>
2023-02-06powerpc/mpc85xx: drop socrates specific image creationHeiko Schocher
convert socrates board to use MPC85XX_HAVE_RESET_VECTOR and disable CONFIG_OF_BOARD and use common u-boot.dtsi for creating u-boot-dtb.bin. Signed-off-by: Heiko Schocher <[email protected]>
2023-02-06powerpc/mpc85xx: socrates: rework build processHeiko Schocher
U-Boot build process for socrates board produces final U-Boot binary in file u-boot-socrates.bin (by binman) And as a bonus it produces two unusable broken binaries u-boot-dtb.bin and u-boot.bin (by Makefile). Clean this up, so final U-Boot binary is in u-boot-dtb.bin Signed-off-by: Pali Rohár <[email protected]> Signed-off-by: Heiko Schocher <[email protected]>
2023-02-06powerpc/mpc85xx: fixes and updates for socrates boardHeiko Schocher
current mainline does not work on socrates board. To get it back up working, there are some updates needed in socrates_defconfig. Signed-off-by: Heiko Schocher <[email protected]> Fixes: 94633c36f9eb ("net: Make DM_ETH be selected by NETDEVICE") Fixes: 2f8a6db5d83b ("Finish conversion of CONFIG_SYS_CLK_FREQ to Kconfig")
2023-02-06spl: Drop unwanted return in spl_fit_upload_fpga()Simon Glass
This was added by mistake and renders the function useless. Fix it. Signed-off-by: Simon Glass <[email protected]> Fixes: 33c60a38bb9 ("trace: Use notrace for short") Reported-by: Stefan Herbrechtsmeier <[email protected]> Reviewed-by: Oleksandr Suvorov <[email protected]>
2023-02-06arm: dts: k3-am64: Fix CPSW3G ethernetRoger Quadros
As MDIO driver does not support Driver Model, the pinctrl settings in the MDIO node will not be applied resulting in PHY not being detected. To workaround this we add the MDIO pinctrl in the CPSW3G node in the -u-boot.dtsi file. Add the missing MDIO and RGMII pinctrl nodes in k3-am642-r5-evm.dts Signed-off-by: Roger Quadros <[email protected]> Reviewed-by: Tom Rini <[email protected]>
2023-02-06arm: dts: k3-am6: Fix "EEPROM not available" errorRoger Quadros
We need to enable i2c0 so u-boot can read from EEPROM. Signed-off-by: Roger Quadros <[email protected]> Reviewed-by: Tom Rini <[email protected]>
2023-02-06arm: dts: k3-am64: sync with Linux DT filesRoger Quadros
Sync AM64 DT files with Linux v6.2-rc4 Signed-off-by: Roger Quadros <[email protected]> Reviewed-by: Tom Rini <[email protected]>
2023-02-06km/ppc832x: join config filesHolger Brunck
There are no differences for the different 832x targets we have in the header defined with SYS_CONFIG_NAME. So we can join the five headers to a single file. Signed-off-by: Holger Brunck <[email protected]>
2023-02-06km/ppc: remove km-mpc8360.h and km-mpc832x.hHolger Brunck
Next step to get rid of the header files in icnlude/configs. Move most of the defines to km83xx.c directly. Some remaining defines which should go to Kconfig are moved to km-mpc83xx.h for now. Also remove some unused defines and move one define to powerpc.env as we only need it there. Signed-off-by: Holger Brunck <[email protected]>
2023-02-06board: ti: am62x: am62x: Add splash screen env variablesNikhil M Jain
Set splash screen related env variables. Default splash source is set to mmc where user is expected to keep bmp in compressed format with name ti.gz on first partition of mmc. Splash file will be uncompressed to DDR at address 0x82000000 and splash position is set to middle of screen. Signed-off-by: Nikhil M Jain <[email protected]>
2023-02-06include: configs: am62x_evm: Add .env file for Am62xNikhil M Jain
Use .env file for setting board related environment variables, in place of am62x_evm.h file. Except for BOOTENV settings, as config_distro_boot.env file doesn't exist. Signed-off-by: Nikhil M Jain <[email protected]> Reviewed-by: Tom Rini <[email protected]>
2023-02-06test: bootdev: Do not require USB to compile testLinus Walleij
This test will block compilation of the entire test suite on platforms without USB support. Make the extern "usb_started" conditional on USB host or gadget and define a dummy flag if neither is enabled. Cc: Simon Glass <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-02-06elf: add Elf64_SymKaDiWa
Required as Elf_Sym in tools/prelink-riscv.inc. I assume people have been using an OS-supplied elf.h, but macOS doesn't have that. Taken from https://github.com/torvalds/linux/blob/v6.1/include/uapi/linux/elf.h Signed-off-by: KaDiWa <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-02-06Makefile: fix shell error for darwin major/minor version checkChristian Marangi
Fix shell error: /bin/sh: line 0: [: too many arguments for the darwin major/minor version check. It seems for os_x_before for some reason DARWIN_MAJOR_VERSION and DARWIN_MINOR_VERSION are empty. To fix this set DARWIN_MAJOR_VERSION and DARWIN_MINOR_VERSION to be evaluated once so the value is retained. Signed-off-by: Christian Marangi <[email protected]> Reviewed-by: Simon Glass <[email protected]>
2023-02-06lmb: Set correct lmb flags for EFI memory map entriesSjoerd Simons
When adding reserved memory areas from the EFI memory map set the NOMAP flag when applicable. When this isn't done adding "no-map" flagged entries from the fdt after receiving the same from the EFI memory map fails due to non-matching flags. Signed-off-by: Sjoerd Simons <[email protected]>