楼主,请问你的uboot基于K9GAG08U0F支持写功能吗,uboot能从nandflash启动吗?
因为K9GAG08U0F oobsize是512,用的是16bit ECC校准,想做K9GAG08U0F 驱动,
现在关于卡在 8Kb page size with 16_bit ECC Nand flash oob definition 如何定义,类似
static struct nand_ecclayout s3c_nand_oob_16 = {
.eccbytes = 4,
.eccpos = {
1, 2, 3, 4
},
.oobfree = {
{
.offset = 6,
.length = 10
}
}
};
/* Nand flash oob definition for SLC 2k page size */
static struct nand_ecclayout s3c_nand_oob_64 = {
.eccbytes = 16,
.eccpos = {
40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55
},
.oobfree = {
{
.offset = 2,
.length = 38
}
}
};
/* Nand flash oob definition for MLC 2k page size */
static struct nand_ecclayout s3c_nand_oob_mlc_64 = {
.eccbytes = 32,
.eccpos = {
32, 33, 34, 35, 36, 37, 38, 39,
40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55,
56, 57, 58, 59, 60, 61, 62, 63
},
.oobfree = {
{
.offset = 2,
.length = 28
}
}
};
/* Nand flash oob definition for 4Kb page size with 8_bit ECC */
static struct nand_ecclayout s3c_nand_oob_128 = {
.eccbytes = 104,
.eccpos = {
24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39,
40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55,
56, 57, 58, 59, 60, 61, 62, 63,
64, 65, 66, 67, 68, 69, 70, 71,
72, 73, 74, 75, 76, 77, 78, 79,
80, 81, 82, 83, 84, 85, 86, 87,
88, 89, 90, 91, 92, 93, 94, 95,
96, 97, 98, 99, 100, 101, 102, 103,
104, 105, 106, 107, 108, 109, 110, 111,
112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127},
.oobfree = {
{
.offset = 2,
.length = 22
}
}
};
不知道大家有什么建议,谢谢