Dear Kevin Hilman,
On Tue, 20 May 2014 22:47:37 -0700, Kevin Hilman wrote:
It's actually pretty easy to do that, assuming you have hooks in your build/... process to actually plug that in easily.
For example, take a look at line 202 and 227 of:
https://github.com/NVIDIA/tegra-uboot-flasher-scripts/blob/master/tegra-uboo...
Hmm, interesting. I didn't know about fdtput. fdtput -t s foo.dtb /chosen bootargs "new command-line args" does exactly what I need. Looks like it replaces the set of hacks I just whipped up (I used dtc to de-compile a dtb to a dts, append a new chosen node, and dtc to re-compile and I was able to insert the command-line that way. Looks like fdtput does that much better. Thanks for the pointer.
Ah, indeed, really interesting. I also didn't know about fdtput. I was talking with Kevin about this big endian issue yesterday, and pointed to dtc as a possible solution, but I was hoping for a tool that allows to edit the DTB without having to extract the full DTS, patch it, and re-create the DTB.
It appears that such a tool already exists, thanks a lot for pointing it out!
Best regards,
Thomas