From patchwork Tue Apr 15 08:52:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Wagner X-Patchwork-Id: 339204 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id CD1281400BB for ; Tue, 15 Apr 2014 18:52:39 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DE7858B9A3; Tue, 15 Apr 2014 08:52:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3np-YeqCOjzo; Tue, 15 Apr 2014 08:52:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id E9FA28B986; Tue, 15 Apr 2014 08:52:36 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 549A41BF83A for ; Tue, 15 Apr 2014 08:52:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4FF408BE85 for ; Tue, 15 Apr 2014 08:52:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3Wsk-nenDCFa for ; Tue, 15 Apr 2014 08:52:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.carallon.com (mail.carallon.com [95.177.28.122]) by whitealder.osuosl.org (Postfix) with ESMTP id 4902F8BD35 for ; Tue, 15 Apr 2014 08:52:34 +0000 (UTC) X-MDAV-Result: clean X-MDAV-Processed: mail.carallon.com, Tue, 15 Apr 2014 09:52:33 +0100 Received: from [172.20.1.8] by mail.carallon.com (Cipher TLSv1:-SHA:128) (MDaemon PRO v14.0.0) with ESMTP id md50001603790.msg for ; Tue, 15 Apr 2014 09:52:33 +0100 X-Spam-Processed: mail.carallon.com, Tue, 15 Apr 2014 09:52:33 +0100 (not processed: message from trusted or authenticated source) X-Authenticated-Sender: willw@carallon.com X-MDRemoteIP: 172.20.1.8 X-Return-Path: prvs=1182c3165f=will_wagner@carallon.com X-Envelope-From: will_wagner@carallon.com X-MDaemon-Deliver-To: buildroot@busybox.net Message-ID: <534CF34C.4050808@carallon.com> Date: Tue, 15 Apr 2014 09:52:28 +0100 From: Will Wagner User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: buildroot@busybox.net References: In-Reply-To: Subject: Re: [Buildroot] yaffs2 file system X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net On 15/04/2014 09:32, Rohit Kumar wrote: > Hello, > > i want to create yaffs2 file system with buildroot. > i see that buildroot doesnt have this option. so i have created standard > uncompressed image. > is there a way to convert it to yaffs2 FS? > any help is appreciated. Hi Rohit, I have a couple of patches (attached) that add yaffs2 support for buildroot, that I have never got round to pushing upstream. They are based on buildroot_2013.05. Regards Will diff --git a/fs/Config.in b/fs/Config.in index da4c5ff..89b1298 100644 --- a/fs/Config.in +++ b/fs/Config.in @@ -11,5 +11,6 @@ source "fs/romfs/Config.in" source "fs/squashfs/Config.in" source "fs/tar/Config.in" source "fs/ubifs/Config.in" +source "fs/yaffs/Config.in" endmenu diff --git a/fs/yaffs/Config.in b/fs/yaffs/Config.in new file mode 100644 index 0000000..e9d4f93 --- /dev/null +++ b/fs/yaffs/Config.in @@ -0,0 +1,12 @@ +config BR2_TARGET_ROOTFS_YAFFS + bool "yaffs root filesystem" + help + Build a yaffs root filesystem + +config BR2_TARGET_ROOTFS_YAFFS_PATH + string "path within target to create fs from" + depends on BR2_TARGET_ROOTFS_YAFFS + default "" + help + If you want to create the yaffs image from only + part of the target directory, specify the path here \ No newline at end of file diff --git a/fs/yaffs/yaffs.mk b/fs/yaffs/yaffs.mk new file mode 100644 index 0000000..7aad26f --- /dev/null +++ b/fs/yaffs/yaffs.mk @@ -0,0 +1,19 @@ +############################################################# +# +# Build the yaffs root filesystem image +# +############################################################# + +ifneq ($(BR2_TARGET_ROOTFS_YAFFS_PATH),"") +ROOTFS_YAFFS_TARGET=$(TARGET_DIR)/$(BR2_TARGET_ROOTFS_YAFFS_PATH) +else +ROOTFS_YAFFS_TARGET=$(TARGET_DIR) +endif + +define ROOTFS_YAFFS_CMD + $(HOST_DIR)/usr/bin/mkyaffs2 --all-root $(ROOTFS_YAFFS_TARGET) $@ +endef + +ROOTFS_YAFFS_DEPENDENCIES = host-yaffs2utils + +$(eval $(call ROOTFS_TARGET,yaffs))