booting MPC8313 based board with yaffs2 RFS

Rupesh Kumar Rupesh.Kumar at Lntemsys.com
Thu Jul 16 15:22:46 EST 2009


Hi 
Thanks for reply.
After erasing one of the flash partition, i mounted it as yaffs2 and 
manually created rootfs there. 
Though it (careting RFS in NAND partiton) marked blocks bad, I am able to 
boot with this yaffs2 filesystem.
When image is created with mkyffs2image binary, board does not boot with 
that and says kernel panic.

1. What nand flash is on-board? what's the size of the nand flash page 
size, 512/2048?
Nand Flash used on board is K9F2G08U0M-P from Samsung and page size is 
2048.
2. what's the version of mkyaffs2image you are using?
mkyaffs2image: image building tool for YAFFS2 built Jan 31 2009
3. Can you mount an empty nand flash partition using yaffs2 type,
mount  /dev/mtdblock##x   xxx
Yes, i wrote RFS contents to the nand flash partition and booted with 
that. 
4. It's better to attatch bootup message.
Bootup message is attached for both conditions 
1) booting with manually created RFS on flash drive mounted as 
yaffs2(boot-up_manual_RFS.txt).
2) booting with yaffs2 image created by mkyaffs2image tool.
        Note :- below are steps used for writing RFS iamge 
                ~ # flash_eraseall /dev/mtd11
                ~ # nandwrite -a -o /dev/mtd11 rootrfs_1.yaffs2


 




Thanks 
Rupesh





tonyliu <Bo.Liu at windriver.com> 
07/17/2009 07:37 AM

To
Rupesh Kumar <Rupesh.Kumar at Lntemsys.com>
cc
linuxppc-dev at lists.ozlabs.org
Subject
Re: booting MPC8313 based board with yaffs2 RFS







Rupesh Kumar wrote:
> Hi
> I am using MPC8313 board which is currently booting with JFFS2 root file 

> system. 
> I am using linux kernel version 2.6.23 from FreeScale's LTIB for 
MPC8313. 
>
> As, I want it to boot with YAFFS2 root file system, I did compile kernel 

> with yaffs2 support, craeted yaffs2 rootfile system and passed yaffs2 
> partiton of nand in bootargs. However it didnot work.
>
>
> If any one has done it successfully, can please share the steps to be 
> followed ?
> 
More detailed info maybe helpful for debugging this issue.

1. What nand flash is on-board? what's the size of the nand flash page 
size, 512/2048?
2. what's the version of mkyaffs2image you are using?
3. Can you mount an empty nand flash partition using yaffs2 type,
mount  /dev/mtdblock##x   xxx
4. It's better to attatch bootup message.

Tony
> Thanks
> Rupesh
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
>
> 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: boot-up_manual_RFS.txt
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090716/16654899/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: boot-up_with_RFS_createdby_mkyffs2image_tool.txt
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090716/16654899/attachment-0003.txt>


More information about the Linuxppc-dev mailing list