From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from szxga03-in.huawei.com ([119.145.14.66]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X7NNZ-0002G6-QO for linux-mtd@lists.infradead.org; Wed, 16 Jul 2014 11:28:10 +0000 Message-ID: <53C6618F.3010707@huawei.com> Date: Wed, 16 Jul 2014 19:27:11 +0800 From: hujianyang MIME-Version: 1.0 To: Subject: Re: [PATCH 6/7] New utility ubidump References: <53BA491E.8060502@huawei.com> <53BA4B98.1080000@huawei.com> <1405497907.1920.27.camel@sauron.fi.intel.com> <53C63DA2.5080200@huawei.com> <1405507040.1906.18.camel@sauron.fi.intel.com> In-Reply-To: <1405507040.1906.18.camel@sauron.fi.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: linux-mtd List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > > Things like UBI volume table, UBI fast-map stuff are not "headers", so I > am not sure if using word "headers" a good idea. Probably we want > options like --ubifs and --ubi to denote ubi and ubifs-level stuff. The > default would be "everything". > > But again, if you start smaller, and upstream a good tool for > UBIFS-level stuff, it will be easier to add UBI stuff separately. > > Besides, I have some additional vision, which you do not have to > implement, but which should be taken into account. E.g., ubidump which > does not need UBI/UBIFS drivers, ubidump which can deal with an image > generated with nanddump without "mounting" it, etc. So I was thinking > doing small steps at a time would make it easier for me and for you to > make a tool which has limited functionality today, but which can be > later extended to support more functionality. > It seems you what more than me. I think you are right. I need to reconsider how to realize these above, not hole of them, but a good architecture that can be extended easily. So I think getting data from mtd driver is a good choice and then run it with an image file. Current UBI functionality has lots of limit and it is basing on UBI driver. But we need to do more work in user space (rebuilding volume table and so on) in this way. I think it's worth. Give me some time to re-create this utility. I will send it to you if I finished it. If you get some new ideas, please tell me as soon as possible. Thanks~! Hu