configs/lafrite: new defconfig
authorPeter Korsgaard <peter@korsgaard.com>
Sat, 14 Sep 2019 05:56:20 +0000 (07:56 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 15 Sep 2019 14:00:56 +0000 (16:00 +0200)
Add basic support for the Libre Computer "La Frite" SBC.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
.gitlab-ci.yml
DEVELOPERS
board/librecomputer/lafrite/genimage.cfg [new file with mode: 0644]
board/librecomputer/lafrite/overlay/extlinux/extlinux.conf [new file with mode: 0644]
board/librecomputer/lafrite/readme.txt [new file with mode: 0644]
configs/lafrite_defconfig [new file with mode: 0644]

index 6243107ee9cf5fdef9177a69384faf1056c50ead..7b443b0cffcdf99a95ad4cecf99579ccd3daf32f 100644 (file)
@@ -200,6 +200,7 @@ imx7d-sdb_defconfig: { extends: .defconfig }
 imx7dpico_defconfig: { extends: .defconfig }
 imx8mmpico_defconfig: { extends: .defconfig }
 imx8mpico_defconfig: { extends: .defconfig }
+lafrite_defconfig: { extends: .defconfig }
 lego_ev3_defconfig: { extends: .defconfig }
 licheepi_zero_defconfig: { extends: .defconfig }
 linksprite_pcduino_defconfig: { extends: .defconfig }
index e4248769034e40ac398a956823d2762315f5a631..9d972f5b40894bc439c84e51203574b7e0d28d1e 100644 (file)
@@ -1771,12 +1771,14 @@ F:      package/libunistring/
 
 N:     Peter Korsgaard <peter@korsgaard.com>
 F:     board/minnowboard/
+F:     board/librecomputer/lafrite/
 F:     board/nexbox/a95x/
 F:     board/openblocks/a6/
 F:     board/orangepi/
 F:     board/pandaboard/
 F:     board/roseapplepi/
 F:     boot/shim/
+F:     configs/lafrite_defconfig
 F:     configs/minnowboard_max-graphical_defconfig
 F:     configs/minnowboard_max_defconfig
 F:     configs/nexbox_a95x_defconfig
diff --git a/board/librecomputer/lafrite/genimage.cfg b/board/librecomputer/lafrite/genimage.cfg
new file mode 100644 (file)
index 0000000..212f829
--- /dev/null
@@ -0,0 +1,10 @@
+image usb.img {
+       hdimage {
+       }
+
+       partition rootfs {
+               partition-type = 0x83
+               image = "rootfs.ext4"
+               size = 512M
+       }
+}
diff --git a/board/librecomputer/lafrite/overlay/extlinux/extlinux.conf b/board/librecomputer/lafrite/overlay/extlinux/extlinux.conf
new file mode 100644 (file)
index 0000000..60aa9d6
--- /dev/null
@@ -0,0 +1,4 @@
+label linux
+  kernel /boot/Image
+  devicetree /boot/meson-gxl-s805x-libretech-ac.dtb
+  append console=ttyAML0,115200 earlyprintk root=/dev/sda1 rootwait
diff --git a/board/librecomputer/lafrite/readme.txt b/board/librecomputer/lafrite/readme.txt
new file mode 100644 (file)
index 0000000..c439c5e
--- /dev/null
@@ -0,0 +1,34 @@
+Intro
+=====
+
+Libre Computer "La Frite" is a low cost SBC based around an Amlogic
+s805x SoC (quad A53), 512MB/1GB DDR4 and a 16MB SPI NOR flash:
+
+https://libre.computer/products/boards/aml-s805x-ac/
+
+How to build it
+===============
+
+Configure Buildroot:
+
+    $ make lafrite_defconfig
+
+Compile everything and build the USB flash drive image:
+
+    $ make
+
+How to write the USB flash drive image
+======================================
+
+Once the build process is finished you will have an image called "usb.img"
+in the output/images/ directory.
+
+Copy the bootable "usb.img" onto a USB flash drive with "dd":
+
+  $ sudo dd if=output/images/usb.img of=/dev/sdX
+
+How to boot
+===========
+
+Insert flash drive to the USB connector furthest away from the IR
+receiver and power up board. The system will boot automatically.
diff --git a/configs/lafrite_defconfig b/configs/lafrite_defconfig
new file mode 100644 (file)
index 0000000..6337092
--- /dev/null
@@ -0,0 +1,20 @@
+BR2_aarch64=y
+BR2_cortex_a53=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_2=y
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
+BR2_SYSTEM_DHCP="eth0"
+BR2_ROOTFS_OVERLAY="board/librecomputer/lafrite/overlay/"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/librecomputer/lafrite/genimage.cfg"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.2.14"
+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="amlogic/meson-gxl-s805x-libretech-ac"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+# BR2_TARGET_ROOTFS_TAR is not set
+BR2_PACKAGE_HOST_GENIMAGE=y