Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 14 Oct 2008 10:37 AM by  davek
linux unable to see the files in yaffs partition
 9 Replies
Sort:
You are not authorized to post a reply.
Author Messages

bwil@willers2000.de



New Member


Posts:
New Member


--
08 May 2007 05:02 AM
    hi,
    i just got my litekit working with linux.
    i'm runnig the kernel and the bootloader from a yaffs partition in the nand-flash.

    i am starting the system like this:
    add-yaffs boot nand B0 B128
    mount yaffs /boot
    load raw 0x81000000 1607272 /boot/kernel
    load elf /boot/loader
    jump


    everythings boots up just fine. the root partition is on the nand as well (jffs2).

    the trouble starts, when i try to mount the boot-partition within linux.
    linux is not showing the files i put in there using losh. it is seeing the used blocks though.


    .....
    Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
    0x00000000-0x00200000 : "nand.kernel"
    0x00200000-0x01600000 : "nand.rootfs"
    0x00000000-0x04000000 : "<NULL>"
    0x00000000-0x04000000 : "<NULL>"
    .....

    mx31# mount -t yaffs2 /dev/mtdblock0 /mnt/floppy/
    yaffs: dev is 32505856 name is "mtdblock0"
    yaffs: Attempting MTD mount on 31.0, "mtdblock0"
    yaffs: auto selecting yaffs1
    block 1 is bad
    block 2 is bad
    ...
    block 98 is bad
    block 99 is bad
    block 100 is bad
    block 101 is bad
    mx31#


    df is reporting everything correctly


    /dev/mtdblock0 2.0M 1.7M 336.0k 84% /mnt/floppy


    but the directory is empty:


    mx31# ls -l /mnt/floppy/
    drw-rw-rw- 1 root root 512 Jan 1 00:10 lost+found
    mx31#


    if i create a file here ( using #touch test_file ) it's not visible in the losh either. but the blocks are marked bad there as well:


    ---------------------------------------------------
    Starting YAFFS file system:
    Current YAFFS partition table:
    0: /dev/nand0 boot B0 - B128 ( 0)
    1: <NULL> <NULL>
    2: <NULL> <NULL>
    3: <NULL> <NULL>
    YAFFS initialized.
    ---------------------------------------------------

    **>> yaffs: 102 0 unknown pageStatus 0x05
    **>> yaffs: 102 1 unknown pageStatus 0x05
    **>> yaffs: 102 2 unknown pageStatus 0x05
    **>> yaffs: 102 3 unknown pageStatus 0x05
    **>> yaffs: 103 0 unknown pageStatus 0x05



    it seems to be a mismatch between the two yaffs versions.
    i'm using Logic Loader 2.3.3-IMX31_10 0001 and Linux 2.6.19.2 with YAFFS2 from the aleph1 CVS.

    does anybody have this working? which versions are you using?

    thanks,
    ben

    zonque



    New Member


    Posts:
    New Member


    --
    31 May 2007 05:36 PM
    Posted By bwillers on 13 Feb 2008 9:35 AM


    --------< snip >---------

    it seems to be a mismatch between the two yaffs versions.
    i''m using Logic Loader 2.3.3-IMX31_10 0001 and Linux 2.6.19.2 with YAFFS2 from the aleph1 CVS.

    does anybody have this working? which versions are you using?

    thanks,
    ben





    I'm having excactly the same problem here. Have you been able to make it working? Any hints, anyone?

    Thanks,
    Daniel

    zonque



    New Member


    Posts:
    New Member


    --
    09 Jun 2007 08:05 AM
    Could anybody at LogicPD please disclose which version of YAFFS was used in the LogicLoader? I need to make this working.

    Thanks for any info,
    Daniel

    kurtl@logicpd.com



    New Member


    Posts:
    New Member


    --
    11 Jun 2007 08:37 AM
    As far as I know, LPD software only supports the original YAFFS ffs.

    Here is a note from the source:
    Date of 12/22/2004. This is the initial import of Aleph1's YAFFS flash file system code into the LoLo code base.

    This patch s also applied:
    mikee_01_direct_build_fixes.patch

    Hope this helps,
    -K

    sanjeevgt@gmail.com



    New Member


    Posts:
    New Member


    --
    07 Sep 2007 03:43 PM
    I am also facing the yaffs problem in linux. I could mount yaffs2 in linux on kernel mtd patition but i am not able to see the image file(burnt in LoLo) from linux.

    Also when i do df, it does not show me the proper used size.

    I need a fix for this. I need to add a feature where i need linux and lolo to share files stored in nand flash.

    Is there any other way where files stored in nand flash can be seen in lolo and as well in linux other than yaffs.

    Please suggest.

    paulc@logicpd.com



    New Member


    Posts:
    New Member


    --
    20 Sep 2007 06:31 PM
    Other than YAFFS, the CF is an option. YAFFS will work once we can get the versions in sync..

    zonque



    New Member


    Posts:
    New Member


    --
    21 Sep 2007 03:45 PM
    Hi Paul,

    Posted By paulc@logicpd.com on 13 Feb 2008 9:35 AM
    Other than YAFFS, the CF is an option. YAFFS will work once we can get the versions in sync..




    So you are aware of that problem? Any plans when there will be a soultion?

    Thanks,
    Daniel

    davek



    New Member


    Posts:
    New Member


    --
    24 Apr 2008 01:20 PM
    Has anyone solved this problem yet? I still have the same problem using YAFFS under linux

    peter.barada@logicpd.com



    New Member


    Posts:72
    New Member


    --
    24 Apr 2008 02:38 PM
    Yes, we have. We have a LTIB .iso that we're checking out and are close to posting.


    Unfortunately a full rootfs for linux is too large to hold the tnode information in memory, so your best bet is to have a '/boot' partition that only contains the kernel and perhaps some small configuration files, and a separate
    partition for '/'

    The big problem is that the ECC layout used *long* ago by YAFFS1 when Logic integrated it into LoLo is incompatible with the current ECC layout used by MTD in the kernel. This version works, but may not if ported to newer kernels.

    davek



    New Member


    Posts:
    New Member


    --
    14 Oct 2008 10:37 AM
    Has any more work been done on this? When should we expect to see this new ISO posted?
    You are not authorized to post a reply.