arm/km: introduce bootcount env variable and clean km_arm
This environment variable is used to set the bootcount address for the kernel. last_stage_init is not available for arm platforms. So the calls to set_km_var and set_bootcount_addr are done in misc_init_r. Additionally some unneeded printouts were removed. Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> Signed-off-by: Holger Brunck <holger.brunck@keymile.com> Acked-by: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de> cc: Prafulla Wadaskar <prafulla@marvell.com>
This commit is contained in:
committed by
U-Boot
parent
ea616d4def
commit
22c67d0839
@@ -64,6 +64,9 @@
|
||||
#define CONFIG_KM_KERNEL_ADDR 0x2000000 /* 4096KBytes */
|
||||
|
||||
#define CONFIG_KM_DEF_ENV_CPU \
|
||||
"addbootcount=" \
|
||||
"setenv bootargs ${bootargs} " \
|
||||
"bootcountaddr=${bootcountaddr}\0" \
|
||||
"addmtdparts=setenv bootargs ${bootargs} ${mtdparts}\0" \
|
||||
"boot=bootm ${actual_kernel_addr} - -\0" \
|
||||
"cramfsloadfdt=true\0" \
|
||||
|
||||
Reference in New Issue
Block a user