VAR-SOM-MX6 1GB NAND new

From Variscite Wiki
Revision as of 13:52, 3 September 2018 by Eran (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
VAR-SOM-MX6 1GB NAND flash support

To use a 1GB NAND flash (with erase block size of 256KiB, e.g. Micron MT29F8G08ABACAWP), the following should be set in meta-variscite:

UBIFS parameters

The following is normally defined in either conf/machine/var-som-mx6.conf or conf/machine/include/variscite.inc

MKUBIFS_ARGS = " -m 4096 -e 248KiB -c 4000 "
UBINIZE_ARGS = " -m 4096 -p 256KiB -s 4096 "

u-boot-fw-utils parameters

The following is normally defined in recipes-bsp/u-boot/u-boot-fw-utils/var-som-mx6/fw_env.config

# MTD device name    Device offset    Env. size    Flash sector size    Number of sectors
/dev/mtd0            0x180000         0x20000      0x40000              1