From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id DDE59E00BE2; Fri, 13 Jun 2014 06:30:26 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.1.11 listed in list.dnswl.org] Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 9B7DDE00BDF for ; Fri, 13 Jun 2014 06:30:24 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.5/8.14.5) with ESMTP id s5DDUMg7027977 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 13 Jun 2014 06:30:22 -0700 (PDT) Received: from [128.224.56.48] (128.224.56.48) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.169.1; Fri, 13 Jun 2014 06:30:22 -0700 Message-ID: <539AFCD9.70307@windriver.com> Date: Fri, 13 Jun 2014 09:30:01 -0400 From: Bruce Ashfield User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Kevin Hao , References: <1402634363-31407-1-git-send-email-kexin.hao@windriver.com> In-Reply-To: <1402634363-31407-1-git-send-email-kexin.hao@windriver.com> Subject: Re: [PATCH 0/2] meta-yocto-bsp: enable the jffs2 for mpc8315e-rdb board X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion & patch submission for meta-yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2014 13:30:26 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 14-06-13 12:39 AM, Kevin Hao wrote: > Hi, > > This tries to enable the jffs2 support for the mpc8315e-rdb board. I have > tested the jffs2 with the following steps and it worked perfectly. The other point to add on this review/patch series, is that for it to fully work out of the box, it needs a merge of some kernel patches that Kevin sent to linux-yocto a couple of days ago. To make sure that things are coordinated, I can queue this series and send it along with my kernel SRCREV updates to include those patches. Obviously, I won't queue it until Kevin udpates README.hardware and sends a quick v2 of the changes. Does that sound acceptable to everyone ? Bruce > > 1. root@mpc8315e-rdb:~# cat /proc/mtd > dev: size erasesize name > mtd0: 00800000 00010000 "fe000000.flash" > mtd1: 00100000 00004000 "u-boot" > mtd2: 00300000 00004000 "kernel" > mtd3: 01c00000 00004000 "fs" > > 2. root@mpc8315e-rdb:~# flash_eraseall /dev/mtd3 > flash_eraseall has been replaced by `flash_erase 0 0`; please use it > Erasing 16 Kibyte @ 1bec000 -- 99 % complete flash_erase: Skipping bad block at 01bf0000 > flash_erase: Skipping bad block at 01bf4000 > flash_erase: Skipping bad block at 01bf8000 > flash_erase: Skipping bad block at 01bfc000 > Erasing 16 Kibyte @ 1bfc000 -- 100 % complete > > 3. root@mpc8315e-rdb:~# flashcp core-image-minimal-mpc8315e-rdb.jffs2 /dev/mtd3 > > 4. Then boot with a jffs2 rootfs > > 5. root@mpc8315e-rdb:~# cat /proc/cmdline > root=/dev/mtdblock3 rootfstype=jffs2 console=ttyS0,115200 > root@mpc8315e-rdb:~# > root@mpc8315e-rdb:~# mount > rootfs on / type rootfs (rw) > /dev/root on / type jffs2 (rw,relatime) > devtmpfs on /dev type devtmpfs (rw,relatime,size=59136k,nr_inodes=14784,mode=755) > proc on /proc type proc (rw,relatime) > sysfs on /sys type sysfs (rw,relatime) > debugfs on /sys/kernel/debug type debugfs (rw,relatime) > tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755) > tmpfs on /var/volatile type tmpfs (rw,relatime) > devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620) > > The following changes since commit 8e0c54cd0e82ffe120f84f495101cd29e6fd06bf: > > bitbake: bb/utils: fix contains_any() (2014-06-12 17:47:59 +0100) > > are available in the git repository at: > > git://git.yoctoproject.org/poky-contrib hao/master > > for you to fetch changes up to 7984d3ab156e0a1a50837ec737dfb13defa27a5c: > > mpc8315e-rdb: add the jffs2 image support (2014-06-13 12:24:10 +0800) > > ---------------------------------------------------------------- > Kevin Hao (2): > mpc8315e-rdb: bump to linux-yocto 3.14 > mpc8315e-rdb: add the jffs2 image support > > meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf | 5 ++++- > meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.14.bbappend | 3 +++ > 2 files changed, 7 insertions(+), 1 deletion(-) > > Thanks, > Kevin >