Skip to contentSkip to conversation

'fdt set' doesn't work

U-Boot-Users Timur Tabi 2 participants 2 messages Apr 22, 2007 – Apr 23, 2007

lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

What am I missing?

=> fdt list /qe at e0100000 brg-frequency

brg-frequency=<00000000>

=> fdt set /qe at e0100000 brg-frequency 0bcd3d80

libfdt FDT_ERR_NOSPACE

#1 lore raw
Quoted 6 lines · Timur Tabi

What am I missing?

=> fdt list /qe at e0100000 brg-frequency brg-frequency=<00000000>
=> fdt set /qe at 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 $@ $^