Skip to contentSkip to conversation

arm: baltos: enable CMD_NET and FIT support in defconfig

PATCH New Yegor Yefremov 3 participants 8 messages Jul 6, 2015 – Jul 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 arm: baltos: enable CMD_NET and FIT support in defconfig

---
 configs/am335x_baltos_defconfig | 4 ++--
 include/configs/baltos.h        | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)
configs/am335x_baltos_defconfig +2 -2
index bf73919..8e8a897 100644
@@ -3,9 +3,9 @@ CONFIG_TARGET_AM335X_BALTOS=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_FIT=y
+CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="NAND"
-CONFIG_CONS_INDEX=1
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
 # CONFIG_CMD_SETEXPR is not set
-# CONFIG_CMD_NET is not set
include/configs/baltos.h +0 -2
index 68bfee5..632523e 100644
@@ -39,8 +39,6 @@
 #define CONFIG_CMD_PART
 
 /* FIT support */
-#define CONFIG_FIT
-#define CONFIG_FIT_VERBOSE	1 /* enable fit_format_{error,warning}() */
 #define CONFIG_OF_BOARD_SETUP
 
 /* UBI Support */
Signature · 1 line
2.1.0
#1 lore raw

PATCH 2/3 arm: baltos: drop I2C speed to 1000 Hz

This action is need to make I2C communication with PMIC stable for low temperature. Print current I2C speed in SPL for visual control.

---
 board/vscom/baltos/board.c | 2 ++
 include/configs/baltos.h   | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
board/vscom/baltos/board.c +2 -0
index 99ca60e..09bc8c6 100644
@@ -184,6 +184,8 @@ void am33xx_spl_board_init(void)
 	 */
 	i2c_set_bus_num(1);
 
