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.
Hi
I'm using AM335x with linux PSP04.06.00.07sdk, i boot from NAND flash using ubifs file system, and my ubifs file system also mount on NAND flash. Now i facing a file system update problem.
i use the following command to update my NAND flash, (http://processors.wiki.ti.com/index.php/UBIFS_Support), but my system crash after i erase my file system.
flash_eraseall /dev/mtd7
ubiformat /dev/mtd7 -f ubi.img -s 512 -O 2048
ubiattach /dev/ubi_ctrl -m 7 -O 2048
mount -t ubifs ubi0:rootfs /media/card
How i update my ubifs file system while i booting from the file system itself ?
Thanks and Regards
Keldy
I am not a NAND expert, but in general, you cannot update the file system on the device which is currently mounted as the active filesystem. It is like you cannot format c: drive while Windows is running in normal mode.
Where did you get the instruction which you did above?
hi,
i get the instructions from the link http://processors.wiki.ti.com/index.php/UBIFS_Support.
if i boot file system over network, i can use the commands to flash my ubifs file system successfully.
any other method to do the file system update?
Thanks and Regards
Keldy
Hi,
If you boot from SD card, you'll be able to flash rootfs to Nand.
You can also flash ubifs file system from Uboot. Check the below wiki.
http://processors.wiki.ti.com/index.php/UBIFS_Support#Flashing_UBIFS_image_to_a_NAND_partition
Regards,
Yan
Keldy said:any other method to do the file system update?
No matter what method you use, you are simply unable to update the root filesystem on the device currently mounted as root filesystem.
You have to boot from a device different from the one you are going to update, for example, from NFS, SD card, or a different NAND partition.