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 16:27:10 -0400 [thread overview]
Message-ID: <20140312202710.GI16805@bill-the-cat> (raw)
In-Reply-To: <5320C027.5080109@petermaier.org>
On Wed, Mar 12, 2014 at 09:14:31PM +0100, Hannes Petermaier wrote:
>
> On 2014-03-12 20:33, Tom Rini wrote:
> >On Wed, Mar 12, 2014 at 08:17:47PM +0100, Hannes Petermaier wrote:
> >
> >>Good idea, i've also thougt about this way ....
> >>but what happens in case of OS is going to re-partitioning the drive
> >>(flash), delete all partitions (dummy-part also) an puts the first
> >>(new) partition behind the part-table (vxWorks can handle up to four
> >>partitions and we give end-user the possibility to create/delete
> >>partitions) ? First partition becomes laying over U-Boot @ 384k (and
> >>some other stuff which may be stored there).
> >>To prevent this case we would have to modify "fdisk" of vxWorks,
> >>which i would like to prevent because this is a common part of OS
> >>and would affect all mass-storage.
> >>With my solution, OS never can see/delete any other (dummy)
> >>partitiion - it has always "a normal drive" accessible.
> >Since this is really eMMC, mark SPL/U-Boot as protected? I'd swear such
> >a thing is allowed, but I've just been looking at QSPI things recently
> >not eMMC so I might have some mental mismatch.
> >
> Hi Tom,
> You're right. SPL could be marked as protected.
> But how to deal here with u-boot itself ? its address is within a
> possible area of a partition.
> Fdisk doesn't know about that :-(
> We also cannot protect #0 where partition-table is stored, because
> user should able to create/delete partitions.
Block size then wouldn't let 0->128K be writable, 128->whatever
read-only, whatever->end writable ?
> So - maybe be a solution, but unfortunately not for me :-(
> Today we give to our end-users up to 4 partitiions, exact that what
> VxWorks can support - so i will be hard to have a 5th one ...
Well, I guess there's two ways to look at this, either just
documentation or seeing how hard it would be to make VxWorks behave like
other OSes and let partition 1 be wherever it says it is, or some
combination of both.
I do appreciate you posting the code as it may be useful to others but
at least right now, barring an outcry of "oh wait, I need this too!" I'm
inclined to mark this as RFC in patchwork. Thanks again!
--
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/29d1d40d/attachment.pgp>
next prev parent reply other threads:[~2014-03-12 20:27 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
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 [this message]
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=20140312202710.GI16805@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