From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XM67c-00030r-TC for qemu-devel@nongnu.org; Mon, 25 Aug 2014 22:04:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XM67Y-0004L4-2W for qemu-devel@nongnu.org; Mon, 25 Aug 2014 22:04:32 -0400 Received: from szxga01-in.huawei.com ([119.145.14.64]:61937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XM67X-0004Kx-Cq for qemu-devel@nongnu.org; Mon, 25 Aug 2014 22:04:27 -0400 Message-ID: <53FBEB1C.40809@huawei.com> Date: Tue, 26 Aug 2014 10:04:12 +0800 From: Li Liu MIME-Version: 1.0 References: <1408939237-8444-1-git-send-email-john.liuli@huawei.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Subject: Re: [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 Maydell Cc: Peter Crosthwaite , Alexander Graf , QEMU Developers On 2014/8/25 20:22, Peter Maydell wrote: > On 25 August 2014 05:00, john.liuli wrote: >> 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'. > > Hi. Thanks for this patchset, but I'm afraid this doesn't > seem to me like something that should be in QEMU. > As you say, you can easily turn the dtb blob into a source file > with dtc. That gets you a definitely-correct disassembly of the > blob, and we don't need to maintain a possibly-buggy > reimplementation of the dtb disassembler in QEMU. > > thanks > -- PMM > That makes sense. It's mostly used for debugging. Best regards Li. >