All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aleksandr Bulyshchenko <a.bulyshchenko@globallogic.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command
Date: Thu, 5 Dec 2019 04:17:38 +0200	[thread overview]
Message-ID: <CAM9_atZp8rmPZOqUMy_Yd4DgYmC-qkH72McWnN9SRONH8Fzh8Q@mail.gmail.com> (raw)
In-Reply-To: <CAKaJLVvOONBkCWM9UaVhmozhnEC7wsBSfSCyk8O4j-VmURN0VQ@mail.gmail.com>

Hello Sam,

I'd like to add my 5 cents regarding separating dtimg start|size into 3
subcommands

> dtimg start index <num> <addr> [varname]
> dtimg start id <num> <addr> [varname]
> dtimg start rev <num> <addr> [varname]
>
> While I don't see real usecases for combining index with id or rev (if
someone applies metainformation to dtb entries for meaningful lookup,
identical entries most probably mean copy-paste error),
but at the same time I see space for at least two-factor identification
(e.g. model and revision).
Thus API should allow (but not require) combining id and rev.

The same remains relevant for abootimg as well.

Thanks,
Aleksandr Bulyshchenko

On Wed, Dec 4, 2019 at 9:12 PM Sam Protsenko <semen.protsenko@linaro.org>
wrote:

> Hi,
>
> On Wed, Dec 4, 2019 at 7:33 PM Eugeniu Rosca <erosca@de.adit-jv.com>
> wrote:
> >
> > Hello Sam,
> > Please, see one more suggestion below.
> >
> > On Tue, Dec 03, 2019 at 08:29:10PM +0100, Eugeniu Rosca wrote:
> > > Hi Sam,
> > > Cc: Aleksandr, Roman
> > >
> > > As expressed in the attached e-mail, to minimize the headaches
> extending
> > > the argument list of "bootimg" in future, can we please agree on below?
> > >
> > > On Wed, Oct 23, 2019 at 05:34:22PM +0300, Sam Protsenko wrote:
> > > > +U_BOOT_CMD(
> > > > +   bootimg, CONFIG_SYS_MAXARGS, 0, do_bootimg,
> > > > +   "manipulate Android Boot Image",
> > > > +   "set_addr <addr>\n"
> > > > +   "    - set the address in RAM where boot image is located\n"
> > > > +   "      ($loadaddr is used by default)\n"
> > > > +   "bootimg ver <varname>\n"
> > >
> > > Can we make <varname> optional, with the background provided in [1]?
> > >
> > > > +   "    - get header version\n"
> > > > +   "bootimg get_dtbo <addr_var> [size_var]\n"
> > >
> > > How about converting <addr_var> to an optional argument too?
> > >
> > > > +   "    - get address and size (hex) of recovery DTBO area in the
> image\n"
> > > > +   "      <addr_var>: variable name to contain DTBO area address\n"
> > > > +   "      [size_var]: variable name to contain DTBO area size\n"
> > > > +   "bootimg dtb_dump\n"
> > > > +   "    - print info for all files in DTB area\n"
> > > > +   "bootimg dtb_load_addr <varname>\n"
> > >
> > > Same as above w.r.t. <varname>.
> > >
> > > > +   "    - get load address (hex) of DTB\n"
> > > > +   "bootimg get_dtb_file <index> <addr_var> [size_var]\n"
> >
> > How about "get_dte" or "get_dtbe" instead of "get_dtb_file" ?
> > It's shorter and should be easier to remember (dt{b}e = DT{B} Entry).
> >
>
> Sorry, I like get_dtb more. It's .dtb file in the end, and it's called
> exactly "dtb" in boot.img struct. So this is a keeper :)
>
> > --
> > Best Regards,
> > Eugeniu
>

  reply	other threads:[~2019-12-05  2:17 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23 14:34 [U-Boot] [PATCH v2 0/8] am57xx: Implement Android 10 boot flow Sam Protsenko
2019-10-23 14:34 ` [U-Boot] [PATCH v2 1/8] image: android: Add functions for handling dtb field Sam Protsenko
2019-10-29  1:49   ` Eugeniu Rosca
2019-12-02 17:19     ` Sam Protsenko
2019-12-03 13:59       ` Eugeniu Rosca
2019-12-03 19:24         ` Sam Protsenko
2019-10-23 14:34 ` [U-Boot] [PATCH v2 2/8] image: android: Add routine to get dtbo params Sam Protsenko
2019-10-23 14:34 ` [U-Boot] [PATCH v2 3/8] cmd: bootimg: Add bootimg command Sam Protsenko
2019-10-30  1:48   ` Simon Glass
2019-11-27 19:16   ` Eugeniu Rosca
2019-12-02 19:07     ` Sam Protsenko
2019-12-04 17:22       ` Eugeniu Rosca
2019-12-03 19:29   ` Eugeniu Rosca
2019-12-04 17:33     ` Eugeniu Rosca
2019-12-04 19:11       ` Sam Protsenko
2019-12-05  2:17         ` Aleksandr Bulyshchenko [this message]
2019-12-05 10:36           ` Eugeniu Rosca
2019-12-05 13:58           ` Sam Protsenko
2019-12-04 19:10     ` Sam Protsenko
2019-12-04 18:25   ` Eugeniu Rosca
2019-12-04 19:23     ` Sam Protsenko
2019-10-23 14:34 ` [U-Boot] [PATCH v2 4/8] test/py: android: Add test for bootimg Sam Protsenko
2019-10-23 14:34 ` [U-Boot] [PATCH v2 5/8] configs: am57xx_evm: Enable Android commands Sam Protsenko
2019-10-23 14:34 ` [U-Boot] [PATCH v2 6/8] env: ti: boot: Respect slot_suffix in AVB commands Sam Protsenko
2019-10-23 14:34 ` [U-Boot] [PATCH v2 7/8] env: ti: boot: Boot Android with dynamic partitions Sam Protsenko
2019-11-03 14:35   ` Tom Rini
2019-12-02 17:32     ` Sam Protsenko
2019-10-23 14:34 ` [U-Boot] [PATCH v2 8/8] arm: ti: boot: Use correct dtb and dtbo on Android boot Sam Protsenko

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=CAM9_atZp8rmPZOqUMy_Yd4DgYmC-qkH72McWnN9SRONH8Fzh8Q@mail.gmail.com \
    --to=a.bulyshchenko@globallogic.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.