From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Add support for offset of a filesystem within a block-device
Date: Wed, 12 Mar 2014 12:08:23 -0400 [thread overview]
Message-ID: <20140312160823.GS16805@bill-the-cat> (raw)
In-Reply-To: <1394112635-21016-1-git-send-email-oe5hpm@oevsv.at>
On Thu, Mar 06, 2014 at 02:30:35PM +0100, Hannes Petermaier wrote:
> For clear separation of user's (OS) filesystem to U-Boot and other's
> stuff it is now possible to give the filesystem a specific offset and a
> specific size.
> For full consistency OS storage driver also has to support this and
> has to use same offset and size.
>
> Following new parameters has been added to the block_dev_desc_t
> structure:
> - lba_offset : offset in blocks from which fs is reading/writing
> - lba_fs : size in blocks of fs
>
> This two parameters are filled from the underlaying device-driver.
> As default they are initialized for giving whole size of block-device
> to the filesystem.
>
> In case of mmc-driver a function for modifiying drive geometry is
> called 'board_mmc_geometry', this function is implemented as
> '__weak', so it can be replaced by a board-specific function, which
> can setup suitable offset and size for the filesystem.
> This function is responsible for giving reasonable values, e.g.
> lba_offset+lba_fs must not exceed available blocks of the device.
>
> Only MMC Driver and FATFS are modified to support this.
>
> Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>
Sorry if I'm being dense here, but what is the usecase exactly? When we
don't have a partition table of some sort?
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/118ac62f/attachment.pgp>
next prev parent reply other threads:[~2014-03-12 16:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-06 13:30 [U-Boot] [PATCH] Add support for offset of a filesystem within a block-device Hannes Petermaier
2014-03-12 16:08 ` Tom Rini [this message]
2014-03-12 17:19 ` Hannes Petermaier
2014-03-12 19:00 ` Tom Rini
2014-03-12 19:17 ` Hannes Petermaier
2014-03-12 19:33 ` Tom Rini
2014-03-12 20:14 ` Hannes Petermaier
2014-03-12 20:27 ` Tom Rini
2014-03-12 20:51 ` Hannes Petermaier
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=20140312160823.GS16805@bill-the-cat \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox