Commit Graph

9022 Commits

Author SHA1 Message Date
Alexandre Bard c1e4d617ac fix the right variable 2024-02-13 15:18:41 +01:00
Alexandre Bard 66aeba5533 Again 2024-02-13 13:22:03 +01:00
Alexandre Bard 82865559d7 increase malloc size for r5 2024-02-13 12:51:32 +01:00
Alexandre Bard db1e290891 hw34_defconfig: Increase malloc size
With EFI configs, there was not enough space for loading u-boot
2024-02-13 11:46:34 +01:00
Samuel Dolt 5fdf57516a rename genimi to hw34 2024-02-12 16:26:19 +01:00
Stefan Eichenberger 04eb56941b gemini: board: add board and device tree
Add gemini as new am64x board including, board configuration, devicetree
and configuration.
2024-01-11 14:10:11 +01:00
Praneeth Bajjuri b0d717b732 configs: am62*_r5_usbmsc_defconfig: Set SPL_STACK_R_MALLOC_SIMPLE_LEN to 2M
Size of malloc was standardized to 2M for all am6*_r5_*_defconfigs, but
USB MSC defconfig was missed, update this config option now.

Fixes: 794614311a (configs: am6*_r5_defconfig: Standardize SPL_STACK_R_MALLOC_SIMPLE_LEN to 2M)

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
2023-12-06 09:11:45 -06:00
Judith Mendez d83580ffea configs: am62ax_r5_usbdfu_defconfig: Sync USB-DFU with default defconfig
Size of malloc was standardized to 2M for all am6*_r5_defconfigs, but
USB DFU defconfig was missed, update this config option now.

The following warning can be seen with usb-dfu boot:

SPL possible initial stack overflow detected!!

so increase SIZE_LIMIT_PROVIDE_STACK to match the default defconfig.

Fixes: 794614311a (configs: am6*_r5_defconfig: Standardize SPL_STACK_R_MALLOC_SIMPLE_LEN to 2M)
Fixes: beee241868 (configs: am62ax: Add a new USB DFU defconfig)

Signed-off-by: Judith Mendez <jm@ti.com>
2023-12-06 09:10:37 -06:00
Judith Mendez 97083e42dc configs: am62x_r5_usbdfu_defconfig: Set SPL_STACK_R_MALLOC_SIMPLE_LEN to 2M
Size of malloc was standardized to 2M for all am6*_r5_defconfigs, but
USB DFU defconfig was missed, update this config option now.

Fixes: 794614311a (configs: am6*_r5_defconfig: Standardize SPL_STACK_R_MALLOC_SIMPLE_LEN to 2M)

Signed-off-by: Judith Mendez <jm@ti.com>
2023-12-06 09:10:06 -06:00
Judith Mendez 9988250625 configs: am62px: Enable UHS configs for mmc1
Enable UHS support in the am62p5 defconfigs, allowing us to enter
the UHS modes for mmc1.

Signed-off-by: Judith Mendez <jm@ti.com>
2023-12-06 09:08:16 -06:00
Udit Kumar eaa1840097 arm: k3: j721s2: Enable AVS
Enable AVS in config and probing of AVS node.

Signed-off-by: Udit Kumar <u-kumar1@ti.com>
2023-12-06 09:07:17 -06:00
Roger Quadros d231dfe971 configs: am64x_evm_a53_defconfig: Fix USB DFU boot
Increasing SPL_STACK_R_MALLOC_SIMPLE_LEN to 16M seems to break
USB DFU boot. The default of 4M seems to be OK for NAND case
as well so stick to defaults.

Reported-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
Fixes: b1ba64d9ba ("configs: am64x_evm_a53_defconfig: add SPL_LOAD_FIT_APPLY_OVERLAY")
Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Judith Mendez <jm@ti.com>
Tested-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-12-06 09:06:31 -06:00
Vignesh Raghavendra 71b8c840ca configs: am62x_evm_a53_defconfig: Increase DFU buffer size to 256K
OSPI Flashes have 256K sector size, match the DFU buffer size to the
same so that entire sector can be written at once.

