Hi
I wanted to upgrade a UBIFS rootfs image from a running application on it.
But if I have to use ubiformat, I need to detach the ubi rootfs partition using ubidetach.
This gives Device busy error as below
ubiformat /dev/mtd4 -O 2048 -f /mnt/installubi.img
ubiformat: error!: please, first detach mtd4 (/dev/mtd4) from ubi0
So I tried to detach
ubidetach -p /dev/mtd4
ubidetach: error!: cannot detach "/dev/mtd4"
error 16 (Device or resource busy)
I cannot unmount my root , since I am already inside the filesystem.
Can someone tell me , how to proceed using ubiformat?
When I tried to use nandwrite, it gives the following error
UBI error: ubi_io_read: error -74 (ECC error) while reading 126976 bytes from PEB 2:4096, read 126976 bytes
I have reservations about using nandwrite for writing ubi images into nand flash.
Can someone help?
Regards
JK