From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: David Gibson Subject: Re: libfdt: Handle v16 and re-ordered trees for r/w In-Reply-To: Your message of "Thu, 01 Nov 2007 11:37:31 +1100." <20071101003731.GG16119@localhost.localdomain> References: <20071101003731.GG16119@localhost.localdomain> Date: Thu, 01 Nov 2007 08:08:01 -0500 From: Jon Loeliger Message-Id: Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , So, like, the other day David Gibson mumbled: > Currently all the read/write functions in libfdt require that the > given tree be v17, and further, that the tree has the memory > reservation block, structure block and strings block stored in that > physical order. > > This patch eases these constraints, by making fdt_open_int() reorder > the blocks, and/or convert the tree to v17, so that it will then be > ready for the other read-write functions. > > It also extends fdt_pack() to actually remove any gaps between blocks > that might be present. > > Signed-off-by: David Gibson Applied. jdl