27 Apr, 2020

5 commits


09 Feb, 2020

1 commit

  • Both CMD_MX_CYCLIC and MX_CYCLIC are in use and defined in Kconfig,
    but only the non-CMD version currently does anything. This changes all
    usages to prefer the CMD_MX_CYCLIC option (since it's only affecting
    addition of the commands), and switches defconfigs using the non-CMD
    version to use the CMD version.

    Signed-off-by: Joel Johnson
    Reviewed-by: Tom Rini

    Joel Johnson
     

04 Feb, 2020

3 commits

  • Convert Android documentation from regular txt format to Sphinx (RST).
    Also add Android index.rst file and reference it in root index.rst, so
    that Android documentation is visible.

    Test:

    $ make htmldocs
    $ xdg-open doc/output/index.html

    Signed-off-by: Sam Protsenko
    Signed-off-by: Lokesh Vutla

    Sam Protsenko
     
  • Describe Android Boot Image format, how its support is implemented in
    U-Boot and associated commands usage.

    Signed-off-by: Sam Protsenko
    Signed-off-by: Lokesh Vutla

    Sam Protsenko
     
  • This command can be used to extract fields and image payloads from
    Android Boot Image. It can be used for example to implement boot flow
    where dtb is taken from boot.img (as v2 incorporated dtb inside of
    boot.img). Using this command, one can obtain needed dtb blob from
    boot.img in scripting manner, and then apply needed dtbo's (from "dtbo"
    partition) on top of that, providing then the resulting image to bootm
    command in order to boot the Android.

    Also right now this command has the sub-command to get an address and
    size of recovery dtbo from recovery image (for non-A/B devices only,
    see [1,2] for details).

    It can be tested like this:

    => mmc dev 1
    => part start mmc 1 boot_a boot_start
    => part size mmc 1 boot_a boot_size
    => mmc read $loadaddr $boot_start $boot_size
    => abootimg get ver
    => abootimg dump dtb

    [1] https://source.android.com/devices/bootloader/boot-image-header
    [2] https://source.android.com/devices/architecture/dto/partitions

    Signed-off-by: Sam Protsenko
    Signed-off-by: Lokesh Vutla

    Sam Protsenko
     

21 Jan, 2020

1 commit

  • Add support for read/write of ONIE "Tlvinfo" EEPROM data format. TLV
    stands for Type-Length-Value. The data format is described here:

    https://opencomputeproject.github.io/onie/design-spec/hw_requirements.html#board-eeprom-information-format

    Based on U-Boot patch from the Open Compute project:

    https://github.com/opencomputeproject/onie/blob/ec87e872d46b9805565d2c6124b2f701ef1c07b1/patches/u-boot/common/feature-sys-eeprom-tlv-common.patch

    Keep only I2C EEPROM support. Use the generic eeprom driver. Fix
    checkpatch issues.

    Add support for multiple EEPROM TLV stores on the same system. This is
    useful in case of SOM and carrier that both provide ID and hardware
    configuration information.

    Add option to enable for SPL. This allows selection of RAM configuration
    based on EEPROM stored board identification.

    Signed-off-by: Baruch Siach

    Baruch Siach
     

18 Jan, 2020

1 commit


11 Jan, 2020

1 commit

  • Rename the existing 'dtimg' command to 'adtimg', in order to:
    - Suggest the Android origins and scope
    - Be consistent with the upcoming 'abootimg' command (naming
    suggested by Simon [*])

    The change in _not_ backward compatible, but its benefits outweigh its
    downsides, given that we don't expect active users of 'dtimg' today.

    Perform the rename in several steps:
    1. Rename *.c file and Kconfig symbol. This should allow
    'git log --follow' to properly track the history of 'adtimg.c'
    2. 's/dtimg/adtimg/g' in the internal namespace of 'adtimg.c'

    ELF comparison [**] before and after shows no functional change.

    [*] https://patchwork.ozlabs.org/patch/1182212/#2291600
    [**] diff -u
    Signed-off-by: Eugeniu Rosca
    Reviewed-by: Simon Glass
    Reviewed-by: Sam Protsenko

    Eugeniu Rosca
     

09 Jan, 2020

1 commit


08 Jan, 2020

3 commits


15 Dec, 2019

1 commit


09 Dec, 2019

1 commit


07 Dec, 2019

2 commits


05 Dec, 2019

2 commits


04 Dec, 2019

2 commits


13 Nov, 2019

1 commit


08 Nov, 2019

