Date:2012-07-26 16:01:18 (7 years 10 months ago)
Author:Paul Cercueil
Commit:9f3a0a58b07290dc4a00581d9b6c03d082cee1dc
Message:MIPS: A320: do not mark the partitions as read-only.

This is safe to do, as currently the ChinaChip FTL implementation
is read-only.
Files: arch/mips/jz4740/board-a320.c (1 diff)

Change Details

arch/mips/jz4740/board-a320.c
8585    { .name = "SPL",
8686      .offset = 0 * A320_NAND_ERASE_BLOCK_SIZE,
8787      .size = 64 * A320_NAND_PAGE_SIZE,
88      /* MtH: Read-only until we can trust it. */
89      .mask_flags = MTD_WRITEABLE,
9088    },
9189    { .name = "uC/OS-II loader",
9290      .offset = 64 * A320_NAND_PAGE_SIZE,
9391      .size = 192 * A320_NAND_PAGE_SIZE,
94      /* MtH: Read-only until we can trust it. */
95      .mask_flags = MTD_WRITEABLE,
9692    },
9793    /* erase block 3 is empty (maybe alternative location for bbt?) */
9894    /* erase block 4 contains the bad block table */
9995    { .name = "uC/OS-II Z:",
10096      .offset = 5 * A320_NAND_ERASE_BLOCK_SIZE,
10197      .size = 127 * A320_NAND_ERASE_BLOCK_SIZE,
102      /* MtH: Read-only until we can trust it. */
103      .mask_flags = MTD_WRITEABLE,
10498    },
10599    { .name = "uC/OS-II A:",
106100      .offset = 132 * A320_NAND_ERASE_BLOCK_SIZE,
107101      .size = (8192 - 132) * A320_NAND_ERASE_BLOCK_SIZE,
108      /* MtH: Read-only until we can trust it. */
109      .mask_flags = MTD_WRITEABLE,
110102    },
111103};
112104

Archive Download the corresponding diff file



interactive