mirror of
				https://source.denx.de/u-boot/u-boot.git
				synced 2025-10-31 08:21:36 +01:00 
			
		
		
		
	Merge branch '2023-03-27-rockchip-rk3399-fixes'
- A series of minor cleanups to DISTRO_DEFAULTS and BOOTSTD so that the rk3399 bootstd migration can be complete and functional now, and make future migrations easier.
This commit is contained in:
		
						commit
						aba0eb5b94
					
				
							
								
								
									
										27
									
								
								Kconfig
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								Kconfig
									
									
									
									
									
								
							| @ -191,33 +191,6 @@ config XEN | |||||||
| 
 | 
 | ||||||
| 	  [1] - https://xenproject.org/ | 	  [1] - https://xenproject.org/ | ||||||
| 
 | 
 | ||||||
| config DISTRO_DEFAULTS |  | ||||||
| 	bool "Select defaults suitable for booting general purpose Linux distributions" |  | ||||||
| 	select AUTO_COMPLETE |  | ||||||
| 	select CMDLINE_EDITING |  | ||||||
| 	select CMD_BOOTI if ARM64 |  | ||||||
| 	select CMD_BOOTZ if ARM && !ARM64 |  | ||||||
| 	select CMD_DHCP if CMD_NET |  | ||||||
| 	select CMD_ENV_EXISTS |  | ||||||
| 	select CMD_EXT2 |  | ||||||
| 	select CMD_EXT4 |  | ||||||
| 	select CMD_FAT |  | ||||||
| 	select CMD_FS_GENERIC |  | ||||||
| 	select CMD_PART if PARTITIONS |  | ||||||
| 	select CMD_PING if CMD_NET |  | ||||||
| 	select CMD_PXE if NET |  | ||||||
| 	select CMD_SYSBOOT |  | ||||||
| 	select ENV_VARS_UBOOT_CONFIG |  | ||||||
| 	select HUSH_PARSER |  | ||||||
| 	select SUPPORT_RAW_INITRD |  | ||||||
| 	select SYS_LONGHELP |  | ||||||
| 	imply CMD_MII if NET |  | ||||||
| 	imply USB_STORAGE |  | ||||||
| 	imply USE_BOOTCOMMAND |  | ||||||
| 	help |  | ||||||
| 	  Select this to enable various options and commands which are suitable |  | ||||||
| 	  for building u-boot for booting general purpose Linux distributions. |  | ||||||
| 
 |  | ||||||
| config ENV_VARS_UBOOT_CONFIG | config ENV_VARS_UBOOT_CONFIG | ||||||
| 	bool "Add arch, board, vendor and soc variables to default environment" | 	bool "Add arch, board, vendor and soc variables to default environment" | ||||||
| 	help | 	help | ||||||
|  | |||||||
| @ -1955,7 +1955,8 @@ config ARCH_ROCKCHIP | |||||||
| 	imply ADC | 	imply ADC | ||||||
| 	imply CMD_DM | 	imply CMD_DM | ||||||
| 	imply DEBUG_UART_BOARD_INIT | 	imply DEBUG_UART_BOARD_INIT | ||||||
| 	imply DISTRO_DEFAULTS | 	imply DISTRO_DEFAULTS if !ROCKCHIP_RK3399 | ||||||
|  | 	imply BOOTSTD_DEFAULTS if !DISTRO_DEFAULTS | ||||||
| 	imply FAT_WRITE | 	imply FAT_WRITE | ||||||
| 	imply SARADC_ROCKCHIP | 	imply SARADC_ROCKCHIP | ||||||
| 	imply SPL_SYSRESET | 	imply SPL_SYSRESET | ||||||
|  | |||||||
							
								
								
									
										58
									
								
								boot/Kconfig
									
									
									
									
									
								
							
							
						
						
									
										58
									
								
								boot/Kconfig
									
									
									
									
									
								
							| @ -350,6 +350,32 @@ config PXE_UTILS | |||||||
| 	help | 	help | ||||||
| 	  Utilities for parsing PXE file formats. | 	  Utilities for parsing PXE file formats. | ||||||
| 
 | 
 | ||||||
