From 12efe2d16b6bee20dafb8efd5ed00d4272f40e8b Mon Sep 17 00:00:00 2001 From: Andreas Egeberg Date: Wed, 5 Oct 2022 10:07:35 +0200 Subject: [PATCH] Added support for aarch64 AArch64 also called ARM64 is the 64-bit extension of the ARM architecture family. New defconfigs for the aarch64 architecture is added. Github actions for building and uploading artifacts referenced from the README file is added. Signed-off-by: Andreas Egeberg --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- README.md | 14 +++++++++----- configs/backbone_envoy_defconfig | 23 +++++++++++++++++++++++ configs/dhcp-boot_envoy_defconfig | 23 +++++++++++++++++++++++ configs/led-relay_envoy_defconfig | 22 ++++++++++++++++++++++ 6 files changed, 79 insertions(+), 7 deletions(-) create mode 100644 configs/backbone_envoy_defconfig create mode 100644 configs/dhcp-boot_envoy_defconfig create mode 100644 configs/led-relay_envoy_defconfig diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 331ccde..a2f8691 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: demo: [backbone, dhcp-boot, led-relay] - platform: [coronet, dagger, zero] + platform: [coronet, dagger, zero, envoy] steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dfde0b8..9fecab1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: strategy: matrix: demo: [backbone, dhcp-boot, led-relay] - platform: [coronet, dagger, zero] + platform: [coronet, dagger, zero, envoy] steps: - uses: actions/checkout@v2 - name: Set Build Variables diff --git a/README.md b/README.md index 9deebac..0247364 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ of the box, other variants are possible, but require custom setup: | PowerPC (T1023) | Coronet | | ARM Cortex-A9 | Dagger | | Intel/AMD x86_64 | Zero | +| aarch64 | Envoy | Available Demos @@ -43,11 +44,11 @@ the README of each demo and quick-links to the latest build for each of the supported platforms. The same builds are also available directly from the Actions tab on the GitHub project. -| **Description** | **Coronet** | **Dagger** | **Zero** | -|-------------------|-----------------------|----------------------|--------------------| -| [Backbone][] App | [backbone-coronet][] | [backbone-dagger][] | [backbone-zero][] | -| [DHCP Boot][] App | [dhcp-boot-coronet][] | [dhcp-boot-dagger][] | [dhcp-boot-zero][] | -| [LED/Relay][] App | [led-relay-coronet][] | [led-relay-dagger][] | [led-relay-zero][] | +| **Description** | **Coronet** | **Dagger** | **Zero** | **Envoy** | +|-------------------|-----------------------|----------------------|--------------------|--------------------| +| [Backbone][] App | [backbone-coronet][] | [backbone-dagger][] | [backbone-zero][] | [backbone-envoy][] | +| [DHCP Boot][] App | [dhcp-boot-coronet][] | [dhcp-boot-dagger][] | [dhcp-boot-zero][] | [dhcp-boot-envoy][] | +| [LED/Relay][] App | [led-relay-coronet][] | [led-relay-dagger][] | [led-relay-zero][] | [led-relay-envoy][] | The default login credentials for all demo apps are `root` without any password. To enable remote login using SSH, you need to set a password @@ -125,11 +126,14 @@ target architecture. [backbone-coronet]: https://nightly.link/westermo/app-demo/workflows/ci/master/app-demo-backbone-coronet.zip [backbone-dagger]: https://nightly.link/westermo/app-demo/workflows/ci/master/app-demo-backbone-dagger.zip [backbone-zero]: https://nightly.link/westermo/app-demo/workflows/ci/master/app-demo-backbone-zero.zip +[backbone-envoy]: https://nightly.link/westermo/app-demo/workflows/ci/master/app-demo-backbone-envoy.zip [dhcp-boot-coronet]: https://nightly.link/westermo/app-demo/workflows/ci/master/app-demo-dhcp-boot-coronet.zip [dhcp-boot-dagger]: https://nightly.link/westermo/app-demo/workflows/ci/master/app-demo-dhcp-boot-dagger.zip [dhcp-boot-zero]: https://nightly.link/westermo/app-demo/workflows/ci/master/app-demo-dhcp-boot-zero.zip +[dhcp-boot-envoy]: https://nightly.link/westermo/app-demo/workflows/ci/master/app-demo-dhcp-boot-envoy.zip [led-relay-coronet]: https://nightly.link/westermo/app-demo/workflows/ci/master/app-demo-led-relay-coronet.zip [led-relay-dagger]: https://nightly.link/westermo/app-demo/workflows/ci/master/app-demo-led-relay-dagger.zip [led-relay-zero]: https://nightly.link/westermo/app-demo/workflows/ci/master/app-demo-led-relay-zero.zip +[led-relay-envoy]: https://nightly.link/westermo/app-demo/workflows/ci/master/app-demo-led-relay-envoy.zip diff --git a/configs/backbone_envoy_defconfig b/configs/backbone_envoy_defconfig new file mode 100644 index 0000000..129d885 --- /dev/null +++ b/configs/backbone_envoy_defconfig @@ -0,0 +1,23 @@ +BR2_aarch64=y +BR2_ENABLE_DEBUG=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y +BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/myrootfs/crosstool-ng/releases/download/troglobit%2F7.3.0-1/$(ARCH)-unknown-linux-gnu-7.3.0-1.tar.xz" +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="$(ARCH)-unknown-linux-gnu" +BR2_TOOLCHAIN_EXTERNAL_GCC_7=y +BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_15=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y +BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY=y +BR2_TARGET_GENERIC_HOSTNAME="backbone" +BR2_TARGET_GENERIC_ISSUE="Backbone Demo" +BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_DEMO_PATH)/board/demo/backbone/rootfs" +BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_DEMO_PATH)/board/common/post-build.sh $(BR2_EXTERNAL_DEMO_PATH)/board/demo/backbone/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_DEMO_PATH)/board/common/post-image.sh" +BR2_PACKAGE_DNSMASQ=y +BR2_PACKAGE_DROPBEAR=y +BR2_PACKAGE_LLDPD=y +BR2_PACKAGE_SOCAT=y +BR2_PACKAGE_TCPDUMP=y +BR2_TARGET_ROOTFS_SQUASHFS=y +# BR2_TARGET_ROOTFS_TAR is not set +BR2_PACKAGE_BACKBONE=y diff --git a/configs/dhcp-boot_envoy_defconfig b/configs/dhcp-boot_envoy_defconfig new file mode 100644 index 0000000..ce9ef51 --- /dev/null +++ b/configs/dhcp-boot_envoy_defconfig @@ -0,0 +1,23 @@ +BR2_aarch64=y +BR2_ENABLE_DEBUG=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y +BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/myrootfs/crosstool-ng/releases/download/troglobit%2F7.3.0-1/$(ARCH)-unknown-linux-gnu-7.3.0-1.tar.xz" +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="$(ARCH)-unknown-linux-gnu" +BR2_TOOLCHAIN_EXTERNAL_GCC_7=y +BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_15=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y +BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY=y +BR2_TARGET_GENERIC_HOSTNAME="dhcp-boot" +BR2_TARGET_GENERIC_ISSUE="Dhcp-boot Demo" +BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_DEMO_PATH)/board/demo/dhcp-boot/rootfs" +BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_DEMO_PATH)/board/common/post-build.sh $(BR2_EXTERNAL_DEMO_PATH)/board/demo/dhcp-boot/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_DEMO_PATH)/board/common/post-image.sh" +BR2_PACKAGE_DNSMASQ=y +BR2_PACKAGE_DROPBEAR=y +BR2_TARGET_ROOTFS_SQUASHFS=y +# BR2_TARGET_ROOTFS_TAR is not set +DEMO_VENDOR_ID="dhcp-boot" +DEMO_VENDOR_NAME="DHCP-Boot" +DEMO_VENDOR_DESC="DHCP Boot Demo" +BR2_PACKAGE_DHCP_BOOT=y diff --git a/configs/led-relay_envoy_defconfig b/configs/led-relay_envoy_defconfig new file mode 100644 index 0000000..eefb4d3 --- /dev/null +++ b/configs/led-relay_envoy_defconfig @@ -0,0 +1,22 @@ +BR2_aarch64=y +BR2_ENABLE_DEBUG=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y +BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/myrootfs/crosstool-ng/releases/download/troglobit%2F7.3.0-1/$(ARCH)-unknown-linux-gnu-7.3.0-1.tar.xz" +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="$(ARCH)-unknown-linux-gnu" +BR2_TOOLCHAIN_EXTERNAL_GCC_7=y +BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_15=y +BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y +BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY=y +BR2_TARGET_GENERIC_HOSTNAME="led-relay" +BR2_TARGET_GENERIC_ISSUE="LED and Relay Demo" +BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_DEMO_PATH)/board/common/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_DEMO_PATH)/board/common/post-image.sh" +BR2_PACKAGE_DNSMASQ=y +BR2_PACKAGE_DROPBEAR=y +BR2_TARGET_ROOTFS_SQUASHFS=y +# BR2_TARGET_ROOTFS_TAR is not set +DEMO_VENDOR_ID="led-relay" +DEMO_VENDOR_NAME="LED-Relay" +DEMO_VENDOR_DESC="LED/Relay Demo" +BR2_PACKAGE_LED_RELAY=y