Skip to content
Snippets Groups Projects
  1. Dec 23, 2024
  2. Dec 22, 2024
  3. Dec 19, 2024
    • E Shattow's avatar
      Revert "configs: JH7110: enable EFI_LOADER_BOUNCE_BUFFER" · ff1d5d87
      E Shattow authored
      ("Enable EFI_LOADER_BOUNCE_BUFFER") is not the correct fix for the
      problem it describes.
      
      The change of memory addressing leading to side-effects in commit
      22f2c9ed ("efi: memory: use the lmb API's for allocating and
      freeing memory") is remedied by commit 1a48b0be ("lmb: prohibit
      allocations above ram_top even from same bank").
      
      This reverts commit 9c792ab3.
      ff1d5d87
  4. Dec 18, 2024
  5. Dec 15, 2024
    • Wei Ming Chen's avatar
      configs: ls1028a: Fix bootefi issue on Layerscape ls1028ardb platform · b4626f39
      Wei Ming Chen authored
      
      Without this patch, there will be error indicating that
      "Cannot use 64 bit addresses with SDMA", and the booting
      process will stuck.
      
      please see full boot log below
      
      U-Boot 2022.04-g18185931 (Sep 11 2024 - 13:15:30 +0800)
      
      SoC:  LS1028AE Rev1.0 (0x870b0010)
      Clock Configuration:
             CPU0(A72):1500 MHz  CPU1(A72):1500 MHz
             Bus:      400  MHz  DDR:      1600 MT/s
      Reset Configuration Word (RCW):
             00000000: 3c004010 00000030 00000000 00000000
             00000010: 00000000 018f0000 0030c000 00000000
             00000020: 020031a0 00002580 00000000 00003296
             00000030: 00000000 00000010 00000000 00000000
             00000040: 00000000 00000000 00000000 00000000
             00000050: 00000000 00000000 00000000 00000000
             00000060: 00000000 00000000 200e705a 00000000
             00000070: bb580000 00000000
      Model: LS1028A RDB Board
      Board: LS1028AE Rev1.0-RDB, Version: C, boot from SD
      FPGA: v8 (RDB)
      SERDES1 Reference : Clock1 = 100.00MHz Clock2 = 100.00MHz
      DRAM:  3.9 GiB
      DDR    3.9 GiB (DDR4, 32-bit, CL=11, ECC on)
      Using SERDES1 Protocol: 47960 (0xbb58)
      PCIe1: pcie@3400000 Root Complex: no link
      PCIe2: pcie@3500000 Root Complex: x1 gen2
      Core:  45 devices, 22 uclasses, devicetree: separate
      WDT:   Started watchdog@c000000 with servicing (60s timeout)
      WDT:   Started watchdog@c010000 with servicing (60s timeout)
      MMC:   FSL_SDHC: 0, FSL_SDHC: 1
      Loading Environment from MMC... *** Warning - bad CRC, using default environment
      
      EEPROM: Invalid ID (ff ff ff ff)
      In:    serial
      Out:   serial
      Err:   serial
      SEC0:  RNG instantiated
      Net:
      Warning: enetc-0 (eth0) using random MAC address - d2:9b:a5:37:7b:b5
      eth0: enetc-0
      Warning: enetc-2 (eth1) using random MAC address - ca:57:11:de:de:cb
      , eth1: enetc-2, eth2: swp0, eth3: swp1, eth4: swp2, eth5: swp3
      Hit any key to stop autoboot:  0
      Trying load HDP firmware from SD..
      switch to partitions #0, OK
      mmc0 is current device
      Device: FSL_SDHC
      Manufacturer ID: 9f
      OEM: 5449
      Name: SD32G
      Bus Speed: 50000000
      Mode: SD High Speed (50MHz)
      Rd Block Len: 512
      SD version 3.0
      High Capacity: Yes
      Capacity: 28.9 GiB
      Bus Width: 4-bit
      Erase Group Size: 512 Bytes
      
      MMC read: dev # 0, block # 18944, count 512 ... 512 blocks read: OK
      Loading hdp firmware from 0x00000000a0000000 offset 0x0000000000002000
      Loading hdp firmware Complete
      switch to partitions #0, OK
      mmc0 is current device
      Scanning mmc 0:1...
      ** Unable to read file / **
      Failed to load '/'
      libfdt fdt_check_header(): FDT_ERR_BADMAGIC
      Scanning disk mmc@2140000.blk...
      Scanning disk mmc@2150000.blk...
      Found 7 disks
      ERROR: invalid device tree
      Found EFI removable media binary efi/boot/bootaa64.efi
      981992 bytes read in 44 ms (21.3 MiB/s)
      libfdt fdt_check_header(): FDT_ERR_BADMAGIC
      WARNING could not find node vivante,gc: FDT_ERR_NOTFOUND.
      Booting /efi\boot\bootaa64.efi
      Cannot use 64 bit addresses with SDMA
      Error reading cluster
      ** Unable to read file /efi/boot/grubaa64.efi **
      Unexpected return from initial read: Device Error, buffersize 29D790
      Failed to load image ぀¬ : Device Error
      start_image() returned Device Error
      EFI LOAD FAILED: continuing...
      switch to partitions #0, OK
      mmc1(part 0) is current device
      Scanning mmc 1:1...
      ** Unable to read file / **
      Failed to load '/'
      libfdt fdt_check_header(): FDT_ERR_BADMAGIC
      BootOrder not defined
      EFI boot manager: Cannot load any image
      Scanning mmc 1:2...
      ** Unable to read file / **
      Failed to load '/'
      libfdt fdt_check_header(): FDT_ERR_BADMAGIC
      BootOrder not defined
      EFI boot manager: Cannot load any image
      starting USB...
      Bus usb@3100000: Register 200017f NbrPorts 2
      Starting the controller
      USB XHCI 1.00
      Bus usb@3110000: Register 200017f NbrPorts 2
      Starting the controller
      USB XHCI 1.00
      scanning bus usb@3100000 for devices... 1 USB Device(s) found
      scanning bus usb@3110000 for devices... 1 USB Device(s) found
             scanning usb for storage devices... 0 Storage Device(s) found
      
      Device 0: unknown device
      Trying load from SD ...
      switch to partitions #0, OK
      mmc0 is current device
      Device: FSL_SDHC
      Manufacturer ID: 9f
      OEM: 5449
      Name: SD32G
      Bus Speed: 50000000
      Mode: SD High Speed (50MHz)
      Rd Block Len: 512
      SD version 3.0
      High Capacity: Yes
      Capacity: 28.9 GiB
      Bus Width: 4-bit
      Erase Group Size: 512 Bytes
      
      MMC read: dev # 0, block # 32768, count 81920 ... 81920 blocks read: OK
      Wrong Image Format for bootm command
      ERROR: can't get kernel image!
      
      Signed-off-by: default avatarWei Ming Chen <jj251510319013@gmail.com>
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      b4626f39
    • Michael Walle's avatar
      board: sl28: fix network on variant 3 · ad7ebf1b
      Michael Walle authored
      
      Network is broken on variant 3 boards since commit 61ff1328 ("board:
      sl28: move to OF_UPSTREAM") because it was removing the variant 3
      handling. That is because at that time the var3 device tree was not
      upstream. FWIW variant 3 is actually the same as the base variant, but
      I've missed that the -u-boot.dtsi is not inlcuded in this case which
      will set the ethernet alias.  Now that the var3 device tree is upstream,
      just re-add it to the SPL handling again.
      
      Fixes: 61ff1328 ("board: sl28: move to OF_UPSTREAM")
      Signed-off-by: default avatarMichael Walle <mwalle@kernel.org>
      Reviewed-by: default avatarHeiko Thiery <heiko.thiery@gmail.com>
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      ad7ebf1b
    • Michael Walle's avatar
      board: sl28: increase SPL_SYS_MALLOC_SIZE · 6c849340
      Michael Walle authored
      
      Increase the malloc size to 2MiB because our FIT image exceeds the 1MiB
      limit either if BL31 mode is enabled or if another device tree is added
      to the image.
      
      Signed-off-by: default avatarMichael Walle <mwalle@kernel.org>
      Tested-by: default avatarHeiko Thiery <heiko.thiery@gmail.com>
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      6c849340
  6. Dec 12, 2024
    • Roger Quadros's avatar
      configs: am62x_evm_*: Fix USB DFU configuration · e371dfef
      Roger Quadros authored
      
      CONFIG_USB_XHCI_DWC3 is not required for AM62x as the XHCI
      driver is registered through the dwc3-generic driver.
      
      CONFIG_USB_XHCI_DWC3 causes problems by hijacking the
      USB controller even if it is not set for Host mode in
      device tree.
      
      'dm tree' output after 'usb start' is fixed from
      
       simple_bus    5  [ + ]   dwc3-am62             |   |-- dwc3-usb@f900000
       usb_gadget    0  [   ]   dwc3-generic-periphe  |   |   |-- usb@31000000
       usb           0  [ + ]   xhci-dwc3             |   |   `-- usb@31000000
       usb_hub       0  [ + ]   usb_hub               |   |       `-- usb_hub
       simple_bus    6  [ + ]   dwc3-am62             |   |-- dwc3-usb@f910000
       usb           1  [ + ]   dwc3-generic-host     |   |   |-- usb@31100000
       usb_hub       1  [ + ]   usb_hub               |   |   |   `-- usb_hub
       usb           1  [ + ]   xhci-dwc3             |   |   `-- usb@31100000
       usb_hub       2  [ + ]   usb_hub               |   |       `-- usb_hub
      
      [notice that 'xhci-dwc3' and 'usb_hub' drivers are probed
       for both USB instances although the first instance
       is supposed to be 'peripheral' only]
      
      to
      
       simple_bus    5  [   ]   dwc3-am62             |   |-- dwc3-usb@f900000
       usb_gadget    0  [   ]   dwc3-generic-periphe  |   |   `-- usb@31000000
       simple_bus    6  [ + ]   dwc3-am62             |   |-- dwc3-usb@f910000
       usb           1  [ + ]   dwc3-generic-host     |   |   `-- usb@31100000
       usb_hub       0  [ + ]   usb_hub               |   |       `-- usb_hub
      
      Fixes: dfc2dff5 ("configs: am62x_evm_*: Enable USB and DFU support")
      Signed-off-by: default avatarRoger Quadros <rogerq@kernel.org>
      Reviewed-by: default avatarSiddharth Vadapalli <s-vadapalli@ti.com>
      e371dfef
  7. Dec 11, 2024
  8. Dec 06, 2024
  9. Dec 03, 2024
  10. Nov 29, 2024
    • Marek Vasut's avatar
      ARM: dts: imx: Enable PCIe and NVMe on Data Modul i.MX8M Mini eDM SBC · 4835efca
      Marek Vasut authored
      
      Enable PCIe/NVMe support on Data Modul i.MX8M Mini eDM SBC. Except for
      the configuration options which are enabled, add slight adjustment
      to board u-boot.dtsi, which is necessary as there is currently no
      driver for the I2C PCIe clock generator. Since the generator is
      strapped to be always on, it is possible to supplant the generator
      functionality by fixed-clock.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      4835efca
    • Marek Vasut's avatar
      ARM: imx: Replace YModem with SDP on Data Modul i.MX8M Mini eDM SBC SPL · 0b97a394
      Marek Vasut authored
      
      The YModem support in SPL was never really used on this device,
      the SDP support is much more convenient on i.MX8M Mini based
      hardware. Replace the YModem support with SDP support.
      
      The SDP can be utilized by forcing the board into SDP boot mode
      by grounding test point right next to silkscreen label U30, and
      then by using mfgtools 'uuu -brun spl flash.bin' once the device
      enumerates on host system USB bus. The SDP capable USB port is
      available on the USB micro-B port on the base board.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
      0b97a394
    • Marek Vasut's avatar
      ARM: imx: Deduplicate Data Modul i.MX8M eDM SBC defconfigs · 3a689038
      Marek Vasut authored
      
      Deduplicate defconfigs for all Data Modul i.MX8M eDM SBC systems by factoring
      out the common parts into generic imx8m_data_modul.config and including
      those using the #include <configs/...> preprocessor macro in the current
      set of board specific defconfigs. The preprocessor macro is applicable
      to defconfigs as well.
      
      This introduces no functional change, the resulting .config is almost
      identical for all Data Modul i.MX8M eDM SBC systems, except for slight
      alignment in DEBUG_UART and SYS_PBSIZE.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      3a689038
  11. Nov 27, 2024
  12. Nov 26, 2024
  13. Nov 23, 2024
  14. Nov 20, 2024
  15. Nov 19, 2024
Loading