* setup ubifs
@ 2009-09-17 15:29 Dimitar Penev
2009-09-17 15:43 ` Artem Bityutskiy
0 siblings, 1 reply; 6+ messages in thread
From: Dimitar Penev @ 2009-09-17 15:29 UTC (permalink / raw)
To: linux-mtd
Hi Guys,
I am tring to setup ubifs on an blackfin based embeded platform containg
nand flash.
jffs2 is working ok on it.
So I have compiled the uclinux (kernel 2.6.28.10) with ubifs/mtd_ubi static
support
If I pass with the bootargs ubi.mtd=3 , during booting I see
...
UBI: attaching mtd3 to ubi0
UBI: physical eraseblock size: 262144 bytes (256 KiB)
UBI: logical eraseblock size: 258048 bytes
UBI: smallest flash I/O unit: 2048
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
UBI: empty MTD device detected
UBI: create volume table (copy #1)
UBI: create volume table (copy #2)
UBI: attached mtd3 to ubi0
UBI: MTD device name: "persistent file system"
UBI: MTD device size: 1004 MiB
UBI: number of good PEBs: 3974
UBI: number of bad PEBs: 42
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 3931
UBI: total number of reserved PEBs: 43
UBI: number of PEBs reserved for bad PEB handling: 39
UBI: max/mean erase counter: 0/0
UBI: background thread "ubi_bgt0d" started, PID 122
...
ubinfo gives me
root@pr1:~> /bin/ubinfo
UBI version: 1
Count of UBI devices: 1
UBI control device major/minor: 10:63
Present UBI devices: ubi0
I don't have /dev/ubi0 nor /dev/ubi_ctrl, however I do have some ubi stuff
in my /sys file system
root@pr1:~> ls /sys/class/ubi/ubi0/
/sys/class/ubi/ubi0/avail_eraseblocks /sys/class/ubi/ubi0/min_io_size
/sys/class/ubi/ubi0/bad_peb_count /sys/class/ubi/ubi0/mtd_num
/sys/class/ubi/ubi0/bgt_enabled /sys/class/ubi/ubi0/reserved_for_bad
/sys/class/ubi/ubi0/dev /sys/class/ubi/ubi0/subsystem/
/sys/class/ubi/ubi0/eraseblock_size /sys/class/ubi/ubi0/total_eraseblocks
/sys/class/ubi/ubi0/max_ec /sys/class/ubi/ubi0/uevent
/sys/class/ubi/ubi0/max_vol_count /sys/class/ubi/ubi0/volumes_count
root@pr1:~> ls /sys/class/misc/ubi_ctrl/
/sys/class/misc/ubi_ctrl/dev /sys/class/misc/ubi_ctrl/uevent
/sys/class/misc/ubi_ctrl/subsystem/
I don't have /dev/ubi_ctrl so I can not crete (ubimkvol) ubi volume.
Can you please give me some pointers.
Best Regards
Dimitar Penev
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: setup ubifs
2009-09-17 15:29 setup ubifs Dimitar Penev
@ 2009-09-17 15:43 ` Artem Bityutskiy
2009-09-17 16:45 ` Mike Frysinger
0 siblings, 1 reply; 6+ messages in thread
From: Artem Bityutskiy @ 2009-09-17 15:43 UTC (permalink / raw)
To: Dimitar Penev; +Cc: linux-mtd
On Thu, 2009-09-17 at 18:29 +0300, Dimitar Penev wrote:
> Hi Guys,
>
> I am tring to setup ubifs on an blackfin based embeded platform containg
> nand flash.
> jffs2 is working ok on it.
>
> So I have compiled the uclinux (kernel 2.6.28.10) with ubifs/mtd_ubi static
> support
> If I pass with the bootargs ubi.mtd=3 , during booting I see
>
> ...
> UBI: attaching mtd3 to ubi0
> UBI: physical eraseblock size: 262144 bytes (256 KiB)
> UBI: logical eraseblock size: 258048 bytes
> UBI: smallest flash I/O unit: 2048
> UBI: VID header offset: 2048 (aligned 2048)
> UBI: data offset: 4096
> UBI: empty MTD device detected
> UBI: create volume table (copy #1)
> UBI: create volume table (copy #2)
> UBI: attached mtd3 to ubi0
> UBI: MTD device name: "persistent file system"
> UBI: MTD device size: 1004 MiB
> UBI: number of good PEBs: 3974
> UBI: number of bad PEBs: 42
> UBI: max. allowed volumes: 128
> UBI: wear-leveling threshold: 4096
> UBI: number of internal volumes: 1
> UBI: number of user volumes: 0
> UBI: available PEBs: 3931
> UBI: total number of reserved PEBs: 43
> UBI: number of PEBs reserved for bad PEB handling: 39
> UBI: max/mean erase counter: 0/0
> UBI: background thread "ubi_bgt0d" started, PID 122
> ...
>
> ubinfo gives me
>
> root@pr1:~> /bin/ubinfo
> UBI version: 1
> Count of UBI devices: 1
> UBI control device major/minor: 10:63
> Present UBI devices: ubi0
>
> I don't have /dev/ubi0 nor /dev/ubi_ctrl, however I do have some ubi stuff
> in my /sys file system
>
> root@pr1:~> ls /sys/class/ubi/ubi0/
> /sys/class/ubi/ubi0/avail_eraseblocks /sys/class/ubi/ubi0/min_io_size
> /sys/class/ubi/ubi0/bad_peb_count /sys/class/ubi/ubi0/mtd_num
> /sys/class/ubi/ubi0/bgt_enabled /sys/class/ubi/ubi0/reserved_for_bad
> /sys/class/ubi/ubi0/dev /sys/class/ubi/ubi0/subsystem/
> /sys/class/ubi/ubi0/eraseblock_size /sys/class/ubi/ubi0/total_eraseblocks
> /sys/class/ubi/ubi0/max_ec /sys/class/ubi/ubi0/uevent
> /sys/class/ubi/ubi0/max_vol_count /sys/class/ubi/ubi0/volumes_count
>
> root@pr1:~> ls /sys/class/misc/ubi_ctrl/
> /sys/class/misc/ubi_ctrl/dev /sys/class/misc/ubi_ctrl/uevent
> /sys/class/misc/ubi_ctrl/subsystem/
>
> I don't have /dev/ubi_ctrl so I can not crete (ubimkvol) ubi volume.
>
> Can you please give me some pointers.
Either make udev work and create device nodes for you automatically,
or create them manually. All the major/minor numbers are available
in sysfs (sedd "dev" files), so you may create corresponding character
device files.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: setup ubifs
2009-09-17 15:43 ` Artem Bityutskiy
@ 2009-09-17 16:45 ` Mike Frysinger
2009-09-18 3:35 ` Artem Bityutskiy
2009-09-18 8:15 ` Geert Uytterhoeven
0 siblings, 2 replies; 6+ messages in thread
From: Mike Frysinger @ 2009-09-17 16:45 UTC (permalink / raw)
To: dedekind1; +Cc: Dimitar Penev, linux-mtd
On Thu, Sep 17, 2009 at 11:43, Artem Bityutskiy wrote:
> On Thu, 2009-09-17 at 18:29 +0300, Dimitar Penev wrote:
>> Hi Guys,
>>
>> I am tring to setup ubifs on an blackfin based embeded platform containg
>> nand flash.
>> jffs2 is working ok on it.
>>
>> So I have compiled the uclinux (kernel 2.6.28.10) with ubifs/mtd_ubi static
>> support
>> If I pass with the bootargs ubi.mtd=3 , during booting I see
>>
>> ...
>> UBI: attaching mtd3 to ubi0
>> UBI: physical eraseblock size: 262144 bytes (256 KiB)
>> UBI: logical eraseblock size: 258048 bytes
>> UBI: smallest flash I/O unit: 2048
>> UBI: VID header offset: 2048 (aligned 2048)
>> UBI: data offset: 4096
>> UBI: empty MTD device detected
>> UBI: create volume table (copy #1)
>> UBI: create volume table (copy #2)
>> UBI: attached mtd3 to ubi0
>> UBI: MTD device name: "persistent file system"
>> UBI: MTD device size: 1004 MiB
>> UBI: number of good PEBs: 3974
>> UBI: number of bad PEBs: 42
>> UBI: max. allowed volumes: 128
>> UBI: wear-leveling threshold: 4096
>> UBI: number of internal volumes: 1
>> UBI: number of user volumes: 0
>> UBI: available PEBs: 3931
>> UBI: total number of reserved PEBs: 43
>> UBI: number of PEBs reserved for bad PEB handling: 39
>> UBI: max/mean erase counter: 0/0
>> UBI: background thread "ubi_bgt0d" started, PID 122
>> ...
>>
>> ubinfo gives me
>>
>> root@pr1:~> /bin/ubinfo
>> UBI version: 1
>> Count of UBI devices: 1
>> UBI control device major/minor: 10:63
>> Present UBI devices: ubi0
>>
>> I don't have /dev/ubi0 nor /dev/ubi_ctrl, however I do have some ubi stuff
>> in my /sys file system
>>
>> root@pr1:~> ls /sys/class/ubi/ubi0/
>> /sys/class/ubi/ubi0/avail_eraseblocks /sys/class/ubi/ubi0/min_io_size
>> /sys/class/ubi/ubi0/bad_peb_count /sys/class/ubi/ubi0/mtd_num
>> /sys/class/ubi/ubi0/bgt_enabled /sys/class/ubi/ubi0/reserved_for_bad
>> /sys/class/ubi/ubi0/dev /sys/class/ubi/ubi0/subsystem/
>> /sys/class/ubi/ubi0/eraseblock_size /sys/class/ubi/ubi0/total_eraseblocks
>> /sys/class/ubi/ubi0/max_ec /sys/class/ubi/ubi0/uevent
>> /sys/class/ubi/ubi0/max_vol_count /sys/class/ubi/ubi0/volumes_count
>>
>> root@pr1:~> ls /sys/class/misc/ubi_ctrl/
>> /sys/class/misc/ubi_ctrl/dev /sys/class/misc/ubi_ctrl/uevent
>> /sys/class/misc/ubi_ctrl/subsystem/
>>
>> I don't have /dev/ubi_ctrl so I can not crete (ubimkvol) ubi volume.
>>
>> Can you please give me some pointers.
>
> Either make udev work and create device nodes for you automatically,
> or create them manually. All the major/minor numbers are available
> in sysfs (sedd "dev" files), so you may create corresponding character
> device files.
udev isnt going to happen. if the stuff is available via sysfs, then
`mdev -s` should work.
-mike
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: setup ubifs
2009-09-17 16:45 ` Mike Frysinger
@ 2009-09-18 3:35 ` Artem Bityutskiy
2009-09-18 8:15 ` Geert Uytterhoeven
1 sibling, 0 replies; 6+ messages in thread
From: Artem Bityutskiy @ 2009-09-18 3:35 UTC (permalink / raw)
To: Mike Frysinger; +Cc: Dimitar Penev, linux-mtd
On 09/17/2009 07:45 PM, Mike Frysinger wrote:
>>> I don't have /dev/ubi_ctrl so I can not crete (ubimkvol) ubi volume.
>>>
>>> Can you please give me some pointers.
>>
>> Either make udev work and create device nodes for you automatically,
>> or create them manually. All the major/minor numbers are available
>> in sysfs (sedd "dev" files), so you may create corresponding character
>> device files.
>
> udev isnt going to happen. if the stuff is available via sysfs, then
> `mdev -s` should work.
Ah, ok, thanks.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: setup ubifs
2009-09-17 16:45 ` Mike Frysinger
2009-09-18 3:35 ` Artem Bityutskiy
@ 2009-09-18 8:15 ` Geert Uytterhoeven
2009-09-18 20:06 ` Dimitar Penev
1 sibling, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2009-09-18 8:15 UTC (permalink / raw)
To: Mike Frysinger; +Cc: Dimitar Penev, linux-mtd, dedekind1
On Thu, 17 Sep 2009, Mike Frysinger wrote:
> On Thu, Sep 17, 2009 at 11:43, Artem Bityutskiy wrote:
> > On Thu, 2009-09-17 at 18:29 +0300, Dimitar Penev wrote:
> >> I am tring to setup ubifs on an blackfin based embeded platform containg
> >> nand flash.
> >> jffs2 is working ok on it.
> >>
> >> So I have compiled the uclinux (kernel 2.6.28.10) with ubifs/mtd_ubi static
> >> support
> >> If I pass with the bootargs ubi.mtd=3 , during booting I see
> >>
> >> ...
> >> UBI: attaching mtd3 to ubi0
> >> UBI: physical eraseblock size: 262144 bytes (256 KiB)
> >> UBI: logical eraseblock size: 258048 bytes
> >> UBI: smallest flash I/O unit: 2048
> >> UBI: VID header offset: 2048 (aligned 2048)
> >> UBI: data offset: 4096
> >> UBI: empty MTD device detected
> >> UBI: create volume table (copy #1)
> >> UBI: create volume table (copy #2)
> >> UBI: attached mtd3 to ubi0
> >> UBI: MTD device name: "persistent file system"
> >> UBI: MTD device size: 1004 MiB
> >> UBI: number of good PEBs: 3974
> >> UBI: number of bad PEBs: 42
> >> UBI: max. allowed volumes: 128
> >> UBI: wear-leveling threshold: 4096
> >> UBI: number of internal volumes: 1
> >> UBI: number of user volumes: 0
> >> UBI: available PEBs: 3931
> >> UBI: total number of reserved PEBs: 43
> >> UBI: number of PEBs reserved for bad PEB handling: 39
> >> UBI: max/mean erase counter: 0/0
> >> UBI: background thread "ubi_bgt0d" started, PID 122
> >> ...
> >>
> >> ubinfo gives me
> >>
> >> root@pr1:~> /bin/ubinfo
> >> UBI version: 1
> >> Count of UBI devices: 1
> >> UBI control device major/minor: 10:63
> >> Present UBI devices: ubi0
> >>
> >> I don't have /dev/ubi0 nor /dev/ubi_ctrl, however I do have some ubi stuff
> >> in my /sys file system
> >>
> >> root@pr1:~> ls /sys/class/ubi/ubi0/
> >> /sys/class/ubi/ubi0/avail_eraseblocks /sys/class/ubi/ubi0/min_io_size
> >> /sys/class/ubi/ubi0/bad_peb_count /sys/class/ubi/ubi0/mtd_num
> >> /sys/class/ubi/ubi0/bgt_enabled /sys/class/ubi/ubi0/reserved_for_bad
> >> /sys/class/ubi/ubi0/dev /sys/class/ubi/ubi0/subsystem/
> >> /sys/class/ubi/ubi0/eraseblock_size /sys/class/ubi/ubi0/total_eraseblocks
> >> /sys/class/ubi/ubi0/max_ec /sys/class/ubi/ubi0/uevent
> >> /sys/class/ubi/ubi0/max_vol_count /sys/class/ubi/ubi0/volumes_count
> >>
> >> root@pr1:~> ls /sys/class/misc/ubi_ctrl/
> >> /sys/class/misc/ubi_ctrl/dev /sys/class/misc/ubi_ctrl/uevent
> >> /sys/class/misc/ubi_ctrl/subsystem/
> >>
> >> I don't have /dev/ubi_ctrl so I can not crete (ubimkvol) ubi volume.
> >>
> >> Can you please give me some pointers.
> >
> > Either make udev work and create device nodes for you automatically,
> > or create them manually. All the major/minor numbers are available
> > in sysfs (sedd "dev" files), so you may create corresponding character
> > device files.
>
> udev isnt going to happen. if the stuff is available via sysfs, then
> `mdev -s` should work.
Or CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y in current bleeding edge
2.6.31+.
With kind regards,
Geert Uytterhoeven
Software Architect
Techsoft Centre
Technology and Software Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/
A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: setup ubifs
2009-09-18 8:15 ` Geert Uytterhoeven
@ 2009-09-18 20:06 ` Dimitar Penev
0 siblings, 0 replies; 6+ messages in thread
From: Dimitar Penev @ 2009-09-18 20:06 UTC (permalink / raw)
To: Geert Uytterhoeven, Mike Frysinger; +Cc: linux-mtd, dedekind1
Thanks you guys!
ubifs is working on my Blackfin platform.
Dimitar Penev
----- Original Message -----
From: "Geert Uytterhoeven" <Geert.Uytterhoeven@sonycom.com>
To: "Mike Frysinger" <vapier.adi@gmail.com>
Cc: "Dimitar Penev" <dpn@ucpbx.com>; <linux-mtd@lists.infradead.org>;
<dedekind1@gmail.com>
Sent: Friday, September 18, 2009 11:15 AM
Subject: Re: setup ubifs
On Thu, 17 Sep 2009, Mike Frysinger wrote:
> On Thu, Sep 17, 2009 at 11:43, Artem Bityutskiy wrote:
> > On Thu, 2009-09-17 at 18:29 +0300, Dimitar Penev wrote:
> >> I am tring to setup ubifs on an blackfin based embeded platform
> >> containg
> >> nand flash.
> >> jffs2 is working ok on it.
> >>
> >> So I have compiled the uclinux (kernel 2.6.28.10) with ubifs/mtd_ubi
> >> static
> >> support
> >> If I pass with the bootargs ubi.mtd=3 , during booting I see
> >>
> >> ...
> >> UBI: attaching mtd3 to ubi0
> >> UBI: physical eraseblock size: 262144 bytes (256 KiB)
> >> UBI: logical eraseblock size: 258048 bytes
> >> UBI: smallest flash I/O unit: 2048
> >> UBI: VID header offset: 2048 (aligned 2048)
> >> UBI: data offset: 4096
> >> UBI: empty MTD device detected
> >> UBI: create volume table (copy #1)
> >> UBI: create volume table (copy #2)
> >> UBI: attached mtd3 to ubi0
> >> UBI: MTD device name: "persistent file system"
> >> UBI: MTD device size: 1004 MiB
> >> UBI: number of good PEBs: 3974
> >> UBI: number of bad PEBs: 42
> >> UBI: max. allowed volumes: 128
> >> UBI: wear-leveling threshold: 4096
> >> UBI: number of internal volumes: 1
> >> UBI: number of user volumes: 0
> >> UBI: available PEBs: 3931
> >> UBI: total number of reserved PEBs: 43
> >> UBI: number of PEBs reserved for bad PEB handling: 39
> >> UBI: max/mean erase counter: 0/0
> >> UBI: background thread "ubi_bgt0d" started, PID 122
> >> ...
> >>
> >> ubinfo gives me
> >>
> >> root@pr1:~> /bin/ubinfo
> >> UBI version: 1
> >> Count of UBI devices: 1
> >> UBI control device major/minor: 10:63
> >> Present UBI devices: ubi0
> >>
> >> I don't have /dev/ubi0 nor /dev/ubi_ctrl, however I do have some ubi
> >> stuff
> >> in my /sys file system
> >>
> >> root@pr1:~> ls /sys/class/ubi/ubi0/
> >> /sys/class/ubi/ubi0/avail_eraseblocks /sys/class/ubi/ubi0/min_io_size
> >> /sys/class/ubi/ubi0/bad_peb_count /sys/class/ubi/ubi0/mtd_num
> >> /sys/class/ubi/ubi0/bgt_enabled /sys/class/ubi/ubi0/reserved_for_bad
> >> /sys/class/ubi/ubi0/dev /sys/class/ubi/ubi0/subsystem/
> >> /sys/class/ubi/ubi0/eraseblock_size
> >> /sys/class/ubi/ubi0/total_eraseblocks
> >> /sys/class/ubi/ubi0/max_ec /sys/class/ubi/ubi0/uevent
> >> /sys/class/ubi/ubi0/max_vol_count /sys/class/ubi/ubi0/volumes_count
> >>
> >> root@pr1:~> ls /sys/class/misc/ubi_ctrl/
> >> /sys/class/misc/ubi_ctrl/dev /sys/class/misc/ubi_ctrl/uevent
> >> /sys/class/misc/ubi_ctrl/subsystem/
> >>
> >> I don't have /dev/ubi_ctrl so I can not crete (ubimkvol) ubi volume.
> >>
> >> Can you please give me some pointers.
> >
> > Either make udev work and create device nodes for you automatically,
> > or create them manually. All the major/minor numbers are available
> > in sysfs (sedd "dev" files), so you may create corresponding character
> > device files.
>
> udev isnt going to happen. if the stuff is available via sysfs, then
> `mdev -s` should work.
Or CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y in current bleeding edge
2.6.31+.
With kind regards,
Geert Uytterhoeven
Software Architect
Techsoft Centre
Technology and Software Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/
A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-09-18 20:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-17 15:29 setup ubifs Dimitar Penev
2009-09-17 15:43 ` Artem Bityutskiy
2009-09-17 16:45 ` Mike Frysinger
2009-09-18 3:35 ` Artem Bityutskiy
2009-09-18 8:15 ` Geert Uytterhoeven
2009-09-18 20:06 ` Dimitar Penev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).