All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v5] board: add support for ARM Juno r1 Development Board
Date: Thu, 22 Oct 2015 22:20:45 +0200	[thread overview]
Message-ID: <5629451D.8060502@mind.be> (raw)
In-Reply-To: <b132a8d9bc9e51f56f7b4a5c0e4c02404aaabd8a.1444647414.git.jpinto@synopsys.com>

On 22-10-15 18:17, Joao Pinto wrote:
> The Juno r1 ARM Development Platform (ADP) is a software development
> platform for ARMv8-A, it includes the Juno r1 Versatile Express board 
> and an ARMv8-A reference software port available through Linaro.
> 
> Signed-off-by: Joao Pinto <jpinto@synopsys.com>
> ---
> 
> Changes v4 -> v5:
>  -Added changelog to the patch
> Changes v3 -> v4  (Thomas Petazzoni):
>  -The kernel' arm64 defconfig lacks a considerable amount of 
>  configuration items regarding the Juno r1 board, and that is the reason
>  of this custom kernel configuration file.
>  -The ARM Juno needs a kernel image called Image, and that 
>  it the reason why BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM is being used.
>  -A new readme.txt was produced.
> 
>  board/arm/junor1/linux-junor1-defconfig | 176 ++++++++++++++++++++++++++++++++
>  board/arm/junor1/readme.txt             |  76 ++++++++++++++
>  configs/arm_junor1_defconfig            |  16 +++
>  3 files changed, 268 insertions(+)
>  create mode 100644 board/arm/junor1/linux-junor1-defconfig
>  create mode 100644 board/arm/junor1/readme.txt
>  create mode 100644 configs/arm_junor1_defconfig
> 
> diff --git a/board/arm/junor1/linux-junor1-defconfig b/board/arm/junor1/linux-junor1-defconfig
> new file mode 100644
> index 0000000..b216d3e
> --- /dev/null
> +++ b/board/arm/junor1/linux-junor1-defconfig

 This defconfig again contains a lot of options that I doubt are very useful. It
even enables some things that are explicitly disabled in the arm64 defconfig, e.g.

# CONFIG_UTS_NS is not set
# CONFIG_WIRELESS is not set


 But it doesn't look too bad, so I'm OK with it as it is.

[snip]

> diff --git a/board/arm/junor1/readme.txt b/board/arm/junor1/readme.txt
> new file mode 100644
> index 0000000..2b3ebf5
> --- /dev/null
> +++ b/board/arm/junor1/readme.txt
> @@ -0,0 +1,76 @@
> +ARM Juno r1
> +
> +Intro
> +=====
> +
> +These instructions apply to all models of the ARM Juno:
> +  - Juno r0 (does not support PCIe)
> +  - Juno r1 (supports PCIe)

 If the same binaries apply to both r0 and r1, why not call it something juno
without r1?

> +
> +Buildroot will generate the kernel image, device tree blob and a 
> +minimal root filesystem.
> +
> +How to build it
> +===============
> +
> +Configure Buildroot
> +-------------------
> +
> +Configuring Buildroot is pretty simple, just execute:
> +
> +  $ make arm_junor1_defconfig
> +
> +Build the rootfs, kernel and DTB
> +--------------------------------
> +
> +Note: you will need to have access to the network, since Buildroot will
> +download the packages' sources.
> +
> +You may now build your rootfs with:
> +
> +  $ make
> +
> +(This may take a while)

 I think this is a lot of text for something so simple :-)

> +
> +Result of the build
> +-------------------
> +
> +After building, you should obtain this tree:
> +
> +    output/images/
> +    +-- rootfs.tar
> +    +-- juno-r1.dtb
> +    +-- Image
> +
> +Preparing your rootfs
> +======================
> +Format your pen drive as a ext3 filesystem by executing:
> +
> +   $ mkfs.ext3 /dev/<your device> 
> +
> +Installing your rootfs
> +======================
> +After mounting the pen drive please execute the following:
> +
> +   $ sudo tar -xvf output/images/rootfs.tar -C <pen drive mount path>
> +
> +When completed make sure to unmount the device:
> +   
> +   $ umount <pen drive mount path>
> +
> +Insert the pen drive in one of the ARM Juno' USB type A connectors.

 So why not just generate an ext4 image instead of this procedure?

> +
> +Installing kernel image and DTB
> +===============================
> +1. Connect to the ARM Juno UART0 and execute USB_ON in the terminal

 What does this mean? I mean, if the system is running, you'd have a getty on
UART0, no?

> +2. Connect a USB cable between your PC and ARM Juno USB type B connector
> +   A mass storage device should appear in your desktop.
> +3. Open the software/ folder
> +4. Copy the 'Image' file to software/
> +5. Copy the 'juno-r1.dtb' file to software/ and rename it to r1a57a53.dtb
> +6. Press the red button in the front pannel of ARM Juno

 Is there no way to boot directly from the pen drive instead?

> +
> +At this time, the board will erase the Flash entry for each new item and
> +replace it with the lastest ones.
> +When finished, the board will boot and mount the root filesystem at /dev/sda1.
> +
> diff --git a/configs/arm_junor1_defconfig b/configs/arm_junor1_defconfig
> new file mode 100644
> index 0000000..3987293
> --- /dev/null
> +++ b/configs/arm_junor1_defconfig
> @@ -0,0 +1,16 @@
> +BR2_aarch64=y
> +BR2_KERNEL_HEADERS_VERSION=y
> +BR2_DEFAULT_KERNEL_VERSION="4.2.2"
> +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_2=y
> +BR2_TARGET_GENERIC_HOSTNAME="junor1-buildroot"
> +BR2_TARGET_GENERIC_ISSUE="Welcome to SNPS Juno r1 by Buildroot"
> +BR2_LINUX_KERNEL=y
> +BR2_LINUX_KERNEL_CUSTOM_GIT=y
> +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="http://git.linaro.org/landing-teams/working/arm/kernel.git"
> +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="6917b51dee54f21816706af2278517b7af218f9a"

 This is just v4.3-rc1, so you could use an upstream kernel instead of Linaro.
Are you sure you took the right sha?

> +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/arm/junor1/linux-junor1-defconfig"
> +BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y
> +BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="Image"
> +BR2_LINUX_KERNEL_DTS_SUPPORT=y
> +BR2_LINUX_KERNEL_INTREE_DTS_NAME="arm/juno-r1"

 No need for a bootloader?

 Regards,
 Arnout



-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

  reply	other threads:[~2015-10-22 20:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-01 11:55 [Buildroot] [RESEND] [PATCH v7] board: add support for ARM Juno Development Board Joao Pinto
2015-10-22 20:20 ` Arnout Vandecappelle [this message]
2015-10-23  9:10   ` [Buildroot] [PATCH v5] board: add support for ARM Juno r1 " Joao Pinto
2015-10-28 21:29     ` Arnout Vandecappelle
2015-12-16 20:22 ` [Buildroot] [PATCH v7] board: add support for ARM Juno " Thomas Petazzoni
     [not found] ` <20160201122047.GR1194@e106497-lin.cambridge.arm.com>
2016-02-01 12:24   ` [Buildroot] [RESEND] " Joao Pinto

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=5629451D.8060502@mind.be \
    --to=arnout@mind.be \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.