[U-Boot-Users] 'fdt set' doesn't work

What am I missing?
=> fdt list /qe@e0100000 brg-frequency
brg-frequency=<00000000>
=> fdt set /qe@e0100000 brg-frequency 0bcd3d80
libfdt FDT_ERR_NOSPACE

Timur Tabi wrote:
What am I missing?
=> fdt list /qe@e0100000 brg-frequency brg-frequency=<00000000> => fdt set /qe@e0100000 brg-frequency 0bcd3d80 libfdt FDT_ERR_NOSPACE
Space. But you already knew that. ;-)
Use the latest version of "dtc" with the -S <space> parameter and you will also want to add reserve map entries with the -R <n> parameter or bootm will fail when it tries to add the initrd memory region to the reserved map.
This following makefile works well for me (WARNING: it is whitespace damaged because I cut & pasted it - replace the spaces with tabs or make will barf).
Best regards, gvb
# # Make device tree blobs #
src = $(wildcard *.dts) out = $(src:.dts=.dtb) asm = $(src:.dts=.dtb)
QUIET = #-q RESERVE = -R 4 SIZE = -S 0x3000
all: $(out)
%.dtb : %.dts dtc $(QUIET) $(RESERVE) $(SIZE) -b 0 -O dtb -f -o $@ $^
%.asm : %.dts dtc $(QUIET) $(RESERVE) $(SIZE) -b 0 -O asm -f -o $@ $^
participants (2)
-
Jerry Van Baren
-
Timur Tabi