All of lore.kernel.org
 help / color / mirror / Atom feed
* [ubifs] "cannot parse device table file 'device_table.txt'"
@ 2011-05-19 10:49 Gilles
  2011-05-20  9:27 ` Artem Bityutskiy
  2011-05-29 10:35 ` Gilles
  0 siblings, 2 replies; 6+ messages in thread
From: Gilles @ 2011-05-19 10:49 UTC (permalink / raw)
  To: linux-mtd

Hello

I'd like to compile Ubifs in uClinux, but am getting the following
error:
===========
...
/usr/src/uClinux-dist/user/mtd-utils/mkfs.ubifs --squash-uids -m 2048
-e 204800 -c 1024 -d /usr/src/uClinux-dist/romfs -D device_table.txt
-o /usr/src/uClinux-dist/images/rootfs.ubifs

Error: count cannot be zero if increment is non-zero
Error: cannot parse '/dev/mtdblock0     b       640     0       0 31
0       0       1       -'
Error: cannot parse device table file 'device_table.txt'
make[5]: *** [image.rootfs.ubifs.force] Error 255
===========

Google didn't return much information, but it seems like mkfs.ubifs is
part of mtd-utils:
http://mtd-utils.sourcearchive.com/documentation/20090606/devtable_8c-source.html

I tried to copy the manufacturer's "device_table.txt" in ./romfs/, but
am still getting the same error.

Does someone know the cause for the error?

Thank you.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ubifs] "cannot parse device table file 'device_table.txt'"
  2011-05-19 10:49 [ubifs] "cannot parse device table file 'device_table.txt'" Gilles
@ 2011-05-20  9:27 ` Artem Bityutskiy
  2011-05-20  9:56   ` Gilles
  2011-05-29 10:35 ` Gilles
  1 sibling, 1 reply; 6+ messages in thread
From: Artem Bityutskiy @ 2011-05-20  9:27 UTC (permalink / raw)
  To: Gilles; +Cc: linux-mtd

On Thu, 2011-05-19 at 12:49 +0200, Gilles wrote:
> Hello
> 
> I'd like to compile Ubifs in uClinux, but am getting the following
> error:
> ===========
> ...
> /usr/src/uClinux-dist/user/mtd-utils/mkfs.ubifs --squash-uids -m 2048
> -e 204800 -c 1024 -d /usr/src/uClinux-dist/romfs -D device_table.txt
> -o /usr/src/uClinux-dist/images/rootfs.ubifs
> 
> Error: count cannot be zero if increment is non-zero
> Error: cannot parse '/dev/mtdblock0     b       640     0       0 31
> 0       0       1       -'
> Error: cannot parse device table file 'device_table.txt'
> make[5]: *** [image.rootfs.ubifs.force] Error 255
> ===========

It seems like that device table line is indeed incorrect, or what do you
expect mkfs.ubifs to do?


-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ubifs] "cannot parse device table file 'device_table.txt'"
  2011-05-20  9:27 ` Artem Bityutskiy
@ 2011-05-20  9:56   ` Gilles
  2011-05-20 10:27     ` Artem Bityutskiy
  0 siblings, 1 reply; 6+ messages in thread
From: Gilles @ 2011-05-20  9:56 UTC (permalink / raw)
  To: linux-mtd

On Fri, 20 May 2011 12:27:17 +0300, Artem Bityutskiy
<dedekind1@gmail.com> wrote:
>It seems like that device table line is indeed incorrect, or what do you
>expect mkfs.ubifs to do?

