9
0
Fork 0

DA923RC: enable UBI/UBIFS configuration

The UBI/UBIFS support is enabled and a script is added to attach
the UBI device and mount the UBIFS partition. This allows the loading
of firmware images from the NOR flash.

Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Renaud Barbier 2014-01-29 11:06:52 +00:00 committed by Sascha Hauer
parent 4a6c8b1e04
commit 78f3ac7619
2 changed files with 18 additions and 0 deletions

View File

@ -2,3 +2,15 @@
export PATH=/env/bin
source /env/config
#Define a 26MB partition in flash starting at offset 0x20000
addpart -n /dev/nor0 0x1a00000@0x20000(boot)
ubiattach /dev/boot
if [ $? -ne 0 ]; then
echo "Fail to attach UBI device"
exit 1;
fi
mkdir /mnt
mount -t ubifs /dev/ubi0.boot /mnt

View File

@ -42,6 +42,12 @@ CONFIG_DRIVER_CFI_BANK_WIDTH_4=n
CONFIG_CFI_BUFFER_WRITE=y
CONFIG_MTD=y
CONFIG_MTD_WRITE=y
CONFIG_MTD_UBI=y
CONFIG_CMD_UBI=y
CONFIG_FS_UBIFS=y
CONFIG_FS_UBIFS_COMPRESSION_LZO=y
CONFIG_CMD_UNLZO=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_MALLOC_SIZE=0x2800000
CONFIG_PROMPT="GE> "
CONFIG_BAUDRATE=9600