Changes

Jump to: navigation, search

DESK-XZ7-L/Deployment/Standalone boot

319 bytes removed, 08:01, 22 November 2022
Program root file system into NAND flash
==== Program root file system into NAND flash ====
* Boot boot the system via SD or NFS as described in the e [[DESK-XZ7-L/General/Booting_from_NFS|Booting from NFSnfs]] guide* By default, the NAND is already partitioned to allow booting from NAND-only (see next section) and, thus, some partitions are reserved for u-boot and kernel images. Here we won't modify this default configuration. The [[Memory Tecnology Device (MTD)|MTD]] partitions can be dumped with following the <code>/proc/mtd</code> scheme (the partition's name should be self-explanatory). See the [[Memory Tecnology Device (MTD)|MTD]] for more information on MTD layer. 
<pre class="workstation-terminal">
</pre>
{{ImportantMessage|text=Please note that MTD partition index may change depending of flash device availability, flash device size, u-boot environment variables or kernel device driver load order. Always take care of looking inside <code>/proc/mtd</code> to match your specific layout}}
* Format format and initialize ''nand-ubi'' partition, which in our case is <code>mtd0</code>, using [[Memory Tecnology Device (MTD)#UBI|UBI]] with:
<pre>
ubiformat /dev/mtd0
root@bora:~# ubiformat /dev/mtd0
</pre>
 * Now mount the UBI volume using [[Memory Tecnology Device (MTD)#UBIFS|UBIFS]] in a temporary directory 
<pre>
mkdir -p /mnt/nand
</pre>
E.g.:* you can now extract the root file system into that directory
<pre class="workstation-terminal">
root@bora:~# mkdir -p /mnt/nand
root@bora:~# mount -t ubifs ubi0_0 /mnt/nand
</pre>
* you can now extract the root file system into that directory
<pre>
tar xvjf zxpf images/linux/rootfs.tar.gz -C /mnt/nand
</pre>
* finally, you need to cleanly umount and detach the MTD partition
<pre class="workstation-terminal">root@bora:~# umount /mnt/nand/root@bora:~# ubidetach -m
</pre>
8,256
edits

Navigation menu