* [PATCH 1/2] mpc8315e-rdb: bump to linux-yocto 3.14
2014-06-13 4:39 [PATCH 0/2] meta-yocto-bsp: enable the jffs2 for mpc8315e-rdb board Kevin Hao
@ 2014-06-13 4:39 ` Kevin Hao
2014-06-13 4:39 ` [PATCH 2/2] mpc8315e-rdb: add the jffs2 image support Kevin Hao
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Kevin Hao @ 2014-06-13 4:39 UTC (permalink / raw)
To: poky
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
---
meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf | 2 +-
meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.14.bbappend | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf b/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf
index ab1eaa910143..ef76f2a755c0 100644
--- a/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf
+++ b/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf
@@ -14,7 +14,7 @@ SERIAL_CONSOLE = "115200 ttyS0"
MACHINE_FEATURES = "keyboard pci ext2 ext3 serial"
-PREFERRED_VERSION_linux-yocto ?= "3.10%"
+PREFERRED_VERSION_linux-yocto ?= "3.14%"
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
diff --git a/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.14.bbappend b/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.14.bbappend
index e0964eb40a47..f218bb15276d 100644
--- a/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.14.bbappend
+++ b/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.14.bbappend
@@ -2,6 +2,7 @@ KBRANCH_genericx86 = "standard/common-pc/base"
KBRANCH_genericx86-64 = "standard/common-pc-64/base"
KBRANCH_edgerouter = "standard/edgerouter"
KBRANCH_beaglebone = "standard/beaglebone"
+KBRANCH_mpc8315e-rdb = "standard/fsl-mpc8315e-rdb"
KMACHINE_genericx86 ?= "common-pc"
KMACHINE_genericx86-64 ?= "common-pc-64"
@@ -10,8 +11,10 @@ SRCREV_machine_genericx86 ?= "0143c6ebb4a2d63b241df5f608b19f483f7eb9e0"
SRCREV_machine_genericx86-64 ?= "0143c6ebb4a2d63b241df5f608b19f483f7eb9e0"
SRCREV_machine_edgerouter ?= "0143c6ebb4a2d63b241df5f608b19f483f7eb9e0"
SRCREV_machine_beaglebone ?= "0143c6ebb4a2d63b241df5f608b19f483f7eb9e0"
+SRCREV_machine_mpc8315e-rdb ?= "0143c6ebb4a2d63b241df5f608b19f483f7eb9e0"
COMPATIBLE_MACHINE_genericx86 = "genericx86"
COMPATIBLE_MACHINE_genericx86-64 = "genericx86-64"
COMPATIBLE_MACHINE_edgerouter = "edgerouter"
COMPATIBLE_MACHINE_beaglebone = "beaglebone"
+COMPATIBLE_MACHINE_mpc8315e-rdb = "mpc8315e-rdb"
--
1.9.3
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 2/2] mpc8315e-rdb: add the jffs2 image support
2014-06-13 4:39 [PATCH 0/2] meta-yocto-bsp: enable the jffs2 for mpc8315e-rdb board Kevin Hao
2014-06-13 4:39 ` [PATCH 1/2] mpc8315e-rdb: bump to linux-yocto 3.14 Kevin Hao
@ 2014-06-13 4:39 ` Kevin Hao
2014-06-13 7:04 ` [PATCH 0/2] meta-yocto-bsp: enable the jffs2 for mpc8315e-rdb board Richard Purdie
2014-06-13 13:30 ` Bruce Ashfield
3 siblings, 0 replies; 8+ messages in thread
From: Kevin Hao @ 2014-06-13 4:39 UTC (permalink / raw)
To: poky
There is a 32M NAND flash on this board, so it would be convenient
that a jffs2 image is created by default. Also change the default image
type from "tar.gz" to "tar.bz2" in order to be compatible with
the beaglebone black and edgerouter BSP.
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
---
meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf b/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf
index ef76f2a755c0..43bdce4b1c5b 100644
--- a/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf
+++ b/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf
@@ -28,3 +28,6 @@ UBOOT_ENTRYPOINT = "0x00000000"
KERNEL_DEVICETREE = "${S}/arch/powerpc/boot/dts/mpc8315erdb.dts"
MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"
+
+IMAGE_FSTYPES ?= "jffs2 tar.bz2"
+JFFS2_ERASEBLOCK = "0x4000"
--
1.9.3
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 0/2] meta-yocto-bsp: enable the jffs2 for mpc8315e-rdb board
2014-06-13 4:39 [PATCH 0/2] meta-yocto-bsp: enable the jffs2 for mpc8315e-rdb board Kevin Hao
2014-06-13 4:39 ` [PATCH 1/2] mpc8315e-rdb: bump to linux-yocto 3.14 Kevin Hao
2014-06-13 4:39 ` [PATCH 2/2] mpc8315e-rdb: add the jffs2 image support Kevin Hao
@ 2014-06-13 7:04 ` Richard Purdie
2014-06-13 13:25 ` Bruce Ashfield
2014-06-13 13:30 ` Bruce Ashfield
3 siblings, 1 reply; 8+ messages in thread
From: Richard Purdie @ 2014-06-13 7:04 UTC (permalink / raw)
To: Kevin Hao; +Cc: poky
On Fri, 2014-06-13 at 12:39 +0800, 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.
>
> 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 <mtddev> 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)
Can you please put this information into the README.hardware in
meta-yocto-bsp so that others can find it, its useful to know how to use
jffs2 on the default...
Cheers,
Richard
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] meta-yocto-bsp: enable the jffs2 for mpc8315e-rdb board
2014-06-13 7:04 ` [PATCH 0/2] meta-yocto-bsp: enable the jffs2 for mpc8315e-rdb board Richard Purdie
@ 2014-06-13 13:25 ` Bruce Ashfield
2014-06-14 0:32 ` Kevin Hao
0 siblings, 1 reply; 8+ messages in thread
From: Bruce Ashfield @ 2014-06-13 13:25 UTC (permalink / raw)
To: Richard Purdie, Kevin Hao; +Cc: poky
On 14-06-13 03:04 AM, Richard Purdie wrote:
> On Fri, 2014-06-13 at 12:39 +0800, 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.
>>
>> 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 <mtddev> 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)
>
> Can you please put this information into the README.hardware in
> meta-yocto-bsp so that others can find it, its useful to know how to use
> jffs2 on the default...
Agreed.
Bruce
>
> Cheers,
>
> Richard
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] meta-yocto-bsp: enable the jffs2 for mpc8315e-rdb board
2014-06-13 13:25 ` Bruce Ashfield
@ 2014-06-14 0:32 ` Kevin Hao
0 siblings, 0 replies; 8+ messages in thread
From: Kevin Hao @ 2014-06-14 0:32 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: poky
[-- Attachment #1: Type: text/plain, Size: 334 bytes --]
On Fri, Jun 13, 2014 at 09:25:56AM -0400, Bruce Ashfield wrote:
> On 14-06-13 03:04 AM, Richard Purdie wrote:
> >Can you please put this information into the README.hardware in
> >meta-yocto-bsp so that others can find it, its useful to know how to use
> >jffs2 on the default...
>
> Agreed.
OK, will do.
Thanks,
Kevin
[-- Attachment #2: Type: application/pgp-signature, Size: 501 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] meta-yocto-bsp: enable the jffs2 for mpc8315e-rdb board
2014-06-13 4:39 [PATCH 0/2] meta-yocto-bsp: enable the jffs2 for mpc8315e-rdb board Kevin Hao
` (2 preceding siblings ...)
2014-06-13 7:04 ` [PATCH 0/2] meta-yocto-bsp: enable the jffs2 for mpc8315e-rdb board Richard Purdie
@ 2014-06-13 13:30 ` Bruce Ashfield
2014-06-13 14:55 ` Richard Purdie
3 siblings, 1 reply; 8+ messages in thread
From: Bruce Ashfield @ 2014-06-13 13:30 UTC (permalink / raw)
To: Kevin Hao, poky
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 <mtddev> 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
>
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 0/2] meta-yocto-bsp: enable the jffs2 for mpc8315e-rdb board
2014-06-13 13:30 ` Bruce Ashfield
@ 2014-06-13 14:55 ` Richard Purdie
0 siblings, 0 replies; 8+ messages in thread
From: Richard Purdie @ 2014-06-13 14:55 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: poky
On Fri, 2014-06-13 at 09:30 -0400, Bruce Ashfield wrote:
> 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 ?
Sounds good to me.
Cheers,
Richard
^ permalink raw reply [flat|nested] 8+ messages in thread