Skip to content
Snippets Groups Projects
  1. Jan 24, 2022
    • Patrick Delaunay's avatar
      stm32mp: correct the dependency for bootcount configs · 5c68904f
      Patrick Delaunay authored and Patrice Chotard's avatar Patrice Chotard committed
      
      Default value for CONFIG_SYS_BOOTCOUNT_SINGLEWORD and
      CONFIG_SYS_BOOTCOUNT_ADDR are only needed when
      CONFIG_BOOTCOUNT_GENERIC is used.
      
      This patch avoids to define these configs when an other bootcount backend
      is activated, for example for CONFIG_BOOTCOUNT_ENV.
      
      Signed-off-by: Patrick Delaunay's avatarPatrick Delaunay <patrick.delaunay@foss.st.com>
      Reviewed-by: Patrice Chotard's avatarPatrice Chotard <patrice.chotard@foss.st.com>
      5c68904f
    • Patrick Delaunay's avatar
      stm32mp: remove the bootcount activation · d5e8119b
      Patrick Delaunay authored and Patrice Chotard's avatar Patrice Chotard committed
      
      Today the bootcount is not managed by the Linux kernel for STM32MP15 as
      we don't have driver to update the used backup register in TAMP and the
      recovery command still executes the normal bootcmd with
      'altbootcmd=run bootcmd'.
      
      So the bootcount feature is never used, the config CONFIG_BOOTCOUNT_LIMIT
      and the associated environment variable 'altbootcmd' can be removed to
      reduce the U-Boot size.
      
      Each boards can re-enable this feature later in their defconfig, if it is
      needed, with the expected backend, for example CONFIG_BOOTCOUNT_GENERIC
      or CONFIG_BOOTCOUNT_ENV.
      
      CC: Marek Vasut <marex@denx.de>
      Signed-off-by: Patrick Delaunay's avatarPatrick Delaunay <patrick.delaunay@foss.st.com>
      Reviewed-by: Patrice Chotard's avatarPatrice Chotard <patrice.chotard@foss.st.com>
      d5e8119b
    • Marek Vasut's avatar
      ARM: dts: stm32: Add DFU support for DHCOR recovery · 3919aa17
      Marek Vasut authored and Patrice Chotard's avatar Patrice Chotard committed
      
      This patch configures U-Boot SPL for DHCOR SoM to permit DFU upload of
      SPL and subsequent u-boot.itb for recovery or commissioning purposes.
      
      To start U-Boot on DHCOR based board, e.g. Avenger96, proceed as follows:
      - Install dfu-util on the host PC (in debian this is package 'dfu-util')
      
      - Power off the Avenger96 board.
      - Connect both USB-serial console and USB-OTG microB ports to host PC.
      - Switch Avenger96 to USB boot mode -- BOOT0..2 switches all set to 0.
      - Power on the Avenger96 board.
      - Verify using '$ dmesg' that a new device has been detected as follows:
          New USB device found, idVendor=0483, idProduct=df11, bcdDevice= 2.00
          New USB device strings: Mfr=1, Product=2, SerialNumber=3
          Product: DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
          Manufacturer: STMicroelectronics
      
      - Upload U-Boot SPL:
      $ dfu-util -a 1 -D u-boot-spl.stm32
      - Upload U-Boot proper:
      $ dfu-util -a 0 -D u-boot.itb
      
      - At this point, SPL will wait for user to press "Ctrl-C" on serial
        console. When ready to interact with U-Boot, press Ctrl-C to start
        the bootloader.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Patrice Chotard <patrice.chotard@foss.st.com>
      Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
      Reviewed-by: Patrice Chotard's avatarPatrice Chotard <patrice.chotard@foss.st.com>
      3919aa17
    • Marek Vasut's avatar
      arm: stm32mp: Fix USB boot device report · 757c8387
      Marek Vasut authored and Patrice Chotard's avatar Patrice Chotard committed
      
      In case the SoC reports the boot device type is USB, it means the SPL was
      loaded via BootROM DFU mode. Currently the spl_boot_device() returns boot
      device as USB host, change it to DFU instead, so the SPL can continue the
      DFU boot and load U-Boot via DFU.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Patrice Chotard <patrice.chotard@foss.st.com>
      Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
      Reviewed-by: Patrice Chotard's avatarPatrice Chotard <patrice.chotard@foss.st.com>
      757c8387
  2. Jan 23, 2022
  3. Jan 22, 2022
  4. Jan 21, 2022
  5. Jan 20, 2022
Loading