Changes between Version 20 and Version 21 of linux/ubi
- Timestamp:
- 06/07/2019 06:09:38 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
linux/ubi
v20 v21 151 151 {{{#!bash 152 152 mkdir 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 153 sudo tar -xvf myrootfs.tar.gz -C tmp 154 }}} 156 155 2. copy your kernel files (and u-boot bootscript if you have one): 157 156 {{{#!bash … … 161 160 3. create ubifs images for the 4096 byte page size 'large' device geometry: 162 161 {{{#!bash 163 mkfs.ubifs -F -m 4096 -e 248KiB -c 8124 -o root.ubifs -d tmp162 sudo mkfs.ubifs -F -m 4096 -e 248KiB -c 8124 -o root.ubifs -d tmp 164 163 }}} 165 164 * 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