mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ian Abbott <abbotti@mev.co.uk>
To: Barebox List <barebox@lists.infradead.org>
Subject: Do I really need 3 buckets for state?
Date: Thu, 24 Jan 2019 15:28:29 +0000	[thread overview]
Message-ID: <75fa7503-7633-3a67-4f5b-b857809bdfb5@mev.co.uk> (raw)

Hi,

Back when I was determining how to partition the spi-nor flash on my 
embedded device, I reserved two erase blocks (each of size 65536) for 
use as a barebox state partition.  I wasn't using it for anything at the 
time.  Now I want to use it to hold bootstate information for barebox 
bootchooser (for use in combination with rauc to handle system updates).

I am using backend-type="raw"; backend-storage-type="circular"; and 
backend-stridesize=<0x40>;.  It all works fine except that I get a 
warning from barebox:

Failed to initialize desired amount of buckets, only 2 of 3 succeeded

I have "fixed" the warning with a local patch to reduce the 
'desired_buckets' constant in "common/state/backend_storage.c" from 3 to 2.

My question is, how much trouble am I letting myself in for with this 
local patch?  I assume the state driver will only erase and update 1 
bucket at a time when the buckets are full.  Do I really need 3 buckets 
or will 2 buckets be enough?

Best regards,
Ian Abbott.

-- 
-=( Ian Abbott <abbotti@mev.co.uk> || Web: www.mev.co.uk )=-
-=( MEV Ltd. is a company registered in England & Wales. )=-
-=( Registered number: 02862268.  Registered address:    )=-
-=( 15 West Park Road, Bramhall, STOCKPORT, SK7 3JZ, UK. )=-

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2019-01-24 15:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-24 15:28 Ian Abbott [this message]
2019-01-25  5:53 ` Ulrich Ölmann

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=75fa7503-7633-3a67-4f5b-b857809bdfb5@mev.co.uk \
    --to=abbotti@mev.co.uk \
    --cc=barebox@lists.infradead.org \
    /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