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

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