hi Wu, Ruiyu

I think this wiki page will guide you to do it:
  http://wiki.davincidsp.com/index.php?title=Put_JFFS2_Image_to_Flash

ERROR  "Verifying Checksum ... Bad Data CRC" 
please verify whether kernel size exceed flash partition size.


I'm successful in booting from jffs2 filesystem on NAND.

Below are the details, hope it's helpful for you.
------------------------------------------------------------
1. NAND partition
struct mtd_partition ntosd_644xa_nandflash_partition[] = { 
    /* uboot parameter */ 
    { 
        .name       = "u-boot-parameter", 
        .offset     = 0, 
        .size       = 1 * SZ_16K, 
        .mask_flags = 0, 
    }, 
    /* ubl */ 
    { 
        .name       = "ubl", 
        .offset     = 1 * SZ_16K, 
        .size       = 5 * SZ_16K, 
        .mask_flags = 0, 
    }, 
    /* 1 MB space from bootloader start for bootloader */ 
    { 
        .name       = "u-boot", 
        .offset     = UBOOT_START, 
        .size       = 1 * SZ_1M, 
        .mask_flags = 0, 
    },
    /* 5 MB space for kernel */ 
    { 
        .name       = "kernel", 
        .offset     = 1 * SZ_1M + UBOOT_START, 
        .size       = 5 * SZ_1M, 
        .mask_flags = 0, 
    }, 
    /* the rest for rootfs */ 
    { 
        .name       = "NAND filesystem", 
        .offset     = 6 * SZ_1M + UBOOT_START, 
        .size       = MTDPART_SIZ_FULL, 
        .mask_flags = 0, 
    } 
};


2. prepare for jffs2 image
mkdir images 
cp uImage images/uImage 
mkfs.jffs2 -d ./images -o boot.jffs2 -e 0x4000 --pad=0x500000 -s 0x200 -n

3.download jffs2 image
tftp 0x80700000 /images/boot.jffs2 
nand erase 0x00118000 
nand write.jffs2 0x80700000 0x00118000 0x00500000

4.boot kernel
fsload uImage
bootm


Good luck!


/Frank
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to