Changes between Version 20 and Version 21 of linux/ubi


Ignore:
Timestamp:
06/07/2019 06:09:38 PM (5 years ago)
Author:
Cale Collins
Comment:

removed fakeroot from example.

Legend:

Unmodified
Added
Removed
Modified
  • linux/ubi

    v20 v21  
    151151{{{#!bash
    152152mkdir tmp
    153 fakeroot tar --numeric-owner -xvf myrootfs.tar.gz -C tmp
    154 }}}
    155  * Note that {{{fakeroot}}} is used because this allows you preserve the ownership of files that you have in your rootfs such as root owned /dev files
     153sudo tar -xvf myrootfs.tar.gz -C tmp
     154}}}
    1561552. copy your kernel files (and u-boot bootscript if you have one):
    157156{{{#!bash
     
    1611603. create ubifs images for the 4096 byte page size 'large' device geometry:
    162161{{{#!bash
    163 mkfs.ubifs -F -m 4096 -e 248KiB -c 8124 -o root.ubifs -d tmp
     162sudo mkfs.ubifs -F -m 4096 -e 248KiB -c 8124 -o root.ubifs -d tmp
    164163}}}
    165164 * the -c parameter (max-peb-count) of 8124 assures that the filesystem can be sized up to 8124*248KiB or 1.9GiB provided there is remaining space in the ubi