I think I found the solution in '.../drivers/mtd/nand/nand_davinci.c':
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, there MUST be '/dev/mtd1', size 59Mb.

I also found that ftl_format don't use the first block (16k = 0x4000),
and it seems the reason of the 0x4000 offset while writing the kernel
(nandwrite -p -s 16384 /dev/mtd0 uImage)

Also, when loading the kernel: setenv bootcmd 'nboot 0x80200000 0 104000'
The 0x104000 offset is: 1Mb (0x100000) to reach "Flash partition 0"
plus 16k (0x4000) becouse ftl_format don't use the first block.

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

Reply via email to