mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Vanhauwaert Wouter <W.Vanhauwaert@TELEVIC.com>
To: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: interface between barebox and linux
Date: Tue, 13 Sep 2011 08:38:35 +0200	[thread overview]
Message-ID: <E78BBE677EB9144B8F0A0A29674CD533489BE99B51@SRV-VS06.TELEVIC.COM> (raw)

Hello,

For my embedded application, I want to be able to select from within Linux which kernel-partition to boot next time. 
For this I need some mechanism to store some variable which is readable from within barebox, but which can be set from within linux.
My first thought was to add an extra partition, but apparently, barebox doesn’t support any of the nand-filesystems (only cramfs, but this is readonly)
My second thought was to just readin the bare content of the bareboxenv partition, manipulate it a bit, and write it back, but then comes the crc-check in charge…
So does somebody have any idea how I can fix this?

For a second thing, I need to use the content of a file in a barebox script. But code like:

#!/bin/sh
temp = `cat /testfile`
echo $temp

⇨ Output: `cat

In stead of the content of /testfile. I’m not able to fix it…

Grtz,
Wouter

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

             reply	other threads:[~2011-09-13  6:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-13  6:38 Vanhauwaert Wouter [this message]
2011-09-13  6:46 ` Baruch Siach

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=E78BBE677EB9144B8F0A0A29674CD533489BE99B51@SRV-VS06.TELEVIC.COM \
    --to=w.vanhauwaert@televic.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