2 commits

  • Due to the commit 4b0bcfa7c4ec ("Kconfig: Migrate CONFIG_BOOTM_* options")
    BOOTEFI and BOOTEFI_HELLO_COMPILE (and other BOOTEFI configs) are
    displayed in a long distance. This will make it difficult for us to
    understand that those configurations are closely related.

    Signed-off-by: AKASHI Takahiro
    Reviewed-by: Heinrich Schuchardt
    Reviewed-by: Tom Rini

    AKASHI Takahiro
     
  • That option is currently not used by any defconfig and could not be set
    anymore since it became mandatory to used Kconfig when introducing new
    options with U-Boot v2016.11 or commit eed921d92348 ("Kconfig: Add a
    whitelist of ad-hoc CONFIG options") and commit 371244cb19f9 ("Makefile:
    Give a build error if ad-hoc CONFIG options are added").

    It was also not considered when fixing build warnings in
    commit 39ac34473f3c ("cmd_mtdparts: use 64 bits for flash size,
    partition size & offset") and could probably not be compiled anyway
    after commit dfe64e2c8973 ("mtd: resync with Linux-3.7.1"), which
    renamed some members of struct mtd_info … so it was probably broken
    since then, which was U-Boot v2013.07-rc1.

    However it still seems to work, see example output below:

    U-Boot 2019.10-00035-g06a9b259ca-dirty (Oct 30 2019 - 14:03:44 +0100)

    CPU: SAMA5D27 1G bits DDR2 SDRAM
    Crystal frequency: 24 MHz
    CPU clock : 492 MHz
    Master clock : 164 MHz
    Model: ***
    DRAM: 128 MiB
    NAND: 256 MiB
    Loading Environment from NAND... OK
    In: serial@f8020000
    Out: serial@f8020000
    Err: serial@f8020000
    Net: eth0: ethernet@f8008000
    Hit keys 'tt' to stop autoboot (3 seconds).
    U-Boot> mtdparts

    device nand0 , # parts = 8
    #: name size net size offset mask_flags
    0: bootstrap 0x00040000 0x00040000 0x00000000 1
    1: uboot 0x000c0000 0x000c0000 0x00040000 1
    2: env1 0x00040000 0x00040000 0x00100000 0
    3: env2 0x00040000 0x00040000 0x00140000 0
    4: fpga_led 0x00040000 0x00040000 0x00180000 1
    5: reserved 0x00040000 0x00040000 0x001c0000 1
    6: rootfs_rec 0x03200000 0x03200000 0x00200000 1
    7: filesystem 0x0cc00000 0x0cb80000 (!) 0x03400000 0

    active partition: nand0,0 - (bootstrap) 0x00040000 @ 0x00000000

    defaults:
    mtdids : nand0=atmel_nand
    mtdparts: mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env1),256k(env2),256k(fpga_led)ro,256k(reserved)ro,50M(rootfs_rec)ro,-(filesystem)

    Signed-off-by: Alexander Dahl

    Alexander Dahl
     

31 Oct, 2019

1 commit


25 Oct, 2019

1 commit

  • If DM_SPI_FLASH enabled that means it is using sf command
    for flash interface to access.

    SPI_FLASH can be used via sf command and board/driver
    functions to call spi flash ops, so mark it default only
    for DM_SPI_FLASH.

    This would prevent explicit adding of CONFIG_CMD_SF when
    DM_SPI_FLASH being enabled.

    Cc: Tom Rini
    Acked-by: Vignesh Raghavendra
    Signed-off-by: Jagan Teki

    Jagan Teki
     

24 Oct, 2019

1 commit


10 Oct, 2019

1 commit

  • Xilinx/FPGA changes for v2020.01

    FPGA:
    - Enable fpga loading on Versal
    - Minor fix

    Microblaze:
    - Fix LMB configurations to support initrds
    - Some other cleanups

    Zynq:
    - Minor config/dt changes
    - Add distro boot support for usb1 and mmc1
    - Remove Xilinx private boot commands and use only distro boot

    ZynqMP:
    - Kconfig cleanups, defconfig updates
    - Update some dt files
    - Add firmware driver for talking to PMUFW
    - Extend distro boot support for jtag
    - Add new IDs
    - Add system controller configurations
    - Convert code to talk firmware via mailbox or SMCs

    Versal:
    - Add board_late_init()
    - Add run time DT memory setup
    - Add DFU support
    - Extend distro boot support for jtag and dfu
    - Add clock driver
    - Tune mini configurations

    Xilinx:
    - Improve documentation (boot scripts, dt binding)
    - Enable run time initrd_high calculation
    - Define default SYS_PROMPT
    - Add zynq/zynqmp virtual defconfig

    Drivers:
    - Add Xilinx mailbox driver for talking to firmware
    - Clean zynq_gem for Versal
    - Move ZYNQ_HISPD_BROKEN to Kconfig
    - Wire genphy_init() in phy.c
    - Add Xilinx gii2rgmii bridge
    - Cleanup zynq_sdhci
    - dwc3 fix
    - zynq_gpio fix
    - axi_emac fix

    Others:
    - apalis-tk1 - clean config file

    Tom Rini
     

08 Oct, 2019

2 commits


06 Oct, 2019

1 commit

  • The growth of the UEFI sub-system leads to build failures for systems with
    strict limits on the U-Boot image size.

    CMD_NVEDIT_EFI supports displaying and editing of UEFI variables. The
    setting is not needed for booting. Disabling it by default reduces the
    size of the U-Boot image by 2 KiB.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     

05 Oct, 2019

3 commits


05 Sep, 2019

1 commit

  • Add support for capturing ethernet packets and storing
    them in memory in PCAP(2.4) format, later to be analyzed by
    any PCAP viewer software (IE. Wireshark)

    This feature greatly assist debugging network issues such
    as detecting dropped packets, packet corruption etc.

    Signed-off-by: Ramon Fried
    Reviewed-by: Alex Marginean
    Tested-by: Alex Marginean
    Acked-by: Joe Hershberger

    Ramon Fried
     

24 Aug, 2019

1 commit


12 Aug, 2019

1 commit