|  | config BOOT_DEFAULTS | ||||||
|  | 	bool  # Common defaults for standard boot and distroboot | ||||||
|  | 	imply USE_BOOTCOMMAND | ||||||
|  | 	select CMD_ENV_EXISTS | ||||||
|  | 	select CMD_EXT2 | ||||||
|  | 	select CMD_EXT4 | ||||||
|  | 	select CMD_FAT | ||||||
|  | 	select CMD_FS_GENERIC | ||||||
|  | 	select CMD_PART if PARTITIONS | ||||||
|  | 	select CMD_DHCP if CMD_NET | ||||||
|  | 	select CMD_PING if CMD_NET | ||||||
|  | 	select CMD_PXE if CMD_NET | ||||||
|  | 	select SUPPORT_RAW_INITRD | ||||||
|  | 	select ENV_VARS_UBOOT_CONFIG | ||||||
|  | 	select CMD_BOOTI if ARM64 | ||||||
|  | 	select CMD_BOOTZ if ARM && !ARM64 | ||||||
|  | 	imply CMD_MII if NET | ||||||
|  | 	imply USB_STORAGE | ||||||
|  | 	imply EFI_PARTITION | ||||||
|  | 	imply ISO_PARTITION | ||||||
|  | 	help | ||||||
|  | 	  These are not required but are commonly needed to support a good | ||||||
|  | 	  selection of booting methods. Enable this to improve the capability | ||||||
|  | 	  of U-Boot to boot various images. Currently much functionality is | ||||||
|  | 	  tied to enabling the command that exercises it. | ||||||
|  | 
 | ||||||
| config BOOTSTD | config BOOTSTD | ||||||
| 	bool "Standard boot support" | 	bool "Standard boot support" | ||||||
| 	default y | 	default y | ||||||
| @ -410,24 +436,7 @@ config BOOTSTD_DEFAULTS | |||||||
| 	bool "Select some common defaults for standard boot" | 	bool "Select some common defaults for standard boot" | ||||||
| 	depends on BOOTSTD | 	depends on BOOTSTD | ||||||
| 	imply USE_BOOTCOMMAND | 	imply USE_BOOTCOMMAND | ||||||
| 	# Bring in some defaults which are generally needed. Boards can drop | 	select BOOT_DEFAULTS | ||||||
| 	# these as needed to save code space. Bootstd does not generally require |  | ||||||
| 	# the commands themselves to be enabled, but this is how some of the |  | ||||||
| 	# functionality is controlled at present |  | ||||||
| 	imply CMD_EXT2 |  | ||||||
| 	imply CMD_EXT4 |  | ||||||
| 	imply CMD_FAT |  | ||||||
| 	imply CMD_FS_GENERIC |  | ||||||
| 	imply CMD_PART |  | ||||||
| 	imply CMD_DHCP if NET |  | ||||||
| 	imply CMD_MII if NET |  | ||||||
| 	imply CMD_PING if NET |  | ||||||
| 	imply CMD_PXE if NET |  | ||||||
| 	imply USB_STORAGE |  | ||||||
| 	imply SUPPORT_RAW_INITRD |  | ||||||
| 	imply ENV_VARS_UBOOT_CONFIG |  | ||||||
| 	imply EFI_PARTITION |  | ||||||
| 	imply ISO_PARTITION |  | ||||||
| 	help | 	help | ||||||
| 	  These are not required but are commonly needed to support a good | 	  These are not required but are commonly needed to support a good | ||||||
| 	  selection of booting methods. Enable this to improve the capability | 	  selection of booting methods. Enable this to improve the capability | ||||||
| @ -814,12 +823,25 @@ config SYS_BOOT_RAMDISK_HIGH | |||||||
| 	depends on CMD_BOOTM || CMD_BOOTI || CMD_BOOTZ | 	depends on CMD_BOOTM || CMD_BOOTI || CMD_BOOTZ | ||||||
| 	depends on !(NIOS2 || SANDBOX || SH || XTENSA) | 	depends on !(NIOS2 || SANDBOX || SH || XTENSA) | ||||||
| 	def_bool y | 	def_bool y | ||||||
|  | 	select LMB | ||||||
| 	help | 	help | ||||||
| 	  Enable initrd_high functionality.  If defined then the initrd_high | 	  Enable initrd_high functionality.  If defined then the initrd_high | ||||||
| 	  feature is enabled and the boot* ramdisk subcommand is enabled. | 	  feature is enabled and the boot* ramdisk subcommand is enabled. | ||||||
| 
 | 
 | ||||||
