[U-Boot] Passing numeric values via fdt

Jagan Teki jagan at openedev.com
Thu Oct 13 14:36:20 CEST 2016


On Thu, Oct 13, 2016 at 5:48 PM, Gary Thomas <gary at mlbassoc.com> wrote:
> I have a device tree property which in the .dts looks like this:
>   prop = <1>;
>
> I'd like to be able to pass a 0 or 1 to this property via the 'fdt set'
> command, but it seems to only be able to push a string into the field,
> which in turn is always interpreted as 0.
>
> How can I push a numeric '1' to my property?  Do I have to change
> it to be a string and force my driver to manage those instead of
> numeric values?

Did you tried this? for setting 1

U-boot> fdt set <full_path> 'prop' <1>

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.


More information about the U-Boot mailing list