• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: ubifs not working  (Read 5647 times)
_maxx_
Newbie
*

Karma: 0
Posts: 19


View Profile
« on: May 02, 2009, 06:13:33 AM »

Finally I managed to compile the mtd-tools with the cross compiler. I created an image, put it on the plug, formatted the flash with it but now I cannot attach it.
The output looks like this:
~ # ./ubiattach /dev/ubi_ctrl -m 2
ubiattach: error!: cannot attach mtd2
           error 22 (Invalid argument)

while dmesg says this:
/ # UBI: attaching mtd2 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI error: vtbl_check: volume table check failed: record 0, error 9

Can anyone tell me what might be wrong?

Thanks,
Markus
Logged

da1l6
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #1 on: July 10, 2009, 02:37:47 PM »

Exactly the same problem here.

Compiled the tools and created the image entirely on the plug.

Kernel 2.6.30.

mkfs.ubifs Version 1.3 (from git head 5cf9d3cf66dd32bd5a348e0e9805c5d7a3c34573)

No solution found so far. Sad

da1l6
Logged

da1l6
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #2 on: July 10, 2009, 03:42:34 PM »

Okay, figured out what went wrong here:

vol_size in ubi.cfg was set too high (500MB) setting it to 450MB makes it work (didn't try other values).

Now df -h shows 462M rootfs size, which is less than i had with jffs2. Sad
But at least it boots much faster now. Smiley

da1l6
Logged

CqCn
Full Member
***

Karma: 0
Posts: 169



View Profile
« Reply #3 on: August 19, 2009, 08:59:39 PM »

Okay, figured out what went wrong here:

vol_size in ubi.cfg was set too high (500MB) setting it to 450MB makes it work (didn't try other values).

Now df -h shows 462M rootfs size, which is less than i had with jffs2. Sad
But at least it boots much faster now. Smiley

da1l6
da1l6,  where is ubi.cfg?  How do I change the value above?
Logged

Cordially, CqCn

da1l6
Newbie
*

Karma: 0
Posts: 8


View Profile
« Reply #4 on: August 22, 2009, 02:07:37 PM »

Okay, figured out what went wrong here:

vol_size in ubi.cfg was set too high (500MB) setting it to 450MB makes it work (didn't try other values).

Now df -h shows 462M rootfs size, which is less than i had with jffs2. Sad
But at least it boots much faster now. Smiley

da1l6
da1l6,  where is ubi.cfg?  How do I change the value above?

Huh? You manually create the ubi.cfg in the process of bulding the UBI image.

http://www.openplug.org/plugwiki/index.php/Enabling_UBIFS

da1l6
Logged

Pages: [1]
Print
Jump to: