summaryrefslogtreecommitdiffstats
path: root/rbutil/mkimxboot
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-08-06 21:24:12 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-08-06 21:24:39 +0200
commit21672ba31cbcd6bf4b70d7dbbdcaa8db86effc0b (patch)
treec88ba81066047a7178ef598271950a2089613e62 /rbutil/mkimxboot
parentc0aba07f1a4221e0aee10f7fddc47dde29e5282e (diff)
downloadrockbox-21672ba31cbcd6bf4b70d7dbbdcaa8db86effc0b.tar.gz
rockbox-21672ba31cbcd6bf4b70d7dbbdcaa8db86effc0b.tar.bz2
rockbox-21672ba31cbcd6bf4b70d7dbbdcaa8db86effc0b.zip
mkimxboot: fix red
Change-Id: Id5d27fc00969b6999df665e7182b7ff27bccfacd
Diffstat (limited to 'rbutil/mkimxboot')
-rw-r--r--rbutil/mkimxboot/mkimxboot.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/rbutil/mkimxboot/mkimxboot.c b/rbutil/mkimxboot/mkimxboot.c
index 33516a92d6..5fce116def 100644
--- a/rbutil/mkimxboot/mkimxboot.c
+++ b/rbutil/mkimxboot/mkimxboot.c
@@ -649,7 +649,6 @@ static enum imx_error_t rb_fw_load_buf_elf(struct rb_fw_t *fw, uint8_t *buf,
printf("[ERR] Error parsing ELF file\n");
return IMX_BOOT_INVALID;
}
- elf_translate_addresses(&elf);
fw->nr_insts = elf_get_nr_sections(&elf) + 1;
fw->insts = xmalloc(fw->nr_insts * sizeof(struct sb_inst_t));
fw->entry_idx = fw->nr_insts - 1;
@@ -657,7 +656,7 @@ static enum imx_error_t rb_fw_load_buf_elf(struct rb_fw_t *fw, uint8_t *buf,
struct elf_section_t *sec = elf.first_section;
for(int i = 0; sec; i++, sec = sec->next)
{
- fw->insts[i].addr = sec->addr;
+ fw->insts[i].addr = elf_translate_virtual_address(&elf, sec->addr);
fw->insts[i].size = sec->size;
if(sec->type == EST_LOAD)
{
@@ -735,7 +734,7 @@ enum imx_error_t mkimxboot(const char *infile, const char *bootfile,
if(ret != IMX_SUCCESS)
return ret;
printf("[INFO] MD5 sum of the file: ");
- print_hex(file_md5sum, 16, true);
+ print_hex(NULL, misc_std_printf, file_md5sum, 16, true);
/* find model */
int md5_idx;
ret = find_model_by_md5sum(file_md5sum, &md5_idx);
@@ -791,7 +790,7 @@ enum imx_error_t extract_firmware(const char *infile,
return ret;
}
printf("[INFO] MD5 sum of the file: ");
- print_hex(file_md5sum, 16, true);
+ print_hex(NULL, misc_std_printf, file_md5sum, 16, true);
/* find model */
int md5_idx;
ret = find_model_by_md5sum(file_md5sum, &md5_idx);