Difference between revisions of "UBIFS"

From ArmadeusWiki
Jump to: navigation, search
(update procedure according to the latest armadeus software for both apf9328 and apf27)
m
Line 2: Line 2:
  
 
This is a preliminary page dealing with the installation of UBIFS on the APF boards.  
 
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 board because JFFS2 induces a big overhead when parsing, reading and writing large devices [http://www.linux-mtd.infradead.org/doc/ubifs.html#L_scalability UBISFS scalability]
+
UBIFS will replace JFFS2 file system on NAND (and NOR as well) based board because JFFS2 induces a big overhead when parsing, reading and writing large devices [http://www.linux-mtd.infradead.org/doc/ubifs.html#L_scalability UBISFS scalability].
For the time being, this procedure can only be used with the apf27 board. Volunteers a welcome to investigate solutions to use UBIFS on the apf9328.
+
 
 +
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.
  
 
== Introduction ==
 
== Introduction ==
Line 13: Line 14:
 
   sudo apt-get install  uuid-dev
 
   sudo apt-get install  uuid-dev
  
* buildroot: target filesystem -> ubifs root filesystem (PEB=0x20000, LEB=0x1F800, minIO=0x800, SUBPAGESIZE=512, MAXLEB=2047) and for apf9328 should be PEB=0x20000, LEB=0x1FF80, minIO=0x1, SUBPAGESIZE=0, MAXLEB=255)
+
* buildroot: target filesystem -> ubifs root filesystem for apf27:(PEB=0x20000, LEB=0x1F800, minIO=0x800, SUBPAGESIZE=512, MAXLEB=2047) and for apf9328 should be (PEB=0x20000, LEB=0x1FF80, minIO=0x1, SUBPAGESIZE=0, MAXLEB=255)
 
* linux: file systems -> Miscellanous -> ubifs support  and disable debugging !!
 
* linux: file systems -> Miscellanous -> ubifs support  and disable debugging !!
 
* linux: device driver -> mtd -> ubi unsorted block image -> Enable UBI (4096) and disable debugging !!
 
* linux: device driver -> mtd -> ubi unsorted block image -> Enable UBI (4096) and disable debugging !!

Revision as of 22:35, 4 October 2009

Page under construction... Construction.png 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 board because JFFS2 induces a big overhead when parsing, reading and writing large devices 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.

Introduction

UBIFS website


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
  • buildroot: target filesystem -> ubifs root filesystem for apf27:(PEB=0x20000, LEB=0x1F800, minIO=0x800, SUBPAGESIZE=512, MAXLEB=2047) and for apf9328 should be (PEB=0x20000, LEB=0x1FF80, minIO=0x1, SUBPAGESIZE=0, MAXLEB=255)
  • linux: file systems -> Miscellanous -> ubifs support and disable debugging !!
  • linux: device driver -> mtd -> ubi unsorted block image -> Enable UBI (4096) and disable debugging !!
  • uboot: setenv bootcmd run ubifsboot
  • uboot: 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.