xref: /OK3568_Linux_fs/buildroot/board/licheepi/readme.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunIntro
2*4882a593Smuzhiyun=====
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunThis directory contains a buildroot configuration for building a
5*4882a593SmuzhiyunLicheePi Zero.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunHow to build it
8*4882a593Smuzhiyun===============
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunConfigure Buildroot
11*4882a593Smuzhiyun-------------------
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun  $ make licheepi_zero_defconfig
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunBuild the rootfs
16*4882a593Smuzhiyun----------------
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunNote: you will need to have access to the network, since Buildroot
19*4882a593Smuzhiyunwill download the packages' sources.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunYou may now build your rootfs with:
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun  $ make
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun(This may take a while, consider getting yourself a coffee ;-) )
26*4882a593Smuzhiyun
27*4882a593SmuzhiyunResult of the build
28*4882a593Smuzhiyun-------------------
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunAfter building, you should obtain this tree:
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun    output/images/
33*4882a593Smuzhiyun    +-- boot.scr
34*4882a593Smuzhiyun    +-- boot.vfat
35*4882a593Smuzhiyun    +-- rootfs.ext2
36*4882a593Smuzhiyun    +-- rootfs.ext4 -> rootfs.ext2
37*4882a593Smuzhiyun    +-- rootfs.tar
38*4882a593Smuzhiyun    +-- sdcard.img
39*4882a593Smuzhiyun    +-- sun8i-v3s-licheepi-zero-dock.dtb
40*4882a593Smuzhiyun    +-- sun8i-v3s-licheepi-zero.dtb
41*4882a593Smuzhiyun    +-- u-boot.bin
42*4882a593Smuzhiyun    +-- u-boot-sunxi-with-spl.bin
43*4882a593Smuzhiyun    `-- zImage
44*4882a593Smuzhiyun
45*4882a593SmuzhiyunHow to write the SD card
46*4882a593Smuzhiyun========================
47*4882a593Smuzhiyun
48*4882a593SmuzhiyunOnce the build process is finished you will have an image called
49*4882a593Smuzhiyun"sdcard.img" in the output/images/ directory.
50*4882a593Smuzhiyun
51*4882a593SmuzhiyunCopy the bootable "sdcard.img" onto an SD card with "dd":
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun  $ sudo dd if=output/images/sdcard.img of=/dev/sdX
54*4882a593Smuzhiyun
55*4882a593SmuzhiyunAlternatively, you can use the Etcher graphical tool to burn the image
56*4882a593Smuzhiyunto the SD card safely and on any platform:
57*4882a593Smuzhiyun
58*4882a593Smuzhiyunhttps://etcher.io/
59*4882a593Smuzhiyun
60*4882a593SmuzhiyunOnce the SD card is burned, insert it into your LicheePi Zero board,
61*4882a593Smuzhiyunand power it up. Your new system should come up now and start a
62*4882a593Smuzhiyunconsole on the UART0 serial port.
63