On Tue, May 20, 2014 at 3:00 PM, Stephen Warren swarren@wwwdotorg.org wrote:
On 05/20/2014 12:37 PM, Kevin Hilman wrote: ...
That leaves me with needing to modify a (binary) DTB. Ugh.
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.
Kevin