[Ubi] Wrong major:minor

Artem Bityutskiy dedekind1 at gmail.com
Wed Jun 1 04:37:35 EDT 2011


On Wed, 2011-06-01 at 11:36 +0300, Artem Bityutskiy wrote:
> On Sun, 2011-05-29 at 12:39 +0200, Gilles wrote:
> > Hello
> > 
> > I used the following data to compile Ubi(fs) into a uClinux kernel:
> > 
> > ========= device_table.txt
> > #UBIFS nodes
> > /dev/ubi_ctrl	c	644	0	0	10	63	0	0	-
> > /dev/ubi0	c	644	0	0	253	0	0	0	-
> > ========= 
> 
> But I guess you may add an UBI module parameter which will ask UBI to
> use major numbers you want - should be easy to do. E.g., if you add a
> 'major_base=200' parameter then UBI will use 200:0 for ubi0, 201:0 for
> ubi1, 200:1 for ubi0_0, 200:2 for ubi0_1, etc.

Although I'm not sure - dynamic numbers were introduced because fixed
numbers are PITA, so adding such a parameter would be a step backward.
Not sure...

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




More information about the linux-mtd mailing list