[PATCH] libdt: fix detection of eeprom devicepath

Jan Remmet J.Remmetl at phytec.de
Mon Jun 22 23:32:00 PDT 2015


On Sun, Jun 21, 2015 at 08:36:39PM +0200, Marc Kleine-Budde wrote:
> On 06/19/2015 09:52 AM, Marc Kleine-Budde wrote:
> >> At the end of of_get_devicepath there is a check for eeproms, but then
> >> of_parse_partition looks for a reg property which is in a casse of a i2c
> >> eeprom is the i2c address. This results in a wrong offset.
> > 
> > doh!
> > 
> >> With this patch a i2c eeprom backend works. It's not tested with a mtd device
> >> or a eeprom with a partition layout.
> > 
> > AFAIK on Linux partition layouts are not supported on eeprom devices, as
> > they are not handled by the mtd layer. I'll apply this patch and test on
> > my standard device, which uses a mtd device.
> 
> applied to master.
> 
> Works here with the NAND-partition backend. However udev from
> systemd-220 fails to find NAND-partition while systemd-219 works, no
> matter if your patch is applied or not. Which systemd/udev version are
> you using?
Here I use it in a initramfs with libudev.so.1.6.0, but no running daemon.

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