W/o this OSPI DFU update fails with timeouts like
=> setenv dfu_alt_info ${dfu_alt_info_ospi}; dfu 0 sf 0:0;

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-11-27 14:25:35 +05:30
Roger Quadros b8cf525335 configs/am64x_evm_a53_defconfig: Enable NAND DFU
Enable NAND support for DFU.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
2023-11-24 16:53:29 -06:00
Roger Quadros 1feeea360e configs: am64x_evm_a53_defconfig: Enable NAND
Enables configuration required for NAND in SPL and u-boot.

Enable MTD Driver model and MTD + UBI command line utilities.

Add mtdids/mtdparts for NAND as it is required for u-boot's
MTD subsystem commands to recognize NAND partitions.

Add u-boot partition location.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
2023-11-24 16:53:29 -06:00
Roger Quadros b1ba64d9ba configs: am64x_evm_a53_defconfig: add SPL_LOAD_FIT_APPLY_OVERLAY
We want SPL to apply DTB overlays (e.g. NAND card overlay) so
enable SPL_LOAD_FIT_APPLY_OVERLAY.
Increase SPL_LOAD_FIT_APPLY_OVERLAY_BUF_SZ and
SPL_STACK_R_MALLOC_SIMPLE_LEN. Without this SPL hangs.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
2023-11-24 16:53:29 -06:00
Vignesh Raghavendra 5e27b6be65 configs: am62px_evm_a53_defconfig: Enable PHY support of cadence-qspi
Enable support for using PHY mode in cadence-qspi driver for better data
rate.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-11-23 14:49:54 +05:30
Judith Mendez a4f2cd532a configs: am64x_evm_r5/a53_defconfig: Fix eMMC raw boot offsets
EMMC boot is broken for AM64x platform. This is due to the size of
tiboot3.bin growing beyond the 500KB of memory allocated in eMMC.
There was effort to move the offsets and give more space to tiboot3.bin,
but the offsets in defconfig were not updated. Update offsets in
defconfig to load each binary from the correct adress in eMMC according
to the following eMMC layout:

            boot0/1 partition
    0x0+----------------------------------+
       |     tiboot3.bin (1 MB)           |
  0x800+----------------------------------+
       |       tispl.bin (2 MB)           |
0x1800+-----------------------------------+
       |       u-boot.img (4 MB)          |
0x3800+-----------------------------------+
       |      environment (128 KB)        |
0x3900+-----------------------------------+

Signed-off-by: Judith Mendez <jm@ti.com>
2023-11-22 20:37:32 +05:30
Sinthu Raja 304eea858a configs: am57x: Increase the CB_SIZE to 2KB for AM57x
The u-boot environment variable emmc_android_boot total size increased
to more than 1KB. U-boot hangs when the emmc_android_boot variable is
reused in the u-boot prompt as the maximum size of the u-boot command 
line buffer is 1KB. Increase the CB_SIZE to 2KB for AM57x SoC family

Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
2023-11-20 21:33:51 +05:30
Bryan Brattlof e32f441ec8 configs: am62px: setup the 32k RTC crystal
The am62px utilizes the same 32k crystal for a more accurate RTC clock
source. Enable the configuration to set this up for Linux.

Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-11-07 17:55:03 -06:00
Bryan Brattlof 851aa09d1e configs: am62x: move 32K RTC crystal to common
The am62x utilizes the same 32k crystal for a more accurate RTC clock
source. Enable the configuration to set this up for Linux.

Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-11-07 17:55:03 -06:00
Bryan Brattlof 5b41c7c481 configs: am62ax: setup the 32k RTC crystal
The am62ax utilizes the same 32k crystal for a more accurate RTC clock
source. Enable the configuration to set this up for Linux.

Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-11-07 17:55:03 -06:00
Ravi Gunasekaran 2e0e4ab05e configs: am62px_evm_r5_usbmsc_defconfig: Add USB MSC config
Add new R5 defconfig for USB MSC boot support based on usbdfu_defconfig

