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.

AM3352: Support ubifs on SPI NOR flash

Part Number: AM3352

Can current Processor SDK support ubifs on SPI NOR flash? if yes, where can I find the procedure to make it work?

Customer tried as below, but failed.

SPI flash: w25q64cv: 8Mbyte, erase size 4KB, page size: 256byte.

ubiattach a mtd got below:

make ubifs image procedure:

mkfs.ubifs -r ./sdk/ -m 1 -e 65408 -c 43 -o test_ubi.img -F

ubinize -o ubi_test.ubi -m 1 -p 64KiB test_ubinize.cfg

test_ubinize.cfg as below:

[ubifs]

mode=ubi

image=./test_ubi.img

vol_id=5

vol_size=2818048

vol_type=dynamic

vol_name=rootfs

vol_flags=autoresize

bootargs setting in UBoot: setenv bootargs console= console=ttyO3,115200n8 ubi.mtd=5 rootfstye=ubifs rw root=ubi0:rootfs rw  init=/linuxrc

Kernel configuration: 

booting log:

66382.log.txt
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
U-Boot 2020.01-dirty (Aug 26 2021 - 14:13:16 +0800)
CPU : AM335X-GP rev 2.1
Model: TI AM3359 ICE-V2
DRAM: 256 MiB
ETH0, CPSW
ETH1, CPSW
WDT: Started with servicing (60s timeout)
NAND: 0 MiB
MMC: OMAP SD/MMC: 0
Loading Environment from SPI Flash... SF: Detected w25q64cv with page size 256 Bytes, erase size 4 KiB, total 8 MiB
OK
Net: eth0: ethernet@4a100000
Hit any key to stop autoboot: 0
SF: Detected w25q64cv with page size 256 Bytes, erase size 4 KiB, total 8 MiB
device 0 offset 0x120000, size 0x3c0000
SF: 3932160 bytes @ 0x120000 Read: OK
device 0 offset 0x4e0000, size 0x10000
SF: 65536 bytes @ 0x4e0000 Read: OK
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

[    2.136118] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -2

Operate in command line: