[Buildroot] [git commit] configs/olimex_a10_olinuxino_lime_defconfig: new board

Arnout Vandecappelle (Essensium/Mind) arnout at mind.be
Tue Jul 10 20:59:22 UTC 2018


commit: https://git.buildroot.net/buildroot/commit/?id=a1a152684e6370ec7592539a596f2f1b5e32574e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Add a defconfig for the Olimex A10-OLinuXino-LIME, reusing most
of the A20-OLinuXino-Lime and A13-OLinuXino files (sym links).

The configurations for Olimex A10-OLinuXino-LIME feature:
- U-Boot 2018.03
- Mainline Linux kernel 4.14.26

Signed-off-by: Leon Anavi <leon.anavi at konsulko.com>
[Arnout: remove commented-out BR2_ARM_EABIHF=y (which is default)]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
 DEVELOPERS                                  |  4 ++
 board/olimex/a10_olinuxino/boot.cmd         |  1 +
 board/olimex/a10_olinuxino/genimage.cfg     |  1 +
 board/olimex/a10_olinuxino/post-build.sh    |  1 +
 board/olimex/a10_olinuxino/readme.txt       | 57 +++++++++++++++++++++++++++++
 configs/olimex_a10_olinuxino_lime_defconfig | 47 ++++++++++++++++++++++++
 6 files changed, 111 insertions(+)

diff --git a/DEVELOPERS b/DEVELOPERS
index 82accbbc3d..48ab0d9048 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1133,6 +1133,10 @@ F:	package/open-lldp/
 N:	Lee Jones <lee.jones at linaro.org>
 F:	boot/afboot-stm32/
 
+N:	Leon Anavi <leon.anavi at konsulko.com>
+F:	board/olimex/a10_olinuxino
+F:	configs/olimex_a10_olinuxino_lime_defconfig
+
 N:	Lionel Flandrin <lionel at svkt.org>
 F:	package/python-babel/
 F:	package/python-daemonize/
diff --git a/board/olimex/a10_olinuxino/boot.cmd b/board/olimex/a10_olinuxino/boot.cmd
new file mode 120000
index 0000000000..612c745500
--- /dev/null
+++ b/board/olimex/a10_olinuxino/boot.cmd
@@ -0,0 +1 @@
+../a20_olinuxino/boot.cmd
\ No newline at end of file
diff --git a/board/olimex/a10_olinuxino/genimage.cfg b/board/olimex/a10_olinuxino/genimage.cfg
new file mode 120000
index 0000000000..c21932feec
--- /dev/null
+++ b/board/olimex/a10_olinuxino/genimage.cfg
@@ -0,0 +1 @@
+../a20_olinuxino/genimage.cfg
\ No newline at end of file
diff --git a/board/olimex/a10_olinuxino/post-build.sh b/board/olimex/a10_olinuxino/post-build.sh
new file mode 120000
index 0000000000..b346896024
--- /dev/null
+++ b/board/olimex/a10_olinuxino/post-build.sh
@@ -0,0 +1 @@
+../a20_olinuxino/post-build.sh
\ No newline at end of file
diff --git a/board/olimex/a10_olinuxino/readme.txt b/board/olimex/a10_olinuxino/readme.txt
new file mode 100644
index 0000000000..ba4bf69126
--- /dev/null
+++ b/board/olimex/a10_olinuxino/readme.txt
@@ -0,0 +1,57 @@
+A10-OLinuXino-LIME
+
+Intro
+=====
+
+These are open hardware boards, all based on the Allwinner A10 SoC.
+
+for more details about the boards see the following pages:
+ - https://www.olimex.com/Products/OLinuXino/open-source-hardware
+ - https://www.olimex.com/Products/OLinuXino/A10/A10-OLinuXino-LIME/
+
+The following defconfigs are available:
+ - olimex_a10_olinuxino_lime_defconfig
+   for the A10-OLinuXino-LIME board using mainline kernel
+
+(see http://linux-sunxi.org/Linux_Kernel for more details)
+
+How to build it
+===============
+
+Configure Buildroot:
+
+    $ make <board>_defconfig
+
+Compile everything and build the rootfs image:
+
+    $ make
+
+Result of the build
+-------------------
+
+After building, you should get a tree like this:
+
+    output/images/
+    +-- boot.scr
+    +-- rootfs.ext2
+    +-- rootfs.ext4 -> rootfs.ext2
+    +-- sdcard.img
+    +-- sun4i-a10-olinuxino-lime.dtb (lime, mainline)
+    +-- u-boot.bin
+    +-- u-boot-sunxi-with-spl.bin
+    `-- zImage
+
+
+How to write the SD card
+========================
+
+The sdcard.img file is a complete bootable image ready to be written
+on the boot medium. To install it, simply copy the image to a uSD
+card:
+
+    # dd if=output/images/sdcard.img of=/dev/sdX
+
+Where 'sdX' is the device node of the uSD.
+
+Eject the SD card, insert it in the A10-OLinuXino board, and power it up.
+
diff --git a/configs/olimex_a10_olinuxino_lime_defconfig b/configs/olimex_a10_olinuxino_lime_defconfig
new file mode 100644
index 0000000000..8248daf92c
--- /dev/null
+++ b/configs/olimex_a10_olinuxino_lime_defconfig
@@ -0,0 +1,47 @@
+# Architecture
+BR2_arm=y
+BR2_cortex_a8=y
+
+# Linux headers same as kernel, a 4.14 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y
+
+# System configuration
+BR2_TARGET_GENERIC_HOSTNAME="a10-olinuxino"
+BR2_TARGET_GENERIC_ISSUE="Welcome to OLinuXino!"
+BR2_TARGET_GENERIC_GETTY=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/olimex/a10_olinuxino/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/olimex/a10_olinuxino/genimage.cfg"
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.14.26"
+BR2_LINUX_KERNEL_USE_DEFCONFIG=y
+BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun4i-a10-olinuxino-lime"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+
+# Filesystem
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+# BR2_TARGET_ROOTFS_TAR is not set
+
+# Bootloaders
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.03"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="A10-OLinuXino-Lime"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_FORMAT_BIN=y
+BR2_TARGET_UBOOT_SPL=y
+BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
+BR2_TARGET_UBOOT_BOOT_SCRIPT=y
+BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="board/olimex/a10_olinuxino/boot.cmd"
+
+# Additional tools
+BR2_PACKAGE_HOST_GENIMAGE=y


More information about the buildroot mailing list