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.

How to mount .ubi file on mtd on AM335x evm board? not root file system file.

Hi all

I've been trying to mount font file

How to mount font file on mtd on AM335x evm board?

I used to use to UBIFS file system

I mounted rootfs on mtd0, no problem

I want to mount font file on mtd13

Font file is not root system file

 

* test process

1. make .ubi file (file size : 14Mbyte)

 Board: AM335x evm board

Nand : MT29F2G08 , 256MB (default nand)

 

  # mkfs.ubifs -r /opt/work/trunk/BSP/AM335X/RootFileSystem/FS_DefaultElements/ -F -o ubidf.img -m 2048 -e 126976 -c 255

  # ubinize -o sg-df.ubi -p 128KiB  -m 2048 -s 2048 -O 2048 ubi_df.ini

 

Ubi_df.ini

[ubi_rfs]

mode=ubi

image=ubidf.img

vol_id=1

vol_size=30MiB

vol_type=dynamic

vol_name=defaultelement

vol_alignment=1

vol_flags=autoresize

 

2. download to nand flash

mtd0: 00020000 00020000 "NAND.SPL"
mtd1: 00020000 00020000 "NAND.SPL.backup1"
mtd2: 00020000 00020000 "NAND.SPL.backup2"
mtd3: 00020000 00020000 "NAND.SPL.backup3"
mtd4: 00040000 00020000 "NAND.u-boot-spl-os"
mtd5: 00100000 00020000 "NAND.u-boot"
mtd6: 00020000 00020000 "NAND.u-boot-env"
mtd7: 00020000 00020000 "NAND.u-boot-env.backup1"
mtd8: 00800000 00020000 "NAND.kernel"
mtd9: 0d000000 00020000 "NAND.file-system"
mtd10: 00200000 00020000 "NAND.UserArea"
mtd11: 00100000 00020000 "NAND.PritnerSetting"
mtd12: 00100000 00020000 "NAND.RawPartition1"
mtd13: 02200000 00020000 "NAND.default-elements"

u-boot# mw.b 0x82000000 0xFF 0x2200000;mmc rescan;fatload mmc 0 0x82000000 sg-df.ubi; nand erase 0xDE00000 0x2200000;nand write 0x82000000 0xDE00000 0x2200000

 

what should i do next ?

thank you for your reply