This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Is UBI/UBIFS support in u-boot mandatory ?



Hello

in the link http://processors.wiki.ti.com/index.php/UBIFS_Support it is mentionned to enable  UBI/UBIFS support in u-boot :

(#define CONFIG_CMD_NAND
#define CONFIG_CMD_UBI
#define CONFIG_CMD_UBIFS
#define CONFIG_RBTREE
#define CONFIG_MTD_DEVICE
#define CONFIG_MTD_PARTITIONS
#define CONFIG_CMD_MTDPARTS
#define CONFIG_LZO)


1) is it mandarory when we flash UBI image in flash ?


i do the following for my MT29F1G08ABAEAWP NAND but can't boot on my UBI image :
on linux :
sudo mkfs.ubifs /home/pengwyn/ti-sdk-am335x-evm-05.06.00.00/targetNFS –F –v -m 2048 -e 126976 -c 8406 -o ubifs.img
sudo ubinize -o ubi.img -m 2048 -p 128KiB -s 2048 ubinize.cfg
 
 on target

 mw.b 0x84000000 0xFF 0x500000 
mmc rescan
fatload mmc 0 0x84000000 ubi.img
nand erase 0x00600000 0x500000
nand write 0x84000000 0x00600000 0x200000
setenv bootargs 'console=ttyO0,115200n8 noinitrd ip=off mem=1024M rootwait=1 rw ubi.mtd=7,2048 rootfstype=ubifs root=ubi0:rootfs init=/init'
boot
But i get kernel panic when booting....