From patchwork Fri Oct 11 15:57:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1175333 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="ARNsXfqM"; 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 46qXfD2fC1z9sNx for ; Sat, 12 Oct 2019 02:57:40 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C729788141; Fri, 11 Oct 2019 15:57:38 +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 y56p34yvOjcd; Fri, 11 Oct 2019 15:57:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id C08D48814A; Fri, 11 Oct 2019 15:57:37 +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 72C321BF2AB for ; Fri, 11 Oct 2019 15:57:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6D44C8814D for ; Fri, 11 Oct 2019 15:57:36 +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 lhGqQJVgN2FI for ; Fri, 11 Oct 2019 15:57:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2EE1488141 for ; Fri, 11 Oct 2019 15:57:35 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id 7so10964297wme.1 for ; Fri, 11 Oct 2019 08:57:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id; bh=N/zjfawnBIYWSP3Mo14AY1+vYlwrLIuewusDA9xUVAg=; b=ARNsXfqMvFJ6oimy4Z8Ej0z2KzYC2y+pB+CfJbj06FqSDPpAosftZb3ryZJKRJb/fc heAXZayv8H/gtCNXS5RnIsmtPyoMiBGFVo8fZ8I51aKccmx49xrAbtSa4bl5qiWrcZ8F L3Lpzwm5l7dJtnHZhG7xdj+8x/rcRNfxGRSZk= 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; bh=N/zjfawnBIYWSP3Mo14AY1+vYlwrLIuewusDA9xUVAg=; b=cBVVtlpOCHqbe76QNOI7BXutKaTtniVwRt81VV0KMKBp+243SuxSBTLBOztvS8uGoS IryKUOlWBDy5W0xV80XxAryyuK6MrFLspqsaVCk/zfHuBO156Tl6VsuCtq/pGLKHvRaw md/SPx81JjmIUgY1Wv2jAoKRIF/mSiGeuf84k17DbWU/F//8mcDkNlghbhr0CDCgRZt8 irlw3b2q4csdcQKGNPenx4ILDgfzMD1eqnvrpqAyseFLcciyPiA/3moAVaxDRSmUJZHg 89xBM3K7mT/stS9ti72I+xQjBSkdN7+q4bkozbpFPYLOz3HczjKzMmdXPnYLFc63oxjS CKzg== X-Gm-Message-State: APjAAAULXI/V4hMGTE0TMG4VUJSdhv61sLYW1TLyKujByN5quWwEiira B36QTQC/gMgt5Td1uD+DaVGBcLR/bUg= X-Google-Smtp-Source: APXvYqx86BdX3Zn3rFizEKklvwo7BsZ+hzYgosZt7iAgU2zn940vTZ+2e0eKlcwWFo9I23N51/74gQ== X-Received: by 2002:a7b:caa9:: with SMTP id r9mr3591552wml.133.1570809453359; Fri, 11 Oct 2019 08:57:33 -0700 (PDT) Received: from localhost.localdomain ([89.202.204.147]) by smtp.gmail.com with ESMTPSA id o18sm21158551wrw.90.2019.10.11.08.57.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Oct 2019 08:57:32 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Fri, 11 Oct 2019 17:57:25 +0200 Message-Id: <1570809445-2578-1-git-send-email-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH] configs/licheepi_zero_dock: new defconfig 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: Angelo Compagnucci MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Licheepi zero dock version is different in several ways from the standard version and it needs a different dtb to run. This patch adds the dock variant and the correct bootscript to generate a supported image. Signed-off-by: Angelo Compagnucci --- board/licheepi/boot-dock.cmd | 4 +++ configs/licheepi_zero_dock_defconfig | 50 ++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 board/licheepi/boot-dock.cmd create mode 100644 configs/licheepi_zero_dock_defconfig diff --git a/board/licheepi/boot-dock.cmd b/board/licheepi/boot-dock.cmd new file mode 100644 index 0000000..383b347 --- /dev/null +++ b/board/licheepi/boot-dock.cmd @@ -0,0 +1,4 @@ +setenv bootargs console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw +load mmc 0:1 0x41000000 zImage +load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb +bootz 0x41000000 - 0x41800000 diff --git a/configs/licheepi_zero_dock_defconfig b/configs/licheepi_zero_dock_defconfig new file mode 100644 index 0000000..671e89d --- /dev/null +++ b/configs/licheepi_zero_dock_defconfig @@ -0,0 +1,50 @@ +# Target options +BR2_arm=y +BR2_cortex_a7=y +BR2_ARM_FPU_VFPV4=y + +# Toolchain +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_3=y + +# System configuration +BR2_TARGET_GENERIC_HOSTNAME="licheepi-zero" +BR2_TARGET_GENERIC_ISSUE="Welcome to Buildroot for the LicheePi Zero" +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" +BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/licheepi/genimage.cfg" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.3.5" +BR2_LINUX_KERNEL_DEFCONFIG="sunxi" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun8i-v3s-licheepi-zero-dock" + +BR2_PACKAGE_LINUX_FIRMWARE=y +BR2_PACKAGE_LINUX_FIRMWARE_RTL_87XX=y + +BR2_PACKAGE_WPA_SUPPLICANT=y +BR2_PACKAGE_WPA_SUPPLICANT_AUTOSCAN=y + +# Filesystem images +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y + +# Bootloaders +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.10" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="LicheePi_Zero" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin" +BR2_TARGET_UBOOT_BOOT_SCRIPT=y +BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="board/licheepi/boot-dock.cmd" + +# Required host utilities for building an SDCard image +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y