From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLlXq-00037F-NN for qemu-devel@nongnu.org; Mon, 25 Aug 2014 00:06:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLlXd-0006uu-Vq for qemu-devel@nongnu.org; Mon, 25 Aug 2014 00:06:14 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:43040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLlXd-0006sg-BS for qemu-devel@nongnu.org; Mon, 25 Aug 2014 00:06:01 -0400 From: "john.liuli" Date: Mon, 25 Aug 2014 12:00:31 +0800 Message-ID: <1408939237-8444-1-git-send-email-john.liuli@huawei.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 0/6] add dumpdts ability to convert dtb to dts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.crosthwaite@xilinx.com, agraf@suse.de Cc: Li Liu , qemu-devel@nongnu.org From: Li Liu This patchset let qemu can convert dtb file to dts for two demands: Some archtectures may generate the dtb file dynamically through qemu device tree functions. So this let it's possiable to dump final dtb to dts and save it as a reference. For novices to debugging the issues caused by wrong dtb parameters. It will be easy to check the dts directly without copying the dtb which may be generated by 'dumpdtb' to the PC and dtc or fdtdump it. The outputed dts format is compatile with 'dtc -I dtb -O dts xxx.dtb'. There's a new parameter 'dumpdts' which is similar to 'dumpdtb'. so try it like '-machine dumpdts=/tmp/xxx.dts'. Li Liu (6): device_tree.c: Introduce a function to check multiple strings for dts device_tree.c: dump three kind data types of dts to a file desciptor device_tree.c: Format a blob in memory as dts stream and dump to a file. device_tree.c: add the main function to analyse the parameter 'dumpdts' machine: add 'dumpdts' parameter to 'machine' optslist. arm: Allow dumping generated dtb to dts file device_tree.c | 172 ++++++++++++++++++++++++++++++++++++++++++ hw/arm/boot.c | 1 + include/sysemu/device_tree.h | 1 + vl.c | 4 + 4 files changed, 178 insertions(+) -- 1.7.9.5