]> git.sur5r.net Git - u-boot/commitdiff
defconfigs: engicam: Enable UBI commands
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 21 Dec 2016 11:00:24 +0000 (12:00 +0100)
committerStefano Babic <sbabic@denx.de>
Mon, 2 Jan 2017 16:30:51 +0000 (17:30 +0100)
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>
configs/imx6dl_icore_nand_defconfig
configs/imx6q_icore_nand_defconfig
configs/imx6ul_geam_nand_defconfig
include/configs/imx6qdl_icore.h
include/configs/imx6ul_geam.h

index a1915963f41233e9aae2c173ef728e8cc9a0e627..3304049b8699d21491c3d54e88fd550be004ce4a 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_SYS_PROMPT="icorem6qdl> "
 CONFIG_CMD_MEMTEST=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_NAND=y
+CONFIG_CMD_UBI=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_MII=y
index 511bd53e8cf398f8eba7e67ea46e0e8db01a822c..c3134a6d0796643beff7755d9ee05926043ea4b3 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_SYS_PROMPT="icorem6qdl> "
 CONFIG_CMD_MEMTEST=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_NAND=y
+CONFIG_CMD_UBI=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_MII=y
index 749145ab5b6824c5b5e76e2bad73fa201174376e..96252cb8ee9ca90531a6ec01b3bb197df50e5f37 100644 (file)
@@ -18,6 +18,7 @@ CONFIG_SYS_PROMPT="geam6ul> "
 CONFIG_CMD_MEMTEST=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_NAND=y
+CONFIG_CMD_UBI=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
index 3848a6f0459ae6f328c378810993d4250f2c7f0e..55eb100eefb042019f4c064a62e81182dcc0466e 100644 (file)
 # define MTDPARTS_DEFAULT              "mtdparts=gpmi-nand:2m(spl),2m(uboot)," \
                                        "1m(env),8m(kernel),1m(dtb),-(rootfs)"
 
+/* UBI */
+# define CONFIG_CMD_UBIFS
+# define CONFIG_RBTREE
+# define CONFIG_LZO
+
 # define CONFIG_APBH_DMA
 # define CONFIG_APBH_DMA_BURST
 # define CONFIG_APBH_DMA_BURST8
index e925c8f55db817b3aac43fb0c9d45990a39e813b..3e26a810e480187d4b5336c8a91e6280467fc946 100644 (file)
 # define MTDPARTS_DEFAULT              "mtdparts=gpmi-nand:2m(spl),2m(uboot)," \
                                        "1m(env),8m(kernel),1m(dtb),-(rootfs)"
 
+/* UBI */
+# define CONFIG_CMD_UBIFS
+# define CONFIG_RBTREE
+# define CONFIG_LZO
+
 # define CONFIG_APBH_DMA
 # define CONFIG_APBH_DMA_BURST
 # define CONFIG_APBH_DMA_BURST8