移植u-boot-2010.03問題 --- No oob scheme defined for oobsize 32

移植u-boot-2010.03問題 --- No oob scheme defined for oobsize 32

1,找到u-boot-2010.03/drivers/mtd/nand下的nand_ids.clinux

  //{"NAND 2GiB 3,3V 8-bit",    0xD5, 0, 2048, 0, LP_OPTIONS},
    {"NAND 2GiB 3,3V 8-bit",    0xD5, 4096, 2048, 512*1024, LP_OPTIONS},

2,找到u-boot-2010.03/include/linux/mtd下的mtd.hui

第一處:this

    //uint64_t addr;
    //uint64_t len;
    //uint64_t fail_addr;
    uint32_t addr;
    uint32_t len;
    uint32_t fail_addr;

第二處:spa

    //uint64_t offset;            /* At which this region starts, from the beginning of the MTD */
    uint32_t offset;

第三處:code

   //uint64_t size;     /* Total size of the MTD */
    uint32_t size;
相關文章
相關標籤/搜索