Changes between Version 8 and Version 9 of linux/ubi


Ignore:
Timestamp:
10/09/2018 10:59:43 PM (6 years ago)
Author:
Cale Collins
Comment:

added Creating your own .ubifs file

Legend:

Unmodified
Added
Removed
Modified
  • linux/ubi

    v8 v9  
    324324
    325325Use the information in the section above for examples on how to load data in uboot from various sources such as network, mmc, usb.
     326
     327=== Creating your own .ubifs file
     328{{{#!bash
     329sudo mkfs.ubifs -d /your/rootfs/ -F -m 4096 -e 248KiB -c 8124 -x zlib -o A_large.ubifs
     330}}}
     331
     332Essentials:
     333
     334 * **-r** Build file system from directory DIR
     335 * **-F**  The -F option causes mkfs.ubifs to set a special flag in the superblock, which triggers a "free space fixup" procedure in the kernel the very first time the filesystem is mounted. This fixup procedure involves finding all empty pages in the UBIFS file system and re-erasing them. This ensures that NAND pages which contain all 0xFF data get fully erased, which removes any problematic non-0xFF data from their OOB areas.
     336 * **-m**  Minimum I/O unit size
     337 * **-e**  Logical erase block size
     338 * **-c** Maximum logical erase block count
     339 * **-x** Compression type - "lzo", "favor_lzo", "zlib" or "none" (default: "lzo")
     340 * **-o** Output to FILENAME
     341 * **-h** Help, provides full list of options
     342