All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/4] common: imx: Implement generic u-boot.nand target
Date: Thu, 28 Feb 2013 13:53:37 -0500	[thread overview]
Message-ID: <512FA7B1.3030807@ti.com> (raw)
In-Reply-To: <201302281950.03523.marex@denx.de>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/28/2013 01:50 PM, Marek Vasut wrote:
> Dear Tom Rini,
> 
>> On Tue, Feb 26, 2013 at 12:33:52PM +0100, Beno??t Th??baudeau
>> wrote:
>>> On Tuesday, February 26, 2013 8:19:42 AM, Marek Vasut wrote:
>>>> Dear Beno??t Th??baudeau,
>>>> 
>>>>> Dear Scott Wood,
>>>>> 
>>>>> On Tuesday, February 26, 2013 12:07:25 AM, Scott Wood
>>>>> wrote:
>>>>>> On 02/25/2013 05:03:30 PM, Marek Vasut wrote:
>>>>>>> Dear Scott Wood,
>>>>>>> 
>>>>>>>> So maybe we need a more general (but optional) 
>>>>>>>> CONFIG_BUILD_TARGET.
>>>>>>> 
>>>>>>> Can you elaborate?
>>>>>> 
>>>>>> Same as CONFIG_SPL_TARGET, but not SPL-specific.
>>>>>> Basically a way for a board config file to add to
>>>>>> $(ALL-y).
>>>>>> 
>>>>>>>> So each one would set the appropriate
>>>>>>>> CONFIG_BUILD_TARGET for
>>>>>>> 
>>>>>>> whatever
>>>>>>> 
>>>>>>>> needs to get built, and then something like
>>>>>>>> CONFIG_NAND_IMAGE could hold the image name that
>>>>>>>> should be linked to produce a standard
>>>>>>>> u-boot-nand.bin output.
>>>>>>> 
>>>>>>> Yea, sounds reasonable. But why call it CONFIG_ , it
>>>>>>> can't be stored in the board.h files, it has to be
>>>>>>> somewhere in the Makefile hierarchy.
>>>>>> 
>>>>>> Why can't it go in the board.h files?
>>>>> 
>>>>> We could do all that, but should we? As I said to Marek, I
>>>>> think that it's a big mistake to omit the SPL here. The
>>>>> only other solution to get a reliable boot would be the
>>>>> DBBT, but it's very hard to use in real life, away from a
>>>>> production line. The SPL is really easy to enable here, and
>>>>> it's only a matter of time before someone gets bitten by
>>>>> this lack of reliability, so why not just do things right? 
>>>>> The boot time and footprint of an SPL would really be
>>>>> negligible, and it's not because other implementations omit
>>>>> both SPL and a valid DBBT that U-Boot should do the same.
>>>> 
>>>> I'm not against SPL, but then we're starting to drift away
>>>> from the whole idea of generating u-boot-nand.bin or similar
>>>> image. Being able to generate u-boot- nand.bin or
>>>> u-boot-sd.bin etc ... on a per-CPU basis (since this is CPU 
>>>> specific) is the ultimate goal here, whatever is embedded in
>>>> the image.
>>> 
>>> OK, I didn't know that this was your goal here. If the contents
>>> of the image do not matter, then my u-boot-with-nand-spl.imx
>>> could be renamed into your u-boot-nand.bin with the appropriate
>>> FCB header, and CONFIG_SPL_TARGET could be changed to something
>>> more generic as Scott explained.
>> 
>> I wonder how the rules start looking.  In the end, some way to
>> say "Here is the image to write to NAND, called u-boot-nand.bin"
>> which will have whatever board needs (say spl/u-boot-spl.bin +
>> some header attached followed by pad, followed by u-boot.img).
>> And also allow for u-boot-nand.bin to be what someone else needs
>> (say a different header on u-boot-spl.bin), etc.
> 
> They'd be CPU specific rules, so that depends on the CPU really.

Yes, they'd have to have a level of granularity (and
cross-sharability) to them.  Which is why I wonder how it would all
look, since it needs to look on the clean side.  I'm expressing a
desire to use these rules on non-Freescale parts right away, so long
as the infrastructure is done right.

