aboutsummaryrefslogtreecommitdiff
path: root/board/licheepi
diff options
context:
space:
mode:
authorGravatar Michel Stempin <michel.stempin@wanadoo.fr>2019-03-05 23:37:06 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-03-28 18:05:45 +0100
commit4dcb76b0139c0dacaf526825cab76dcc9607df30 (patch)
tree9d03dfa5371e95c63f0292d0e3db9be79c67872a /board/licheepi
parent5cb057e2d179dd221862a7921460778d21b63a61 (diff)
downloadbuildroot-4dcb76b0139c0dacaf526825cab76dcc9607df30.tar.gz
buildroot-4dcb76b0139c0dacaf526825cab76dcc9607df30.tar.bz2
configs/licheepi_zero: new defconfig
Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'board/licheepi')
-rw-r--r--board/licheepi/boot.cmd4
-rw-r--r--board/licheepi/genimage.cfg35
-rw-r--r--board/licheepi/readme.txt62
3 files changed, 101 insertions, 0 deletions
diff --git a/board/licheepi/boot.cmd b/board/licheepi/boot.cmd
new file mode 100644
index 0000000000..383b3473ed
--- /dev/null
+++ b/board/licheepi/boot.cmd
@@ -0,0 +1,4 @@
+setenv bootargs console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw
+load mmc 0:1 0x41000000 zImage
+load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb
+bootz 0x41000000 - 0x41800000
diff --git a/board/licheepi/genimage.cfg b/board/licheepi/genimage.cfg
new file mode 100644
index 0000000000..0d8540f2a0
--- /dev/null
+++ b/board/licheepi/genimage.cfg
@@ -0,0 +1,35 @@
+image boot.vfat {
+ vfat {
+ files = {
+ "zImage",
+ "sun8i-v3s-licheepi-zero-dock.dtb",
+ "sun8i-v3s-licheepi-zero.dtb",
+ "boot.scr"
+ }
+ }
+ size = 8M
+}
+
+image sdcard.img {
+ hdimage {
+ }
+
+ partition u-boot {
+ in-partition-table = "no"
+ image = "u-boot-sunxi-with-spl.bin"
+ offset = 8192
+ size = 516096 # 512KB - 8192
+ }
+
+ partition boot {
+ partition-type = 0xC
+ bootable = "true"
+ image = "boot.vfat"
+ }
+
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext4"
+ size = 0
+ }
+}
diff --git a/board/licheepi/readme.txt b/board/licheepi/readme.txt
new file mode 100644
index 0000000000..6b8bf94b45
--- /dev/null
+++ b/board/licheepi/readme.txt
@@ -0,0 +1,62 @@
+Intro
+=====
+
+This directory contains a buildroot configuration for building a
+LicheePi Zero.
+
+How to build it
+===============
+
+Configure Buildroot
+-------------------
+
+ $ make licheepi_zero_defconfig
+
+Build the rootfs
+----------------
+
+Note: you will need to have access to the network, since Buildroot
+will download the packages' sources.
+
+You may now build your rootfs with:
+
+ $ make
+
+(This may take a while, consider getting yourself a coffee ;-) )
+
+Result of the build
+-------------------
+
+After building, you should obtain this tree:
+
+ output/images/
+ +-- boot.scr
+ +-- boot.vfat
+ +-- rootfs.ext2
+ +-- rootfs.ext4 -> rootfs.ext2
+ +-- rootfs.tar
+ +-- sdcard.img
+ +-- sun8i-v3s-licheepi-zero-dock.dtb
+ +-- sun8i-v3s-licheepi-zero.dtb
+ +-- u-boot.bin
+ +-- u-boot-sunxi-with-spl.bin
+ `-- zImage
+
+How to write the SD card
+========================
+
+Once the build process is finished you will have an image called
+"sdcard.img" in the output/images/ directory.
+
+Copy the bootable "sdcard.img" onto an SD card with "dd":
+
+ $ sudo dd if=output/images/sdcard.img of=/dev/sdX
+
+Alternatively, you can use the Etcher graphical tool to burn the image
+to the SD card safely and on any platform:
+
+https://etcher.io/
+
+Once the SD card is burned, insert it into your LicheePi Zero board,
+and power it up. Your new system should come up now and start a
+console on the UART0 serial port.