From abca947746063e53e3aeadd5b809b4a7be913acf Mon Sep 17 00:00:00 2001 From: Murali Karicheri Date: Wed, 9 Mar 2016 15:39:38 +0530 Subject: keystone2: env: add env script for booting with an initramfs with firmware This patch updates the env script to include a initramfs with firmware loaded and provided to kernel through second argument of bootz command during boot. Defined DEFAULT_FW_INITRAMFS_BOOT_ENV to have all of the required env variables and use it in evm specific config file. The K2 linux drivers for PCIe and NetCP (1G, 10G) requires serdes firmwares. These requires firmware to be available early through the boot process in some cases to satisfy firmware requests from driver. Hence use a small initramfs to provide the same and update boot env to accommodate this in the boot flow. This method is used when rootfs is nfs and ubifs. This fs contains just lib/firmware folder with all required firmware. When rootfs is on initramfs, then the filesystem has the firmware under lib/firmware and this early initramfs is not required and is not used. Signed-off-by: Murali Karicheri Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini --- include/configs/k2e_evm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/configs/k2e_evm.h') diff --git a/include/configs/k2e_evm.h b/include/configs/k2e_evm.h index e053a54d41..daf37f63f4 100644 --- a/include/configs/k2e_evm.h +++ b/include/configs/k2e_evm.h @@ -16,6 +16,7 @@ /* U-Boot general configuration */ #define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS \ + DEFAULT_FW_INITRAMFS_BOOT_ENV \ "addr_mon=0x0c140000\0" \ "args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs " \ "root=ubi0:rootfs rootflags=sync rw ubi.mtd=ubifs,2048\0" \ -- cgit v1.2.1