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@02100000/i2c@021a0000/eeprom@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@xxxxxxxxxxxxxxxxxxx > http://lists.infradead.org/mailman/listinfo/barebox _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox