Dear hkkang,
Yocto way
========
Preinstalled OS is based on Yocto 2.1 or 2.0. It is proprietary version from NXP and the used recipe is called fsl-imx-x11. It is demo image with limited capabilities but it include all NXP libraries and firmware. It is possible to include NGINX since there are many recipes in yocto but it is time consuming. You are basically building your own distribution from scratch.
More info about how the demo images are build is here:
http://wiki.voipac.com/xwiki/bin/vie...+tinyrex/yoctoDebian/Ubuntu way (generally speaking easier, but i do have nothing to provide you)
==============
You need to brand some full size distribution (Debian, Ubuntu) to have the possibility to install various packages. Nothing is prepared in this area by Voipac. Basically you need to load kernel and its device tree and set proper bootargs that points to the root filesystem from that distribution. You should end up with system that is trying to boot at least. You must often modify root filesystem to open serial terminal console by default, store you kernel modules into /lib/modules folder, find and compile video driver to get accelerated desktop. And some other tweaks.
Here are some notes from test that was run in past, just as and example
Code:
mmc dev 0mmc rescanext4load mmc 0:1 ${loadaddr} zImage-imx6-tinyrexmax-2.2.binext4load mmc 0:1 ${fdt_addr} zImage-imx6-tinyrexmax-2.2.dtbsetenv bootargs 'console=ttymxc0,115200 root=/dev/mmcblk2p1 rootwait rw'bootz ${loadaddr} - ${fdt_addr}
http://www.voipac.com/downloads/imx/iMX6_TinyRex/test/tinyrexmax-debian.img.gz This should create SD card image: (SD card size must be >=4G).
Code:
#unzip tinyrexmax-debian.img.gz -> tinyrexmax-debian.imgsudo dd if=tinyrexmax-debian.img of=/dev/sdX bs=4M