IMX6ULL support UBIFS is possible?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6ULL support UBIFS is possible?

1,262 Views
stevenyu
Contributor III

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/

Labels (1)
Tags (2)
0 Kudos
6 Replies

891 Views
jackou
Contributor I

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. 

0 Kudos

891 Views
stevenyu
Contributor III

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!

0 Kudos

891 Views
igorpadykov
NXP Employee
NXP Employee

Hi Steven

seems it is not supported, one can try to port it using linux sources and

post it on uboot mail list

[U-Boot] u-boot UBI support 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

891 Views
stevenyu
Contributor III

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

0 Kudos

891 Views
igorpadykov
NXP Employee
NXP Employee

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

0 Kudos

891 Views
stevenyu
Contributor III

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/

0 Kudos