All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/3] STiH410-B2260: update environment/configuration settings
@ 2017-09-22 15:37 patrice.chotard at st.com
  2017-09-22 15:37 ` [U-Boot] [PATCH v2 1/3] board: STiH410-B2260: update environment variable patrice.chotard at st.com
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: patrice.chotard at st.com @ 2017-09-22 15:37 UTC (permalink / raw)
  To: u-boot

From: Patrice Chotard <patrice.chotard@st.com>

Update the CONFIG_EXTRA_ENV_SETTINGS, BOOT_TARGET_DEVICES and CONFIG_BOOTARGS
Fix SDRAM size

v2: rebase on v2017.09

Lee Jones (1):
  board: STiH410-B2260: set ramdisk_addr_r to 0x48000000

Nicolas Le Bayon (1):
  board: STiH410-B2260: fix sdram size

Patrice Chotard (1):
  board: STiH410-B2260: update environment variable

 configs/stih410-b2260_defconfig |  2 +-
 include/configs/stih410-b2260.h | 27 +++++++++++++++++++++++----
 2 files changed, 24 insertions(+), 5 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v2 1/3] board: STiH410-B2260: update environment variable
  2017-09-22 15:37 [U-Boot] [PATCH v2 0/3] STiH410-B2260: update environment/configuration settings patrice.chotard at st.com
@ 2017-09-22 15:37 ` patrice.chotard at st.com
  2017-09-25  2:15   ` Simon Glass
  2017-09-22 15:37 ` [U-Boot] [PATCH v2 2/3] board: STiH410-B2260: fix sdram size patrice.chotard at st.com
  2017-09-22 15:37 ` [U-Boot] [PATCH v2 3/3] board: STiH410-B2260: set ramdisk_addr_r to 0x48000000 patrice.chotard at st.com
  2 siblings, 1 reply; 8+ messages in thread
From: patrice.chotard at st.com @ 2017-09-22 15:37 UTC (permalink / raw)
  To: u-boot

From: Patrice Chotard <patrice.chotard@st.com>

Update environment variable by updating:
 _ BOOT_TARGET_DEVICE
 _ CONFIGS_BOOTARGS
 _ kernel_addr_r, fdtfile, fdt_addr_r, scriptaddr, fdt_high, intird_high

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
---

v2: rebase on v2017.09

 configs/stih410-b2260_defconfig |  2 +-
 include/configs/stih410-b2260.h | 24 +++++++++++++++++++++---
 2 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/configs/stih410-b2260_defconfig b/configs/stih410-b2260_defconfig
index 8fd1ff2..fe3dde3 100644
--- a/configs/stih410-b2260_defconfig
+++ b/configs/stih410-b2260_defconfig
@@ -6,7 +6,7 @@ CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
 CONFIG_USE_BOOTARGS=y
-CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
+CONFIG_BOOTARGS="console=ttyAS1,115200 CONSOLE=/dev/ttyAS1 consoleblank=0 root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait mem=992M at 0x40000000 vmalloc=256m"
 # CONFIG_DISPLAY_CPUINFO is not set
 CONFIG_SYS_PROMPT="stih410-b2260 => "
 CONFIG_FASTBOOT=y
diff --git a/include/configs/stih410-b2260.h b/include/configs/stih410-b2260.h
index 372c083..115488c 100644
--- a/include/configs/stih410-b2260.h
+++ b/include/configs/stih410-b2260.h
@@ -18,10 +18,28 @@
 
 #define CONFIG_SYS_HZ_CLOCK		1000000000	/* 1 GHz */
 
+#include <config_distro_defaults.h>
 /* Environment */
-#define CONFIG_EXTRA_ENV_SETTINGS \
-	"board= B2260" \
-	"load_addr= #CONFIG_SYS_LOAD_ADDR \0"
+
+#define CONFIG_LOADADDR			CONFIG_SYS_LOAD_ADDR
+
+#define CONFIG_ENV_VARS_UBOOT_CONFIG
+
+#define BOOT_TARGET_DEVICES(func) \
+	func(MMC, mmc, 0) \
+	func(USB, usb, 0) \
+	func(DHCP, dhcp, na)
+#include <config_distro_bootcmd.h>
+#define CONFIG_BOOTFILE			"uImage"
+#define CONFIG_EXTRA_ENV_SETTINGS				\
+			"kernel_addr_r=0x40000000\0"		\
+			"fdtfile=stih410-b2260.dtb\0"		\
+			"fdt_addr_r=0x47000000\0"		\
+			"scriptaddr=0x50000000\0"		\
+			"fdt_high=0xffffffffffffffff\0"		\
+			"initrd_high=0xffffffffffffffff\0"	\
+			BOOTENV
+
 
 #define CONFIG_ENV_SIZE 0x4000
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v2 2/3] board: STiH410-B2260: fix sdram size
  2017-09-22 15:37 [U-Boot] [PATCH v2 0/3] STiH410-B2260: update environment/configuration settings patrice.chotard at st.com
  2017-09-22 15:37 ` [U-Boot] [PATCH v2 1/3] board: STiH410-B2260: update environment variable patrice.chotard at st.com
