From patchwork Tue Oct 27 07:50:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frampton X-Patchwork-Id: 1388317 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=C9Jcvb5Q; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CL3mn0NVsz9sTq for ; Tue, 27 Oct 2020 18:51:20 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6655F85D97; Tue, 27 Oct 2020 07:51:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kMIFhUBxDb2J; Tue, 27 Oct 2020 07:51:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id C503C85751; Tue, 27 Oct 2020 07:51:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9DFC81BF333 for ; Tue, 27 Oct 2020 07:51:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 995A4863F4 for ; Tue, 27 Oct 2020 07:51:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jhhSAI14CrS6 for ; Tue, 27 Oct 2020 07:51:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id DEFA485A46 for ; Tue, 27 Oct 2020 07:51:12 +0000 (UTC) Received: by mail-pj1-f67.google.com with SMTP id k8so393955pjd.0 for ; Tue, 27 Oct 2020 00:51:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tpvlstneD6w26gbbRhh6CI1UbgUFg0JExyTX+9WF0H4=; b=C9Jcvb5Qx4kgpOB60ACAa332vkl0mzB0GXQg9axx4yuwsj0nmTx1I/40W6hh1IfW3T RW/isSN5XuGvTk9Zpz8WtdOTycaZQyXLheTOfFk5UE7hPuBD2zBVShYdVL2XHucK6dHK 5vsig6wMtZOU7UFcauUOZrNKkReywiNH2GPVwczpJe1HzSZV0wsq3sYq0VK1GDO48K3n s5mJKlf56nWe2jFqjyO5giBdQPiQyBJt8MZZf7DhhuoEmQ7Vc6l3HtaCZszCYVnh+L6s dCHXZswxtyW46wlipapk7xLjY9tUSA4ZMmJzaFJIYwxMrkecYUPO4iwSAJmu59ZyqUIC oFMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tpvlstneD6w26gbbRhh6CI1UbgUFg0JExyTX+9WF0H4=; b=RzfYwdSSoql7lZS2XapjAbCKkNqWD5k4cSZH8DG1kPq2bc0fUPTk4MDta5OsNr9JSr srwZ4XICNsjKhAxfvEPR1RRrJzM+AqSNLwYjpofAG23NM7HDY05hKL52dykyCuFE8/2v STS/8Et8EDgFhJ1E1n14imLEBiplDv7BZYEckurgBhPdbCiLZJbs5wdonNQXqjmrkfTW vsHPR9P7yXZ+HX0HkUkHQOKnA/WlSGnJB0pZT8sm/YzFNYcfyDURREOMC2h+tgNePEMY 001BfhzrF+QTEKMWwt9dVWbe7QHvfEIVfucbh1OzKgmZC2r4s0rFaI3i+ZzL61WzGTLT 23GQ== X-Gm-Message-State: AOAM533MqZhHMU0GaoLbEkp3q+RroDNFDsc3c4QTNqjef3aFvE4nz9s3 1wpuadewHH8eFJszGbm4UIKFm/5g7C6LlA== X-Google-Smtp-Source: ABdhPJwK6zPRYwQetGzmCx7+M8nuc6xmw7H2HiGwuPXcjmGOb+KnDTB1CpOBK7K5eP7piREuMgL1dg== X-Received: by 2002:a17:90b:230d:: with SMTP id mt13mr874162pjb.177.1603785072109; Tue, 27 Oct 2020 00:51:12 -0700 (PDT) Received: from localhost.localdomain (222-154-74-74-fibre.sparkbb.co.nz. [222.154.74.74]) by smtp.googlemail.com with ESMTPSA id j11sm1104504pfc.64.2020.10.27.00.51.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 00:51:11 -0700 (PDT) From: Mike Frampton To: buildroot@buildroot.org Date: Tue, 27 Oct 2020 20:50:54 +1300 Message-Id: <20201027075056.10753-1-mikeframpo@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/3] configs/qcom_db410c: Add support for Dragonboard410c SBC Adds basic support for the DB410c SBC. Builds the qualcomm kernel version 5.4 arm64. Adds the device's graphics firmware. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mike Frampton Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Mike Frampton --- configs/qcom_db410c_defconfig | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 configs/qcom_db410c_defconfig diff --git a/configs/qcom_db410c_defconfig b/configs/qcom_db410c_defconfig new file mode 100644 index 0000000000..835e34453d --- /dev/null +++ b/configs/qcom_db410c_defconfig @@ -0,0 +1,24 @@ +# Architecture +BR2_aarch64=y + +# Toolchain options +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y + +# Firmware +BR2_PACKAGE_LINUX_FIRMWARE=y +BR2_PACKAGE_LINUX_FIRMWARE_QCOM_VENUS=y +BR2_PACKAGE_LINUX_FIRMWARE_QCOM_ADRENO=y + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://git.linaro.org/landing-teams/working/qualcomm/kernel.git" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="release/qcomlt-5.4" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="apq8016-sbc" + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y + From patchwork Tue Oct 27 07:50:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frampton X-Patchwork-Id: 1388318 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=WBmr7j0z; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CL3n31qqpz9sSs for ; Tue, 27 Oct 2020 18:51:34 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7BC7A866D3; Tue, 27 Oct 2020 07:51:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VpyimeS4ioXO; Tue, 27 Oct 2020 07:51:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id C9BDE863F4; Tue, 27 Oct 2020 07:51:30 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 84F231BF333 for ; Tue, 27 Oct 2020 07:51:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7F6E3863F4 for ; Tue, 27 Oct 2020 07:51:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m9zfrD7iCEaY for ; Tue, 27 Oct 2020 07:51:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id DCD9C85A46 for ; Tue, 27 Oct 2020 07:51:28 +0000 (UTC) Received: by mail-pj1-f53.google.com with SMTP id b6so392547pju.1 for ; Tue, 27 Oct 2020 00:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NA5hMEE/gxDG5bhRxYBXDNQwjYaNaL212khOp8GjD2M=; b=WBmr7j0zVXLU1IXXBnyad5lCxMkmj1xsOlizroku9jktywjpbSlTSlxke2Fs4tHAQx SrigEWfueWbrCKBQt3Cl5ZEgAXBNu2Ob2YEyhdYvehov/jf9VnnGPhLZZUkQWuIr+xoL J2Bb0Fu5tEox4h9b/T2Af8zgbOW/p1dxDUenku5yPLOSyzOwoJ74uvCEsiltpgbVPq5T aYdOo0FiuO1FmQkH0yFghxrIlreQWtNOrmbAw4SAGb57nrB9D389aPiWarwMsqn0x27L RLQgm867adhmc0Rc0unfYW3tN+1U6aSxE0RphMf4ArnrTbEcUNxJy2sXJixUkB3jk/qu jivA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NA5hMEE/gxDG5bhRxYBXDNQwjYaNaL212khOp8GjD2M=; b=qwvt0ay9SjzJOrdwnl6rEkqgieBrNQVsBeuZxexqgE6E2xLHgoaDv+GcHoFzdY3T/+ 7oNRf0iU9lvW+ZLHZl+8p1FXwvJMCgoOWek0uTxwNGioIeATTg7BmOFF4qw3WRO/ULYX i89TPt5rpG5fTF8XVDOcZn+OS0Sir5mMw8V6vmX5BnH+9LMLsXXUlwX+vL0onq92Tqza Hb3NID6221mG3+pe7Hu5H9M99lguIsCaJ/lSsOwQHDC9zL+aMvcX8lU1oGeApJboFOGK WYrG5oUHHNB0SmDBlrXDDdJjNahVQ4JTJNZXHGAn89z8ReNVHSWgIEuOlRsFD+MKQ5fQ o8+g== X-Gm-Message-State: AOAM530OJpRlJ2WogUZq+n7FCitpisquuJFD5KZMph9JqgRbEYnvKAy1 B4qm7nelKpv18HLV6MA6M6ywQ9TuGyxlvQ== X-Google-Smtp-Source: ABdhPJwb7UlWonOaVdPF6UyUoSzB8U+f36WmNKNTg9HFgtJIQwSCs5+ZChD6h5V1L3XLtoWmQ1i6jQ== X-Received: by 2002:a17:902:c412:b029:d6:2939:1b75 with SMTP id k18-20020a170902c412b02900d629391b75mr1309259plk.80.1603785088182; Tue, 27 Oct 2020 00:51:28 -0700 (PDT) Received: from localhost.localdomain (222-154-74-74-fibre.sparkbb.co.nz. [222.154.74.74]) by smtp.googlemail.com with ESMTPSA id j11sm1104504pfc.64.2020.10.27.00.51.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 00:51:27 -0700 (PDT) From: Mike Frampton To: buildroot@buildroot.org Date: Tue, 27 Oct 2020 20:50:55 +1300 Message-Id: <20201027075056.10753-2-mikeframpo@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201027075056.10753-1-mikeframpo@gmail.com> References: <20201027075056.10753-1-mikeframpo@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/3] package/qcom-db410c-firmware: add support for DB410c Wifi Added new package. Installs required Wifi firmware blobs on the target. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mike Frampton Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Mike Frampton --- configs/qcom_db410c_defconfig | 1 + package/Config.in | 1 + package/qcom-db410c-firmware/Config.in | 5 ++++ .../qcom-db410c-firmware.mk | 28 +++++++++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 package/qcom-db410c-firmware/Config.in create mode 100644 package/qcom-db410c-firmware/qcom-db410c-firmware.mk diff --git a/configs/qcom_db410c_defconfig b/configs/qcom_db410c_defconfig index 835e34453d..470d55efde 100644 --- a/configs/qcom_db410c_defconfig +++ b/configs/qcom_db410c_defconfig @@ -8,6 +8,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y BR2_PACKAGE_LINUX_FIRMWARE=y BR2_PACKAGE_LINUX_FIRMWARE_QCOM_VENUS=y BR2_PACKAGE_LINUX_FIRMWARE_QCOM_ADRENO=y +BR2_PACKAGE_QCOM_DB410C_FIRMWARE=y # Kernel BR2_LINUX_KERNEL=y diff --git a/package/Config.in b/package/Config.in index d7e79f4795..6ceff1107c 100644 --- a/package/Config.in +++ b/package/Config.in @@ -400,6 +400,7 @@ menu "Firmware" source "package/b43-firmware/Config.in" source "package/linux-firmware/Config.in" source "package/murata-cyw-fw/Config.in" + source "package/qcom-db410c-firmware/Config.in" source "package/rpi-bt-firmware/Config.in" source "package/rpi-firmware/Config.in" source "package/rpi-wifi-firmware/Config.in" diff --git a/package/qcom-db410c-firmware/Config.in b/package/qcom-db410c-firmware/Config.in new file mode 100644 index 0000000000..8ad768230b --- /dev/null +++ b/package/qcom-db410c-firmware/Config.in @@ -0,0 +1,5 @@ +config BR2_PACKAGE_QCOM_DB410C_FIRMWARE + bool "qcom-db410c-firmware" + help + Wifi/BT firmware for Qualcomm Dragonboard 410c SBC. + diff --git a/package/qcom-db410c-firmware/qcom-db410c-firmware.mk b/package/qcom-db410c-firmware/qcom-db410c-firmware.mk new file mode 100644 index 0000000000..5a1e6bbca4 --- /dev/null +++ b/package/qcom-db410c-firmware/qcom-db410c-firmware.mk @@ -0,0 +1,28 @@ + +QCOM_DB410C_FIRMWARE_VERSION = r1034.2.1 +QCOM_DB410C_FIRMWARE_BASE = linux-board-support-package-$(QCOM_DB410C_FIRMWARE_VERSION) +QCOM_DB410C_FIRMWARE_SOURCE = $(QCOM_DB410C_FIRMWARE_BASE).zip +QCOM_DB410C_FIRMWARE_SITE = https://releases.linaro.org/96boards/dragonboard410c/qualcomm/firmware + +QCOM_DB410C_FIRMWARE_LICENCE = Qualcomm firmware license +QCOM_DB410C_FIRMWARE_LICENSE_FILES = LICENSE + +QCOM_DB410C_FIRMWARE_INSTALL_TARGET = YES + +define QCOM_DB410C_FIRMWARE_EXTRACT_CMDS + $(UNZIP) -d $(@D) $(QCOM_DB410C_FIRMWARE_DL_DIR)/$(QCOM_DB410C_FIRMWARE_SOURCE) +endef + +define QCOM_DB410C_FIRMWARE_INSTALL_TARGET_CMDS + $(INSTALL) -d $(TARGET_DIR)/boot + cp $(@D)/$(QCOM_DB410C_FIRMWARE_BASE)/efs-seed/fs_image_linux.tar.gz.mbn.img $(TARGET_DIR)/boot/modem_fsg + + $(INSTALL) -d $(TARGET_DIR)/lib/firmware + cp -r $(@D)/$(QCOM_DB410C_FIRMWARE_BASE)/proprietary-linux/wlan $(TARGET_DIR)/lib/firmware/ + + $(INSTALL) -d $(TARGET_DIR)/lib/firmware/qcom/msm8916 + MTOOLS_SKIP_CHECK=1 mcopy -i $(@D)/$(QCOM_DB410C_FIRMWARE_BASE)/bootloaders-linux/NON-HLOS.bin \ + ::image/modem.* ::image/mba.mbn ::image/wcnss.* $(TARGET_DIR)/lib/firmware/qcom/msm8916 +endef + +$(eval $(generic-package)) From patchwork Tue Oct 27 07:50:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frampton X-Patchwork-Id: 1388319 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=p5uw7kDz; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CL3n90mJgz9sSs for ; Tue, 27 Oct 2020 18:51:41 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6E43085A46; Tue, 27 Oct 2020 07:51:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V8H04PuHYmG6; Tue, 27 Oct 2020 07:51:38 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 1591686499; Tue, 27 Oct 2020 07:51:38 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id B30C31BF333 for ; Tue, 27 Oct 2020 07:51:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B035C851A4 for ; Tue, 27 Oct 2020 07:51:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nC00EuixB2pe for ; Tue, 27 Oct 2020 07:51:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 27F9485754 for ; Tue, 27 Oct 2020 07:51:36 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id h2so316378pll.11 for ; Tue, 27 Oct 2020 00:51:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XGFx1r7/X/AZOjar/LsnsVCiQuta50MKfz1kUurrV8A=; b=p5uw7kDzDWidlPS5TVmYoHBilq4Ig3R+TWETLlcYSPVXkqZDznMOv7Sq0bThwJqG4Z cLS9Azm/kMB2nbJakJUPTcY/9KvXVGOga9S5j30SZe1JHmtBXVKfHsImONAgus1ys5ru 4d/ioN0831EwMBeIEWA5Lk/7f8wtZto2miK+t1gknNRRYUxB+mooj3rQlzv0HIKqyPpl yEAj8HOhTt+eKXYitUpikKcd1Qo2G1BcVIpRUnGTdhwPplCNdqMdVuby1yjArOoJijkF W3MCg/zM5vGI1YkFq+6q1ZrQ812HBmRxh70C3CbDTPsp46hOlqzjaNicymWsfzkWXMM9 qT0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XGFx1r7/X/AZOjar/LsnsVCiQuta50MKfz1kUurrV8A=; b=P2Ik0PG+vIppPb0ow37X3Br8+k8F/fz9WjcYu8oFxf3rkQ7VSVpP2M4VRQHg0Q5UzY H7ISCrLAJoOhXlwJyEtUHXM9IdpUd3tqtRsh2HjfnC223FZcurbEN8R94m0RGCwSLHfN cT7A1/mZLz5K7fQcmkRtxlStAM6pj+vuiYgqhKh1x66kWN3Y4z3U81rkH8yg22tnI1nn s96ne6W/pb6ec/oQ34YoCdq6ZbfJMdirMPfDb5vMCFnx0LxJg3CV7S5IHJgxb1brre1Y TqbzzTNPTVVUuG9IOANxllpdTUrjnHcLubZTYit8qMuNlp7lArHMumzl/KhHxKADmD5S 4VNQ== X-Gm-Message-State: AOAM532UUpa5OtCB7tlaNrSyi73WO/Kij31xhSAymmYR4wLNYBhq+hG9 l7S1fBhDTGcXaPQbTR1lmmpyFyAZ/Ndciw== X-Google-Smtp-Source: ABdhPJziC3LGnVLmfkZnAQg9wKTKKsjSDOdCqhriZhk8b1whjclG/ykW+DExTXg4b7HbglGE0xikcA== X-Received: by 2002:a17:902:145:b029:d6:4b6a:3bd0 with SMTP id 63-20020a1709020145b02900d64b6a3bd0mr1062698plb.44.1603785095403; Tue, 27 Oct 2020 00:51:35 -0700 (PDT) Received: from localhost.localdomain (222-154-74-74-fibre.sparkbb.co.nz. [222.154.74.74]) by smtp.googlemail.com with ESMTPSA id j11sm1104504pfc.64.2020.10.27.00.51.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 00:51:34 -0700 (PDT) From: Mike Frampton To: buildroot@buildroot.org Date: Tue, 27 Oct 2020 20:50:56 +1300 Message-Id: <20201027075056.10753-3-mikeframpo@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201027075056.10753-1-mikeframpo@gmail.com> References: <20201027075056.10753-1-mikeframpo@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 3/3] package/abootimg: add host build for abootimg Build abootimg on the host, and use it to build a kernel image for the DB410c. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mike Frampton Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Mike Frampton --- board/qcom/db410c/post-image.sh | 21 +++++++++++++++++++++ configs/qcom_db410c_defconfig | 4 ++++ package/Config.in.host | 1 + package/abootimg/Config.in.host | 8 ++++++++ package/abootimg/abootimg.mk | 12 ++++++++++++ 5 files changed, 46 insertions(+) create mode 100755 board/qcom/db410c/post-image.sh create mode 100644 package/abootimg/Config.in.host diff --git a/board/qcom/db410c/post-image.sh b/board/qcom/db410c/post-image.sh new file mode 100755 index 0000000000..5182b655d2 --- /dev/null +++ b/board/qcom/db410c/post-image.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +set -e + +OUTIMG=$BINARIES_DIR/boot-db410c.img +KERNEL_BUILD=$BUILD_DIR/linux-release_qcomlt-5.4 + +cp $KERNEL_BUILD/arch/arm64/boot/dts/qcom/apq8016-sbc.dtb $BINARIES_DIR +cp $KERNEL_BUILD/arch/arm64/boot/Image.gz $BINARIES_DIR + +# now assemble the bootimg +#cd $BINARIES_DIR +cat $BINARIES_DIR/Image.gz $BINARIES_DIR/apq8016-sbc.dtb > $BINARIES_DIR/Image.gz+dtb +echo "not a ramdisk" > $BINARIES_DIR/ramdisk.img + +abootimg --create $OUTIMG -k $BINARIES_DIR/Image.gz+dtb -r $BINARIES_DIR/ramdisk.img \ + -c pagesize=2048 -c kerneladdr=0x80008000 -c ramdiskaddr=0x81000000 \ + -c cmdline="root=/dev/mmcblk1p13 rw rootwait console=tty0 console=ttyMSM0,115200n8" + +echo "boot img written to $OUTIMG" + diff --git a/configs/qcom_db410c_defconfig b/configs/qcom_db410c_defconfig index 470d55efde..4053f914cf 100644 --- a/configs/qcom_db410c_defconfig +++ b/configs/qcom_db410c_defconfig @@ -10,6 +10,10 @@ BR2_PACKAGE_LINUX_FIRMWARE_QCOM_VENUS=y BR2_PACKAGE_LINUX_FIRMWARE_QCOM_ADRENO=y BR2_PACKAGE_QCOM_DB410C_FIRMWARE=y +# Bootloader/boot image +BR2_PACKAGE_HOST_ABOOTIMG=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/qcom/db410c/post-image.sh" + # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_GIT=y diff --git a/package/Config.in.host b/package/Config.in.host index fb29622ccb..39a6f89f8c 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -1,5 +1,6 @@ menu "Host utilities" + source "package/abootimg/Config.in.host" source "package/aespipe/Config.in.host" source "package/android-tools/Config.in.host" source "package/btrfs-progs/Config.in.host" diff --git a/package/abootimg/Config.in.host b/package/abootimg/Config.in.host new file mode 100644 index 0000000000..1e178bc8bf --- /dev/null +++ b/package/abootimg/Config.in.host @@ -0,0 +1,8 @@ +config BR2_PACKAGE_HOST_ABOOTIMG + bool "host abootimg" + select BR2_PACKAGE_HOST_UTIL_LINUX + help + Tool to manipulate Android Boot Images, either on files + or directly on /dev block devices. + + https://github.com/ggrandou/abootimg diff --git a/package/abootimg/abootimg.mk b/package/abootimg/abootimg.mk index e906546948..6a4cd01586 100644 --- a/package/abootimg/abootimg.mk +++ b/package/abootimg/abootimg.mk @@ -11,6 +11,7 @@ ABOOTIMG_LICENSE_FILES = LICENSE # depends on libblkid from util-linux ABOOTIMG_DEPENDENCIES = util-linux +ABOOTIMG_HOST_DEPENDENCIES = host-util-linux define ABOOTIMG_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) @@ -20,4 +21,15 @@ define ABOOTIMG_INSTALL_TARGET_CMDS $(INSTALL) -m 0755 $(@D)/abootimg $(TARGET_DIR)/usr/bin/abootimg endef +# host build + +define HOST_ABOOTIMG_BUILD_CMDS + $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) +endef + +define HOST_ABOOTIMG_INSTALL_CMDS + $(INSTALL) -m 0755 $(@D)/abootimg $(HOST_DIR)/usr/bin/abootimg +endef + $(eval $(generic-package)) +$(eval $(host-generic-package))