xref: /OK3568_Linux_fs/buildroot/board/olimex/a20_olinuxino/readme.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunA20-OLinuXino-LIME and A20-OLinuXino-MICRO
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunIntro
4*4882a593Smuzhiyun=====
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunThese are open hardware boards, all based on the Allwinner A20 SoC.
7*4882a593Smuzhiyun
8*4882a593Smuzhiyunfor more details about the boards see the following pages:
9*4882a593Smuzhiyun - https://www.olimex.com/Products/OLinuXino/open-source-hardware
10*4882a593Smuzhiyun - https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-MICRO/
11*4882a593Smuzhiyun - https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME/
12*4882a593Smuzhiyun - https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2/
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunThe following defconfigs are available:
15*4882a593Smuzhiyun - olimex_a20_olinuxino_micro_defconfig
16*4882a593Smuzhiyun   for the A20-OLinuXino-MICRO board using mainline kernel
17*4882a593Smuzhiyun - olimex_a20_olinuxino_lime_defconfig
18*4882a593Smuzhiyun   for the A20-OLinuXino-LIME board using mainline kernel
19*4882a593Smuzhiyun - olimex_a20_olinuxino_lime2_defconfig
20*4882a593Smuzhiyun   for the A20-OLinuXino-LIME2 board using mainline kernel
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunThe Mainline Kernel is already a much better choice for a headless server.
23*4882a593SmuzhiyunAnd also the mainline kernel works fine even for a basic Linux desktop
24*4882a593Smuzhiyunsystem running on top of a simple framebuffer, which may be good enough for
25*4882a593Smuzhiyunthe users who do not need fancy 3D graphics or video playback acceleration.
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun(see http://linux-sunxi.org/Linux_Kernel for more details)
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunHow to build it
30*4882a593Smuzhiyun===============
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunConfigure Buildroot:
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun    $ make <board>_defconfig
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunCompile everything and build the rootfs image:
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun    $ make
39*4882a593Smuzhiyun
40*4882a593SmuzhiyunResult of the build
41*4882a593Smuzhiyun-------------------
42*4882a593Smuzhiyun
43*4882a593SmuzhiyunAfter building, you should get a tree like this:
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun    output/images/
46*4882a593Smuzhiyun    +-- rootfs.ext2
47*4882a593Smuzhiyun    +-- rootfs.ext4 -> rootfs.ext2
48*4882a593Smuzhiyun    +-- sdcard.img
49*4882a593Smuzhiyun    +-- sun7i-a20-olinuxino-lime.dtb (lime, mainline)
50*4882a593Smuzhiyun    +-- sun7i-a20-olinuxino-lime2.dtb (lime2, mainline)
51*4882a593Smuzhiyun    +-- sun7i-a20-olinuxino-micro.dtb (micro, mainline)
52*4882a593Smuzhiyun    +-- u-boot.bin
53*4882a593Smuzhiyun    +-- u-boot-sunxi-with-spl.bin
54*4882a593Smuzhiyun    `-- zImage
55*4882a593Smuzhiyun
56*4882a593Smuzhiyun
57*4882a593SmuzhiyunHow to write the SD card
58*4882a593Smuzhiyun========================
59*4882a593Smuzhiyun
60*4882a593SmuzhiyunThe sdcard.img file is a complete bootable image ready to be written
61*4882a593Smuzhiyunon the boot medium. To install it, simply copy the image to a uSD
62*4882a593Smuzhiyuncard:
63*4882a593Smuzhiyun
64*4882a593Smuzhiyun    # dd if=output/images/sdcard.img of=/dev/sdX
65*4882a593Smuzhiyun
66*4882a593SmuzhiyunWhere 'sdX' is the device node of the uSD.
67*4882a593Smuzhiyun
68*4882a593SmuzhiyunEject the SD card, insert it in the A20-OLinuXino board, and power it up.
69*4882a593Smuzhiyun
70