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 have flashed the ubi.image to nand partition by doing flash_eraseall and then nandwrite -p. (I have booted from the SD card and rootfs as NFS). How to mount this partition (containing ubi.img) image and modify the contents from it ?
Thanks & Regards,
Mike
Hi,
I have flashed the ubi.image to nand partition by doing flash_eraseall and then nandwrite -p. (I have booted from the SD card and rootfs as NFS). How to mount this partition (containing ubi.img) image and modify the contents from it ? |
I assume you have mtd-utils in your rootfs,
1: $ mtdinfo /dev/mtdX
where X is your partition where you flashed your ubi.img
Note the 'Minimum input/output unit size' value
2: ubiattach -m X -O Y
Where X is same as above and Y is the value which you noted of 'Minimum input/output unit size'
3: mount -t ubifs ubi0_0 /mnt/location
do your modifications and then finally unmount. hope that helps!
Thanks,
--Prabhakar Lad
Hi Mike,
mike A said:How to mount this partition (containing ubi.img) image and modify the contents from it ?
See the below links:
http://processors.wiki.ti.com/index.php/UBIFS_Support#Mounting_UBIFS_image_as_a_regular_NAND_partition
http://processors.wiki.ti.com/index.php/UBIFS_Support#Mounting_a_NAND_partition_using_UBIFS
http://processors.wiki.ti.com/index.php/EZSDK_Using_data_on_SD_and_filesystem_on_NAND
http://processors.wiki.ti.com/index.php/EZSDK_Fast_Boot_Streaming_Video
http://processors.wiki.ti.com/index.php/TI811x_UBIFS_Support
http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/157815.aspx
http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/218639.aspx
http://e2e.ti.com/support/arm/sitara_arm/f/791/t/248144.aspx
http://e2e.ti.com/support/embedded/android/f/509/t/111277.aspx
http://e2e.ti.com/support/embedded/linux/f/354/t/224152.aspx
BR
Pavel
Hi Prabhakar,
I tried following your steps,
but after mounting when I try to create a file I get following error:
# touch sample.txt
touch: cannot touch 'sample.txt': No space left on device
#
How to fix it ?
Thanks & Regards,
Mike
Hi,
Forgot to mention apart from the above issue, When I try to mount for the second time I see following issues:
# ubiattach -m4 -O 2048
[ 667.280000] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read 64 bytes
UBI device number 0, total 1601 LEBs (203288576 bytes, 193.9 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
#
I dont see the above errors when I do it for first time.
Thanks & Regards,
Mike
mike A said:but after mounting when I try to create a file I get following error:
# touch sample.txt
touch: cannot touch 'sample.txt': No space left on device
#
How to fix it ?
Answered here:
http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/377262/1328376.aspx#1328376
BR
Pavel