diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2020-06-19 11:46:24 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2020-06-30 10:51:34 +0200 |
commit | 0ed9f3a66ad91d58d0a80241a04be9ce0aa5565e (patch) | |
tree | f0566f9adb655b928d912d74e46e6cd5bb22db0c /classes | |
parent | 1068c13a4a78904fc74306a067c6584f650bb0cf (diff) |
image_type_tezi.bbclass: increase min boot partition size to 3x payload
If using upstream variants kernel itself is close to 8 MB and one can
barely keep a backup copy in the resulting 16 MB!
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit aae74f006cd02717df3b047b59940196de53c105)
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image_type_tezi.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass index 1d69cd8..aa80ca5 100644 --- a/classes/image_type_tezi.bbclass +++ b/classes/image_type_tezi.bbclass @@ -51,10 +51,10 @@ def get_uncompressed_size(d, type): return float(size) / 1024 # Make an educated guess of the needed boot partition size -# max(16MB, twice the size of the payload rounded up to the next 2^x number) +# max(16MB, 3x the size of the payload rounded up to the next 2^x number) def get_bootfs_part_size(d): from math import log - part_size = 2 ** (2 + int(log(get_uncompressed_size(d, 'bootfs'), 2))) + part_size = 3 * 2 ** (1 + int(log(get_uncompressed_size(d, 'bootfs'), 2))) return max(16, part_size) # Whitespace separated list of files declared by 'deploy_var' variable |