{{ImportantMessage|text=The following programming examples are intended for <b>laboratory usage</b> or for ''preliminary deployment strategy''.<br><br>A complete deployment strategy has to be carefully identifiyed taking into account the overall arguments like: boot speed, safe boot, recovery mechanisms, watchdog supervisor, etc.}}
We'll explain how to program and configure an [[:Category:SDVX |SDVX]] to boot in standalone mode, without the need of a system microSD card or an NFS server, with threee options:
42547 bytes written: OK
=>
</pre>
Reboot the system and configure U-Boot to apply the new configuration
mmcboot=run mmcargs addcons addmisc; if run mmc_loadk; then if run mmc_loadfdt; then if run configid_fixupfdt; then bootm ${loadaddr} - ${fdtaddr}; fi; fi; fi
</pre>
mmcargs=setenv bootargs root=${mmcroot}
mmcroot=/dev/mmcblk2p2 rootwait rw
</pre>
=== boot vars ===
The following environment variables should be configured for u-boot properly reading the boot files from the first SD card partition, e.g.
then save the environment and reboot the system to apply the new configuration:
<pre class="board-terminal">
=> saveenv
Saving Environment to MMC...
Writing to MMC(2)... done
=> reset
</pre>
* an example of SD partitioning script is the following one:
=== FAT32 partition ===
<pre>
#!/bin/sh
</pre>
* Now create a mount point and mount the EXT4 volume in a temporary directoryfirst partition
<pre>
mkdir -p /mnt/emmc
mount /dev/mmcblk2p2 mmcblk2p1 /mnt/nandemmc</pre> * copy kernel, dtb and splash_image files <pre class="workstation-terminal">root@sdvx-lite:~# mount /dev/mmcblk2p1 /mnt/emmc[ 40.988575] FAT-fs (mmcblk2p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.root@sdvx-lite:~# cd /mnt/emmcroot@sdvx-lite:/mnt/emmc# cp /tftpboot/sdvx/linux/sdvx-1.0.1*dtb .root@sdvx-lite:/mnt/emmc# cp /tftpboot/sdvx/linux/sdvx-1.0.1*uImage .root@sdvx-lite:/mnt/emmc# cp /tftpboot/sdvx/linux/splash_image.bmp .root@sdvx-lite:/mnt/emmc# cdroot@sdvx-lite:~# umount /mnt/emmc
</pre>
* now mount the EXT4 volume in the temporary directory
E.g.:
[ 1810.899327] EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null)
root@sdvx-lite:~# cd /mnt/emmc
root@sdvx-lite:/mnt/emmc#
</pre>
<pre class="workstation-terminal">
root@sdvx-lite:~/mnt/emmc# cd
root@sdvx-lite:~# umount /mnt/emmc
root@sdvx-lite:~# reboot
<pre class="workstation-terminal">
=> setenv bootcmd run mmcboot
=> saveenv
</pre>
=== ext4 partition ===
For using an <b>ext4</b> partition also for boot files, it is possibile to change the formatting script: