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 All,
I am trying to mount the UBI image from NAND on custom board(OMAP4 DM37 processors). I have followed below steps to mount the UBI image.
1. Enabled the UBIFS support at U-boot.
2. MTDPARTIONS_DEFAULT, MTDIDS_DEFAULT are added. I have checked these partitions, by giving the "mtdparts" command from the cutecom. Getting the expected partitions.
3. Now i have attached the on one of the MTD partion to the UBI device by giving the command "ubi part system".
VAR-OM3xxx # ubi part system
Creating 1 MTD partitions on "nand0":
0x000000780000-0x000006b80000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 126976 bytes
UBI: smallest flash I/O unit: 2048
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 100 MiB
UBI: number of good PEBs: 800
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 1
UBI: available PEBs: 0
UBI: total number of reserved PEBs: 800
UBI: number of PEBs reserved for bad PEB handling: 8
UBI: max/mean erase counter: 1/0
4. Here i want to create a volume on the UBI device. It is giving error : ubi_create_volume : not enough pebs, only 0 available.
The command used to create the UBI volume on the UBI device is ubi create usystem 0x3c00 d
Why i am facing this error? Is this is the process to mount the ubi image or any mistake?
BR
Kishore
Hi Kishore,
The error message "ubi_create_volume : not enough pebs, only 0 available" appears because you have 0 available PEBs as you see in the "ubi part system" command output.
Are you creating the UBIFS as it is described at the link:
If all is right about creation you can try to start some debugging by starting with ubi_create_volume function in the u-boot/drivers/mtd/ubi/vmt.c file.
BR
Tsvetolin Shulev