On Thu, Feb 21, 2019 at 10:28:48AM +0100, Tomaz Solc wrote: > When booting a Raspberry Pi, it is useful to extract bootargs from the > device tree that was created by the VideoCore firmware. These bootargs > contain for example settings for the framebuffer that the kernel needs > to properly set the video output. > > This commit adds an of_bootargs command that extracts a bootargs > property from a device tree and saves it to a global variable. > > For example, a bootloader environment can use this command to extract > the bootargs to linux.bootargs.vc, which then gets included into the > final bootargs for the kernel using CONFIG_FLEXIBLE_BOOTARGS. Do we need an extra command for this? Can't you just unflatten the VideoCore provided device tree in the board code you have added in 2/3 and set global.linux.bootargs.vc from there? It seems to be just the right thing without further user intervention. 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@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox