On Tue, May 26, 2020 at 05:54:53PM +0200, Giorgio Dal Molin wrote: > Hi Sascha, > > thank you for your suggestion about the MAC, the code works now as expected. > > Just another quick question: is there a function like of_eth_register_ethaddr() > also for a 'serial-number' value ? > > I also have a 'serial number' value from the eeprom and I would like to pass to the kernel. > Just calling something like: > > of_set_property(of_get_root_node(), "serial-number", s, strlen(s) + 1, 1); > > does not work because it changes only the device tree for barebox but not that > for the kernel. So I registered an of fixup: > > of_register_fixup(samx7_board_fixup, s); > > for it and it works then but it is a bit more complex. Yes, you have to do it like that, there is no shortcut for it. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox