powerpc/913x: Add config flag for bootdelay
PATCH 1/1 powerpc/913x: Add config flag for bootdelay
--- include/configs/BSC9131RDB.h | 1 + include/configs/BSC9132QDS.h | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
include/configs/BSC9131RDB.h +1 -0
@@ -430,6 +430,7 @@ extern unsigned long get_sdram_size(void);#define CONFIG_UBOOTPATH "u-boot.bin"/* U-Boot image on TFTP server */ #define CONFIG_BAUDRATE 115200 +#define CONFIG_BOOTDELAY 10/* -1 disable auto-boot */ #define CONFIG_EXTRA_ENV_SETTINGS \ "netdev=eth0\0" \
include/configs/BSC9132QDS.h +1 -0
@@ -672,6 +672,7 @@ combinations. this should be removed later#define CONFIG_UBOOTPATH "u-boot.bin"#define CONFIG_BAUDRATE 115200 +#define CONFIG_BOOTDELAY 10/* -1 disable auto-boot */ #ifdef CONFIG_SDCARD #define CONFIG_DEF_HWCONFIG "hwconfig=usb1:dr_mode=host,phy_type=ulpi\0"
Signature · 1 line
1.7.6.GIT
PATCH 1/1 powerpc/913x: Add config flag for bootdelay
Quoted 24 lines · Harninder Rai
Signed-off-by Harninder Rai <[email protected]>--- include/configs/BSC9131RDB.h | 1 + include/configs/BSC9132QDS.h | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)include/configs/BSC9131RDB.h +1
-0@@ -430,6 +430,7 @@ extern unsigned long get_sdram_size(void);#define CONFIG_UBOOTPATH "u-boot.bin"/* U-Boot image on TFTP server */ #define CONFIG_BAUDRATE 115200 +#define CONFIG_BOOTDELAY 10/* -1 disable auto-boot */ #define CONFIG_EXTRA_ENV_SETTINGS \ "netdev=eth0\0" \include/configs/BSC9132QDS.h +0
-0
include/configs/BSC9132QDS.h combinations. this should be removed later · line 678
Quoted 7 lines
include/configs/BSC9132QDS.h +1
-0@@ -672,6 +672,7 @@ combinations. this should be removed later#define CONFIG_UBOOTPATH "u-boot.bin"#define CONFIG_BAUDRATE 115200 +#define CONFIG_BOOTDELAY 10/* -1 disable auto-boot */ #ifdef CONFIG_SDCARD #define CONFIG_DEF_HWCONFIG "hwconfig=usb1:dr_mode=host,phy_type=ulpi\0"
The change is trivial. Do you mind to explain why you need this change?
York
PATCH 1/1 powerpc/913x: Add config flag for bootdelay
Quoted 2 lines
The change is trivial. Do you mind to explain why you need this change?
Thanks for the review. This change is required to give user some time to interrupt the booting process Also, this will allow the system to boot from flash after power-on (does help in automation testing) Is this sufficient for a commit message?
Harry++
Quoted 2 lines
York
PATCH 1/1 powerpc/913x: Add config flag for bootdelay
You understand this is the default value of the said variable. You can save your environmental variable when you boot up. You can save it to any value you want, and this default value doesn't matter any more, until you erase it.
York
________________________________
From: Rai Harninder-B01044
Sent: Mon, 15/12/2014 22:07
To: Sun York-R58495 <[email protected]>; u-boot at lists.denx.de
Subject: RE: [PATCH] powerpc/913x: Add config flag for bootdelay
Quoted 2 lines
The change is trivial. Do you mind to explain why you need this change?
Thanks for the review. This change is required to give user some time to interrupt the booting process Also, this will allow the system to boot from flash after power-on (does help in automation testing) Is this sufficient for a commit message?
Harry++
Quoted 2 lines
York
PATCH 1/1 powerpc/913x: Add config flag for bootdelay
I am not sure I followed you completely but if I just use CONFIG_BOOTDELAY then I get the following compilation error
common/autoboot.c: In function 'bootdelay_process':common/autoboot.c:247:68: error: expected expression before ';' token
Is there something which I am missing?
Thanks and Regards
Harry++
From: Sun York-R58495
Sent: Tuesday, December 16, 2014 11:46 AM
To: Rai Harninder-B01044; u-boot at lists.denx.de
Subject: RE: [PATCH] powerpc/913x: Add config flag for bootdelay
You understand this is the default value of the said variable. You can save your environmental variable when you boot up. You can save it to any value you want, and this default value doesn't matter any more, until you erase it.
York
________________________________
From: Rai Harninder-B01044
Sent: Mon, 15/12/2014 22:07
To: Sun York-R58495 <yorksun at freescale.com<mailto:[email protected]>>; u-boot at lists.denx.de<mailto:[email protected]>
Subject: RE: [PATCH] powerpc/913x: Add config flag for bootdelay
Quoted 2 lines
The change is trivial. Do you mind to explain why you need this change?
Thanks for the review. This change is required to give user some time to interrupt the booting process Also, this will allow the system to boot from flash after power-on (does help in automation testing) Is this sufficient for a commit message?
Harry++
Quoted 2 lines
York
PATCH 1/1 powerpc/913x: Add config flag for bootdelay
Quoted 5 lines · On 12/16/2014 02:55 AM, Rai Harninder-B01044 wrote:
I am not sure I followed you completely but if I just use
CONFIG_BOOTDELAYthen I get the following compilation error
Quoted 8 lines
common/autoboot.c: In function 'bootdelay_process':
common/autoboot.c:247:68: error: expected expression before ';' tokenIs there something which I am missing?
I am guessing you has some extra character for the CONFIG_BOOTDELAY. Anyway, since you are on this line common/autoboot.c:247, you can see the "bootdelay" variable one line above. Your purpose of adding delay to boot is easily implemented by these command under u-boot
setenv bootdelay 10
saveenv
There is no need to change the code for this purpose.
York
PATCH 1/1 powerpc/913x: Add config flag for bootdelay
Quoted 9 lines
I am guessing you has some extra character for the
CONFIG_BOOTDELAY. Anyway, since you are on this linecommon/autoboot.c:247, you can see the "bootdelay" variable one line above. Your purpose of adding delay to boot is easily implemented by these command under u-bootsetenv bootdelay 10
saveenvThere is no need to change the code for this purpose.
Thanks for the review. Let me look into this
Harry++
Quoted 3 lines
York
PATCH 1/1 powerpc/913x: Add config flag for bootdelay
Quoted 11 lines · On 12/21/2014 09:22 PM, Rai Harninder-B01044 wrote:
Quoted 9 lines
I am guessing you has some extra character for the
CONFIG_BOOTDELAY. Anyway, since you are on this linecommon/autoboot.c:247, you can see the "bootdelay" variable one line above. Your purpose of adding delay to boot is easily implemented by these command under u-bootsetenv bootdelay 10
saveenvThere is no need to change the code for this purpose.
Thanks for the review. Let me look into this
I took another look at this patch. It is harmless and adding the default value is correct. I will accept this patch and add commit message.
York
PATCH 1/1 powerpc/913x: Add config flag for bootdelay
In reply to Harninder RaiQuoted 2 lines · Harninder Rai
Signed-off-by Harninder Rai <[email protected]>---
Applied to u-boot-mpc85xx master branch, awaiting upstream.
York