- -- 
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRL6exAAoJENk4IS6UOR1WR60QAJ8UGeXt1xe/bAOYQkacmgSK
g03ZEWFIRZiQIogcnR7hzk2eiIb2zqCPHRtpnEIumOVpaOMISN/DKKeI5XbyQIiA
GOW8UgTnqQ0Inr6Uoo2gwRqsPS3G9qDVPd3ZeZXo1rU48h+j3jAH5feelcwmVaFx
koef5+5GpQUsaah203w5g6PSDz/+r2unud5ZptK+Fzw4yQmBHgnOET99tlRtg/pQ
v0pOKDDtwh+Y/xyhV56iZrchnGBIfL05w1O2Urb+SDFvwZLyNjO4bmh4ZuNH+v1c
z2dxDWo+V57hfqKiqeQwT3Bz55WiUMGamMSW13xyK0vuNZz+m66PpF9tOdUUizlt
lkn2U1O++KPi+POXWzu9ILD00U2m5K5fHhMmfVCP+hJuJu26ada5rFaufkYqDU0p
ksxcPmvH+9gz4swc+fNGONQGNcGLde2x1nboLVYn8Gfh0Ckcc8Bhh6aJt4VOU0ID
LLVay1vbq5uCe1MPX2uHkZ5ZZrgms5L8ZFwWcjG2K/BnbA7Rg4pri/SOICiH27P9
B8qKb8myhKrtup91wHnCeCKi7PSY69kZRpKevkrFirdq4rY5XDVBlSeCGlfvMk49
i5gi6vov1BclBRIgIh1+fUIN8R6Cg7Eo30j9ptitzM9R6V7sLTu3CMl+GvCTHWwN
E44z2bb+9GJyB1M/+ZVL
=SxUx
-----END PGP SIGNATURE-----

  reply	other threads:[~2013-02-28 18:53 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-25 18:19 [U-Boot] [PATCH 1/4] common: imx: Implement generic u-boot.nand target Marek Vasut
2013-02-25 18:19 ` [U-Boot] [PATCH 2/4] imx: Align the imximage header and payload to multiples of 4k Marek Vasut
2013-02-25 19:13   ` Benoît Thébaudeau
2013-02-25 21:07     ` Marek Vasut
2013-02-25 21:16       ` Benoît Thébaudeau
2013-02-25 18:19 ` [U-Boot] [PATCH 3/4] mx5: Add NAND clock handling Marek Vasut
2013-02-25 19:27   ` Benoît Thébaudeau
2013-02-25 18:24 ` [U-Boot] [PATCH 4/4] mx5: Add support for DENX M53EVK Marek Vasut
2013-02-25 19:33   ` Benoît Thébaudeau
2013-02-26 13:52   ` Fabio Estevam
2013-02-26 19:32   ` Fabio Estevam
2013-04-14 17:20     ` Marek Vasut
2013-04-14 19:07       ` Wolfgang Denk
2013-04-14 19:18         ` Marek Vasut
2013-02-25 18:51 ` [U-Boot] [PATCH 1/4] common: imx: Implement generic u-boot.nand target Benoît Thébaudeau
2013-02-25 21:09   ` Marek Vasut
2013-02-25 21:13     ` Benoît Thébaudeau
2013-02-26  1:02   ` [U-Boot] patch error wanxs
2013-02-25 20:10 ` [U-Boot] [PATCH 1/4] common: imx: Implement generic u-boot.nand target Scott Wood
2013-02-25 21:10   ` Marek Vasut
2013-02-25 22:15     ` Scott Wood
2013-02-25 23:03       ` Marek Vasut
2013-02-25 23:07         ` Scott Wood
2013-02-25 23:50           ` Benoît Thébaudeau
2013-02-26  7:19             ` Marek Vasut
2013-02-26 11:33               ` Benoît Thébaudeau
2013-02-27 17:33                 ` Tom Rini
2013-02-28 18:50                   ` Marek Vasut
2013-02-28 18:53                     ` Tom Rini [this message]
2013-02-26  7:17           ` Marek Vasut
2013-02-26 23:10             ` Scott Wood
2013-02-27 22:18 ` Benoît Thébaudeau
2013-02-27 23:44   ` Tom Rini
2013-02-27 23:47     ` Benoît Thébaudeau
2013-02-28 12:18       ` Benoît Thébaudeau
2013-02-28 14:03   ` Tom Rini
2013-02-28 15:24     ` Benoît Thébaudeau
2013-02-28 16:06       ` Benoît Thébaudeau
2013-02-28 16:21         ` Tom Rini
2013-02-28 16:29           ` Benoît Thébaudeau
2013-02-28 16:42             ` Tom Rini

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=512FA7B1.3030807@ti.com \
    --to=trini@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.