Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] New board: FriendlyARM NanoPi Duo
Date: Sun, 21 Oct 2018 00:24:10 +0200	[thread overview]
Message-ID: <20181021002410.47982274@windsurf.lan> (raw)
In-Reply-To: <20180419093722.10667-1-sven.haardiek@iotec-gmbh.de>

Hello Sven,

On Thu, 19 Apr 2018 11:37:22 +0200, Sven Haardiek wrote:
> Introduce a new board the FriendlyARM NanoPi Duo.
> 
> - Due to the missing defconfigs and DTS in the mainline kernel and uboot, I
>   used the ones from the FriendlyARM github page.
> 
> - Most of the configuration was copied from the other friendlyarm boards.
> 
> Signed-off-by: Sven Haardiek <sven.haardiek@iotec-gmbh.de>

Thanks a lot for your contribution, and sorry for the very, very slow
response time. I'll add below a few comments, generally fairly minor.
If you could fix them, and submit an updated version of your patch, it
would be very nice.

First, the commit title should be something like this:

	configs/friendlyarm_nanopi_duo: new defconfig

Also, the DEVELOPERS file should be updated to add an entry that
associates your name/email with the defconfig and board directory.

> diff --git a/board/friendlyarm/nanopi-duo/genimage.cfg b/board/friendlyarm/nanopi-duo/genimage.cfg
> new file mode 100644
> index 0000000000..8b3cc1fe75
> --- /dev/null
> +++ b/board/friendlyarm/nanopi-duo/genimage.cfg
> @@ -0,0 +1,33 @@
> +image boot.vfat {
> +	vfat {
> +		files = {
> +			"zImage",
> +            "sun8i-h2-plus-nanopi-duo.dtb",
> +            "boot.scr"

The indentation looks odd here.


> diff --git a/configs/friendlyarm_nanopi_duo_defconfig b/configs/friendlyarm_nanopi_duo_defconfig
> new file mode 100644
> index 0000000000..8539deaccf
> --- /dev/null
> +++ b/configs/friendlyarm_nanopi_duo_defconfig
> @@ -0,0 +1,31 @@
> +BR2_arm=y
> +BR2_cortex_a7=y
> +BR2_ARM_FPU_VFPV4=y
> +BR2_TARGET_GENERIC_HOSTNAME="nanopi-duo"
> +BR2_TARGET_GENERIC_ISSUE="Welcome to Buildroot for the NanoPi DUO"
> +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
> +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/friendlyarm/nanopi-duo/genimage.cfg"
> +BR2_LINUX_KERNEL=y
> +BR2_LINUX_KERNEL_CUSTOM_GIT=y
> +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/friendlyarm/linux.git"
> +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="sunxi-4.16.y"

Please use a tag or exact SHA1 so that the build is reproducible.

> +BR2_TARGET_UBOOT_CUSTOM_GIT=y
> +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/friendlyarm/u-boot.git"
> +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="sunxi-v2017.x"

Here as well.

Other than that, looks good to me! Could you send an updated version?

Thanks a lot,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

      parent reply	other threads:[~2018-10-20 22:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-19  9:37 [Buildroot] [PATCH 1/1] New board: FriendlyARM NanoPi Duo Sven Haardiek
2018-09-09 15:19 ` Alexis Lothoré
2018-10-20 22:24 ` Thomas Petazzoni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181021002410.47982274@windsurf.lan \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox