aboutsummaryrefslogtreecommitdiff
path: root/linaro_image_tools/media_create
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2014-01-10 12:13:46 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2014-01-10 12:13:46 +0200
commit80d4a703971e0eb505514ec5d875704a5e8b7a88 (patch)
tree737f6853ca4c6b7c188eadbe9e4d7ebcef039984 /linaro_image_tools/media_create
parent5e7ced7c7a32bc86d737edc8f4aa6145fb0cf25a (diff)
downloadlinaro-image-tools-80d4a703971e0eb505514ec5d875704a5e8b7a88.tar.gz
Arndale Octa: add mac address to bootargs to avoid random address
Change-Id: Ib2e6b0fee746daa6359e53496f4ad1736b40e18d Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'linaro_image_tools/media_create')
-rw-r--r--linaro_image_tools/media_create/boards.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/linaro_image_tools/media_create/boards.py b/linaro_image_tools/media_create/boards.py
index 64b2cc9..30e950a 100644
--- a/linaro_image_tools/media_create/boards.py
+++ b/linaro_image_tools/media_create/boards.py
@@ -1775,6 +1775,17 @@ class ArndaleOctaConfig(ArndaleConfig):
self.samsung_tzsw_start = 719
self.samsung_tzsw_len = 256
+ def _get_boot_env(self, is_live, is_lowmem, consoles, rootfs_id,
+ i_img_data, d_img_data):
+ boot_env = super(SamsungConfig, self)._get_boot_env(
+ is_live, is_lowmem, consoles, rootfs_id, i_img_data, d_img_data)
+
+ boot_env["bootcmd"] = 'run addmac; %s' % \
+ self._get_bootcmd(i_img_data, d_img_data)
+ boot_env["addmac"] = 'setenv bootargs "${bootargs} mac=${ethaddr}"'
+
+ return boot_env
+
def _make_boot_files_v2(self, boot_env, chroot_dir, boot_dir,
boot_device_or_file, k_img_data, i_img_data,
d_img_data):