From: Dirk Behme <dirk.behme@de.bosch.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] imximage: Create i.MX6 NOR flash images (was: [PATCH v5 1/1] imximage: Add MX53 boot image support)
Date: Mon, 13 Feb 2012 15:10:27 +0100 [thread overview]
Message-ID: <4F3919D3.4050907@de.bosch.com> (raw)
In-Reply-To: <1295466026-19025-1-git-send-email-r64343@freescale.com>
Hi Jason,
On 19.01.2011 20:40, Jason Liu wrote:
> This patch add the MX53 boot image support.
>
> This patch has been tested on Freescale MX53EVK board
> and MX51EVK board.
>
> Signed-off-by: Jason Liu <r64343@freescale.com>
>
...
> diff --git a/tools/imximage.c b/tools/imximage.c
> index 39f89c2..8e81bdb 100644
> --- a/tools/imximage.c
> +++ b/tools/imximage.c
...
> +static void set_imx_hdr_v2(struct imx_header *imxhdr, uint32_t dcd_len,
> + struct stat *sbuf,
> + struct mkimage_params *params)
> +{
...
> + /* Set default offset */
> + imxhdr->flash_offset = FLASH_OFFSET_STANDARD;
I have some doubts that this hard coding (over writing) of
imxhdr->flash_offset is correct here.
For booting from i.MX6 parallel NOR or NAND, flash_offset is != 0x400
(FLASH_OFFSET_STANDARD).
In parse_cfg_cmd() we read the correct flash offset valid for the
selected boot device from the configuration:
case CMD_BOOT_FROM:
imxhdr->flash_offset = get_table_entry_id(imximage_bootops,
"imximage boot option", token);
But this correct flash offset is afterwards overwritten by
imxhdr->flash_offset = FLASH_OFFSET_STANDARD;
as mentioned above, which I think is wrong. It doesn't matter for all
devices which use FLASH_OFFSET_STANDARD (e.g. SD/SPI NOR etc), but it
doesn't seem to work for parallel NOR and NAND.
What do you think?
I will need some time to verify this with a != 0x400 boot device, but as
soon as I have this working I will send a patch for the imximage tool.
Best regards
Dirk
Btw.: I'm not sure if the same statement for the v1 header
set_imx_hdr_v1() is wrong, too, though?
prev parent reply other threads:[~2012-02-13 14:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-19 19:40 [U-Boot] [PATCH v5 1/1] imximage: Add MX53 boot image support Jason Liu
2011-01-25 7:56 ` Jason Liu
2011-01-27 18:24 ` Albert ARIBAUD
2011-01-27 18:51 ` Stefano Babic
2011-02-01 17:40 ` Stefano Babic
2012-02-13 14:10 ` Dirk Behme [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F3919D3.4050907@de.bosch.com \
--to=dirk.behme@de.bosch.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox