summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2015-11-03 01:47:43 +0100
committerStefan Agner <stefan.agner@toradex.com>2015-11-03 01:51:25 +0100
commitef33416646c6e8f296b26cfbd4556514db206b7d (patch)
tree1c7a47e6d5a4edfdd29d0696548eac773367338d
parentbaa4e377603b0b659b6c83bf770315d7f3c9949c (diff)
update.sh: set board_name for Colibri VF50/VF61
Up until now, U-Boot for Colibri VF50/VF61 did not had an environment variable board_name. Use the soc environment variable to set the board_name.
-rw-r--r--recipes/images/files/library/fwd_blk.scr2
-rw-r--r--recipes/images/files/library/fwd_eth.scr3
2 files changed, 5 insertions, 0 deletions
diff --git a/recipes/images/files/library/fwd_blk.scr b/recipes/images/files/library/fwd_blk.scr
index f694caa..fecedef 100644
--- a/recipes/images/files/library/fwd_blk.scr
+++ b/recipes/images/files/library/fwd_blk.scr
@@ -1,6 +1,8 @@
#the update.sh script renames this. fwd_blk.scr -> ../flash_blk.img
test -n ${interface} || setenv interface mmc
test -n ${drive} || setenv drive 1
+test -z "${board_name}" && test "${soc}" = "vf500" && setenv board_name colibri_vf
+test -z "${board_name}" && test "${soc}" = "vf610" && setenv board_name colibri_vf
test "${board_name}" = "colibri_t20" && setenv drive 0
test "${board_name}" = "colibri_vf" && setenv drive 0
diff --git a/recipes/images/files/library/fwd_eth.scr b/recipes/images/files/library/fwd_eth.scr
index 8b35af0..d7ea35c 100644
--- a/recipes/images/files/library/fwd_eth.scr
+++ b/recipes/images/files/library/fwd_eth.scr
@@ -1,3 +1,6 @@
#the update.sh script renames this. fwd_eth.scr -> ../flash_eth.img
+test -z "${board_name}" && test "${soc}" = "vf500" && setenv board_name colibri_vf
+test -z "${board_name}" && test "${soc}" = "vf610" && setenv board_name colibri_vf
+
test -n ${board_name} || echo "board_name env not set!" && exit
tftpboot ${loadaddr} "${board_name}/flash_eth.img" && source ${loadaddr}