mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Merge tag 'u-boot-amlogic-next-20241014' of https://source.denx.de/u-boot/custodians/u-boot-amlogic
- Add Libre Computer boards into proper libre-computer board directory - Add new Boards: - Libre Computer aml-s905d3-cc - Libre Computer aml-a311d-cc - Add capsule update to libretech-ac and the new boards since they have an onboard SPI nor flash - Fix HDMI support after sync to v6.11 and regulator enable from Marek - Fix khadas-vim3 android config for android-mainline kernel - Disable meson64 boot targets when configs are not eavailable
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
"name=dtbo_b,size=8M,uuid=${uuid_gpt_dtbo_b};" \
|
||||
"name=vbmeta_a,size=512K,uuid=${uuid_gpt_vbmeta_a};" \
|
||||
"name=vbmeta_b,size=512K,uuid=${uuid_gpt_vbmeta_b};" \
|
||||
"name=boot_a,size=32M,bootable,uuid=${uuid_gpt_boot_a};" \
|
||||
"name=boot_b,size=32M,bootable,uuid=${uuid_gpt_boot_b};" \
|
||||
"name=boot_a,size=64M,bootable,uuid=${uuid_gpt_boot_a};" \
|
||||
"name=boot_b,size=64M,bootable,uuid=${uuid_gpt_boot_b};" \
|
||||
"name=super,size=3072M,uuid=${uuid_gpt_super};" \
|
||||
"name=userdata,size=11282M,uuid=${uuid_gpt_userdata};" \
|
||||
"name=rootfs,size=-,uuid=" ROOT_UUID
|
||||
@@ -33,8 +33,8 @@
|
||||
"name=misc,size=512K,uuid=${uuid_gpt_misc};" \
|
||||
"name=dtbo,size=8M,uuid=${uuid_gpt_dtbo};" \
|
||||
"name=vbmeta,size=512K,uuid=${uuid_gpt_vbmeta};" \
|
||||
"name=boot,size=32M,bootable,uuid=${uuid_gpt_boot};" \
|
||||
"name=recovery,size=32M,uuid=${uuid_gpt_recovery};" \
|
||||
"name=boot,size=64M,bootable,uuid=${uuid_gpt_boot};" \
|
||||
"name=recovery,size=64M,uuid=${uuid_gpt_recovery};" \
|
||||
"name=cache,size=256M,uuid=${uuid_gpt_cache};" \
|
||||
"name=super,size=1792M,uuid=${uuid_gpt_super};" \
|
||||
"name=userdata,size=12786M,uuid=${uuid_gpt_userdata};" \
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
"name=dtbo_b,size=8M,uuid=${uuid_gpt_dtbo_b};" \
|
||||
"name=vbmeta_a,size=512K,uuid=${uuid_gpt_vbmeta_a};" \
|
||||
"name=vbmeta_b,size=512K,uuid=${uuid_gpt_vbmeta_b};" \
|
||||
"name=boot_a,size=32M,bootable,uuid=${uuid_gpt_boot_a};" \
|
||||
"name=boot_b,size=32M,bootable,uuid=${uuid_gpt_boot_b};" \
|
||||
"name=boot_a,size=64M,bootable,uuid=${uuid_gpt_boot_a};" \
|
||||
"name=boot_b,size=64M,bootable,uuid=${uuid_gpt_boot_b};" \
|
||||
"name=super,size=3072M,uuid=${uuid_gpt_super};" \
|
||||
"name=userdata,size=11282M,uuid=${uuid_gpt_userdata};" \
|
||||
"name=rootfs,size=-,uuid=" ROOT_UUID
|
||||
@@ -33,8 +33,8 @@
|
||||
"name=misc,size=512K,uuid=${uuid_gpt_misc};" \
|
||||
"name=dtbo,size=8M,uuid=${uuid_gpt_dtbo};" \
|
||||
"name=vbmeta,size=512K,uuid=${uuid_gpt_vbmeta};" \
|
||||
"name=boot,size=32M,bootable,uuid=${uuid_gpt_boot};" \
|
||||
"name=recovery,size=32M,uuid=${uuid_gpt_recovery};" \
|
||||
"name=boot,size=64M,bootable,uuid=${uuid_gpt_boot};" \
|
||||
"name=recovery,size=64M,uuid=${uuid_gpt_recovery};" \
|
||||
"name=cache,size=256M,uuid=${uuid_gpt_cache};" \
|
||||
"name=super,size=1792M,uuid=${uuid_gpt_super};" \
|
||||
"name=userdata,size=12786M,uuid=${uuid_gpt_userdata};" \
|
||||
|
||||
@@ -77,6 +77,15 @@
|
||||
#define BOOTENV_DEV_NAME_USB_DFU(devtypeu, devtypel, instance)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CMD_MMC
|
||||
#define BOOT_TARGET_MMC(func) \
|
||||
func(MMC, mmc, 0) \
|
||||
func(MMC, mmc, 1) \
|
||||
func(MMC, mmc, 2)
|
||||
#else
|
||||
#define BOOT_TARGET_MMC(func)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CMD_USB
|
||||
#define BOOT_TARGET_DEVICES_USB(func) func(USB, usb, 0)
|
||||
#else
|
||||
@@ -95,18 +104,27 @@
|
||||
#define BOOT_TARGET_SCSI(func)
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_CMD_DHCP) && defined(CONFIG_CMD_PXE)
|
||||
#define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
|
||||
#define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
|
||||
#elif defined(CONFIG_CMD_DHCP)
|
||||
#define BOOT_TARGET_PXE(func)
|
||||
#define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
|
||||
#else
|
||||
#define BOOT_TARGET_PXE(func)
|
||||
#define BOOT_TARGET_DHCP(func)
|
||||
#endif
|
||||
|
||||
#ifndef BOOT_TARGET_DEVICES
|
||||
#define BOOT_TARGET_DEVICES(func) \
|
||||
func(ROMUSB, romusb, na) \
|
||||
func(USB_DFU, usbdfu, na) \
|
||||
func(MMC, mmc, 0) \
|
||||
func(MMC, mmc, 1) \
|
||||
func(MMC, mmc, 2) \
|
||||
BOOT_TARGET_MMC(func) \
|
||||
BOOT_TARGET_DEVICES_USB(func) \
|
||||
BOOT_TARGET_NVME(func) \
|
||||
BOOT_TARGET_SCSI(func) \
|
||||
func(PXE, pxe, na) \
|
||||
func(DHCP, dhcp, na)
|
||||
BOOT_TARGET_PXE(func) \
|
||||
BOOT_TARGET_DHCP(func)
|
||||
#endif
|
||||
|
||||
#define BOOTM_SIZE __stringify(0x1700000)
|
||||
|
||||
@@ -116,31 +116,7 @@
|
||||
"fi; " \
|
||||
"abootimg get dtb --index=$dtb_index dtb_start dtb_size; " \
|
||||
"cp.b $dtb_start $fdt_addr_r $dtb_size; " \
|
||||
"fdt addr $fdt_addr_r 0x80000; " \
|
||||
"if test $board_name = sei510; then " \
|
||||
"echo \" Reading DTBO for sei510...\"; " \
|
||||
"setenv dtbo_index 0;" \
|
||||
"elif test $board_name = sei610; then " \
|
||||
"echo \" Reading DTBO for sei610...\"; " \
|
||||
"setenv dtbo_index 1;" \
|
||||
"elif test $board_name = vim3l; then " \
|
||||
"echo \" Reading DTBO for vim3l...\"; " \
|
||||
"setenv dtbo_index 2;" \
|
||||
"elif test $board_name = vim3; then " \
|
||||
"echo \" Reading DTBO for vim3...\"; " \
|
||||
"setenv dtbo_index 3;" \
|
||||
"else " \
|
||||
"echo Error: Android boot is not supported for $board_name; " \
|
||||
"exit; " \
|
||||
"fi; " \
|
||||
"part start mmc ${mmcdev} dtbo${slot_suffix} p_dtbo_start; " \
|
||||
"part size mmc ${mmcdev} dtbo${slot_suffix} p_dtbo_size; " \
|
||||
"mmc read ${dtboaddr} ${p_dtbo_start} ${p_dtbo_size}; " \
|
||||
"echo \" Applying DTBOs...\"; " \
|
||||
"adtimg addr $dtboaddr; " \
|
||||
"adtimg get dt --index=$dtbo_index dtbo0_addr; " \
|
||||
"fdt apply $dtbo0_addr;" \
|
||||
"setenv bootargs \"$bootargs androidboot.dtbo_idx=$dtbo_index \";"\
|
||||
"fdt addr $fdt_addr_r 0x80000; "
|
||||
|
||||
#define BOOT_CMD "bootm ${loadaddr} ${loadaddr} ${fdt_addr_r};"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user