I used a sample that comes with uClinux and is considered a reference
to use. If there's more information about what value to put in that
column or a valid file that I could use, I'm interested. Thank you.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ubifs] "cannot parse device table file 'device_table.txt'"
  2011-05-20  9:56   ` Gilles
@ 2011-05-20 10:27     ` Artem Bityutskiy
  2011-05-20 15:28       ` Gilles
  0 siblings, 1 reply; 6+ messages in thread
From: Artem Bityutskiy @ 2011-05-20 10:27 UTC (permalink / raw)
  To: Gilles; +Cc: linux-mtd

On Fri, 2011-05-20 at 11:56 +0200, Gilles wrote:
> On Fri, 20 May 2011 12:27:17 +0300, Artem Bityutskiy
> <dedekind1@gmail.com> wrote:
> >It seems like that device table line is indeed incorrect, or what do you
> >expect mkfs.ubifs to do?
> 
> I used a sample that comes with uClinux and is considered a reference
> to use. If there's more information about what value to put in that
> column or a valid file that I could use, I'm interested. Thank you.

I do not know the right format for the device table either. In your case
you have: start = 0, increment = 1, count = -;

I do not know what "-" means, but mkfs.ubifs interprets it as "zero" and
then complains that you ask it to create zero devices starting from
number zero with increment 0.

May be this '-' means something and mkfs.ubifs does not properly handle
that?

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ubifs] "cannot parse device table file 'device_table.txt'"
  2011-05-20 10:27     ` Artem Bityutskiy
@ 2011-05-20 15:28       ` Gilles
  0 siblings, 0 replies; 6+ messages in thread
From: Gilles @ 2011-05-20 15:28 UTC (permalink / raw)
  To: linux-mtd

On Fri, 20 May 2011 13:27:21 +0300, Artem Bityutskiy
<dedekind1@gmail.com> wrote:
>I do not know the right format for the device table either. In your case
>you have: start = 0, increment = 1, count = -;
>
>I do not know what "-" means, but mkfs.ubifs interprets it as "zero" and
>then complains that you ask it to create zero devices starting from
>number zero with increment 0.
>
>May be this '-' means something and mkfs.ubifs does not properly handle
>that?

I guess not too many people use Ubifs with uCLinux yet, which might
explain why the samples provided with the distro don't work. I'll read
up on that file and try to figure out why mkfs.ubifs isn't happy.

Thank you.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [ubifs] "cannot parse device table file 'device_table.txt'"
  2011-05-19 10:49 [ubifs] "cannot parse device table file 'device_table.txt'" Gilles
  2011-05-20  9:27 ` Artem Bityutskiy
@ 2011-05-29 10:35 ` Gilles
  1 sibling, 0 replies; 6+ messages in thread
From: Gilles @ 2011-05-29 10:35 UTC (permalink / raw)
  To: linux-mtd

On Thu, 19 May 2011 12:49:54 +0200, Gilles <gilles.ganault@free.fr>
wrote:
>Error: count cannot be zero if increment is non-zero
>Error: cannot parse '/dev/mtdblock0     b       640     0       0 31
>0       0       1       -'

In case someone else has the same issue, here's the correct line:

/dev/mtd0	c	640	0	0	90	0	0	0	-
/dev/mtd1	c	640	0	0	90	2	0	0	-
/dev/mtd2	c	640	0	0	90	4	0	0	-
/dev/mtd3	c	640	0	0	90	6	0	0	-
/dev/mtd4	c	640	0	0	90	8	0	0	-
/dev/mtd5	c	640	0	0	90	10	0	0	-

/dev/mtdblock0	b	640	0	0	31	0	0	0	-
/dev/mtdblock1	b	640	0	0	31	1	0	0	-
/dev/mtdblock2	b	640	0	0	31	2	0	0	-
/dev/mtdblock3	b	640	0	0	31	3	0	0	-
/dev/mtdblock4	b	640	0	0	31	4	0	0	-
/dev/mtdblock5	b	640	0	0	31	5	0	0	-

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-29 10:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-19 10:49 [ubifs] "cannot parse device table file 'device_table.txt'" Gilles
2011-05-20  9:27 ` Artem Bityutskiy
2011-05-20  9:56   ` Gilles
2011-05-20 10:27     ` Artem Bityutskiy
2011-05-20 15:28       ` Gilles
2011-05-29 10:35 ` Gilles

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.