Skip to content
Snippets Groups Projects
Commit 2c9afab9 authored by Sam Protsenko's avatar Sam Protsenko Committed by Tom Rini
Browse files

env: ti: boot: Get rid of magic numbers


Get the start address and the size of partitions using partition names
rather than partition numbers. This way we can change the partition
table further without changing the boot code.

Signed-off-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
parent 64e6a49a
No related branches found
No related tags found
No related merge requests found
...@@ -40,15 +40,13 @@ ...@@ -40,15 +40,13 @@
"setenv eval_bootargs setenv bootargs $bootargs; " \ "setenv eval_bootargs setenv bootargs $bootargs; " \
"run eval_bootargs; " \ "run eval_bootargs; " \
"setenv mmcdev 1; " \ "setenv mmcdev 1; " \
"setenv fdt_part 3; " \
"setenv boot_part 9; " \
"setenv machid fe6; " \ "setenv machid fe6; " \
"mmc dev $mmcdev; " \ "mmc dev $mmcdev; " \
"mmc rescan; " \ "mmc rescan; " \
"part start mmc ${mmcdev} ${fdt_part} fdt_start; " \ "part start mmc ${mmcdev} environment fdt_start; " \
"part size mmc ${mmcdev} ${fdt_part} fdt_size; " \ "part size mmc ${mmcdev} environment fdt_size; " \
"part start mmc ${mmcdev} ${boot_part} boot_start; " \ "part start mmc ${mmcdev} boot boot_start; " \
"part size mmc ${mmcdev} ${boot_part} boot_size; " \ "part size mmc ${mmcdev} boot boot_size; " \
"mmc read ${fdtaddr} ${fdt_start} ${fdt_size}; " \ "mmc read ${fdtaddr} ${fdt_start} ${fdt_size}; " \
"mmc read ${loadaddr} ${boot_start} ${boot_size}; " \ "mmc read ${loadaddr} ${boot_start} ${boot_size}; " \
"bootm $loadaddr $loadaddr $fdtaddr;\0" "bootm $loadaddr $loadaddr $fdtaddr;\0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment