Hi All,
We have found below DEFINEs in include/configs/m28evk.h.
We copy to include/configs/mx6ullevk.h, and bitbake -c compile -f u-boot-imx; bitbake core-image-base.
However, it does not been build into u-boot-imx6ull14x14evk.imx-sd. Do you know what things we missing?
We also found Makefile need to see these variable, so what is the formal procedure to make it into u-boot?
===m28evk.h===
#define CONFIG_CMD_UBI
#define CONFIG_CMD_UBIFS
#define CONFIG_CMD_MTDPARTS
#define CONFIG_RBTREE
#define CONFIG_LZO
#define CONFIG_MTD_DEVICE
#define CONFIG_MTD_PARTITIONS
#define MTDIDS_DEFAULT "nand0=gpmi-nand"
#define MTDPARTS_DEFAULT \
"mtdparts=gpmi-nand:" \
"3m(u-boot)," \
"512k(env1)," \
"512k(env2)," \
"14m(boot)," \
"238m(data)," \
"-@4096k(UBI)"
===Makefiles===
cmd/Makefile:128:obj-$(CONFIG_CMD_UBIFS) += ubifs.o
fs/Makefile:22:obj-$(CONFIG_CMD_UBIFS) += ubifs/
Hi,
I am trying to do similar thing now, on ls1021atwr board. I try to read ubi partition from NOR.
I can make the compile to work by putting those defines in include/configs/ls1021atwr.h, not the ls1021atwr_nor_defconfig. I get those commands in uboot.
But when I tried mtdparts, it complains : Device nor0 not found !
Any idea how to make ubi and mtdparts sees the NOR flash in board ?
Thanks !
Jack Ou.
yes, i try to change CONFIG_CMD_UBIFS to y, and ubi command is built into u-boot. Any good method to avoid force change $(CONFIG_CMD_UBIFS) to y , and configuration file we can modify and variable changed to y automatically?
fs/Makefile:22:obj-$(CONFIG_CMD_UBIFS) += ubifs/
to
fs/Makefile:22:obj-y += ubifs/
And the, we have similar issue as you.
it complains : device nand not found!
Hi Steven
seems it is not supported, one can try to port it using linux sources and
post it on uboot mail list
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi igor,
OK, I see it looks difficult to make ubifs support.
Do you know where should we put CONFIG_CMD_UBIFS, CONFIG_CMD_UBIFS and then let Makefile can try to make it ?
Because we put these CONFIG_OOXX to git/configs/mx6ull_14x14_evk_nand_defconfig, but it seems Makefile/.c/.h still cannot see these variable !!
Regards,
Steven Yu
Hi Steven
since it is not supported, so no there are no necessary dependencies
for these definitions. It is necessary to add them using for example i.mx28
Best regards
igor
We try to change $(CONFIG_CMD_UBIFS) to y, and ubi command is built into u-boot. Any good method to avoid force change $(CONFIG_CMD_UBIFS) to y ? Does it have configuration file for our modificataion, and then variable changed to y automatically?
fs/Makefile:22:obj-$(CONFIG_CMD_UBIFS) += ubifs/
to
fs/Makefile:22:obj-y += ubifs/