Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [V2 3/4] A20-OLinuXino-Lime: new board (mainline)
Date: Fri, 19 Jun 2015 22:49:20 +0200	[thread overview]
Message-ID: <55848050.8010904@mind.be> (raw)
In-Reply-To: <1434741204-3988-4-git-send-email-francois.perrad@gadz.org>

On 06/19/15 21:13, Francois Perrad wrote:
> config device tree / mainline (4.0.5)
> 
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>

 Just some minor documentation fixes... With that:

  Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

[snip]
> +How to build it
> +===============
> +
> +    $ make olimex_a20_olinuxino_defconfig
> +
> +Compile all and build rootfs image:

Compile everything and build the rootfs image:

> +
> +    $ make
> +
> +Result of the build
> +-------------------
> +
> +After building, you should get a tree like this:
> +
> +    output/images/
> +    +-- rootfs.ext2
> +    +-- rootfs.ext4 -> rootfs.ext2
> +    +-- sun7i-a20-olinuxino-lime.dtb
> +    +-- u-boot.bin
> +    +-- u-boot-sunxi-with-spl.bin
> +    `-- zImage
> +
> +
> +How setting up the SD card

How to write the SD card

> +==========================
> +
> +
> +Prepare the SD card
> +-------------------
> +
> +Erase existing stuff, and create an unique Linux partition with `fdisk`.
> +
> +    # fdisk /dev/sdX
> +    Command (m for help): o
> +    Building a new DOS disklabel with disk identifier 0xf9e1616a.
> +    Changes will remain in memory only, until you decide to write them.
> +    After that, of course, the previous content won't be recoverable.
> +
> +    Command (m for help): n
> +    Partition type:
> +        p   primary (0 primary, 0 extended, 4 free)
> +        e   extended
> +    Select (default p): p
> +    Partition number (1-4, default 1): 1
> +    First sector (2048-7626751, default 2048): 2048
> +    Last sector, +sectors or +size{K,M,G} (2048-7626751, default 7626751): 
> +    Using default value 7626751
> +
> +    Command (m for help): p
> +
> +    Disk /dev/sdX: 3904 MB, 3904897024 bytes
> +    4 heads, 16 sectors/track, 119168 cylinders, total 7626752 sectors
> +    Units = sectors of 1 * 512 = 512 bytes
> +    Sector size (logical/physical): 512 bytes / 512 bytes
> +    I/O size (minimum/optimal): 512 bytes / 512 bytes
> +    Disk identifier: 0xf9e1616a
> +
> +            Device Boot      Start         End      Blocks   Id  System
> +    /dev/sdX1                 2048     7626751     3812352   83  Linux
> +
> +    Command (m for help): w
> +    The partition table has been altered!
> +
> +    Calling ioctl() to re-read partition table.
> +    Syncing disks.
> +
> +Copy images on the SD card
> +--------------------------
> +
> +    # dd if=output/images/rootfs.ext2 of=/dev/sdX1

 rootfs.ext4

 Also, I personally prefer to use cat rather than dd, it's generally faster.

> +    # dd if=output/images/u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
> +
> +
> +Finish
> +======
> +
> +Eject the SD card, insert it in the A20-OLinuXino-LIME board, and power it up.
> +
> diff --git a/configs/olimex_a20_olinuxino_defconfig b/configs/olimex_a20_olinuxino_defconfig
> new file mode 100644
> index 0000000..d59a2cc
> --- /dev/null
> +++ b/configs/olimex_a20_olinuxino_defconfig
> @@ -0,0 +1,41 @@
> +# Architecture
> +BR2_arm=y
> +BR2_cortex_a7=y
> +
> +# Kernel headers
> +BR2_KERNEL_HEADERS_4_0=y
> +
> +# System configuration
> +BR2_TARGET_GENERIC_HOSTNAME="a20-olinuxino"
> +BR2_TARGET_GENERIC_ISSUE="Welcome to use OLinuXino!"

 The 'use' is redundant here.


 Regards,
 Arnout

> +BR2_TARGET_GENERIC_GETTY=y
> +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
> +BR2_ROOTFS_POST_BUILD_SCRIPT="board/olimex/a20_olinuxino_lime/post-build.sh"
> +BR2_ROOTFS_POST_SCRIPT_ARGS="board/olimex/a20_olinuxino_lime/boot.cmd $(TARGET_DIR)/boot"
[snip]


-- 
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:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

  reply	other threads:[~2015-06-19 20:49 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-19 19:13 [Buildroot] [V2 0/4] A20-OLinuXino-Lime: new board Francois Perrad
2015-06-19 19:13 ` [Buildroot] [V2 1/4] sunxi-board: bump to version a6a4e94066f4ec6b26fc7060dc453a6bcf26a504 Francois Perrad
2015-06-21  4:42   ` Thomas Petazzoni
2015-06-19 19:13 ` [Buildroot] [V2 2/4] a10disp: bump to version v0.6.1 Francois Perrad
2015-06-21  4:43   ` Thomas Petazzoni
2015-06-19 19:13 ` [Buildroot] [V2 3/4] A20-OLinuXino-Lime: new board (mainline) Francois Perrad
2015-06-19 20:49   ` Arnout Vandecappelle [this message]
2015-06-22 12:23     ` Luca Ceresoli
2015-06-22 20:56       ` Yann E. MORIN
2015-06-22 21:22       ` Arnout Vandecappelle
2015-06-22 12:06   ` Luca Ceresoli
2015-06-19 19:13 ` [Buildroot] [V2 4/4] A20-OLinuXino-Lime: new board (mali) Francois Perrad
2015-06-19 20:08   ` Maxime Ripard
2015-06-20  5:28     ` François Perrad
2015-06-20  7:29       ` Maxime Ripard
2015-06-19 20:49   ` Arnout Vandecappelle
2015-06-20  5:39     ` François Perrad
2015-06-19 21:55   ` Arnout Vandecappelle
2015-06-20  5:33     ` François Perrad
2015-06-20  9:26       ` Arnout Vandecappelle

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=55848050.8010904@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox