All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 7/7] tegra: seaboard: disable SPI, move environment to eMMC
Date: Thu, 31 May 2012 18:00:12 -0600	[thread overview]
Message-ID: <4FC8060C.7060906@wwwdotorg.org> (raw)
In-Reply-To: <CAPnjgZ3UhsUFr7=Qv7gErX9620C+v72jr4Nm4ZfV3JJPeCSW4w@mail.gmail.com>

On 05/31/2012 05:39 PM, Simon Glass wrote:
> Hi Stephen,
> 
> On Thu, May 24, 2012 at 2:38 PM, Stephen Warren <swarren@wwwdotorg.org
> <mailto:swarren@wwwdotorg.org>> wrote:
> 
>     From: Stephen Warren <swarren at nvidia.com <mailto:swarren@nvidia.com>>
> 
> 
> Acked-by: Simon Glass <sjg at chromium.org <mailto:sjg@chromium.org>>
> 
> But a question - what happens if we have a partition table and
> filesystems on the eMMC - i.e. if we are not actually booting from eMMC?

The eMMC is divided into:

* Boot block 0, 512K
* Boot block 1, 512K
* Main area, the rest

This patch stores the environment at the end of boot block 1.

The Linux kernel sees each of those 3 areas as separate block devices
(and indeed the 2 boot blocks are read-only by default and require sysfs
writes to enable writing). As such, any partition table etc. would be
confined to the main area. So, there should be no conflict between PT/FS
and saved environment.

SD cards don't have these separate areas, and it may even be optional on
eMMC. Still, the Seaboard/Springbank eMMC has these separate blocks.

  reply	other threads:[~2012-06-01  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-24 21:38 [U-Boot] [PATCH 1/7] env_mmc: align buffers using ALLOC_CACHE_ALIGN_BUFFER Stephen Warren
2012-05-24 21:38 ` [U-Boot] [PATCH 2/7] sf: winbond: Add support for the Winbond W25Q80BL Stephen Warren
2012-07-20  4:37   ` Mike Frysinger
2012-05-24 21:38 ` [U-Boot] [PATCH 3/7] tegra: ventana: store environment in eMMC Stephen Warren
2012-05-24 21:38 ` [U-Boot] [PATCH 4/7] tegra: whistler: " Stephen Warren
2012-05-24 21:38 ` [U-Boot] [PATCH 5/7] tegra: trimslice: store environment in SPI flash Stephen Warren
2012-05-24 21:38 ` [U-Boot] [PATCH 6/7] tegra: paz00: store environment in eMMC Stephen Warren
2012-05-24 21:38 ` [U-Boot] [PATCH 7/7] tegra: seaboard: disable SPI, move environment to eMMC Stephen Warren
2012-05-31 23:39   ` Simon Glass
2012-06-01  0:00     ` Stephen Warren [this message]
2012-06-01  1:06       ` Simon Glass

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=4FC8060C.7060906@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --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.