| endmenu		# Boot images | endmenu		# Boot images | ||||||
| 
 | 
 | ||||||
|  | config DISTRO_DEFAULTS | ||||||
|  | 	bool "Select defaults suitable for booting general purpose Linux distributions" | ||||||
|  | 	select BOOT_DEFAULTS | ||||||
|  | 	select AUTO_COMPLETE | ||||||
|  | 	select CMDLINE_EDITING | ||||||
|  | 	select CMD_SYSBOOT | ||||||
|  | 	select HUSH_PARSER | ||||||
|  | 	select SYS_LONGHELP | ||||||
|  | 	help | ||||||
|  | 	  Select this to enable various options and commands which are suitable | ||||||
|  | 	  for building u-boot for booting general purpose Linux distributions. | ||||||
|  | 
 | ||||||
| menu "Boot timing" | menu "Boot timing" | ||||||
| 
 | 
 | ||||||
| config BOOTSTAGE | config BOOTSTAGE | ||||||
|  | |||||||
| @ -13,7 +13,6 @@ CONFIG_DM_RESET=y | |||||||
| CONFIG_ROCKCHIP_RK3399=y | CONFIG_ROCKCHIP_RK3399=y | ||||||
| CONFIG_TARGET_ROCKPRO64_RK3399=y | CONFIG_TARGET_ROCKPRO64_RK3399=y | ||||||
| CONFIG_SPL_STACK=0x400000 | CONFIG_SPL_STACK=0x400000 | ||||||
| CONFIG_BOOTSTAGE_STASH_ADDR=0xff8e0000 |  | ||||||
| CONFIG_DEBUG_UART_BASE=0xFF1A0000 | CONFIG_DEBUG_UART_BASE=0xFF1A0000 | ||||||
| CONFIG_DEBUG_UART_CLOCK=24000000 | CONFIG_DEBUG_UART_CLOCK=24000000 | ||||||
| CONFIG_SPL_SPI_FLASH_SUPPORT=y | CONFIG_SPL_SPI_FLASH_SUPPORT=y | ||||||
| @ -21,11 +20,7 @@ CONFIG_SPL_SPI=y | |||||||
| CONFIG_SYS_LOAD_ADDR=0x800800 | CONFIG_SYS_LOAD_ADDR=0x800800 | ||||||
| CONFIG_DEBUG_UART=y | CONFIG_DEBUG_UART=y | ||||||
| CONFIG_BOOTSTAGE=y | CONFIG_BOOTSTAGE=y | ||||||
| CONFIG_SPL_BOOTSTAGE=y |  | ||||||
| CONFIG_TPL_BOOTSTAGE=y |  | ||||||
| CONFIG_BOOTSTAGE_REPORT=y | CONFIG_BOOTSTAGE_REPORT=y | ||||||
| CONFIG_SPL_BOOTSTAGE_RECORD_COUNT=10 |  | ||||||
| CONFIG_BOOTSTAGE_STASH=y |  | ||||||
| CONFIG_USE_PREBOOT=y | CONFIG_USE_PREBOOT=y | ||||||
| CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-rockpro64.dtb" | CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-rockpro64.dtb" | ||||||
| CONFIG_DISPLAY_BOARDINFO_LATE=y | CONFIG_DISPLAY_BOARDINFO_LATE=y | ||||||
|  | |||||||
| @ -52,10 +52,7 @@ | |||||||
| 	"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ | 	"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ | ||||||
| 	"partitions=" PARTS_DEFAULT \ | 	"partitions=" PARTS_DEFAULT \ | ||||||
| 	ROCKCHIP_DEVICE_SETTINGS \ | 	ROCKCHIP_DEVICE_SETTINGS \ | ||||||
| 	"boot_targets=" BOOT_TARGETS "\0" \ | 	"boot_targets=" BOOT_TARGETS "\0" | ||||||
| 	"altbootcmd=" \ |  | ||||||
| 		"setenv boot_syslinux_conf extlinux/extlinux-rollback.conf;" \ |  | ||||||
| 		"run distro_bootcmd\0" |  | ||||||
| 
 | 
 | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user