From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de, Alper Nebi Yasak <alpernebiyasak@gmail.com>,
Aristo Chen <jj251510319013@gmail.com>,
Bin Meng <bmeng.cn@gmail.com>, Bryan Brattlof <bb@ti.com>,
Marek Vasut <marex@nabladev.com>,
Neha Malcom Francis <n-francis@ti.com>,
Peng Fan <peng.fan@nxp.com>,
Philippe Reynes <philippe.reynes@softathome.com>,
Quentin Schulz <quentin.schulz@cherry.de>,
Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>,
Tom Rini <trini@konsulko.com>,
Wojciech Dubowik <Wojciech.Dubowik@mt.com>,
Yannic Moog <y.moog@phytec.de>
Subject: Re: [PATCH v2 1/5] binman: Add an entry type for the Intel OSIP header
Date: Wed, 17 Jun 2026 08:42:32 +0200 [thread overview]
Message-ID: <ajJB2IhtZ4swZoLW@black.igk.intel.com> (raw)
In-Reply-To: <ajI_QluanoNRbhON@ashevche-desk.local>
On Wed, Jun 17, 2026 at 09:31:30AM +0300, Andy Shevchenko wrote:
> On Tue, Jun 16, 2026 at 08:24:16AM -0600, Simon Glass wrote:
> > Intel Atom SoCs (Medfield, Clovertrail, Merrifield and Moorefield) boot
> > via an 'OS Image Profile' (OSIP): a 512-byte '$OS$' header which tells
> > the boot ROM where the OS image lives, where to load it and where to
> > start executing. On the Intel Edison (Merrifield) the OS image is
> > U-Boot.
> >
> > The Edison image embeds this header as the static blob
> > board/intel/edison/edison-osip.dat which is an empty stub in the tree,
> > so a fresh build emits an all-zero, non-functional header.
> >
> > Add an 'intel-osip' entry type which builds the header from devicetree
> > properties, computing the checksum and taking the load address and entry
> > point (both required) plus the logical block address, image size and
> > attribute as parameters. The same sector doubles as the eMMC's
> > protective MBR, which the boot ROM requires before it loads the OS
> > image, so emit a GPT-protective (0xee) partition entry and the 0x55aa
> > signature too. Use it for the Edison image in place of that blob, and
> > remove the now-unused stub file.
> >
> > The Edison node derives the load address and entry point from
> > CONFIG_TEXT_BASE (entry point) and CONFIG_TEXT_BASE - 0x1000 (load
> > address), rather than repeating the magic numbers, since the 0x1000
> > difference is the mask ROM's load/entry gap.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
While I gave a tag, please check the comment in my reply to patch 5.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2026-06-17 6:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-16 14:24 [PATCH v2 0/5] edison: Convert the image build to binman Simon Glass
2026-06-16 14:24 ` [PATCH v2 1/5] binman: Add an entry type for the Intel OSIP header Simon Glass
2026-06-17 6:31 ` Andy Shevchenko
2026-06-17 6:42 ` Andy Shevchenko [this message]
2026-06-16 14:24 ` [PATCH v2 2/5] edison: Widen the DFU auto-probe window for flashing U-Boot Simon Glass
2026-06-16 14:24 ` [PATCH v2 3/5] x86: edison: Move U-Boot alignment into binman Simon Glass
2026-06-16 14:24 ` [PATCH v2 4/5] CI: Add an sjg-lab job for the Intel Edison Simon Glass
2026-06-17 6:34 ` Andy Shevchenko
2026-06-16 14:24 ` [PATCH v2 5/5] doc: edison: Rewrite the update instructions Simon Glass
2026-06-17 6:41 ` Andy Shevchenko
2026-06-17 6:44 ` Andy Shevchenko
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=ajJB2IhtZ4swZoLW@black.igk.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=Wojciech.Dubowik@mt.com \
--cc=alpernebiyasak@gmail.com \
--cc=bb@ti.com \
--cc=bmeng.cn@gmail.com \
--cc=jj251510319013@gmail.com \
--cc=marex@nabladev.com \
--cc=n-francis@ti.com \
--cc=peng.fan@nxp.com \
--cc=philippe.reynes@softathome.com \
--cc=quentin.schulz@cherry.de \
--cc=sjg@chromium.org \
--cc=stefan.herbrechtsmeier@weidmueller.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=y.moog@phytec.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