summaryrefslogtreecommitdiffstats
path: root/board/olimex
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2015-06-26 12:06:56 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-06-28 15:30:42 +0200
commit7eeb2ab72017cdd6ec261157b3b7555f32f171c5 (patch)
tree6a59947192c8a345d959af821c06ebcb9ef3f18e /board/olimex
parente8fee6382430f36470a12b84ebb696dcf2a13ae7 (diff)
downloadbuildroot-7eeb2ab72017cdd6ec261157b3b7555f32f171c5.tar.gz
buildroot-7eeb2ab72017cdd6ec261157b3b7555f32f171c5.zip
configs/olimex_a20_olinuxino_lime: new board
This commit adds a new defconfig for the Olimex A20 OLinuxino Lime board, based on the 4.x mainline kernel. Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'board/olimex')
-rw-r--r--board/olimex/a20_olinuxino_lime/boot.cmd5
-rwxr-xr-xboard/olimex/a20_olinuxino_lime/post-build.sh8
-rw-r--r--board/olimex/a20_olinuxino_lime/readme.txt86
3 files changed, 99 insertions, 0 deletions
diff --git a/board/olimex/a20_olinuxino_lime/boot.cmd b/board/olimex/a20_olinuxino_lime/boot.cmd
new file mode 100644
index 0000000000..44d9239a94
--- /dev/null
+++ b/board/olimex/a20_olinuxino_lime/boot.cmd
@@ -0,0 +1,5 @@
+setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 ${extra}
+ext4load mmc 0 0x49000000 /boot/${fdtfile}
+ext4load mmc 0 0x46000000 /boot/zImage
+env set fdt_high ffffffff
+bootz 0x46000000 - 0x49000000
diff --git a/board/olimex/a20_olinuxino_lime/post-build.sh b/board/olimex/a20_olinuxino_lime/post-build.sh
new file mode 100755
index 0000000000..4e6fbec95a
--- /dev/null
+++ b/board/olimex/a20_olinuxino_lime/post-build.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+# args from BR2_ROOTFS_POST_SCRIPT_ARGS
+# $2 path of boot.cmd
+# $3 output directory for boot.scr
+
+MKIMAGE=$HOST_DIR/usr/bin/mkimage
+
+$MKIMAGE -A arm -O linux -T script -C none -d $2 $3/boot.scr
diff --git a/board/olimex/a20_olinuxino_lime/readme.txt b/board/olimex/a20_olinuxino_lime/readme.txt
new file mode 100644
index 0000000000..3fc9c029bd
--- /dev/null
+++ b/board/olimex/a20_olinuxino_lime/readme.txt
@@ -0,0 +1,86 @@
+A20-OLinuXino-LIME
+
+Intro
+=====
+
+This is a open hardware board,
+see https://www.olimex.com/Products/OLinuXino/open-source-hardware
+
+How to build it
+===============
+
+ $ make olimex_a20_olinuxino_lime_defconfig
+
+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 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
+ # 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.
+
OpenPOWER on IntegriCloud