Commit Graph

9 Commits

Author SHA1 Message Date
Ricardo Pardini
3ac7c64d9e odroidhc4: bump to u-boot v2024.04; drop most defconfig patches in favor of hooks
- add `pre_config_uboot_target` hook for switching BOOTCONFIG across the two targets
  - adapt `UBOOT_TARGET_MAP` to not call the defconfig Makefile targets directly, instead, just do a variable assignment (ignored by Make)
  - otherwise, when using the defconfig directly in the `UBOOT_TARGET_MAP`, the `post_config_uboot_target` .config changes are overwritten when Make is called
- only patch left is boot usb-nvme-scsi/sata first (still done in meson64.h)
- remove FIP handling from family file `meson-sm1.conf` into board file hook where it belongs
- u-boot: enable more compression methods, EFI debugging, i2c, leds, tcp networking
- use flashcp for mtd writing

- Unchanged:
  - confirmed as of v2024.04: using the C4 (not HC4) defconfig is still needed to be able to write to mtd when booted from SD
  - also confirmed: one still needs to erase Petitboot using Petitboot, then boot from SD, to be able to flash mainline u-boot to mtd
2024-06-09 18:29:58 +02:00
Ricardo Pardini
8d426f6c29 rockpro64: bump u-boot to v2024.04-rc4; use binman-produced bins
- `mmc-sdhci-allow-disabling-sdma-in-spl.patch` has landed in 3cd664dc92
- remove `CONFIG_SPL_MMC_SDHCI_SDMA=n`, as fix has landed in 3b804b370d (thanks Kwiboo for the pointer)
- use binman-produced binaries
- use `flashcp -p` to write fast to spi
- bump ATF (TF-A) to lts-v2.8.16
- configure /etc/fw_env.config userspace to SPI env coordinates
  - configure /etc/fw_env.config userspace to SPI env coordinates
  - include libubootenv-tool userspace for fw_printenv and fw_setenv
- use `bs=32k seek=1` instead of `seek=64` suggested by Kwiboo (thanks!) for speedy writing
- add a check for the u-boot.bin size (992KiB) suggested by Kwiboo (thanks!)
  - really a close call: we're at 994.920 bytes right now

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
Co-authored-by: Jonas Karlman <jonas@kwiboo.se>
2024-03-30 12:17:39 +01:00
Ricardo Pardini
d6c1414d2f u-boot: rewrite/rebase u-boot patches for a few boards; drop long-forgotten old version patches; no actual changes
- I guess this is most of the u-boot's I've touched over the years; notable exception is the orangepi3b (patches live in Kwiboo's tree)
- this is in preparation for bumping versions, hopefully soon
- radxa-zero, radxa-zero2, khadas-vim3, khadas-vim3l: drop patches for old u-boot versions no longer used
2024-03-09 20:03:29 +01:00
Jihoon Han
4413601db2 odroidhc4: Fix u-boot not recognizing disks mounted in SATA ports during the boot process
Signed-off-by: Jihoon Han <rapid_renard@renard.kr>
2023-12-11 13:31:58 +01:00
Ricardo Pardini
ca7f437fb5 RFC: rockpro64: blobless with 2.8.5 ATF, 2023.01 u-boot
- `2023.04` fails during USB init, thus using 23.01 (23.07 untested)
- `blobless` with newer 2.8.5 ATF
- the previous problems with PCIe are _not_ totally solved by this
2023-07-12 12:28:48 +02:00
Ricardo Pardini
fbd169afb3 u-boot espressobin v23.01: fix defconfig patch so it applies 2023-06-13 19:32:35 +02:00
Neil Armstrong
7fea781425 Add support for BPI-CM4 with BPI-CM4IO
Add support for both the BananaPi BPI-CM4 module and the BananaPi
baseboard which is compatible with the RaspberryPi CM4IO baseboard.

The BananaPi BPI-CM4 module follows the CM4 specifications at [1],
but with a single HDMI port and a single DSI output.

The current CM4IO baseboard DT should work fine on the Raspberry CM4
baseboard and other derivatives baseboards, but proper DT should
be written for other baseboards.

The DT is imported from the submission done at [2] and applied
at [3], the u-boot support was submitted at [4].

[1] https://datasheets.raspberrypi.com/cm4io/cm4io-datasheet.pdf
[2] https://lore.kernel.org/all/20230303-topic-amlogic-upstream-bpi-cm4-v2-0-2ecfde76fc4d@linaro.org/
[3] https://git.kernel.org/amlogic/c/0262f2736978b1763363224698f47112a148dab0
[4] https://lore.kernel.org/all/20230307-u-boot-cm4-v1-0-43f5a393cd37@linaro.org/

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-03-13 13:55:15 -03:00
Derek LaHousse
3314bc9d66 update u-boot to 2023.01 for espressobin 2023-03-11 13:22:54 -03:00
Ricardo Pardini
4db330178f
odroidhc4: u-boot to 23.01; add HC4-SPI target preboot for USB; change HC4-SD target defconfig to new hc4_sd, similar to c4
- `odroidhc4`: pre-configure `fancontrol` so fans work right out of the box
2023-02-18 07:46:32 -03:00