[linux-yocto] Enable the jffs2 support for mpc8315e-rdb board
Kevin Hao
kexin.hao at windriver.com
Wed Jun 11 18:20:34 PDT 2014
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 at 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 at 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 at mpc8315e-rdb:~# flashcp core-image-minimal-mpc8315e-rdb.jffs2 /dev/mtd3
4. Then boot with a jffs2 rootfs
5. root at mpc8315e-rdb:~# cat /proc/cmdline
root=/dev/mtdblock3 rootfstype=jffs2 console=ttyS0,115200
root at mpc8315e-rdb:~#
root at 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)
kernel:
fs/yaffs2/yaffs_vfs.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
meta:
meta/cfg/kernel-cache/bsp/fsl-mpc8315e-rdb/fsl-mpc8315e-rdb.cfg | 1 +
meta/cfg/kernel-cache/bsp/fsl-mpc8315e-rdb/fsl-mpc8315e-rdb.scc | 1 +
2 files changed, 2 insertions(+)
Thanks,
Kevin
More information about the linux-yocto
mailing list