Skip to contentSkip to conversation

configs/lafrite: new defconfig

PATCH New Peter Korsgaard 2 participants 3 messages Sep 14, 2019 – Sep 15, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs/lafrite: new defconfig

Add basic support for the Libre Computer "La Frite" SBC.

---
 .gitlab-ci.yml                                |  1 +
 DEVELOPERS                                    |  2 ++
 board/librecomputer/lafrite/genimage.cfg      | 10 ++++++
 .../lafrite/overlay/extlinux/extlinux.conf    |  4 +++
 board/librecomputer/lafrite/readme.txt        | 34 +++++++++++++++++++
 configs/lafrite_defconfig                     | 20 +++++++++++
 6 files changed, 71 insertions(+)
 create mode 100644 board/librecomputer/lafrite/genimage.cfg
 create mode 100644 board/librecomputer/lafrite/overlay/extlinux/extlinux.conf
 create mode 100644 board/librecomputer/lafrite/readme.txt
 create mode 100644 configs/lafrite_defconfig
.gitlab-ci.yml +1 -0
index 6243107ee9..7b443b0cff 100644
@@ -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 }
DEVELOPERS +2 -0
index 7604cfe2b7..d463b274f9 100644
@@ -1772,12 +1772,14 @@ F:	package/libunistring/
 
 N:	Peter Korsgaard <[email protected]>
 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
board/librecomputer/lafrite/genimage.cfg new file +10 -0
new file mode 100644
index 0000000000..212f829527
@@ -0,0 +1,10 @@
+image usb.img {
+	hdimage {
+	}
+
+	partition rootfs {
+		partition-type = 0x83
+		image = "rootfs.ext4"
+		size = 512M
+	}
+}
board/librecomputer/lafrite/overlay/extlinux/extlinux.conf new file +4 -0
new file mode 100644
index 0000000000..60aa9d6e70
@@ -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
board/librecomputer/lafrite/readme.txt new file +34 -0
new file mode 100644
index 0000000000..c439c5e91d
@@ -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.
configs/lafrite_defconfig new file +20 -0
new file mode 100644
index 0000000000..63370928e5
@@ -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
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 configs/lafrite: new defconfig

Quoted 15 lines · On Sat, 14 Sep 2019 07:56:20 +0200 Peter Korsgaard <[email protected]> wrote:

Add basic support for the Libre Computer "La Frite" SBC.

---
 .gitlab-ci.yml                                |  1 +
 DEVELOPERS                                    |  2 ++
 board/librecomputer/lafrite/genimage.cfg      | 10 ++++++
 .../lafrite/overlay/extlinux/extlinux.conf    |  4 +++
 board/librecomputer/lafrite/readme.txt        | 34 +++++++++++++++++++
 configs/lafrite_defconfig                     | 20 +++++++++++
 6 files changed, 71 insertions(+)
 create mode 100644 board/librecomputer/lafrite/genimage.cfg
 create mode 100644 board/librecomputer/lafrite/overlay/extlinux/extlinux.conf
 create mode 100644 board/librecomputer/lafrite/readme.txt
 create mode 100644 configs/lafrite_defconfig

Applied to master, thanks. I guess the reason for not building a bootloader is that it is stored in some other non-volatile storage on the board ?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 configs/lafrite: new defconfig

Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Quoted 11 lines · On Sat, 14 Sep 2019 07:56:20 +0200 Peter Korsgaard <[email protected]> wrote:

Add basic support for the Libre Computer "La Frite" SBC.

---

.gitlab-ci.yml                                |  1 +
DEVELOPERS                                    |  2 ++
board/librecomputer/lafrite/genimage.cfg      | 10 ++++++
.../lafrite/overlay/extlinux/extlinux.conf    |  4 +++
board/librecomputer/lafrite/readme.txt        | 34 +++++++++++++++++++
configs/lafrite_defconfig                     | 20 +++++++++++
6 files changed, 71 insertions(+)
Quoted 4 lines

create mode 100644 board/librecomputer/lafrite/genimage.cfg create mode 100644 board/librecomputer/lafrite/overlay/extlinux/extlinux.conf create mode 100644 board/librecomputer/lafrite/readme.txt
create mode 100644 configs/lafrite_defconfig

Quoted 3 lines

Applied to master, thanks. I guess the reason for not building a bootloader is that it is stored in some other non-volatile storage on the board ?

Yes, U-Boot is in the 16MB SPI flash. It uses the normal distro bootcmds and supports USB, so it nicely boots from a suitable rootfs on a USB flash drive.

Signature · 1 line
Bye, Peter Korsgaard