From: "Tomaž Šolc" <tomaz.solc@klevio.com>
To: barebox@lists.infradead.org
Subject: Re: Raspberry Pi Barebox State Integration - SD card
Date: Tue, 4 Jun 2019 09:52:42 +0200 [thread overview]
Message-ID: <60b22776-2a60-abfa-8f06-82455bdebe0d@klevio.com> (raw)
In-Reply-To: <CAPYMOwmwmX3G0cHp6DSmw+GxRmENThtABnQdSS-2cL=kgfYYPg@mail.gmail.com>
Hi
On 4. 06. 19 08:32, Valentina Rusu wrote:
> * other boards have EEPROM, NAND besides SD card and they are
> described in the device tree; RPi has no such thing;
> * somehow I need to write the state on the SD card in a location
> where does not interfere with the partitions created (boot, rootfs,
> user partitions, etc);
Barebox on Raspberry Pi automatically saves nv variables to the
"barebox.env" file in the first partition - see rpi_env_init() in
rpi-common.c. This is usually the /boot partition with FAT that also has
the VideoCore firmware files, etc.
I have a working bootchooser setup for a board based on R.Pi CM3 using
this functionality. No special setup was required in barebox regard to
saving the bootchooser state.
I'm not familiar with meta-barebox and RAUC though.
Best regards
Tomaž
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2019-06-04 7:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-04 6:32 Valentina Rusu
2019-06-04 7:52 ` Tomaž Šolc [this message]
2019-06-04 8:59 ` Moritz Augsburger
[not found] <mailman.44637.1559659159.2376.barebox@lists.infradead.org>
2019-06-05 4:26 ` Valentina Rusu
2019-06-05 6:46 ` Moritz Augsburger
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=60b22776-2a60-abfa-8f06-82455bdebe0d@klevio.com \
--to=tomaz.solc@klevio.com \
--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