state: access from linux

Jan Remmet J.Remmetl at phytec.de
Wed Jun 17 23:40:16 PDT 2015


On Wed, Jun 17, 2015 at 03:52:22PM +0200, Marc Kleine-Budde wrote:
> On 06/17/2015 11:06 AM, Sascha Hauer wrote:
> > On Wed, Jun 17, 2015 at 08:42:50AM +0200, Jan Remmet wrote:
> >> Hello,
> >> I'm working with barebox states and wonder if there is already a tool to access
> >> states in eeprom from linux?
> >> The states from a dtb backend should be easy to read. For raw there must be
> >> looked under /proc/devicetree or a state kernel driver.
> > 
> > Yes, there is such a tool here:
> > 
> > git://git.pengutronix.de/git/tools/dt-utils.git
> 
> BTW: Release tarballs can be found here:
> 
> http://www.pengutronix.de/software/dt-utils/download/

Thank you for pointing me to this tool. I have some trouble to get it working
with an eeprom backend. Just to be sure if the barebox side is ok:

of_dump /state
state {
        magic = <0x7074000a>;
        compatible = "barebox,state";
	        backend-type = "raw";
	        backend = "/soc/aips-bus at 02100000/i2c at 021a0000/eeprom at 50";
		linux,phandle = <0x2f>;
		phandle = <0x2f>;


The documentation shows also "partname:" in the backend property, but for
eeprom this is not valid.

Jan

> 
> Marc
> 
> -- 
> Pengutronix e.K.                  | Marc Kleine-Budde           |
> Industrial Linux Solutions        | Phone: +49-231-2826-924     |
> Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
> Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |
> 



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




More information about the barebox mailing list