* [U-Boot] [PATCH v8 1/7] arm: socfpga: add env settings to common header
2017-01-28 23:05 [U-Boot] [PATCH v8 0/7] arm: socfpga: update default u-boot environment Dalon Westergreen
@ 2017-01-28 23:05 ` Dalon Westergreen
2017-01-30 14:55 ` Alexander Graf
2017-01-28 23:05 ` [U-Boot] [PATCH v8 2/7] arm: socfpga: update de0 nano default environment Dalon Westergreen
` (5 subsequent siblings)
6 siblings, 1 reply; 14+ messages in thread
From: Dalon Westergreen @ 2017-01-28 23:05 UTC (permalink / raw)
To: u-boot
From: Dalon Westergreen <dalon.westergreen@intel.com>
Move repeated environment settings for socfpga boards
to a common header.
The default values for the boot partition and the
OS filesystem partition have changed and as
as result the default uboot environment for socfpga
boards needs updating.
Move to using CONFIG_DEFAULT_DEVICE_TREE for setting the
default linux devicetree used during linux boot.
Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
---
include/configs/socfpga_common.h | 35 +++++++++++++++++++++++++++++++++--
1 file changed, 33 insertions(+), 2 deletions(-)
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index 6285266..744aee9 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -312,10 +312,14 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
/* SPL SDMMC boot support */
#ifdef CONFIG_SPL_MMC_SUPPORT
#if defined(CONFIG_SPL_FAT_SUPPORT) || defined(CONFIG_SPL_EXT_SUPPORT)
-#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 2
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot-dtb.img"
+#ifdef CONFIG_SPL_FAT_SUPPORT
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
+#else
+#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 2
+#endif
#else
-#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 1
+#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 3
#endif
#endif
@@ -336,5 +340,32 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
* Stack setup
*/
#define CONFIG_SPL_STACK CONFIG_SYS_INIT_SP_ADDR
+
+/* Extra Environment */
+#ifndef CONFIG_EXTRA_ENV_SETTINGS
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ "verify=n\0" \
+ "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
+ "bootimage=" CONFIG_BOOTFILE "\0" \
+ "fdt_addr=100\0" \
+ "fdtimage=" CONFIG_DEFAULT_FDT_FILE "\0" \
+ "ramboot=setenv bootargs " CONFIG_BOOTARGS ";" \
+ "bootm ${loadaddr} - ${fdt_addr}\0" \
+ "mmcroot=/dev/mmcblk0p2\0" \
+ "mmcboot=setenv bootargs " CONFIG_BOOTARGS \
+ " root=${mmcroot} rw rootwait;" \
+ "bootz ${loadaddr} - ${fdt_addr}\0" \
+ "mmcload=mmc rescan;" \
+ "load mmc 0:1 ${loadaddr} ${bootimage};" \
+ "load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
+ "qspiload=sf probe && mtdparts default && run ubiload\0" \
+ "qspiboot=setenv bootargs " CONFIG_BOOTARGS \
+ " ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
+ "bootz ${loadaddr} - ${fdt_addr}\0" \
+ "ubiload=ubi part UBI && ubifsmount ubi0 && " \
+ "ubifsload ${loadaddr} /boot/${bootimage} && " \
+ "ubifsload ${fdt_addr} /boot/${fdtimage}\0"
+
+#endif
#endif /* __CONFIG_SOCFPGA_COMMON_H__ */
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [U-Boot] [PATCH v8 1/7] arm: socfpga: add env settings to common header
2017-01-28 23:05 ` [U-Boot] [PATCH v8 1/7] arm: socfpga: add env settings to common header Dalon Westergreen
@ 2017-01-30 14:55 ` Alexander Graf
2017-01-30 15:11 ` Dalon Westergreen
0 siblings, 1 reply; 14+ messages in thread
From: Alexander Graf @ 2017-01-30 14:55 UTC (permalink / raw)
To: u-boot
On 01/29/2017 12:05 AM, Dalon Westergreen wrote:
> From: Dalon Westergreen <dalon.westergreen@intel.com>
>
> Move repeated environment settings for socfpga boards
> to a common header.
>
> The default values for the boot partition and the
> OS filesystem partition have changed and as
> as result the default uboot environment for socfpga
> boards needs updating.
>
> Move to using CONFIG_DEFAULT_DEVICE_TREE for setting the
> default linux devicetree used during linux boot.
>
> Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
> ---
> include/configs/socfpga_common.h | 35 +++++++++++++++++++++++++++++++++--
> 1 file changed, 33 insertions(+), 2 deletions(-)
>
> diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
> index 6285266..744aee9 100644
> --- a/include/configs/socfpga_common.h
> +++ b/include/configs/socfpga_common.h
> @@ -312,10 +312,14 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
> /* SPL SDMMC boot support */
> #ifdef CONFIG_SPL_MMC_SUPPORT
> #if defined(CONFIG_SPL_FAT_SUPPORT) || defined(CONFIG_SPL_EXT_SUPPORT)
> -#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 2
> #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot-dtb.img"
> +#ifdef CONFIG_SPL_FAT_SUPPORT
> +#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
> +#else
> +#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 2
> +#endif
> #else
> -#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 1
> +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 3
> #endif
> #endif
>
> @@ -336,5 +340,32 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
> * Stack setup
> */
> #define CONFIG_SPL_STACK CONFIG_SYS_INIT_SP_ADDR
> +
> +/* Extra Environment */
> +#ifndef CONFIG_EXTRA_ENV_SETTINGS
> +#define CONFIG_EXTRA_ENV_SETTINGS \
> + "verify=n\0" \
> + "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
> + "bootimage=" CONFIG_BOOTFILE "\0" \
> + "fdt_addr=100\0" \
> + "fdtimage=" CONFIG_DEFAULT_FDT_FILE "\0" \
> + "ramboot=setenv bootargs " CONFIG_BOOTARGS ";" \
> + "bootm ${loadaddr} - ${fdt_addr}\0" \
> + "mmcroot=/dev/mmcblk0p2\0" \
> + "mmcboot=setenv bootargs " CONFIG_BOOTARGS \
> + " root=${mmcroot} rw rootwait;" \
> + "bootz ${loadaddr} - ${fdt_addr}\0" \
> + "mmcload=mmc rescan;" \
> + "load mmc 0:1 ${loadaddr} ${bootimage};" \
> + "load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
> + "qspiload=sf probe && mtdparts default && run ubiload\0" \
> + "qspiboot=setenv bootargs " CONFIG_BOOTARGS \
> + " ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
> + "bootz ${loadaddr} - ${fdt_addr}\0" \
> + "ubiload=ubi part UBI && ubifsmount ubi0 && " \
> + "ubifsload ${loadaddr} /boot/${bootimage} && " \
> + "ubifsload ${fdt_addr} /boot/${fdtimage}\0"
What is the default bootcmd with this environment? Also, keep in mind
that it's 2017. Is there any good reason not to default to distro boot?
Alex
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot] [PATCH v8 1/7] arm: socfpga: add env settings to common header
2017-01-30 14:55 ` Alexander Graf
@ 2017-01-30 15:11 ` Dalon Westergreen
2017-01-30 15:14 ` Alexander Graf
0 siblings, 1 reply; 14+ messages in thread
From: Dalon Westergreen @ 2017-01-30 15:11 UTC (permalink / raw)
To: u-boot
On Mon, 2017-01-30 at 15:55 +0100, Alexander Graf wrote:
> On 01/29/2017 12:05 AM, Dalon Westergreen wrote:
> >
> > From: Dalon Westergreen <dalon.westergreen@intel.com>
> >
> > Move repeated environment settings for socfpga boards
> > to a common header.
> >
> > The default values for the boot partition and the
> > OS filesystem partition have changed and as
> > as result the default uboot environment for socfpga
> > boards needs updating.
> >
> > Move to using??CONFIG_DEFAULT_DEVICE_TREE for setting the
> > default linux devicetree used during linux boot.
> >
> > Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
> > ---
> > ? include/configs/socfpga_common.h | 35 +++++++++++++++++++++++++++++++++--
> > ? 1 file changed, 33 insertions(+), 2 deletions(-)
> >
> > diff --git a/include/configs/socfpga_common.h
> > b/include/configs/socfpga_common.h
> > index 6285266..744aee9 100644
> > --- a/include/configs/socfpga_common.h
> > +++ b/include/configs/socfpga_common.h
> > @@ -312,10 +312,14 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
> > ? /* SPL SDMMC boot support */
> > ? #ifdef CONFIG_SPL_MMC_SUPPORT
> > ? #if defined(CONFIG_SPL_FAT_SUPPORT) || defined(CONFIG_SPL_EXT_SUPPORT)
> > -#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 2
> > ? #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot-dtb.img"
> > +#ifdef CONFIG_SPL_FAT_SUPPORT
> > +#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
> > +#else
> > +#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 2
> > +#endif
> > ? #else
> > -#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 1
> > +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 3
> > ? #endif
> > ? #endif
> > ??
> > @@ -336,5 +340,32 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
> > ???* Stack setup
> > ???*/
> > ? #define CONFIG_SPL_STACK CONFIG_SYS_INIT_SP_ADDR
> > +
> > +/* Extra Environment */
> > +#ifndef CONFIG_EXTRA_ENV_SETTINGS
> > +#define CONFIG_EXTRA_ENV_SETTINGS \
> > + "verify=n\0" \
> > + "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
> > + "bootimage=" CONFIG_BOOTFILE "\0" \
> > + "fdt_addr=100\0" \
> > + "fdtimage=" CONFIG_DEFAULT_FDT_FILE "\0" \
> > + "ramboot=setenv bootargs " CONFIG_BOOTARGS ";" \
> > + "bootm ${loadaddr} - ${fdt_addr}\0" \
> > + "mmcroot=/dev/mmcblk0p2\0" \
> > + "mmcboot=setenv bootargs " CONFIG_BOOTARGS \
> > + " root=${mmcroot} rw rootwait;" \
> > + "bootz ${loadaddr} - ${fdt_addr}\0" \
> > + "mmcload=mmc rescan;" \
> > + "load mmc 0:1 ${loadaddr} ${bootimage};" \
> > + "load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
> > + "qspiload=sf probe && mtdparts default && run ubiload\0" \
> > + "qspiboot=setenv bootargs " CONFIG_BOOTARGS \
> > + " ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
> > + "bootz ${loadaddr} - ${fdt_addr}\0" \
> > + "ubiload=ubi part UBI && ubifsmount ubi0 && " \
> > + "ubifsload ${loadaddr} /boot/${bootimage} && " \
> > + "ubifsload ${fdt_addr} /boot/${fdtimage}\0"
>
> What is the default bootcmd with this environment? Also, keep in mind?
> that it's 2017. Is there any good reason not to default to distro boot?
>
>
> Alex
>
The default is board dependent, but in general is mmcboot. there is no
good reason to not use distro boot. ?Frank Kunz submitted something
to that end for one of these boards the other day. ?once the?
environment common, we will move to distro boot.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot] [PATCH v8 1/7] arm: socfpga: add env settings to common header
2017-01-30 15:11 ` Dalon Westergreen
@ 2017-01-30 15:14 ` Alexander Graf
0 siblings, 0 replies; 14+ messages in thread
From: Alexander Graf @ 2017-01-30 15:14 UTC (permalink / raw)
To: u-boot
On 01/30/2017 04:11 PM, Dalon Westergreen wrote:
> On Mon, 2017-01-30 at 15:55 +0100, Alexander Graf wrote:
>> On 01/29/2017 12:05 AM, Dalon Westergreen wrote:
>>> From: Dalon Westergreen <dalon.westergreen@intel.com>
>>>
>>> Move repeated environment settings for socfpga boards
>>> to a common header.
>>>
>>> The default values for the boot partition and the
>>> OS filesystem partition have changed and as
>>> as result the default uboot environment for socfpga
>>> boards needs updating.
>>>
>>> Move to using CONFIG_DEFAULT_DEVICE_TREE for setting the
>>> default linux devicetree used during linux boot.
>>>
>>> Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
>>> ---
>>> include/configs/socfpga_common.h | 35 +++++++++++++++++++++++++++++++++--
>>> 1 file changed, 33 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/include/configs/socfpga_common.h
>>> b/include/configs/socfpga_common.h
>>> index 6285266..744aee9 100644
>>> --- a/include/configs/socfpga_common.h
>>> +++ b/include/configs/socfpga_common.h
>>> @@ -312,10 +312,14 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
>>> /* SPL SDMMC boot support */
>>> #ifdef CONFIG_SPL_MMC_SUPPORT
>>> #if defined(CONFIG_SPL_FAT_SUPPORT) || defined(CONFIG_SPL_EXT_SUPPORT)
>>> -#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 2
>>> #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot-dtb.img"
>>> +#ifdef CONFIG_SPL_FAT_SUPPORT
>>> +#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
>>> +#else
>>> +#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 2
>>> +#endif
>>> #else
>>> -#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 1
>>> +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 3
>>> #endif
>>> #endif
>>>
>>> @@ -336,5 +340,32 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
>>> * Stack setup
>>> */
>>> #define CONFIG_SPL_STACK CONFIG_SYS_INIT_SP_ADDR
>>> +
>>> +/* Extra Environment */
>>> +#ifndef CONFIG_EXTRA_ENV_SETTINGS
>>> +#define CONFIG_EXTRA_ENV_SETTINGS \
>>> + "verify=n\0" \
>>> + "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
>>> + "bootimage=" CONFIG_BOOTFILE "\0" \
>>> + "fdt_addr=100\0" \
>>> + "fdtimage=" CONFIG_DEFAULT_FDT_FILE "\0" \
>>> + "ramboot=setenv bootargs " CONFIG_BOOTARGS ";" \
>>> + "bootm ${loadaddr} - ${fdt_addr}\0" \
>>> + "mmcroot=/dev/mmcblk0p2\0" \
>>> + "mmcboot=setenv bootargs " CONFIG_BOOTARGS \
>>> + " root=${mmcroot} rw rootwait;" \
>>> + "bootz ${loadaddr} - ${fdt_addr}\0" \
>>> + "mmcload=mmc rescan;" \
>>> + "load mmc 0:1 ${loadaddr} ${bootimage};" \
>>> + "load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
>>> + "qspiload=sf probe && mtdparts default && run ubiload\0" \
>>> + "qspiboot=setenv bootargs " CONFIG_BOOTARGS \
>>> + " ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
>>> + "bootz ${loadaddr} - ${fdt_addr}\0" \
>>> + "ubiload=ubi part UBI && ubifsmount ubi0 && " \
>>> + "ubifsload ${loadaddr} /boot/${bootimage} && " \
>>> + "ubifsload ${fdt_addr} /boot/${fdtimage}\0"
>> What is the default bootcmd with this environment? Also, keep in mind
>> that it's 2017. Is there any good reason not to default to distro boot?
>>
>>
>> Alex
>>
> The default is board dependent, but in general is mmcboot. there is no
> good reason to not use distro boot. Frank Kunz submitted something
> to that end for one of these boards the other day. once the
> environment common, we will move to distro boot.
Ok, that sounds like a reasonable plan to me :)
Alex
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot] [PATCH v8 2/7] arm: socfpga: update de0 nano default environment
2017-01-28 23:05 [U-Boot] [PATCH v8 0/7] arm: socfpga: update default u-boot environment Dalon Westergreen
2017-01-28 23:05 ` [U-Boot] [PATCH v8 1/7] arm: socfpga: add env settings to common header Dalon Westergreen
@ 2017-01-28 23:05 ` Dalon Westergreen
2017-01-30 15:04 ` Alexander Graf
2017-01-28 23:05 ` [U-Boot] [PATCH v8 3/7] arm: socfpga: update cyclone5 socdk " Dalon Westergreen
` (4 subsequent siblings)
6 siblings, 1 reply; 14+ messages in thread
From: Dalon Westergreen @ 2017-01-28 23:05 UTC (permalink / raw)
To: u-boot
From: Dalon Westergreen <dalon.westergreen@intel.com>
Remove the default environment as it is now in a common
header.
Add the CONFIG_DEFAULT_DEVICE_TREE to the board's defconfig
to set the linux devicetree name.
Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
Acked-by: Marek Vasut <marex@denx.de>
---
configs/socfpga_de0_nano_soc_defconfig | 3 +--
include/configs/socfpga_common.h | 2 +-
include/configs/socfpga_de0_nano_soc.h | 19 +------------------
3 files changed, 3 insertions(+), 21 deletions(-)
diff --git a/configs/socfpga_de0_nano_soc_defconfig b/configs/socfpga_de0_nano_soc_defconfig
index af41e1e..4837809 100644
--- a/configs/socfpga_de0_nano_soc_defconfig
+++ b/configs/socfpga_de0_nano_soc_defconfig
@@ -4,6 +4,7 @@ CONFIG_SYS_MALLOC_F_LEN=0x2000
CONFIG_TARGET_SOCFPGA_TERASIC_DE0_NANO=y
CONFIG_SPL_STACK_R_ADDR=0x00800000
CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_de0_nano_soc"
+CONFIG_DEFAULT_FDT_FILE="socfpga_cyclone5_de0_sockit.dtb"
CONFIG_FIT=y
CONFIG_SYS_CONSOLE_IS_IN_ENV=y
CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
@@ -20,7 +21,6 @@ CONFIG_CMD_ASKENV=y
CONFIG_CMD_GREPENV=y
# CONFIG_CMD_FLASH is not set
CONFIG_CMD_MMC=y
-CONFIG_CMD_SF=y
CONFIG_CMD_SPI=y
CONFIG_CMD_I2C=y
CONFIG_CMD_USB=y
@@ -35,7 +35,6 @@ CONFIG_CMD_EXT4=y
CONFIG_CMD_EXT4_WRITE=y
CONFIG_CMD_FAT=y
CONFIG_CMD_FS_GENERIC=y
-CONFIG_CMD_UBI=y
CONFIG_SPL_DM=y
CONFIG_DFU_MMC=y
CONFIG_DM_GPIO=y
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index 744aee9..ed6d8ea 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -319,7 +319,7 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 2
#endif
#else
-#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 3
+#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 1
#endif
#endif
diff --git a/include/configs/socfpga_de0_nano_soc.h b/include/configs/socfpga_de0_nano_soc.h
index 6b9546e..97216ea 100644
--- a/include/configs/socfpga_de0_nano_soc.h
+++ b/include/configs/socfpga_de0_nano_soc.h
@@ -18,7 +18,7 @@
#define PHYS_SDRAM_1_SIZE 0x40000000 /* 1GiB */
/* Booting Linux */
-#define CONFIG_BOOTFILE "fitImage"
+#define CONFIG_BOOTFILE "zImage"
#define CONFIG_BOOTARGS "console=ttyS0," __stringify(CONFIG_BAUDRATE)
#define CONFIG_BOOTCOMMAND "run mmcload; run mmcboot"
#define CONFIG_LOADADDR 0x01000000
@@ -32,23 +32,6 @@
#define CONFIG_ENV_IS_IN_MMC
-/* Extra Environment */
-#define CONFIG_EXTRA_ENV_SETTINGS \
- "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
- "ramboot=setenv bootargs " CONFIG_BOOTARGS ";" \
- "bootm ${loadaddr} - ${fdt_addr}\0" \
- "bootimage=zImage\0" \
- "fdt_addr=100\0" \
- "fdtimage=socfpga.dtb\0" \
- "bootm ${loadaddr} - ${fdt_addr}\0" \
- "mmcroot=/dev/mmcblk0p2\0" \
- "mmcboot=setenv bootargs " CONFIG_BOOTARGS \
- " root=${mmcroot} rw rootwait;" \
- "bootz ${loadaddr} - ${fdt_addr}\0" \
- "mmcload=mmc rescan;" \
- "load mmc 0:1 ${loadaddr} ${bootimage};" \
- "load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
-
/* The rest of the configuration is shared */
#include <configs/socfpga_common.h>
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [U-Boot] [PATCH v8 2/7] arm: socfpga: update de0 nano default environment
2017-01-28 23:05 ` [U-Boot] [PATCH v8 2/7] arm: socfpga: update de0 nano default environment Dalon Westergreen
@ 2017-01-30 15:04 ` Alexander Graf
0 siblings, 0 replies; 14+ messages in thread
From: Alexander Graf @ 2017-01-30 15:04 UTC (permalink / raw)
To: u-boot
On 01/29/2017 12:05 AM, Dalon Westergreen wrote:
> From: Dalon Westergreen <dalon.westergreen@intel.com>
>
> Remove the default environment as it is now in a common
> header.
>
> Add the CONFIG_DEFAULT_DEVICE_TREE to the board's defconfig
> to set the linux devicetree name.
>
> Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
> Acked-by: Marek Vasut <marex@denx.de>
> ---
> configs/socfpga_de0_nano_soc_defconfig | 3 +--
> include/configs/socfpga_common.h | 2 +-
> include/configs/socfpga_de0_nano_soc.h | 19 +------------------
> 3 files changed, 3 insertions(+), 21 deletions(-)
>
> diff --git a/configs/socfpga_de0_nano_soc_defconfig b/configs/socfpga_de0_nano_soc_defconfig
> index af41e1e..4837809 100644
> --- a/configs/socfpga_de0_nano_soc_defconfig
> +++ b/configs/socfpga_de0_nano_soc_defconfig
> @@ -4,6 +4,7 @@ CONFIG_SYS_MALLOC_F_LEN=0x2000
> CONFIG_TARGET_SOCFPGA_TERASIC_DE0_NANO=y
> CONFIG_SPL_STACK_R_ADDR=0x00800000
> CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_de0_nano_soc"
> +CONFIG_DEFAULT_FDT_FILE="socfpga_cyclone5_de0_sockit.dtb"
> CONFIG_FIT=y
> CONFIG_SYS_CONSOLE_IS_IN_ENV=y
> CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
> @@ -20,7 +21,6 @@ CONFIG_CMD_ASKENV=y
> CONFIG_CMD_GREPENV=y
> # CONFIG_CMD_FLASH is not set
> CONFIG_CMD_MMC=y
> -CONFIG_CMD_SF=y
This change is not mentioned in teh change log?
> CONFIG_CMD_SPI=y
> CONFIG_CMD_I2C=y
> CONFIG_CMD_USB=y
> @@ -35,7 +35,6 @@ CONFIG_CMD_EXT4=y
> CONFIG_CMD_EXT4_WRITE=y
> CONFIG_CMD_FAT=y
> CONFIG_CMD_FS_GENERIC=y
> -CONFIG_CMD_UBI=y
Neither is this.
> CONFIG_SPL_DM=y
> CONFIG_DFU_MMC=y
> CONFIG_DM_GPIO=y
> diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
> index 744aee9..ed6d8ea 100644
> --- a/include/configs/socfpga_common.h
> +++ b/include/configs/socfpga_common.h
> @@ -319,7 +319,7 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
> #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 2
> #endif
> #else
> -#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 3
> +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION 1
> #endif
> #endif
>
> diff --git a/include/configs/socfpga_de0_nano_soc.h b/include/configs/socfpga_de0_nano_soc.h
> index 6b9546e..97216ea 100644
> --- a/include/configs/socfpga_de0_nano_soc.h
> +++ b/include/configs/socfpga_de0_nano_soc.h
> @@ -18,7 +18,7 @@
> #define PHYS_SDRAM_1_SIZE 0x40000000 /* 1GiB */
>
> /* Booting Linux */
> -#define CONFIG_BOOTFILE "fitImage"
> +#define CONFIG_BOOTFILE "zImage"
> #define CONFIG_BOOTARGS "console=ttyS0," __stringify(CONFIG_BAUDRATE)
> #define CONFIG_BOOTCOMMAND "run mmcload; run mmcboot"
... oh, I see. So the default boot command is defined per-target rather
than generically.
Loading a predefined file name (usually also + initrd file) + dtb file
from mmc sounds like something that would be generically useful to
boards that want to support legacy boot paths. Take a look at the
SCAN_DEV_FOR_EFI define in include/config_distro_bootcmd.h. Something
along those lines to replace mmcload/mmcboot should work for you, right?
That way your boot script would search for legacy boot options as well
as fancy awesome state-of-the-art extlinux/efi ones.
Alex
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot] [PATCH v8 3/7] arm: socfpga: update cyclone5 socdk default environment
2017-01-28 23:05 [U-Boot] [PATCH v8 0/7] arm: socfpga: update default u-boot environment Dalon Westergreen
2017-01-28 23:05 ` [U-Boot] [PATCH v8 1/7] arm: socfpga: add env settings to common header Dalon Westergreen
2017-01-28 23:05 ` [U-Boot] [PATCH v8 2/7] arm: socfpga: update de0 nano default environment Dalon Westergreen
@ 2017-01-28 23:05 ` Dalon Westergreen
2017-01-28 23:05 ` [U-Boot] [PATCH v8 4/7] arm: socfpga: update arria5 " Dalon Westergreen
` (3 subsequent siblings)
6 siblings, 0 replies; 14+ messages in thread
From: Dalon Westergreen @ 2017-01-28 23:05 UTC (permalink / raw)
To: u-boot
From: Dalon Westergreen <dalon.westergreen@intel.com>
Remove the default environment as it is now in a common
header.
Add the CONFIG_DEFAULT_DEVICE_TREE to the board's defconfig
to set the linux devicetree name.
Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
---
configs/socfpga_cyclone5_defconfig | 1 +
include/configs/socfpga_cyclone5_socdk.h | 25 -------------------------
2 files changed, 1 insertion(+), 25 deletions(-)
diff --git a/configs/socfpga_cyclone5_defconfig b/configs/socfpga_cyclone5_defconfig
index 8b050b9..cba1e9c 100644
--- a/configs/socfpga_cyclone5_defconfig
+++ b/configs/socfpga_cyclone5_defconfig
@@ -4,6 +4,7 @@ CONFIG_SYS_MALLOC_F_LEN=0x2000
CONFIG_TARGET_SOCFPGA_CYCLONE5_SOCDK=y
CONFIG_SPL_STACK_R_ADDR=0x00800000
CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_socdk"
+CONFIG_DEFAULT_FDT_FILE="socfpga_cyclone5_socdk.dtb"
CONFIG_FIT=y
CONFIG_SYS_CONSOLE_IS_IN_ENV=y
CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
diff --git a/include/configs/socfpga_cyclone5_socdk.h b/include/configs/socfpga_cyclone5_socdk.h
index 7ced6a6..96b2b87 100644
--- a/include/configs/socfpga_cyclone5_socdk.h
+++ b/include/configs/socfpga_cyclone5_socdk.h
@@ -36,31 +36,6 @@
#define CONFIG_ENV_IS_IN_MMC
-/* Extra Environment */
-#define CONFIG_EXTRA_ENV_SETTINGS \
- "verify=n\0" \
- "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
- "ramboot=setenv bootargs " CONFIG_BOOTARGS ";" \
- "bootm ${loadaddr} - ${fdt_addr}\0" \
- "bootimage=zImage\0" \
- "fdt_addr=100\0" \
- "fdtimage=socfpga.dtb\0" \
- "bootm ${loadaddr} - ${fdt_addr}\0" \
- "mmcroot=/dev/mmcblk0p2\0" \
- "mmcboot=setenv bootargs " CONFIG_BOOTARGS \
- " root=${mmcroot} rw rootwait;" \
- "bootz ${loadaddr} - ${fdt_addr}\0" \
- "mmcload=mmc rescan;" \
- "load mmc 0:1 ${loadaddr} ${bootimage};" \
- "load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
- "qspiload=sf probe && mtdparts default && run ubiload\0" \
- "qspiboot=setenv bootargs " CONFIG_BOOTARGS \
- " ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
- "bootz ${loadaddr} - ${fdt_addr}\0" \
- "ubiload=ubi part UBI && ubifsmount ubi0 && " \
- "ubifsload ${loadaddr} /boot/${bootimage} && " \
- "ubifsload ${fdt_addr} /boot/${fdtimage}\0"
-
/* The rest of the configuration is shared */
#include <configs/socfpga_common.h>
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [U-Boot] [PATCH v8 4/7] arm: socfpga: update arria5 socdk default environment
2017-01-28 23:05 [U-Boot] [PATCH v8 0/7] arm: socfpga: update default u-boot environment Dalon Westergreen
` (2 preceding siblings ...)
2017-01-28 23:05 ` [U-Boot] [PATCH v8 3/7] arm: socfpga: update cyclone5 socdk " Dalon Westergreen
@ 2017-01-28 23:05 ` Dalon Westergreen
2017-01-28 23:05 ` [U-Boot] [PATCH v8 5/7] arm: socfpga: Update DE1 environment Dalon Westergreen
` (2 subsequent siblings)
6 siblings, 0 replies; 14+ messages in thread
From: Dalon Westergreen @ 2017-01-28 23:05 UTC (permalink / raw)
To: u-boot
From: Dalon Westergreen <dalon.westergreen@intel.com>
Remove the default environment as it is now in a common
header.
Add the CONFIG_DEFAULT_DEVICE_TREE to the board's defconfig
to set the linux devicetree name.
Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
---
configs/socfpga_arria5_defconfig | 1 +
include/configs/socfpga_arria5_socdk.h | 25 -------------------------
2 files changed, 1 insertion(+), 25 deletions(-)
diff --git a/configs/socfpga_arria5_defconfig b/configs/socfpga_arria5_defconfig
index 43c51fe..6a473a9 100644
--- a/configs/socfpga_arria5_defconfig
+++ b/configs/socfpga_arria5_defconfig
@@ -4,6 +4,7 @@ CONFIG_SYS_MALLOC_F_LEN=0x2000
CONFIG_TARGET_SOCFPGA_ARRIA5_SOCDK=y
CONFIG_SPL_STACK_R_ADDR=0x00800000
CONFIG_DEFAULT_DEVICE_TREE="socfpga_arria5_socdk"
+CONFIG_DEFAULT_FDT_FILE="socfpga_arria5_socdk.dtb"
CONFIG_FIT=y
CONFIG_SYS_CONSOLE_IS_IN_ENV=y
CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
diff --git a/include/configs/socfpga_arria5_socdk.h b/include/configs/socfpga_arria5_socdk.h
index 3b0b416..481a032 100644
--- a/include/configs/socfpga_arria5_socdk.h
+++ b/include/configs/socfpga_arria5_socdk.h
@@ -36,31 +36,6 @@
#define CONFIG_ENV_IS_IN_MMC
-/* Extra Environment */
-#define CONFIG_EXTRA_ENV_SETTINGS \
- "verify=n\0" \
- "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
- "ramboot=setenv bootargs " CONFIG_BOOTARGS ";" \
- "bootm ${loadaddr} - ${fdt_addr}\0" \
- "bootimage=zImage\0" \
- "fdt_addr=100\0" \
- "fdtimage=socfpga.dtb\0" \
- "bootm ${loadaddr} - ${fdt_addr}\0" \
- "mmcroot=/dev/mmcblk0p2\0" \
- "mmcboot=setenv bootargs " CONFIG_BOOTARGS \
- " root=${mmcroot} rw rootwait;" \
- "bootz ${loadaddr} - ${fdt_addr}\0" \
- "mmcload=mmc rescan;" \
- "load mmc 0:1 ${loadaddr} ${bootimage};" \
- "load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
- "qspiload=sf probe && mtdparts default && run ubiload\0" \
- "qspiboot=setenv bootargs " CONFIG_BOOTARGS \
- " ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
- "bootz ${loadaddr} - ${fdt_addr}\0" \
- "ubiload=ubi part UBI && ubifsmount ubi0 && " \
- "ubifsload ${loadaddr} /boot/${bootimage} && " \
- "ubifsload ${fdt_addr} /boot/${fdtimage}\0"
-
/* The rest of the configuration is shared */
#include <configs/socfpga_common.h>
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [U-Boot] [PATCH v8 5/7] arm: socfpga: Update DE1 environment
2017-01-28 23:05 [U-Boot] [PATCH v8 0/7] arm: socfpga: update default u-boot environment Dalon Westergreen
` (3 preceding siblings ...)
2017-01-28 23:05 ` [U-Boot] [PATCH v8 4/7] arm: socfpga: update arria5 " Dalon Westergreen
@ 2017-01-28 23:05 ` Dalon Westergreen
2017-01-30 15:07 ` Alexander Graf
2017-01-28 23:05 ` [U-Boot] [PATCH v8 6/7] arm: socfpga: Update SoCKit environment Dalon Westergreen
2017-01-28 23:05 ` [U-Boot] [PATCH v8 7/7] arm: socfpga: Update sr1500 environment Dalon Westergreen
6 siblings, 1 reply; 14+ messages in thread
From: Dalon Westergreen @ 2017-01-28 23:05 UTC (permalink / raw)
To: u-boot
From: Dalon Westergreen <dalon.westergreen@intel.com>
Remove the default environment as it is now in a common
header.
Add the CONFIG_DEFAULT_DEVICE_TREE to the board's defconfig
to set the linux devicetree name.
Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
---
configs/socfpga_de1_soc_defconfig | 1 +
include/configs/socfpga_de1_soc.h | 19 +------------------
2 files changed, 2 insertions(+), 18 deletions(-)
diff --git a/configs/socfpga_de1_soc_defconfig b/configs/socfpga_de1_soc_defconfig
index 032deef..d78e8a1 100644
--- a/configs/socfpga_de1_soc_defconfig
+++ b/configs/socfpga_de1_soc_defconfig
@@ -6,6 +6,7 @@ CONFIG_TARGET_SOCFPGA_TERASIC_DE1_SOC=y
CONFIG_SPL_STACK_R_ADDR=0x00800000
CONFIG_SPL_YMODEM_SUPPORT=y
CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_de1_soc"
+CONFIG_DEFAULT_FDT_FILE="socfpga_cyclone5_de1_soc.dtb"
CONFIG_FIT=y
CONFIG_SYS_CONSOLE_IS_IN_ENV=y
CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
diff --git a/include/configs/socfpga_de1_soc.h b/include/configs/socfpga_de1_soc.h
index deec647..3142bd1 100644
--- a/include/configs/socfpga_de1_soc.h
+++ b/include/configs/socfpga_de1_soc.h
@@ -18,7 +18,7 @@
#define PHYS_SDRAM_1_SIZE 0x40000000 /* 1GiB */
/* Booting Linux */
-#define CONFIG_BOOTFILE "fitImage"
+#define CONFIG_BOOTFILE "zImage"
#define CONFIG_BOOTARGS "console=ttyS0," __stringify(CONFIG_BAUDRATE)
#define CONFIG_BOOTCOMMAND "run mmcload; run mmcboot"
#define CONFIG_LOADADDR 0x01000000
@@ -32,23 +32,6 @@
#define CONFIG_ENV_IS_IN_MMC
-/* Extra Environment */
-#define CONFIG_EXTRA_ENV_SETTINGS \
- "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
- "ramboot=setenv bootargs " CONFIG_BOOTARGS ";" \
- "bootm ${loadaddr} - ${fdtaddr}\0" \
- "bootimage=zImage\0" \
- "fdtaddr=100\0" \
- "fdtimage=socfpga.dtb\0" \
- "bootm ${loadaddr} - ${fdtaddr}\0" \
- "mmcroot=/dev/mmcblk0p2\0" \
- "mmcboot=setenv bootargs " CONFIG_BOOTARGS \
- " root=${mmcroot} rw rootwait;" \
- "bootz ${loadaddr} - ${fdtaddr}\0" \
- "mmcload=mmc rescan;" \
- "load mmc 0:1 ${loadaddr} ${bootimage};" \
- "load mmc 0:1 ${fdtaddr} ${fdtimage}\0" \
-
/* The rest of the configuration is shared */
#include <configs/socfpga_common.h>
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [U-Boot] [PATCH v8 5/7] arm: socfpga: Update DE1 environment
2017-01-28 23:05 ` [U-Boot] [PATCH v8 5/7] arm: socfpga: Update DE1 environment Dalon Westergreen
@ 2017-01-30 15:07 ` Alexander Graf
2017-01-30 15:17 ` Westergreen, Dalon
0 siblings, 1 reply; 14+ messages in thread
From: Alexander Graf @ 2017-01-30 15:07 UTC (permalink / raw)
To: u-boot
On 01/29/2017 12:05 AM, Dalon Westergreen wrote:
> From: Dalon Westergreen <dalon.westergreen@intel.com>
>
> Remove the default environment as it is now in a common
> header.
>
> Add the CONFIG_DEFAULT_DEVICE_TREE to the board's defconfig
> to set the linux devicetree name.
>
> Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
> Acked-by: Marek Vasut <marex@denx.de>
> Acked-by: Dinh Nguyen <dinguyen@kernel.org>
> ---
> configs/socfpga_de1_soc_defconfig | 1 +
> include/configs/socfpga_de1_soc.h | 19 +------------------
> 2 files changed, 2 insertions(+), 18 deletions(-)
>
> diff --git a/configs/socfpga_de1_soc_defconfig b/configs/socfpga_de1_soc_defconfig
> index 032deef..d78e8a1 100644
> --- a/configs/socfpga_de1_soc_defconfig
> +++ b/configs/socfpga_de1_soc_defconfig
> @@ -6,6 +6,7 @@ CONFIG_TARGET_SOCFPGA_TERASIC_DE1_SOC=y
> CONFIG_SPL_STACK_R_ADDR=0x00800000
> CONFIG_SPL_YMODEM_SUPPORT=y
> CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_de1_soc"
> +CONFIG_DEFAULT_FDT_FILE="socfpga_cyclone5_de1_soc.dtb"
> CONFIG_FIT=y
> CONFIG_SYS_CONSOLE_IS_IN_ENV=y
> CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
> diff --git a/include/configs/socfpga_de1_soc.h b/include/configs/socfpga_de1_soc.h
> index deec647..3142bd1 100644
> --- a/include/configs/socfpga_de1_soc.h
> +++ b/include/configs/socfpga_de1_soc.h
> @@ -18,7 +18,7 @@
> #define PHYS_SDRAM_1_SIZE 0x40000000 /* 1GiB */
>
> /* Booting Linux */
> -#define CONFIG_BOOTFILE "fitImage"
> +#define CONFIG_BOOTFILE "zImage"
ok, here you're confusing me. I thought the point of having the crude,
hacky mmcload/mmcboot in bootcmd was because you want to be legacy
compatible. If you're changing the bootfile name, that point is moot.
So at this point, why not just switch to distro boot and extlinux.conf /
efi altogether?
Alex
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot] [PATCH v8 5/7] arm: socfpga: Update DE1 environment
2017-01-30 15:07 ` Alexander Graf
@ 2017-01-30 15:17 ` Westergreen, Dalon
0 siblings, 0 replies; 14+ messages in thread
From: Westergreen, Dalon @ 2017-01-30 15:17 UTC (permalink / raw)
To: u-boot
On Mon, 2017-01-30 at 16:07 +0100, Alexander Graf wrote:
> On 01/29/2017 12:05 AM, Dalon Westergreen wrote:
> >
> > From: Dalon Westergreen <dalon.westergreen@intel.com>
> >
> > Remove the default environment as it is now in a common
> > header.
> >
> > Add the CONFIG_DEFAULT_DEVICE_TREE to the board's defconfig
> > to set the linux devicetree name.
> >
> > Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
> > Acked-by: Marek Vasut <marex@denx.de>
> > Acked-by: Dinh Nguyen <dinguyen@kernel.org>
> > ---
> > ? configs/socfpga_de1_soc_defconfig |??1 +
> > ? include/configs/socfpga_de1_soc.h | 19 +------------------
> > ? 2 files changed, 2 insertions(+), 18 deletions(-)
> >
> > diff --git a/configs/socfpga_de1_soc_defconfig
> > b/configs/socfpga_de1_soc_defconfig
> > index 032deef..d78e8a1 100644
> > --- a/configs/socfpga_de1_soc_defconfig
> > +++ b/configs/socfpga_de1_soc_defconfig
> > @@ -6,6 +6,7 @@ CONFIG_TARGET_SOCFPGA_TERASIC_DE1_SOC=y
> > ? CONFIG_SPL_STACK_R_ADDR=0x00800000
> > ? CONFIG_SPL_YMODEM_SUPPORT=y
> > ? CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_de1_soc"
> > +CONFIG_DEFAULT_FDT_FILE="socfpga_cyclone5_de1_soc.dtb"
> > ? CONFIG_FIT=y
> > ? CONFIG_SYS_CONSOLE_IS_IN_ENV=y
> > ? CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
> > diff --git a/include/configs/socfpga_de1_soc.h
> > b/include/configs/socfpga_de1_soc.h
> > index deec647..3142bd1 100644
> > --- a/include/configs/socfpga_de1_soc.h
> > +++ b/include/configs/socfpga_de1_soc.h
> > @@ -18,7 +18,7 @@
> > ? #define PHYS_SDRAM_1_SIZE 0x40000000 /* 1GiB */
> > ??
> > ? /* Booting Linux */
> > -#define CONFIG_BOOTFILE "fitImage"
> > +#define CONFIG_BOOTFILE "zImage"
>
> ok, here you're confusing me. I thought the point of having the crude,?
> hacky mmcload/mmcboot in bootcmd was because you want to be legacy?
> compatible. If you're changing the bootfile name, that point is moot.
>
> So at this point, why not just switch to distro boot and extlinux.conf /?
> efi altogether?
>
Bootfile was never used in the environment, neither have any of the
kits by default been using fitimages. When the environment was moved
to a common one i setting the bootfile def to match what was actually
used. ?moving to distro boot is in the works and i will look at
SCAN_DEV_FOR_EFI for legacy support.
thanks,
dalon
>
> Alex
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [U-Boot] [PATCH v8 6/7] arm: socfpga: Update SoCKit environment
2017-01-28 23:05 [U-Boot] [PATCH v8 0/7] arm: socfpga: update default u-boot environment Dalon Westergreen
` (4 preceding siblings ...)
2017-01-28 23:05 ` [U-Boot] [PATCH v8 5/7] arm: socfpga: Update DE1 environment Dalon Westergreen
@ 2017-01-28 23:05 ` Dalon Westergreen
2017-01-28 23:05 ` [U-Boot] [PATCH v8 7/7] arm: socfpga: Update sr1500 environment Dalon Westergreen
6 siblings, 0 replies; 14+ messages in thread
From: Dalon Westergreen @ 2017-01-28 23:05 UTC (permalink / raw)
To: u-boot
From: Dalon Westergreen <dalon.westergreen@intel.com>
Remove the default environment as it is now in a common
header.
Add the CONFIG_DEFAULT_DEVICE_TREE to the board's defconfig
to set the linux devicetree name.
Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
---
configs/socfpga_sockit_defconfig | 1 +
include/configs/socfpga_sockit.h | 27 +--------------------------
2 files changed, 2 insertions(+), 26 deletions(-)
diff --git a/configs/socfpga_sockit_defconfig b/configs/socfpga_sockit_defconfig
index d0c2bda..bf60783 100644
--- a/configs/socfpga_sockit_defconfig
+++ b/configs/socfpga_sockit_defconfig
@@ -4,6 +4,7 @@ CONFIG_SYS_MALLOC_F_LEN=0x2000
CONFIG_TARGET_SOCFPGA_TERASIC_SOCKIT=y
CONFIG_SPL_STACK_R_ADDR=0x00800000
CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_sockit"
+CONFIG_DEFAULT_FDT_FILE="socfpga_cyclone5_sockit.dtb"
CONFIG_FIT=y
CONFIG_SYS_CONSOLE_IS_IN_ENV=y
CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
diff --git a/include/configs/socfpga_sockit.h b/include/configs/socfpga_sockit.h
index 3fceb31..c51cc72 100644
--- a/include/configs/socfpga_sockit.h
+++ b/include/configs/socfpga_sockit.h
@@ -18,7 +18,7 @@
#define PHYS_SDRAM_1_SIZE 0x40000000 /* 1GiB on SoCDK */
/* Booting Linux */
-#define CONFIG_BOOTFILE "fitImage"
+#define CONFIG_BOOTFILE "zImage"
#define CONFIG_BOOTARGS "console=ttyS0," __stringify(CONFIG_BAUDRATE)
#define CONFIG_BOOTCOMMAND "run mmcload; run mmcboot"
#define CONFIG_LOADADDR 0x01000000
@@ -32,31 +32,6 @@
#define CONFIG_ENV_IS_IN_MMC
-/* Extra Environment */
-#define CONFIG_EXTRA_ENV_SETTINGS \
- "verify=n\0" \
- "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
- "ramboot=setenv bootargs " CONFIG_BOOTARGS ";" \
- "bootm ${loadaddr} - ${fdt_addr}\0" \
- "bootimage=zImage\0" \
- "fdt_addr=100\0" \
- "fdtimage=socfpga.dtb\0" \
- "bootm ${loadaddr} - ${fdt_addr}\0" \
- "mmcroot=/dev/mmcblk0p2\0" \
- "mmcboot=setenv bootargs " CONFIG_BOOTARGS \
- " root=${mmcroot} rw rootwait;" \
- "bootz ${loadaddr} - ${fdt_addr}\0" \
- "mmcload=mmc rescan;" \
- "load mmc 0:1 ${loadaddr} ${bootimage};" \
- "load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
- "qspiload=sf probe && mtdparts default && run ubiload\0" \
- "qspiboot=setenv bootargs " CONFIG_BOOTARGS \
- " ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
- "bootz ${loadaddr} - ${fdt_addr}\0" \
- "ubiload=ubi part UBI && ubifsmount ubi0 && " \
- "ubifsload ${loadaddr} /boot/${bootimage} && " \
- "ubifsload ${fdt_addr} /boot/${fdtimage}\0"
-
/* The rest of the configuration is shared */
#include <configs/socfpga_common.h>
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [U-Boot] [PATCH v8 7/7] arm: socfpga: Update sr1500 environment
2017-01-28 23:05 [U-Boot] [PATCH v8 0/7] arm: socfpga: update default u-boot environment Dalon Westergreen
` (5 preceding siblings ...)
2017-01-28 23:05 ` [U-Boot] [PATCH v8 6/7] arm: socfpga: Update SoCKit environment Dalon Westergreen
@ 2017-01-28 23:05 ` Dalon Westergreen
6 siblings, 0 replies; 14+ messages in thread
From: Dalon Westergreen @ 2017-01-28 23:05 UTC (permalink / raw)
To: u-boot
From: Dalon Westergreen <dalon.westergreen@intel.com>
Remove the default environment as it is now in a common
header.
Add the CONFIG_DEFAULT_DEVICE_TREE to the board's defconfig
to set the linux devicetree name.
Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
---
configs/socfpga_sr1500_defconfig | 1 +
include/configs/socfpga_sr1500.h | 25 -------------------------
2 files changed, 1 insertion(+), 25 deletions(-)
diff --git a/configs/socfpga_sr1500_defconfig b/configs/socfpga_sr1500_defconfig
index 6fd7bc0..4c63b02 100644
--- a/configs/socfpga_sr1500_defconfig
+++ b/configs/socfpga_sr1500_defconfig
@@ -4,6 +4,7 @@ CONFIG_SYS_MALLOC_F_LEN=0x2000
CONFIG_TARGET_SOCFPGA_SR1500=y
CONFIG_SPL_STACK_R_ADDR=0x00800000
CONFIG_DEFAULT_DEVICE_TREE="socfpga_cyclone5_sr1500"
+CONFIG_DEFAULT_FDT_FILE="socfpga_cyclone5_sr1500.dtb"
CONFIG_FIT=y
CONFIG_SYS_CONSOLE_IS_IN_ENV=y
CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y
diff --git a/include/configs/socfpga_sr1500.h b/include/configs/socfpga_sr1500.h
index 0407f03..3c63e80 100644
--- a/include/configs/socfpga_sr1500.h
+++ b/include/configs/socfpga_sr1500.h
@@ -32,31 +32,6 @@
#define CONFIG_PHY_MARVELL
#define PHY_ANEG_TIMEOUT 8000
-#define CONFIG_EXTRA_ENV_SETTINGS \
- "verify=n\0" \
- "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
- "ramboot=setenv bootargs " CONFIG_BOOTARGS ";" \
- "bootm ${loadaddr} - ${fdt_addr}\0" \
- "bootimage=zImage\0" \
- "fdt_addr=100\0" \
- "fdtimage=socfpga.dtb\0" \
- "fsloadcmd=ext2load\0" \
- "bootm ${loadaddr} - ${fdt_addr}\0" \
- "mmcroot=/dev/mmcblk0p2\0" \
- "mmcboot=setenv bootargs " CONFIG_BOOTARGS \
- " root=${mmcroot} rw rootwait;" \
- "bootz ${loadaddr} - ${fdt_addr}\0" \
- "mmcload=mmc rescan;" \
- "load mmc 0:1 ${loadaddr} ${bootimage};" \
- "load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
- "qspiload=sf probe && mtdparts default && run ubiload\0" \
- "qspiboot=setenv bootargs " CONFIG_BOOTARGS \
- " ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
- "bootz ${loadaddr} - ${fdt_addr}\0" \
- "ubiload=ubi part UBI && ubifsmount ubi0 && " \
- "ubifsload ${loadaddr} /boot/${bootimage} && " \
- "ubifsload ${fdt_addr} /boot/${fdtimage}\0"
-
/* Environment */
#define CONFIG_ENV_IS_IN_SPI_FLASH
--
2.7.4
^ permalink raw reply related [flat|nested] 14+ messages in thread