diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2012-10-12 15:40:11 +0300 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2012-10-12 15:40:11 +0300 |
commit | a8952c888e49d88418ba54d48e546d8c355eb514 (patch) | |
tree | 00443160a07cf92418c2620515deaa5207a3dd31 /linaro_image_tools/media_create/boards.py | |
parent | dd15b81aae70d0911ba7c38a9df32799a4403d03 (diff) |
Allow to override initrd_high and fdt_high uboot params.
So far, these overrides are supported on the level of Android board
config classes, not on the level of hwpack config.
See https://bugs.launchpad.net/linaro-image-tools/+bug/1055644
Diffstat (limited to 'linaro_image_tools/media_create/boards.py')
-rw-r--r-- | linaro_image_tools/media_create/boards.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/linaro_image_tools/media_create/boards.py b/linaro_image_tools/media_create/boards.py index a7ca1d8..5e70357 100644 --- a/linaro_image_tools/media_create/boards.py +++ b/linaro_image_tools/media_create/boards.py @@ -403,10 +403,12 @@ class BoardConfig(object): # be specified in the hwpack metadata. kernel_addr = None initrd_addr = None + initrd_high = '0xffffffff' load_addr = None dtb_addr = None dtb_name = None dtb_file = None + fdt_high = '0xffffffff' kernel_flavors = None boot_script = None serial_tty = None @@ -841,6 +843,8 @@ class BoardConfig(object): boot_env["bootargs"] = cls._get_bootargs( is_live, is_lowmem, consoles, rootfs_id) boot_env["bootcmd"] = cls._get_bootcmd(i_img_data, d_img_data) + boot_env["initrd_high"] = cls.initrd_high + boot_env["fdt_high"] = cls.fdt_high return boot_env @classmethod @@ -1976,8 +1980,8 @@ def get_plain_boot_script_contents(boot_env): # https://bugs.launchpad.net/linaro-image-tools/+bug/788765 # for more. return ( - 'setenv initrd_high "0xffffffff"\n' - 'setenv fdt_high "0xffffffff"\n' + 'setenv initrd_high "%(initrd_high)s"\n' + 'setenv fdt_high "%(fdt_high)s"\n' 'setenv bootcmd "%(bootcmd)s"\n' 'setenv bootargs "%(bootargs)s"\n' "boot" |