public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-BOOT][PATCH 1/5] MX53: Add initial support for the Freescale MX53
Date: Wed, 23 Jun 2010 16:03:22 +0200	[thread overview]
Message-ID: <4C22142A.3030806@denx.de> (raw)
In-Reply-To: <AANLkTim8Xh0VrGc6lIm67lHgcS3PDTJzxB39R819j7GU@mail.gmail.com>

Jason Liu wrote:
> Hi, Stefano

Hi Jason,

>      MX53 has different flash header structure than mx51/35/25, which
> means I need change the tools/imximage.c files

I can see something in the patch you have already sent. However, I do
not know the details, and the documentation on Freescale's website is
not yet released.

>      I want to add one imximage_v2.c and .h file and register the
> imx_v2 format to system. Do you think it's accepted or not.

I do not know, it depends if this is the best solution expressed by the
ML  ;-).
Is there a way to get a preview about the flash header required by the
MX.53 ?

I try to make some assumptions based on the flash_header.S file you
delivered in your patchset, just to share some ideas.

It seems that for MX.53 all (or most) values are written with big
endianess. This could be managed with a tag in the configuration file,
something like:

	ENDIAN	BIG

If it is not set, values must be written in little endian mode as for MX.51.

Except for the endianess, the DCD table seems to be the same (two
integers for each entry, address and value), but with a different magic
number as for MX51 (dcd_hdr). Is there any internal name in Freescale to
distinguish between the flash header for the MX51 and for the MX53 (or
other processors of the family) ? Some version numbers ?
It could be possible to add this information to the configuration file
to inform the imximage utility which kind of header must be generated.
Feel free to add any kind of additional tags to the configuration file
you think can be useful.

I do not know which kind of modifications you plane to do, but I think
it would be preferable to have a single utility to manage the IMX
header. I mean, you can add additional files, but it would be bad if the
parser and some other parts will be duplicated. I think it is better to
extend the actual parser to support the MX53 changes.
Some values in your flash header seems to be addresses, as

boot_data:        .word 0x77800000

Is it ? Then yes, I think these values should not be hard-coded, and
they can be computed by the imximage as it does currently for MX51
(check for example to the app_code_jump_vector and dcd_ptr_ptr in the code).

By the way, I posted your question on the u-boot ML, if someone else
would like to contribute to this topic.

Best regards,
Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  parent reply	other threads:[~2010-06-23 14:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-18 15:22 [U-Boot] [U-BOOT][PATCH 1/5] MX53: Add initial support for the Freescale MX53 Jason Liu
2010-06-18  9:23 ` Stefano Babic
2010-06-18  9:50   ` Liu Hui-R64343
     [not found]   ` <AANLkTim8Xh0VrGc6lIm67lHgcS3PDTJzxB39R819j7GU@mail.gmail.com>
2010-06-23 14:03     ` Stefano Babic [this message]
2010-06-18 15:22 ` [U-Boot] [U-BOOT][PATCH 2/5] MX53: Add register definitions Jason Liu
2010-06-18  9:35   ` Stefano Babic
2010-06-18 15:22 ` [U-Boot] [U-BOOT][PATCH 3/5] MX53: Add pin and multiplexer definitions Jason Liu
2010-06-18  9:48   ` Stefano Babic
2010-06-18  9:54     ` Liu Hui-R64343
2010-06-18 15:22 ` [U-Boot] [U-BOOT][PATCH 4/5] serial_mxc: add support for MX53 processor Jason Liu
2010-06-18  9:52   ` Stefano Babic
2010-06-18  9:55     ` Liu Hui-R64343
2010-06-18 15:22 ` [U-Boot] [U-BOOT][PATCH 5/5] Add initial support for Freescale mx53evk board Jason Liu
2010-06-18  9:45   ` Wolfgang Denk
2010-06-18 10:31   ` Stefano Babic

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=4C22142A.3030806@denx.de \
    --to=sbabic@denx.de \
    --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