@ 2017-09-22 15:37 ` patrice.chotard at st.com
  2017-09-25  2:15   ` Simon Glass
  2017-09-22 15:37 ` [U-Boot] [PATCH v2 3/3] board: STiH410-B2260: set ramdisk_addr_r to 0x48000000 patrice.chotard at st.com
  2 siblings, 1 reply; 8+ messages in thread
From: patrice.chotard at st.com @ 2017-09-22 15:37 UTC (permalink / raw)
  To: u-boot

From: Nicolas Le Bayon <nicolas.le.bayon@st.com>

32MB are reserved for Trusted Zone purpose

Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com>
---

v2: rebase on v2017.09

 include/configs/stih410-b2260.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/stih410-b2260.h b/include/configs/stih410-b2260.h
index 115488c..fc11f3c 100644
--- a/include/configs/stih410-b2260.h
+++ b/include/configs/stih410-b2260.h
@@ -12,7 +12,7 @@
 #define CONFIG_NR_DRAM_BANKS		1
 #define PHYS_SDRAM_1			0x40000000
 #define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
-#define PHYS_SDRAM_1_SIZE		0x3FE00000
+#define PHYS_SDRAM_1_SIZE		0x3E000000
 #define CONFIG_SYS_TEXT_BASE		0x7D600000
 #define CONFIG_SYS_LOAD_ADDR		PHYS_SDRAM_1	/* default load addr */
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v2 3/3] board: STiH410-B2260: set ramdisk_addr_r to 0x48000000
  2017-09-22 15:37 [U-Boot] [PATCH v2 0/3] STiH410-B2260: update environment/configuration settings patrice.chotard at st.com
  2017-09-22 15:37 ` [U-Boot] [PATCH v2 1/3] board: STiH410-B2260: update environment variable patrice.chotard at st.com
  2017-09-22 15:37 ` [U-Boot] [PATCH v2 2/3] board: STiH410-B2260: fix sdram size patrice.chotard at st.com
@ 2017-09-22 15:37 ` patrice.chotard at st.com
  2017-09-25  2:15   ` Simon Glass
  2 siblings, 1 reply; 8+ messages in thread
From: patrice.chotard at st.com @ 2017-09-22 15:37 UTC (permalink / raw)
  To: u-boot

From: Lee Jones <lee.jones@linaro.org>

Add missing ramdisk_addr_r param and set it to 0x48000000

Signed-off-by: Lee Jones <lee.jones@linaro.org>
---

v2: rebase on v2017.09

 include/configs/stih410-b2260.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/configs/stih410-b2260.h b/include/configs/stih410-b2260.h
index fc11f3c..958d5cc 100644
--- a/include/configs/stih410-b2260.h
+++ b/include/configs/stih410-b2260.h
@@ -38,6 +38,7 @@
 			"scriptaddr=0x50000000\0"		\
 			"fdt_high=0xffffffffffffffff\0"		\
 			"initrd_high=0xffffffffffffffff\0"	\
+			"ramdisk_addr_r=0x48000000\0"		\
 			BOOTENV
 
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v2 1/3] board: STiH410-B2260: update environment variable
  2017-09-22 15:37 ` [U-Boot] [PATCH v2 1/3] board: STiH410-B2260: update environment variable patrice.chotard at st.com
