Commit 8a9c775afff9e6dcf46aa75051d277c5efc578df
Committed by
Stefano Babic
1 parent
3a22808f76
Exists in
v2017.01-smarct4x
and in
28 other branches
defconfigs: engicam: Enable UBI commands
Create ubifs.img:
$ mkfs.ubifs -q -r /rootfs -m 4096 -e 253952 -c 7936 -o ubifs.img
Write ubifs.img:
---------------
icorem6qdl> nand erase.part rootfs
icorem6qdl> ubi part rootfs
icorem6qdl> ubi create rootfs
icorem6qdl> ext4load mmc 0:2 ${loadaddr} ubifs.img
166592512 bytes read in 8091 ms (19.6 MiB/s)
icorem6qdl> ubi write ${loadaddr} rootfs ${filesize}
166592512 bytes written to volume rootfs
icorem6qdl> ubifsmount ubi0:rootfs
Cc: Stefano Babic <sbabic@denx.de>
Cc: Matteo Lisi <matteo.lisi@engicam.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Showing 5 changed files with 13 additions and 0 deletions Side-by-side Diff
configs/imx6dl_icore_nand_defconfig
configs/imx6q_icore_nand_defconfig
configs/imx6ul_geam_nand_defconfig
include/configs/imx6qdl_icore.h
| ... | ... | @@ -133,6 +133,11 @@ |
| 133 | 133 | # define MTDPARTS_DEFAULT "mtdparts=gpmi-nand:2m(spl),2m(uboot)," \ |
| 134 | 134 | "1m(env),8m(kernel),1m(dtb),-(rootfs)" |
| 135 | 135 | |
| 136 | +/* UBI */ | |
| 137 | +# define CONFIG_CMD_UBIFS | |
| 138 | +# define CONFIG_RBTREE | |
| 139 | +# define CONFIG_LZO | |
| 140 | + | |
| 136 | 141 | # define CONFIG_APBH_DMA |
| 137 | 142 | # define CONFIG_APBH_DMA_BURST |
| 138 | 143 | # define CONFIG_APBH_DMA_BURST8 |
include/configs/imx6ul_geam.h
| ... | ... | @@ -132,6 +132,11 @@ |
| 132 | 132 | # define MTDPARTS_DEFAULT "mtdparts=gpmi-nand:2m(spl),2m(uboot)," \ |
| 133 | 133 | "1m(env),8m(kernel),1m(dtb),-(rootfs)" |
| 134 | 134 | |
| 135 | +/* UBI */ | |
| 136 | +# define CONFIG_CMD_UBIFS | |
| 137 | +# define CONFIG_RBTREE | |
| 138 | +# define CONFIG_LZO | |
| 139 | + | |
| 135 | 140 | # define CONFIG_APBH_DMA |
| 136 | 141 | # define CONFIG_APBH_DMA_BURST |
| 137 | 142 | # define CONFIG_APBH_DMA_BURST8 |