mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* interface between barebox and linux
@ 2011-09-13  6:38 Vanhauwaert Wouter
  2011-09-13  6:46 ` Baruch Siach
  0 siblings, 1 reply; 2+ messages in thread
From: Vanhauwaert Wouter @ 2011-09-13  6:38 UTC (permalink / raw)
  To: barebox

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: interface between barebox and linux
  2011-09-13  6:38 interface between barebox and linux Vanhauwaert Wouter
@ 2011-09-13  6:46 ` Baruch Siach
  0 siblings, 0 replies; 2+ messages in thread
From: Baruch Siach @ 2011-09-13  6:46 UTC (permalink / raw)
  To: Vanhauwaert Wouter; +Cc: barebox

Hi Wouter,

On Tue, Sep 13, 2011 at 08:38:35AM +0200, Vanhauwaert Wouter wrote:
> 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.

See scripts/bareboxenv.c in the source tree.

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-13  6:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-13  6:38 interface between barebox and linux Vanhauwaert Wouter
2011-09-13  6:46 ` Baruch Siach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox