MYZR-R16-EK166 Linux-3.4 Build Manual

来自明远智睿的wiki
跳转至: 导航搜索

Environmental construction

Users are advised to use the 64bit ubuntu12.04 operating system, which has been compiled and validated by the real machine.
Compilation under ubuntu14.04 will give an error.


Download source package

Download filetina.tar.bz2


Decompress source code

$tar -jxvf tina.tar.bz2
When unzipped, there is a directory called tinaV2.1


Compile

Setting platform information

$cd ~/tinaV2.1
$source build/envsetup.sh
$lunch astar_parrot-tina
$make kernel_menuconfig
*****make kernel_menuconfig just exit after opening, and the“.config file” will be generated automatically.
MY-R16-CB166 linux-34 d&d4-1.png

MY-R16-CB166 linux-34 d&d4-2.png

MY-R16-CB166 linux-34 d&d4-3.png

MY-R16-CB166 linux-34 d&d4-4.png


Compile Uboot

$cd lichee/brandy/u-boot-2011.09
$make distclean
$make sun8iw5p1_config
$make
MY-R16-CB166 linux-34 d&d4-5.png

MY-R16-CB166 linux-34 d&d4-6.png

MY-R16-CB166 linux-34 d&d4-7.png


Compile the system and kerne

$cd ~/tinaV2.1/
$make
MY-R16-CB166 linux-34 d&d4-8.png


Package

$cd ~/tinaV2.1
$pack
MY-R16-CB166 linux-34 d&d5-1.png

The final file generated by the package is "tina_astar-parrot_uart0.img" in the "~/tinaV2.1/out/astar-parrot/" directory.

Copy the file to your computer and burn it to the board. Please refer to 《R16 burning manual》。