This document has been written and tested with the software/hardware combination described in the history table above. However it contains general concept that can be adapted on any DAVE Embedded Systems' Linux platform.
We'll explain how to program and configure a [[Category:DIVADiva|DIVADiva]] to boot in standalone mode, without the need of a system microSD card or a NFS server, with two options:
* booting with NOR + NAND
** U-Boot will fetch Linux kernel binary images (kernel + device tree) from on-board NOR flash memory, while later the OS will mount the root file system from a NAND partition.
* booting with NAND only
** in this configuration the whole system will boot without the need of a NOR storage, all images and the root file system will be fetch from NAND.
'''Note:''' Adjust the SYSBOOT pins to enable boot from nand.
== Program root file system in NAND flash ==
This is a common step for both booting options.
* Boot the system via SD or NFS as described into the [[Diva_Embedded_Linux_Kit_(DIVELK)#Quick_start_guide|Quick_start_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 <code>/proc/mtd</code> (the partition's name should be self-explanatory)
* Format and initialize ''nand-ubifilesystem'' partition, which in our case is <code>mtd18</code>, using [[Memory Tecnology Device (MTD)#UBI|UBI]] with:
<pre>
root@diva:~# ubiformat /dev/mtd18
ubiformat: mtd18 (nand), size 1060372480 bytes (1011.2 MiB), 8090 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
TFTP from server 192.168.0.2382; our IP address is 192.168.0.9483Filename 'diva/linux/divelk-3.0.0_am335xam335x-divelksbcd.dtb'.Load address: 0x80f800000x88000000Loading: ######### 918598.9 6 KiB/s
TFTP from server 192.168.0.2382; our IP address is 192.168.0.9483Filename 'diva/am335x-divelksbcd.dtb'.Load address: 0x80f800000x88000000Loading: ######### 954682.1 6 KiB/s