This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NAND flash as a mass storage device: OMAP 3530

hi all

i am working on Devkit8000 board. which has 256 MB NAND flash, used for booting.

my question is, if i use 50MB space for embedded OS, remaining 150BM is free. how to use this (150 MB )portion as Mass storage device?

actual NAND flash partitions are

0x00000000-0x00080000 : "X-Loader"
0x00080000-0x00260000 : "U-Boot"
0x00260000-0x00280000 : "U-Boot Env"
0x00280000-0x00680000 : "Kernel"
0x00680000-0x10000000 : "File System"

here i am u‎tilizing only few MB of memry for Anstrom OS.
 Problem is i have created one more partition see below

0x00000000-0x00080000 : "X-Loader"
0x00080000-0x00260000 : "U-Boot"
0x00260000-0x00280000 : "U-Boot Env"
0x00280000-0x00680000 : "Kernel"
0x00680000-0x01940000 : "File System"
0x01940000-0x10000000 : "EXTENDED PARTITION"

how to use EXTENDED PRTITION as a mass storage device in OMAP 3530?
i have done it for SD card..it is working fine
but how to do it for NAND flash...
please hel me ...


thanks and regards
N REDDY

  • I assume the partition is already created and above partition table is captured from Linux boot log. If yes, then you should be able to use it just like other partitions,

    for example,

    // First erase complete partion (you can do from u-boot as well)

    # flash_eraseall /dev/mtd5

    // Mount the empty partition (make sure that you have JFFS2 enabled)

    # mount -t jffs2 /dev/mtdblock5 /tmp

    your partition is mounted on /tmp directory and should be ready to use.

    Thanks,

    Vaibhav

  • hi Vaibhav Hiremath

    thanks a lot, i am using Angstrom Linux on board (devkit 8000), MTD-utils is not there.

    For compiling MTD-utils, i followed the following link

    http://processors.wiki.ti.com/index.php/MTD_Utilities

    when compiling e2fsprogs

    host$ tar xvf e2fsprogs-1.42.tar.gz
    host$ cd e2fsprogs-1.42/
    host$ ./configure --build=i686-pc-linux --prefix=/home/user/mtd/install --host=arm-arago-linux-gnueabi
    host$ make

    i am getting this error.

    e4defrag.c:210:2: warning: #warning Using locally defined sync_file_range interface.
    e4defrag.c:237:2: warning: #warning Using locally defined fallocate syscall interface.
    e4defrag.c:240:2: error: #error Your kernel headers dont define __NR_fallocate
    e4defrag.c: In function 'fallocate64':
    e4defrag.c:253: error: '__NR_fallocate' undeclared (first use in this function)
    e4defrag.c:253: error: (Each undeclared identifier is reported only once
    e4defrag.c:253: error: for each function it appears in.)
    make[2]: *** [e4defrag.o] Error 1
    make[2]: Leaving directory `/home/msrsas/Downloads/downloads1/mtd/e2fsprogs-1.42/misc'
    make[1]: *** [all-progs-recursive] Error 1
    make[1]: Leaving directory `/home/msrsas/Downloads/downloads1/mtd/e2fsprogs-1.42'
    make: *** [all] Error 2

    please suggest me.

    thanks and regards

    N reddy