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.

AM625: ubifs mount error

Part Number: AM625

Hi Team,

I used Infineon S25HS512Tnorflash on this chip. The flash allocated capacity to ubifs at 0x2200000 - 0x3fc0000. The root file system adopted ramdisk. When I mounted ubifs under ramdisk, the mount could be successful, and the reading and writing were normal. But while I was writing data to ubifs, if it was powered off and then I restarted to mount ubifs, errors would occur in the CRC check, and the mount would fail. I think ubifs has a backup LEB for power-loss protection? Why would this happen? How could I prevent accidental power failure when writing flash data and ensure that the ubifs file system could still run smoothly? The log is as follows.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
=~=~=~=~=~=~=~=~=~=~=~= MobaXterm log 2022.12.06 16:10:12 =~=~=~=~=~=~=~=~=~=~=~=
root@am62xx-evm:~/nvm/tools# ls
gdb
root@am62xx-evm:~/nvm/tools# cp -./g root@am62xx-evm:~/nvm/tools# cp ./gdb ./ root@am62xx-evm:~/nvm/tools# cp ./gdb ./gdb 1
root@am62xx-evm:~/nvm/tools# ls
gdb gdb1
root@am62xx-evm:~/nvm/tools# sync
U-Boot SPL 2021.01 (Nov 25 2022 - 18:38:02 +0800)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.4.7--v08.04.07 (Jolly Jellyfi')
Trying to boot from SPI
sr1 = 0
write_03reg_ret = 0
ret_reg2 = 0, buf_802 = 0
4nor->read_proto = 10104, nor->write_proto = 10101, nor->read_opcode = 6c, nor->program_opcode = 12, nor->erase_opcode = dc
ret_reg0 = 0, buf[0] = 0
ret_reg1 = 0, buf[1] = 0
ret_reg2 = 0, buf[2] = 0
ret_reg3 = 0, buf[3] = 0
ret_reg4 = 0, buf[4] = 8
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Kind regards,

Katherine