mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
tqma6: fix rounding in env
need to add before div in mmc update scripts. Otherwise we could write one block more ba acident Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
This commit is contained in:
parent
34713901ad
commit
e7203d77f6
1 changed files with 6 additions and 6 deletions
|
|
@ -133,8 +133,8 @@
|
|||
"update_uboot=if tftp ${uboot}; then " \
|
||||
"if itest ${filesize} > 0; then " \
|
||||
"mmc dev ${mmcdev}; mmc rescan; " \
|
||||
"setexpr blkc ${filesize} / 0x200; " \
|
||||
"setexpr blkc ${blkc} + 1; " \
|
||||
"setexpr blkc ${filesize} + 0x1ff; " \
|
||||
"setexpr blkc ${blkc} / 0x200; " \
|
||||
"if itest ${blkc} <= ${uboot_size}; then " \
|
||||
"mmc write ${loadaddr} ${uboot_start} " \
|
||||
"${blkc}; " \
|
||||
|
|
@ -145,8 +145,8 @@
|
|||
"if tftp ${kernel}; then " \
|
||||
"if itest ${filesize} > 0; then " \
|
||||
"mmc dev ${mmcdev}; mmc rescan; " \
|
||||
"setexpr blkc ${filesize} / 0x200; " \
|
||||
"setexpr blkc ${blkc} + 1; " \
|
||||
"setexpr blkc ${filesize} + 0x1ff; " \
|
||||
"setexpr blkc ${blkc} / 0x200; " \
|
||||
"if itest ${blkc} <= ${kernel_size}; then " \
|
||||
"mmc write ${loadaddr} " \
|
||||
"${kernel_start} ${blkc}; " \
|
||||
|
|
@ -157,8 +157,8 @@
|
|||
"update_fdt=if tftp ${fdt_file}; then " \
|
||||
"if itest ${filesize} > 0; then " \
|
||||
"mmc dev ${mmcdev}; mmc rescan; " \
|
||||
"setexpr blkc ${filesize} / 0x200; " \
|
||||
"setexpr blkc ${blkc} + 1; " \
|
||||
"setexpr blkc ${filesize} + 0x1ff; " \
|
||||
"setexpr blkc ${blkc} / 0x200; " \
|
||||
"if itest ${blkc} <= ${fdt_size}; then " \
|
||||
"mmc write ${loadaddr} ${fdt_start} ${blkc}; " \
|
||||
"fi; " \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue