From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Petermaier Date: Wed, 12 Mar 2014 21:51:21 +0100 Subject: [U-Boot] [PATCH] Add support for offset of a filesystem within a block-device In-Reply-To: <20140312202710.GI16805@bill-the-cat> References: <1394112635-21016-1-git-send-email-oe5hpm@oevsv.at> <20140312160823.GS16805@bill-the-cat> <53209704.303@petermaier.org> <20140312190021.GV16805@bill-the-cat> <5320B2DB.1030203@petermaier.org> <20140312193318.GW16805@bill-the-cat> <5320C027.5080109@petermaier.org> <20140312202710.GI16805@bill-the-cat> Message-ID: <5320C8C9.40907@petermaier.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2014-03-12 21:27, Tom Rini wrote: >> >> 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! > Ok Tom, we can do so ... please mark it for now as RFC. Maybe in the future other people say "i like this too ..." and we can apply this feature to the mainline code. Until this day comes, "block-device offset within flash" will be my personal "nursing-case" and i have to patch it into my build. many thanks for your time and best regards, Hannes