Difference between revisions of "UBIFS"
From ArmadeusWiki
(be more accurate as all users are not Linux experts) |
m (→Build config) |
||
Line 28: | Line 28: | ||
<pre class="config"> | <pre class="config"> | ||
target filesystem -> ubifs root filesystem (PEB=0x20000, LEB=0x1FF80, minIO=0x1, SUBPAGESIZE=0, MAXLEB=255) | target filesystem -> ubifs root filesystem (PEB=0x20000, LEB=0x1FF80, minIO=0x1, SUBPAGESIZE=0, MAXLEB=255) | ||
+ | </pre> | ||
+ | <pre class="host"> | ||
+ | $ make | ||
</pre> | </pre> | ||
* Linux: | * Linux: | ||
Line 44: | Line 47: | ||
(4096) UBI wear-leveling threshold and disable debugging !! | (4096) UBI wear-leveling threshold and disable debugging !! | ||
</pre> | </pre> | ||
+ | <pre class="host"> | ||
+ | $ make linux26 | ||
+ | </pre> | ||
+ | * reflash your kernel | ||
===U-Boot parameters=== | ===U-Boot parameters=== |
Revision as of 22:24, 8 March 2010
Page under construction... Informations on this page are not guaranteed !!
This is a preliminary page dealing with the installation of UBIFS on the APF boards. UBIFS will replace JFFS2 file system on NAND (and NOR as well) based boards because JFFS2 induces a big overhead when parsing, reading and writing large devices, see UBISFS scalability.
For the time being, this procedure can only be used with the APF27 board. Volunteers are welcome to investigate solutions to use UBIFS on the APF9328.
Contents
Introduction
Setting up
Host system
- add uuid-dev packages (should be already installed as required to build the HEAD of Armadeus repository):
$ sudo apt-get install uuid-dev
Build config
- Buildroot
$ make menuconfig
APF27:
target filesystem -> ubifs root filesystem: (PEB=0x20000, LEB=0x1F800, minIO=0x800, SUBPAGESIZE=512, MAXLEB=2047)
APF9328:
target filesystem -> ubifs root filesystem (PEB=0x20000, LEB=0x1FF80, minIO=0x1, SUBPAGESIZE=0, MAXLEB=255)
$ make
- Linux:
$ make linux26-menuconfig
File systems ---> [*] Miscellaneous filesystems ---> <*> UBIFS file system support and disable debugging !! Device Drivers ---> <*> Memory Technology Device (MTD) support ---> UBI - Unsorted block images ---> <*> Enable UBI (4096) UBI wear-leveling threshold and disable debugging !!
$ make linux26
- reflash your kernel
U-Boot parameters
BIOS> setenv bootcmd run ubifsboot BIOS> setenv download_rootfs tftpboot ${loadaddr} ${serverpath}${board_name}-rootfs.arm.ubifs
Additional informations
A new file 'ubinize.cfg' defining the ubi volumes is located in buildroot/target/ubifs/. This file contains the different UBI volumes of the UBI image:
[ubifs] mode=ubi vol_id=0 vol_type=dynamic vol_name=rootfs vol_alignment=1 vol_flags=autoresize
This file is processed by the ubinize utility after mkfs.ubifs.