+	printf("I2C speed: %d Hz\n", CONFIG_SYS_OMAP24_I2C_SPEED);
+
 	if (i2c_probe(TPS65910_CTRL_I2C_ADDR)) {
 		puts("i2c: cannot access TPS65910\n");
 		return;
include/configs/baltos.h +1 -1
index 632523e..31de97f 100644
@@ -52,7 +52,7 @@
 
 /* I2C configuration */
 #undef CONFIG_SYS_OMAP24_I2C_SPEED
-#define CONFIG_SYS_OMAP24_I2C_SPEED 10000
+#define CONFIG_SYS_OMAP24_I2C_SPEED 1000
 
 #ifdef CONFIG_NAND
 #define CONFIG_SYS_NAND_U_BOOT_OFFS	0x000c0000
Signature · 1 line
2.1.0
#2 lore raw

PATCH 2/3 arm: baltos: drop I2C speed to 1000 Hz

Quoted 5 lines · Yegor Yefremov

This action is need to make I2C communication with PMIC stable for low temperature. Print current I2C speed in SPL for visual control.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150710/b258fc70/attachment.sig>
#3 lore raw

PATCH 3/3 arm: baltos: fix NAND boot

In reply to Yegor Yefremov

Specify proper U-Boot offset, enable prefetch mode, increase bootm size and add FIT fallback, if board_name is not present in kernel-fit.itb image.

---
 include/configs/baltos.h | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
include/configs/baltos.h +8 -2
index 31de97f..fb7818a 100644
@@ -16,6 +16,7 @@
 #ifndef __CONFIG_BALTOS_H
 #define __CONFIG_BALTOS_H
 
+#include <linux/sizes.h>
 #include <configs/ti_am335x_common.h>
 
 #define MACH_TYPE_TIAM335EVM		3589	/* Until the next sync */
@@ -39,6 +40,7 @@
 #define CONFIG_CMD_PART
 
 /* FIT support */
+#define CONFIG_SYS_BOOTM_LEN         SZ_64M
 #define CONFIG_OF_BOARD_SETUP
 
 /* UBI Support */
@@ -54,8 +56,9 @@
 #undef CONFIG_SYS_OMAP24_I2C_SPEED
 #define CONFIG_SYS_OMAP24_I2C_SPEED 1000
 
+#undef CONFIG_SPL_OS_BOOT
 #ifdef CONFIG_NAND
-#define CONFIG_SYS_NAND_U_BOOT_OFFS	0x000c0000
+#define CONFIG_SYS_NAND_U_BOOT_OFFS	0x00080000
 #ifdef CONFIG_SPL_OS_BOOT
 #define CONFIG_CMD_SPL_NAND_OFS 0x00080000 /* os parameters */
 #define CONFIG_SYS_NAND_SPL_KERNEL_OFFS 0x00200000 /* kernel offset */
@@ -78,7 +81,9 @@
 		"ubifsmount ubi0:kernel; " \
 		"ubifsload $loadaddr kernel-fit.itb;" \
 		"ubifsumount; " \
-		"bootm ${loadaddr}#conf${board_name}\0"
+		"bootm ${loadaddr}#conf${board_name}; " \
+		"if test $? -ne 0; then echo Using default FIT config; " \
+		"bootm ${loadaddr}; fi;\0"
 #else
 #define NANDARGS ""
 #endif
@@ -234,6 +239,7 @@
 
 #ifdef CONFIG_NAND
 #define CONFIG_NAND_OMAP_GPMC
+#define CONFIG_NAND_OMAP_GPMC_PREFETCH
 #define CONFIG_NAND_OMAP_ELM
 #define CONFIG_SYS_NAND_5_ADDR_CYCLE
 #define CONFIG_SYS_NAND_PAGE_COUNT	(CONFIG_SYS_NAND_BLOCK_SIZE / \
Signature · 1 line
2.1.0
#4 lore raw

PATCH 3/3 arm: baltos: fix NAND boot

Quoted 5 lines · Yegor Yefremov

Specify proper U-Boot offset, enable prefetch mode, increase bootm size and add FIT fallback, if board_name is not present in kernel-fit.itb image.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150710/88e3b18e/attachment.sig>
#5 lore raw

PATCH 1/3 arm: baltos: enable CMD_NET and FIT support in defconfig

In reply to Yegor Yefremov
Quoted 5 lines · Yegor Yefremov
---
 configs/am335x_baltos_defconfig | 4 ++--
 include/configs/baltos.h        | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

But please remember to add a commit message with your patches.

Quoted 37 lines
configs/am335x_baltos_defconfig +2 -2
index bf73919..8e8a897 100644
@@ -3,9 +3,9 @@ CONFIG_TARGET_AM335X_BALTOS=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_FIT=y
+CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="NAND"
-CONFIG_CONS_INDEX=1
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
 # CONFIG_CMD_SETEXPR is not set
-# CONFIG_CMD_NET is not set
include/configs/baltos.h +0 -3
index 68bfee5..632523e 100644
@@ -39,8 +39,6 @@
 #define CONFIG_CMD_PART
 
 /* FIT support */
-#define CONFIG_FIT
-#define CONFIG_FIT_VERBOSE     1 /* enable fit_format_{error,warning}() */
 #define CONFIG_OF_BOARD_SETUP
 
 /* UBI Support */
--

2.1.0

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#6 lore raw

PATCH 1/3 arm: baltos: enable CMD_NET and FIT support in defconfig

Quoted 10 lines · Simon Glass
Quoted 5 lines · Yegor Yefremov
---
 configs/am335x_baltos_defconfig | 4 ++--
 include/configs/baltos.h        | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

But please remember to add a commit message with your patches.

Thanks. Will do.

Yegor

Quoted 36 lines
Quoted 36 lines
configs/am335x_baltos_defconfig +2 -2
index bf73919..8e8a897 100644
@@ -3,9 +3,9 @@ CONFIG_TARGET_AM335X_BALTOS=y
 CONFIG_SPL=y
 CONFIG_SPL_STACK_R=y
 CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_FIT=y
+CONFIG_FIT_VERBOSE=y
 CONFIG_SYS_EXTRA_OPTIONS="NAND"
-CONFIG_CONS_INDEX=1
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
 # CONFIG_CMD_SETEXPR is not set
-# CONFIG_CMD_NET is not set
include/configs/baltos.h +0 -3
index 68bfee5..632523e 100644
@@ -39,8 +39,6 @@
 #define CONFIG_CMD_PART
 
 /* FIT support */
-#define CONFIG_FIT
-#define CONFIG_FIT_VERBOSE     1 /* enable fit_format_{error,warning}() */
 #define CONFIG_OF_BOARD_SETUP
 
 /* UBI Support */
--

2.1.0

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#7 lore raw

PATCH 1/3 arm: baltos: enable CMD_NET and FIT support in defconfig

In reply to Yegor Yefremov
Quoted 2 lines · Yegor Yefremov

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150710/73bb1f37/attachment.sig>