u-boot.nand oob size 64 or 128

cancel
Showing results for 
Search instead for 
Did you mean: 

u-boot.nand oob size 64 or 128

398 Views
IvanRia
Contributor II

I have a system on an mx28evk chip, I have two types of nand memory, one with 64 bytes, the other 128 bytes, I am building a buildroot, I need a universal firmware for both types of memory, I found how to patch uboot so that it works with both memory types, but buildroot has an option for u-boot.nand NAND OOB size, which is not recognized by the bootloader during boot, but is hardcoded in u-boot.nand, 

accordingly, if I set u-boot.nand oob size to 128 bytes, then the system with 64 memory will not boot and vice versa, tell me, is it possible to somehow create a universal firmware for both types of nand memory?

0 Kudos
1 Reply

393 Views
IvanRia
Contributor II

the code in uboot/drivers/mtd/nand/nand_base.c recognizes the OOB size correctly, but mxsboot cant set up OOB size universally, only one OOB size can be passed to the mxsboot, respectively, the question is how you can set the environment variable to uboot from a file uboot/drivers/mtd/nand/nand_base.c?

0 Kudos