@ 2017-09-25  2:15   ` Simon Glass
  0 siblings, 0 replies; 8+ messages in thread
From: Simon Glass @ 2017-09-25  2:15 UTC (permalink / raw)
  To: u-boot

On 22 September 2017 at 09:37,  <patrice.chotard@st.com> wrote:
> From: Patrice Chotard <patrice.chotard@st.com>
>
> Update environment variable by updating:
>  _ BOOT_TARGET_DEVICE
>  _ CONFIGS_BOOTARGS
>  _ kernel_addr_r, fdtfile, fdt_addr_r, scriptaddr, fdt_high, intird_high
>
> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
> ---
>
> v2: rebase on v2017.09
>
>  configs/stih410-b2260_defconfig |  2 +-
>  include/configs/stih410-b2260.h | 24 +++++++++++++++++++++---
>  2 files changed, 22 insertions(+), 4 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v2 2/3] board: STiH410-B2260: fix sdram size
  2017-09-22 15:37 ` [U-Boot] [PATCH v2 2/3] board: STiH410-B2260: fix sdram size patrice.chotard at st.com
@ 2017-09-25  2:15   ` Simon Glass
  2017-09-25  7:06     ` Patrice CHOTARD
  0 siblings, 1 reply; 8+ messages in thread
From: Simon Glass @ 2017-09-25  2:15 UTC (permalink / raw)
  To: u-boot

On 22 September 2017 at 09:37,  <patrice.chotard@st.com> wrote:
> From: Nicolas Le Bayon <nicolas.le.bayon@st.com>
>
> 32MB are reserved for Trusted Zone purpose

Isn't this called TrustZone ?

>
> Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com>
> ---
>
> v2: rebase on v2017.09
>
>  include/configs/stih410-b2260.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v2 3/3] board: STiH410-B2260: set ramdisk_addr_r to 0x48000000
  2017-09-22 15:37 ` [U-Boot] [PATCH v2 3/3] board: STiH410-B2260: set ramdisk_addr_r to 0x48000000 patrice.chotard at st.com
@ 2017-09-25  2:15   ` Simon Glass
  0 siblings, 0 replies; 8+ messages in thread
From: Simon Glass @ 2017-09-25  2:15 UTC (permalink / raw)
  To: u-boot

On 22 September 2017 at 09:37,  <patrice.chotard@st.com> wrote:
> From: Lee Jones <lee.jones@linaro.org>
>
> Add missing ramdisk_addr_r param and set it to 0x48000000
>
> Signed-off-by: Lee Jones <lee.jones@linaro.org>
> ---
>
> v2: rebase on v2017.09
>
>  include/configs/stih410-b2260.h | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH v2 2/3] board: STiH410-B2260: fix sdram size
  2017-09-25  2:15   ` Simon Glass
@ 2017-09-25  7:06     ` Patrice CHOTARD
  0 siblings, 0 replies; 8+ messages in thread
From: Patrice CHOTARD @ 2017-09-25  7:06 UTC (permalink / raw)
  To: u-boot

Hi Simon

On 09/25/2017 04:15 AM, Simon Glass wrote:
> On 22 September 2017 at 09:37,  <patrice.chotard@st.com> wrote:
>> From: Nicolas Le Bayon <nicolas.le.bayon@st.com>
>>
>> 32MB are reserved for Trusted Zone purpose
> 
> Isn't this called TrustZone ?

Correct, i will send a v3 with this typo fix

> 
>>
>> Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com>
>> ---
>>
>> v2: rebase on v2017.09
>>
>>   include/configs/stih410-b2260.h | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
> 
> Reviewed-by: Simon Glass <sjg@chromium.org>
> 
Thanks

Patrice

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-09-25  7:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-22 15:37 [U-Boot] [PATCH v2 0/3] STiH410-B2260: update environment/configuration settings patrice.chotard at st.com
2017-09-22 15:37 ` [U-Boot] [PATCH v2 1/3] board: STiH410-B2260: update environment variable patrice.chotard at st.com
2017-09-25  2:15   ` Simon Glass
2017-09-22 15:37 ` [U-Boot] [PATCH v2 2/3] board: STiH410-B2260: fix sdram size patrice.chotard at st.com
2017-09-25  2:15   ` Simon Glass
2017-09-25  7:06     ` Patrice CHOTARD
2017-09-22 15:37 ` [U-Boot] [PATCH v2 3/3] board: STiH410-B2260: set ramdisk_addr_r to 0x48000000 patrice.chotard at st.com
2017-09-25  2:15   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.