USB Host boot is supported only from USB0 port. By default USB0
is configured in peripheral mode to support DFU. Inorder to support
USB Host boot, "dr_mode" property needs to be changed from "peripheral"
to "host" in the device tree.

Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-11-03 17:40:06 -05:00
Ravi Gunasekaran 9ef062c26a configs: am62px_evm_r5_usbdfu_defconfig: Add USB DFU config
Add support for USB DFU bootmode by having a separate config
file.

Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-11-03 17:40:06 -05:00
Ravi Gunasekaran b052b27561 configs: am62px_evm_a53_defconfig: Enable USB wrapper
Add configs to enable AM62 USB wrapper.

Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-11-03 17:40:06 -05:00
Bryan Brattlof d21ad2898f configs: introduce configs needed for the am62px
Introduce the initial configs needed to support the am62px SoC family

[bb@ti.com: rebased on TI's 2023.10 uboot]
Signed-off-by: Bryan Brattlof <bb@ti.com>
2023-10-24 15:35:42 -05:00
Hari Nagalla ae8a66efda configs: am64x_evm_a53_defconfig: Enable R5F remote proc support
Add support for R5F remote proc driver.

Signed-off-by: Hari Nagalla <hnagalla@ti.com>
2023-10-18 12:19:58 -05:00
Vignesh Raghavendra 5350a860b9 configs: am65x_evm_a53_defconfig: Drop ENV_IS_IN_MMC
Similar to other K3 platforms, drop specifying source of env to avoid
picking up stale env. This enables proper FitImage boot on HS-SE
devices which used to fail due to stale env from older releases.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-10-18 09:35:24 -05:00
Keerthy 6da3bfe330 configs: j784s4_evm_r5_defconfig: Enable ESM & PMIC ESM configs
Enable ESM & PMIC ESM configs

Signed-off-by: Keerthy <j-keerthy@ti.com>
2023-10-17 21:09:38 +05:30
Keerthy dd72822ffa configs: j721s2_evm_r5_defconfig: Enable ESM & PMIC ESM configs
Enable ESM & PMIC ESM configs

Signed-off-by: Keerthy <j-keerthy@ti.com>
2023-10-17 21:09:38 +05:30
Apurva Nandan 252c052e50 configs: j784s4: Enable SPI NAND boot support
Enable the configs for J784S4 EVM OSPI NAND support.

Signed-off-by: Apurva Nandan <a-nandan@ti.com>
2023-10-07 13:54:28 +05:30
Ravi Gunasekaran 47c331f197 configs: am65x_evm_a53_defconfig: Enable TI_I2C_BOARD_DETECT config
Enable CONFIG_TI_I2C_BOARD_DETECT inorder to probe the daughter
cards plugged in and update the "eth", "name_overlays" environment
variables.

Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-09-26 20:56:19 +05:30
Mattijs Korpershoek 16515d9747 configs: Add am625_beagleplay* defconfig fragments
To build the Beagle Play bootloaders:

for r5:
  defconfig: am62x_evm_r5_defconfig
  fragments: am625_beagleplay_r5.config am625_beagleplay_android_r5.config

for a53:
  defconfig: am62x_evm_a53_defconfig
  fragments: am625_beagleplay_a53.config
             am62x_android_a53.config
             am625_beagleplay_android_a53.config

Then run the usual build instructions applying the fragments:

  make $defconfig $fragments

Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2023-09-13 09:21:35 -05:00
Mattijs Korpershoek 8a4d0b598b environment: ti: mmc_android: relocate U-Boot environment
The U-Boot environment is stored at offset 0x680000 (6.5MB)

While this is fine for AM62x SK EVM (because its mmc0boot0 partition is 31.5MB),
this does won't work on the Beagle Play, which only has 4MB.

Booting Beagle Play shows:

 Loading Environment from MMC... MMC: block number 0x3500 exceeds max(0x2000)
 *** Warning - !read failed, using default environment

Move the U-boot environment at lba 0x800 on mmc0boot0.
This reserves 1MB so that tiboot3 to be on mmc0boot0 as well, which is the
case for BeaglePlay.

Also add a raw_partition label so that we can erase it with:

  fastboot erase bootenv

The boot0 partition now looks as:

    blk
             boot0 partition (31.5 MB)
    0x0+----------------------------------+
       |     empty (1 MB)                 |
  0x800+----------------------------------+
       |     environment (128 KB)         |
       |     padding     (384 KB)         |
  0xc00+----------------------------------+
       |                                  |
       |     Remaining space (30.0 MB)    |
 0xfc00+----------------------------------+

pick

Note:
      CONFIG_ENV_OFFSET is in bytes and fastboot_raw_* is in lba number.
      CONFIG_ENV_OFFSET=0x100000 -> lba 0x800
      env size + padding = 512KB -> length of 0x400 lbas

Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2023-09-13 09:21:35 -05:00
Mattijs Korpershoek 9f0d18e7f6 configs: am62x_android_a53.config: force ENV_IS_NOWHERE=n
When booting with a corrupt MMC environment, we can see:

  Loading Environment from MMC... *** Warning - bad CRC, using default environment
  Loading Environment from nowhere... OK

After that, saving does not work:

  => env default -a -f
  ## Resetting to default environment
  => saveenv
  Saving Environment to nowhere... not possible

This is because CONFIG_ENV_IS_NOWHERE=y is set in am62x in
am62x_evm_a53_defconfig and applying the am62x_android_53.config fragment does
not disable it.

Disable ENV_IS_NOWHERE explicitly so that => saveenv can repair broken environments.

Fixes: d5a7186e16 ("configs: am62x_android_a53.config: Store environment in MMC")
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Tested-by: Guillaume La Roque <glaroque@baylibre.com>
Reviewed-by: Guillaume La Roque <glaroque@baylibre.com>
2023-09-13 09:18:28 -05:00
Devarsh Thakkar e9f0e84341 configs: am65x_evm: Use envboot before distro_bootcmd
Use envboot cmd before issuring distro_bootcmd as otherwise
environment variables from uEnv.txt are not getting imported.

The commands after distro_bootcmd have no impact since board starts
booting after distro_bootcmd, so it need to run last after all
environment variables are configured correctly.

Fixes: bde6ac5490 ("configs: am65x_evm: Switch envboot out for distro_bootcmd")

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
2023-09-12 09:46:30 -05:00
Ravi Gunasekaran a64723b687 configs: am65x_evm_r5_usbmsc_defconfig: Enable DWC3 wrapper for SPL
commit 280f45d239 ("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: 280f45d239 ("configs: get rid of build warnings due to SPL_USB_DWC3_GENERIC")
Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
2023-09-11 17:22:06 +05:30
Nitin Yadav 68ff7809d0 configs: Add am62xsip_sk_r5.config defconfig fragment
Add config fragments for am62xsip_sk_r5.config R5 configuration.

Signed-off-by: Nitin Yadav <n-yadav@ti.com>
2023-08-30 08:46:57 -05:00
Judith Mendez 54fdddb32a configs: am65x: enable secure device configs by default
Enable the CONFIG_TI_SECURE_DEVICE by default.

Merge GP and HS configs.

Non-HS devices will continue to boot due to runtime device type detection.

TI's security enforcing SoCs will authenticate each binary it loads by
comparing it's signature with keys etched into the SoC during the boot
up process. The am65x family of SoCs by default will have some level of
security enforcement checking. To keep things as simple as possible,
enable the CONFIG_TI_SECURE_DEVICE options by default so all levels of
secure SoCs will work out of the box.

Signed-off-by: Judith Mendez <jm@ti.com>
Reviewed-by: Kamlesh Gurudasani <kamlesh@ti.com>
2023-08-29 16:44:04 -05:00
Nishanth Menon bbfd200c7f configs: Add j721e_beagleboneai64* defconfig fragments
Add config fragments for j721e_beaglebone-ai64 A72 and R5 configuration.

This applies on to:
j721e_evm_a72_defconfig -> j721e_beagleboneai64_a72.config
j721e_evm_r5_defconfig -> j721e_beagleboneai64_r5.config

The usage model (with the fragment) would be:
make ARCH=arm j721e_evm_a72_defconfig j721e_beagleboneai64_a72.config
make ARCH=arm

OR

make ARCH=arm j721e_evm_r5_defconfig j721e_beagleboneai64_r5.config
make ARCH=arm

Signed-off-by: Nishanth Menon <nm@ti.com>
2023-08-07 15:51:37 +05:30
Mattijs Korpershoek d5a7186e16 configs: am62x_android_a53.config: Store environment in MMC
The android boot flow allows users to pick custom device tree overlays
to be applied for additional peripheral support.

This is done via an environment variable named "dtbo_index".
For example:

  => env set dtbo_index 2
  => saveenv

Allow users to save the environment so that the dtbos are applied on
each reboot.

Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2023-07-17 15:15:46 -05:00
Mattijs Korpershoek ea6ec34a66 configs: Add am62x_android_53 defconfig fragment
The android boot flow is quite complex and adds a lot of new
environment variables a typical linux bootflow is not interested in.

Add a defconfig fragment to build bootloaders compatible with the
Android boot flow.

This applies on to:
am62x_evm_a53_defconfig / am62x_lpsk_a53_defconfig -> am62x_android_a53.config

The usage model (with the fragment) would be:
make ARCH=arm am62x_evm_a53_defconfig am62x_android_a53.config
make ARCH=arm

Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
2023-07-17 15:15:46 -05:00
Praneeth Bajjuri c14d557243 Revert "configs: am57xx_evm: Enable Android commands"
This reverts commit 7d9dbeafe6.

commit 7988f626336a ("common: avb_verify: Add CONFIG_AVB_PUBKEY_FILE to specify the root avb public key")
was introduced to support AVB on am62x android.

But this broke am57x builds.

Android on am57xx is not validated currently hence reverting the patch
till a right fix is identified that scales to all supported platforms.

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
Suggested-by: Andrew Davis <afd@ti.com>
2023-07-17 15:15:46 -05:00
Vaishnav Achath 756ba776d4 configs: j7*_evm_a72_defconfig: Enable DFU_ALT_INFO dynamic override
Enable CONFIG_SET_DFU_ALT_INFO for all J7 platforms, to set the
dfu_alt_info environment variable dynamically from a platform
specific override. For now, this is performed by fetching the
partition information from the device tree, dynamic dfu_alt_info
override is now supported only for `sf` devices.

Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-07-13 11:06:12 +05:30
Manorit Chawdhry 949e9cf709 configs: k3: Remove saved environments
Having saved environments usually causes inconsistencies while in
development workflow. The saved environments conflict with the
default ones that U-boot should be updating during development
but that doesn't happen and the saved environments need to be
reset during bootups to test the changes causing extra debugs.

Remove the saved environments as a default. Environments can always
be re-enabled locally if one does like them or needs them for
some production environment. Optionally, Uenv.txt can also be used on
some of the boot media.

Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
2023-07-07 10:46:27 +05:30
Kamlesh Gurudasani 24098ea90d configs: am64: Fix booting of fitImage on AM64x
fitImage needs to be processed by U-boot and not tifs.
Remove CONFIG_FIT_IMAGE_POST_PROCESS option.

Do not limit the maximum size of the buffer that is used to decompress
the OS image in to, this causes issue while inflating the image, if image
size is greater than the buffer.
Remove CONFIG_SYS_BOOTM_LEN

Signed-off-by: Kamlesh Gurudasani <kamlesh@ti.com>
2023-07-06 18:29:40 +05:30
Vignesh Raghavendra b94b8eb7a3 configs: am64x_evm_*_defconfig: Enable OSPI boot support
Add configs to support flashing/reading and booting from OSPI flashes.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
2023-07-06 18:29:24 +05:30
Roger Quadros 6636aa2132 configs: am64x_evm_a53_defconfig: Enable I2C GPIO drivers
We need the I2C GPIO drivers to detect expansion cards.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
2023-07-06 18:28:04 +05:30
Vaishnav Achath 9b0decf032 configs: j784s4_evm_*: Enable OSPI PHY support
Enable OSPI PHY support in SPL and U-Boot, this is necessary
for achieving higher transaction speeds(>25 MHz DDR) with OSPI.

Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-07-06 14:13:03 +05:30
Vaishnav Achath db59c2f153 configs: j721s2_evm_*: Enable OSPI PHY support
Enable OSPI PHY support in SPL and U-Boot, this is necessary
for achieving higher transaction speeds (>25 MHz DDR) with OSPI.

Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
2023-07-06 14:13:03 +05:30