# \[PATCH\] Support multiple MEM tags with atags-\>fdt conversion

- From: David Brown \<hidden\>
- Date: 2011-06-17 20:23:07 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2011/06/8053062
- Thread: https://ratatoskr.run/linux-arm-kernel/2011/06/8053062/t.md

```text
On Wed, Jun 15 2011, Nicolas Pitre wrote:

> I think those missing nodes should simply be created if missing.  I 
> however don't see any function in the libfdt API to do that -- there is 
> fdt_add_subnode() but no fdt_add_node().  Any DT expert please?
>
> Also, should the DTB be enlarged in order to add new nodes, or even 
> modify existing ones with larger properties?  In other words, 
> should something like fdt_move(fdt, fdt, fdt_totalsize(fdt)+HEADROOM) be 
> used beforehand?

I've tried adding some padding to my DTB by passing '-p 1024'.  It does
seem to try and do something, but I'm getting a fault in memmove() from
fdt_splice() that I'm still trying to track down.

It looks like the expansion is possible, though, at least once
everything is right.

David

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
```
