Has anyone been able to setup a filesystem on Nand from SPRAAA0 appnote,
It seems to break down after I Ftl_format /dev/mtd0 and copy uImage to
the sector.

I didn't follow SPRAAA0, but look if in
'.../drivers/mtd/nand/nand_davinci.c' for :
static struct mtd_partition partition_info[] = {
#ifdef CONFIG_NAND_FLASH_LINUX
       { name: "Flash partition 0",
         offset: SZ_1M,
         size:   4 * SZ_1M},

       { name: "Flash partition 1",
         offset: 5 * SZ_1M,
         size:   59 * SZ_1M},
#else
       { name: "Flash partition 0",
         offset: 5 * SZ_1M,
         size:   59 * SZ_1M},
#endif
};

That is, 1Mb to store the bootloaders, 4Mb to store the kernel ("Flash
partition 0"), and 59Mb to store the filesystem ("Flash partition 1").

So, when you boot there MUST be '/dev/mtd1', size 59Mb.

If you can only see /dev/mtd0, size 64Mb you are erasing the WHOLE
nand  when you do the Ftl_format, erasing the bootloaders, etc  ...

Regards,
Carlos
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to