From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yxbks-0000fn-O5 for barebox@lists.infradead.org; Wed, 27 May 2015 13:52:23 +0000 Received: by wgme6 with SMTP id e6so10198088wgm.2 for ; Wed, 27 May 2015 06:52:00 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20150527065300.GP6325@pengutronix.de> References: <20150527065300.GP6325@pengutronix.de> Date: Wed, 27 May 2015 15:52:00 +0200 Message-ID: From: Jean-Christophe BEGUE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Programatically write in a file in the environnent with a hush command To: Sascha Hauer Cc: barebox@lists.infradead.org I didn't noticed -a and -o options for echo. That suits my needs, but "nv" is exactly what I'm trying to acheive. I'll use the kernel command line as well on early phases of my software boot. Thank you! Jean-Christophe BEGUE http://www.devisubox.com On Wed, May 27, 2015 at 8:53 AM, Sascha Hauer wrote: > Hi Jean-Christophe, > > On Tue, May 26, 2015 at 05:41:06PM +0200, Jean-Christophe BEGUE wrote: >> Hello, >> >> I'm trying to pass a value from Barebox to the operating system, using >> the usreland command bareboxenv -l. >> >> My problem is : How should I write that status from my hush barebox script? >> >> echo $mystatus > /env/data/my_status_file >> >> The above command doesn't work as '>' is not implemented. >> >> I've the feeling that I'm missing something? > > Besides the ways Alexander just mentioned you could also add something > to the kernel cmdline and parse /proc/cmdline later in userspace. > Still another possibility is to add nodes/properties to the device tree > using the of_* commands. > > Sascha > > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox