Skip to content
Snippets Groups Projects
Commit 48d9539a authored by Thomas Herzmann's avatar Thomas Herzmann Committed by Wolfgang Denk
Browse files

keymile boards: support of boardId / hwkey lists


In order to support boardId / hwkey lists, the u-boot default
environment has been updated: Added a script checkboardidlist
which checks the list of boardId / hwkey if the boadrId / hwkey
of the IVM is included in that list. This feature is used if you
got different HW variants but you only want to create one boot
package. E.g. supx5 board series.

Signed-off-by: default avatarThomas Herzmann <thomas.herzmann@keymile.com>
Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
cc: Heiko Schocher <hs@denx.de>
parent a21b5d4b
No related branches found
No related tags found
No related merge requests found
...@@ -243,6 +243,7 @@ ...@@ -243,6 +243,7 @@
"release=" \ "release=" \
"setenv actual_bank ${initial_boot_bank} && " \ "setenv actual_bank ${initial_boot_bank} && " \
"setenv subbootcmds \"" \ "setenv subbootcmds \"" \
"checkboardidlist " \
"checkboardid " \ "checkboardid " \
"ubiattach ubicopy " \ "ubiattach ubicopy " \
"cramfsloadfdt cramfsloadkernel " \ "cramfsloadfdt cramfsloadkernel " \
...@@ -392,8 +393,34 @@ ...@@ -392,8 +393,34 @@
"default=" \ "default=" \
"setenv default 'run newenv; reset' && " \ "setenv default 'run newenv; reset' && " \
"run release && saveenv; reset\0" \ "run release && saveenv; reset\0" \
"checkboardidlist=" \
"if test \"x${boardIdListHex}\" != \"x\"; then " \
"IVMbidhwk=${IVM_BoardId}_${IVM_HWKey}; " \
"found=0; " \
"for bidhwk in \"${boardIdListHex}\"; do " \
"echo trying $bidhwk ...; " \
"if test \"x$bidhwk\" = \"x$IVMbidhwk\"; then " \
"found=1; " \
"echo match found for $bidhwk; " \
"if test \"x$bidhwk\" != \"x${boardId}_${hwKey}\";then "\
"setenv boardid ${IVM_BoardId}; " \
"setenv boardId ${IVM_BoardId}; " \
"setenv hwkey ${IVM_HWKey}; " \
"setenv hwKey ${IVM_HWKey}; " \
"echo \"boardId set to ${boardId}\"; " \
"echo \"hwKey set to ${hwKey}\"; " \
"saveenv; " \
"fi; " \
"fi; " \
"done; " \
"else " \
"echo \"boardIdListHex not set, not checked\"; "\
"found=1; " \
"fi; " \
"test \"$found\" = 1 \0" \
"checkboardid=" \ "checkboardid=" \
"test \"x${boardId}\" = \"x${IVM_BoardId}\"\0" \ "test \"x${boardId}\" = \"x${IVM_BoardId}\" && " \
"test \"x${hwKey}\" = \"x${IVM_HWKey}\"\0" \
"printbootargs=print bootargs\0" \ "printbootargs=print bootargs\0" \
"rootfsfile="xstr(CONFIG_HOSTNAME) "/rootfsImage\0" \ "rootfsfile="xstr(CONFIG_HOSTNAME) "/rootfsImage\0" \
"" ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment