mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
tools: pblimage: Fix address calculation
The image size should be added to the initial pbl command, not bit "ORed". Signed-off-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
73fbcdf163
commit
05e35d26db
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ int pblimage_check_params(struct image_tool_params *params)
|
||||||
pbi_crc_cmd2 = 0;
|
pbi_crc_cmd2 = 0;
|
||||||
pbl_cmd_initaddr = params->addr & PBL_ADDR_24BIT_MASK;
|
pbl_cmd_initaddr = params->addr & PBL_ADDR_24BIT_MASK;
|
||||||
pbl_cmd_initaddr |= PBL_ACS_CONT_CMD;
|
pbl_cmd_initaddr |= PBL_ACS_CONT_CMD;
|
||||||
pbl_cmd_initaddr |= uboot_size;
|
pbl_cmd_initaddr += uboot_size;
|
||||||
pbl_end_cmd[0] = 0x09610000;
|
pbl_end_cmd[0] = 0x09610000;
|
||||||
pbl_end_cmd[1] = 0x00000000;
|
pbl_end_cmd[1] = 0x00000000;
|
||||||
pbl_end_cmd[2] = 0x096100c0;
|
pbl_end_cmd[2] = 0x096100c0;
|
||||||
|
|
Loading…
Reference in a new issue