* [Buildroot] [PATCH 1/9] olimex/a20_olinuxino: update readme.txt with lime2 info
2016-02-23 0:24 [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates Luca Ceresoli
@ 2016-02-23 0:24 ` Luca Ceresoli
2016-02-24 20:40 ` Peter Korsgaard
2016-02-23 0:24 ` [Buildroot] [PATCH 2/9] olimex_a20_olinuxino_micro: bump linux to 4.4.2 Luca Ceresoli
` (9 subsequent siblings)
10 siblings, 1 reply; 22+ messages in thread
From: Luca Ceresoli @ 2016-02-23 0:24 UTC (permalink / raw)
To: buildroot
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
board/olimex/a20_olinuxino/readme.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/board/olimex/a20_olinuxino/readme.txt b/board/olimex/a20_olinuxino/readme.txt
index 7998aa12e6a4..ab7ab1ec2426 100644
--- a/board/olimex/a20_olinuxino/readme.txt
+++ b/board/olimex/a20_olinuxino/readme.txt
@@ -3,12 +3,13 @@ A20-OLinuXino-LIME and A20-OLinuXino-MICRO
Intro
=====
-These are open hardware boards, both based an the AllWinners A20 SoC.
+These are open hardware boards, all based an the AllWinners A20 SoC.
for more details about the boards see the following pages:
- https://www.olimex.com/Products/OLinuXino/open-source-hardware
- https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-MICRO/
- https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME/
+ - https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2/
The following defconfigs are available:
- olimex_a20_olinuxino_micro_defconfig
--
1.9.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* [Buildroot] [PATCH 1/9] olimex/a20_olinuxino: update readme.txt with lime2 info
2016-02-23 0:24 ` [Buildroot] [PATCH 1/9] olimex/a20_olinuxino: update readme.txt with lime2 info Luca Ceresoli
@ 2016-02-24 20:40 ` Peter Korsgaard
0 siblings, 0 replies; 22+ messages in thread
From: Peter Korsgaard @ 2016-02-24 20:40 UTC (permalink / raw)
To: buildroot
>>>>> "Luca" == Luca Ceresoli <luca@lucaceresoli.net> writes:
> Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
> ---
> board/olimex/a20_olinuxino/readme.txt | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
> diff --git a/board/olimex/a20_olinuxino/readme.txt b/board/olimex/a20_olinuxino/readme.txt
> index 7998aa12e6a4..ab7ab1ec2426 100644
> --- a/board/olimex/a20_olinuxino/readme.txt
> +++ b/board/olimex/a20_olinuxino/readme.txt
> @@ -3,12 +3,13 @@ A20-OLinuXino-LIME and A20-OLinuXino-MICRO
> Intro
> =====
> -These are open hardware boards, both based an the AllWinners A20 SoC.
> +These are open hardware boards, all based an the AllWinners A20 SoC.
s/an /on /, and the company is called Allwinner (or Allwinner
Technology).
Committed to next with that fixed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 2/9] olimex_a20_olinuxino_micro: bump linux to 4.4.2
2016-02-23 0:24 [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates Luca Ceresoli
2016-02-23 0:24 ` [Buildroot] [PATCH 1/9] olimex/a20_olinuxino: update readme.txt with lime2 info Luca Ceresoli
@ 2016-02-23 0:24 ` Luca Ceresoli
2016-02-24 20:42 ` Peter Korsgaard
2016-02-23 0:24 ` [Buildroot] [PATCH 3/9] olimex_a20_olinuxino_micro: bump u-boot to 2016.01 Luca Ceresoli
` (8 subsequent siblings)
10 siblings, 1 reply; 22+ messages in thread
From: Luca Ceresoli @ 2016-02-23 0:24 UTC (permalink / raw)
To: buildroot
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
configs/olimex_a20_olinuxino_micro_defconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/configs/olimex_a20_olinuxino_micro_defconfig b/configs/olimex_a20_olinuxino_micro_defconfig
index da2fd8a43a8f..a641ad7d2640 100644
--- a/configs/olimex_a20_olinuxino_micro_defconfig
+++ b/configs/olimex_a20_olinuxino_micro_defconfig
@@ -4,8 +4,8 @@ BR2_cortex_a7=y
BR2_ARM_EABIHF=y
BR2_ARM_FPU_NEON_VFPV4=y
-# Linux headers same as kernel, a 4.0 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_0=y
+# Linux headers same as kernel, a 4.4 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y
# System configuration
BR2_TARGET_GENERIC_HOSTNAME="a20-olinuxino"
@@ -18,7 +18,7 @@ BR2_ROOTFS_POST_SCRIPT_ARGS="board/olimex/a20_olinuxino/boot.cmd $(TARGET_DIR)/b
# Kernel
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.0.5"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.4.2"
BR2_LINUX_KERNEL_USE_DEFCONFIG=y
BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
BR2_LINUX_KERNEL_ZIMAGE=y
--
1.9.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* [Buildroot] [PATCH 3/9] olimex_a20_olinuxino_micro: bump u-boot to 2016.01
2016-02-23 0:24 [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates Luca Ceresoli
2016-02-23 0:24 ` [Buildroot] [PATCH 1/9] olimex/a20_olinuxino: update readme.txt with lime2 info Luca Ceresoli
2016-02-23 0:24 ` [Buildroot] [PATCH 2/9] olimex_a20_olinuxino_micro: bump linux to 4.4.2 Luca Ceresoli
@ 2016-02-23 0:24 ` Luca Ceresoli
2016-02-24 20:43 ` Peter Korsgaard
2016-02-23 0:24 ` [Buildroot] [PATCH 4/9] olimex_a20_olinuxino_micro: initialize the network with DHCP Luca Ceresoli
` (7 subsequent siblings)
10 siblings, 1 reply; 22+ messages in thread
From: Luca Ceresoli @ 2016-02-23 0:24 UTC (permalink / raw)
To: buildroot
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
configs/olimex_a20_olinuxino_micro_defconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configs/olimex_a20_olinuxino_micro_defconfig b/configs/olimex_a20_olinuxino_micro_defconfig
index a641ad7d2640..6d05f74bea8f 100644
--- a/configs/olimex_a20_olinuxino_micro_defconfig
+++ b/configs/olimex_a20_olinuxino_micro_defconfig
@@ -35,7 +35,8 @@ BR2_TARGET_ROOTFS_EXT2_4=y
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BOARDNAME="A20-OLinuXino_MICRO"
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2015.04"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.01"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
BR2_TARGET_UBOOT_FORMAT_BIN=y
BR2_TARGET_UBOOT_SPL=y
BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
--
1.9.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* [Buildroot] [PATCH 4/9] olimex_a20_olinuxino_micro: initialize the network with DHCP
2016-02-23 0:24 [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates Luca Ceresoli
` (2 preceding siblings ...)
2016-02-23 0:24 ` [Buildroot] [PATCH 3/9] olimex_a20_olinuxino_micro: bump u-boot to 2016.01 Luca Ceresoli
@ 2016-02-23 0:24 ` Luca Ceresoli
2016-02-24 20:43 ` Peter Korsgaard
2016-02-23 0:24 ` [Buildroot] [PATCH 5/9] olimex_a20_olinuxino_micro: remove redundant defconfig lines Luca Ceresoli
` (6 subsequent siblings)
10 siblings, 1 reply; 22+ messages in thread
From: Luca Ceresoli @ 2016-02-23 0:24 UTC (permalink / raw)
To: buildroot
To allow a more complete "out-of-the-box" startup with the defconfig,
enable automatic network configuration of eth0 using DHCP.
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
configs/olimex_a20_olinuxino_micro_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/olimex_a20_olinuxino_micro_defconfig b/configs/olimex_a20_olinuxino_micro_defconfig
index 6d05f74bea8f..420252c2c36b 100644
--- a/configs/olimex_a20_olinuxino_micro_defconfig
+++ b/configs/olimex_a20_olinuxino_micro_defconfig
@@ -12,6 +12,7 @@ BR2_TARGET_GENERIC_HOSTNAME="a20-olinuxino"
BR2_TARGET_GENERIC_ISSUE="Welcome to OLinuXino!"
BR2_TARGET_GENERIC_GETTY=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_SYSTEM_DHCP="eth0"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/olimex/a20_olinuxino/post-build.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="board/olimex/a20_olinuxino/boot.cmd $(TARGET_DIR)/boot"
--
1.9.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* [Buildroot] [PATCH 5/9] olimex_a20_olinuxino_micro: remove redundant defconfig lines
2016-02-23 0:24 [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates Luca Ceresoli
` (3 preceding siblings ...)
2016-02-23 0:24 ` [Buildroot] [PATCH 4/9] olimex_a20_olinuxino_micro: initialize the network with DHCP Luca Ceresoli
@ 2016-02-23 0:24 ` Luca Ceresoli
2016-02-24 20:47 ` Peter Korsgaard
2016-02-23 0:24 ` [Buildroot] [PATCH 6/9] olimex_a20_olinuxino_micro: update to use genimage Luca Ceresoli
` (5 subsequent siblings)
10 siblings, 1 reply; 22+ messages in thread
From: Luca Ceresoli @ 2016-02-23 0:24 UTC (permalink / raw)
To: buildroot
These defconfig options are set to their default values, so they are
redundant and can be removed without effect.
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
configs/olimex_a20_olinuxino_micro_defconfig | 4 ----
1 file changed, 4 deletions(-)
diff --git a/configs/olimex_a20_olinuxino_micro_defconfig b/configs/olimex_a20_olinuxino_micro_defconfig
index 420252c2c36b..f84da343eb8c 100644
--- a/configs/olimex_a20_olinuxino_micro_defconfig
+++ b/configs/olimex_a20_olinuxino_micro_defconfig
@@ -1,7 +1,6 @@
# Architecture
BR2_arm=y
BR2_cortex_a7=y
-BR2_ARM_EABIHF=y
BR2_ARM_FPU_NEON_VFPV4=y
# Linux headers same as kernel, a 4.4 series
@@ -10,7 +9,6 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y
# System configuration
BR2_TARGET_GENERIC_HOSTNAME="a20-olinuxino"
BR2_TARGET_GENERIC_ISSUE="Welcome to OLinuXino!"
-BR2_TARGET_GENERIC_GETTY=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_SYSTEM_DHCP="eth0"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/olimex/a20_olinuxino/post-build.sh"
@@ -20,7 +18,6 @@ BR2_ROOTFS_POST_SCRIPT_ARGS="board/olimex/a20_olinuxino/boot.cmd $(TARGET_DIR)/b
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.4.2"
-BR2_LINUX_KERNEL_USE_DEFCONFIG=y
BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
BR2_LINUX_KERNEL_ZIMAGE=y
BR2_LINUX_KERNEL_DTS_SUPPORT=y
@@ -38,7 +35,6 @@ BR2_TARGET_UBOOT_BOARDNAME="A20-OLinuXino_MICRO"
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.01"
BR2_TARGET_UBOOT_NEEDS_DTC=y
-BR2_TARGET_UBOOT_FORMAT_BIN=y
BR2_TARGET_UBOOT_SPL=y
BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
--
1.9.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* [Buildroot] [PATCH 6/9] olimex_a20_olinuxino_micro: update to use genimage
2016-02-23 0:24 [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates Luca Ceresoli
` (4 preceding siblings ...)
2016-02-23 0:24 ` [Buildroot] [PATCH 5/9] olimex_a20_olinuxino_micro: remove redundant defconfig lines Luca Ceresoli
@ 2016-02-23 0:24 ` Luca Ceresoli
2016-02-24 20:51 ` Peter Korsgaard
2016-02-23 0:24 ` [Buildroot] [PATCH 7/9] olimex_a20_olinuxino_lime: " Luca Ceresoli
` (4 subsequent siblings)
10 siblings, 1 reply; 22+ messages in thread
From: Luca Ceresoli @ 2016-02-23 0:24 UTC (permalink / raw)
To: buildroot
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
board/olimex/a20_olinuxino/genimage.cfg | 16 ++++++++++++++++
board/olimex/a20_olinuxino/post-image.sh | 16 ++++++++++++++++
board/olimex/a20_olinuxino/readme.txt | 17 +++++++++++++++--
configs/olimex_a20_olinuxino_micro_defconfig | 2 ++
4 files changed, 49 insertions(+), 2 deletions(-)
create mode 100644 board/olimex/a20_olinuxino/genimage.cfg
create mode 100755 board/olimex/a20_olinuxino/post-image.sh
diff --git a/board/olimex/a20_olinuxino/genimage.cfg b/board/olimex/a20_olinuxino/genimage.cfg
new file mode 100644
index 000000000000..8ea24ccab8f3
--- /dev/null
+++ b/board/olimex/a20_olinuxino/genimage.cfg
@@ -0,0 +1,16 @@
+image sdcard.img {
+ hdimage {
+ }
+
+ partition u-boot {
+ in-partition-table = "no"
+ image = "u-boot-sunxi-with-spl.bin"
+ offset = 8192
+ }
+
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext4"
+ size = 512M
+ }
+}
diff --git a/board/olimex/a20_olinuxino/post-image.sh b/board/olimex/a20_olinuxino/post-image.sh
new file mode 100755
index 000000000000..9cca1b1789ec
--- /dev/null
+++ b/board/olimex/a20_olinuxino/post-image.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
+GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
+
+rm -rf "${GENIMAGE_TMP}"
+
+genimage \
+ --rootpath "${TARGET_DIR}" \
+ --tmppath "${GENIMAGE_TMP}" \
+ --inputpath "${BINARIES_DIR}" \
+ --outputpath "${BINARIES_DIR}" \
+ --config "${GENIMAGE_CFG}"
+
+exit $?
diff --git a/board/olimex/a20_olinuxino/readme.txt b/board/olimex/a20_olinuxino/readme.txt
index ab7ab1ec2426..feba9daefc6f 100644
--- a/board/olimex/a20_olinuxino/readme.txt
+++ b/board/olimex/a20_olinuxino/readme.txt
@@ -52,6 +52,7 @@ After building, you should get a tree like this:
+-- rootfs.ext2
+-- rootfs.ext4 -> rootfs.ext2
+-- script.bin (lime_mali)
+ +-- sdcard.img (micro)
+-- sun7i-a20-olinuxino-lime.dtb (lime, mainline)
+-- sun7i-a20-olinuxino-lime2.dtb (lime2, mainline)
+-- sun7i-a20-olinuxino-micro.dtb (micro, mainline)
@@ -60,8 +61,20 @@ After building, you should get a tree like this:
`-- zImage
-How to write the SD card
-========================
+How to write the SD card - boards with sdcard.img
+=================================================
+
+The sdcard.img file is a complete bootable image ready to be written
+on the boot medium. To install it, simply copy the image to a uSD
+card:
+
+ # dd if=output/images/sdcard.img of=/dev/sdX
+
+Where 'sdX' is the device node of the uSD.
+
+
+How to write the SD card - other boards
+=======================================
Prepare the SD card
diff --git a/configs/olimex_a20_olinuxino_micro_defconfig b/configs/olimex_a20_olinuxino_micro_defconfig
index f84da343eb8c..3574a75baf49 100644
--- a/configs/olimex_a20_olinuxino_micro_defconfig
+++ b/configs/olimex_a20_olinuxino_micro_defconfig
@@ -12,6 +12,7 @@ BR2_TARGET_GENERIC_ISSUE="Welcome to OLinuXino!"
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_SYSTEM_DHCP="eth0"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/olimex/a20_olinuxino/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/olimex/a20_olinuxino/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="board/olimex/a20_olinuxino/boot.cmd $(TARGET_DIR)/boot"
# Kernel
@@ -39,4 +40,5 @@ BR2_TARGET_UBOOT_SPL=y
BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
# Additional tools
+BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_HOST_UBOOT_TOOLS=y
--
1.9.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* [Buildroot] [PATCH 6/9] olimex_a20_olinuxino_micro: update to use genimage
2016-02-23 0:24 ` [Buildroot] [PATCH 6/9] olimex_a20_olinuxino_micro: update to use genimage Luca Ceresoli
@ 2016-02-24 20:51 ` Peter Korsgaard
2016-02-24 22:39 ` Luca Ceresoli
0 siblings, 1 reply; 22+ messages in thread
From: Peter Korsgaard @ 2016-02-24 20:51 UTC (permalink / raw)
To: buildroot
>>>>> "Luca" == Luca Ceresoli <luca@lucaceresoli.net> writes:
> Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
> ---
> board/olimex/a20_olinuxino/genimage.cfg | 16 ++++++++++++++++
> board/olimex/a20_olinuxino/post-image.sh | 16 ++++++++++++++++
> board/olimex/a20_olinuxino/readme.txt | 17 +++++++++++++++--
> configs/olimex_a20_olinuxino_micro_defconfig | 2 ++
> 4 files changed, 49 insertions(+), 2 deletions(-)
> create mode 100644 board/olimex/a20_olinuxino/genimage.cfg
> create mode 100755 board/olimex/a20_olinuxino/post-image.sh
> diff --git a/board/olimex/a20_olinuxino/genimage.cfg b/board/olimex/a20_olinuxino/genimage.cfg
> new file mode 100644
> index 000000000000..8ea24ccab8f3
> --- /dev/null
> +++ b/board/olimex/a20_olinuxino/genimage.cfg
> @@ -0,0 +1,16 @@
> +image sdcard.img {
> + hdimage {
> + }
> +
> + partition u-boot {
> + in-partition-table = "no"
> + image = "u-boot-sunxi-with-spl.bin"
> + offset = 8192
> + }
> +
> + partition rootfs {
> + partition-type = 0x83
> + image = "rootfs.ext4"
> + size = 512M
> + }
> +}
What about the dtb file? The other Allwinner based boards store this in
a first vfat partition.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 22+ messages in thread* [Buildroot] [PATCH 6/9] olimex_a20_olinuxino_micro: update to use genimage
2016-02-24 20:51 ` Peter Korsgaard
@ 2016-02-24 22:39 ` Luca Ceresoli
2016-02-24 22:42 ` Peter Korsgaard
0 siblings, 1 reply; 22+ messages in thread
From: Luca Ceresoli @ 2016-02-24 22:39 UTC (permalink / raw)
To: buildroot
Hi Peter,
On 24/02/2016 21:51, Peter Korsgaard wrote:
>>>>>> "Luca" == Luca Ceresoli <luca@lucaceresoli.net> writes:
>
> > Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
> > ---
> > board/olimex/a20_olinuxino/genimage.cfg | 16 ++++++++++++++++
> > board/olimex/a20_olinuxino/post-image.sh | 16 ++++++++++++++++
> > board/olimex/a20_olinuxino/readme.txt | 17 +++++++++++++++--
> > configs/olimex_a20_olinuxino_micro_defconfig | 2 ++
> > 4 files changed, 49 insertions(+), 2 deletions(-)
> > create mode 100644 board/olimex/a20_olinuxino/genimage.cfg
> > create mode 100755 board/olimex/a20_olinuxino/post-image.sh
>
> > diff --git a/board/olimex/a20_olinuxino/genimage.cfg b/board/olimex/a20_olinuxino/genimage.cfg
> > new file mode 100644
> > index 000000000000..8ea24ccab8f3
> > --- /dev/null
> > +++ b/board/olimex/a20_olinuxino/genimage.cfg
> > @@ -0,0 +1,16 @@
> > +image sdcard.img {
> > + hdimage {
> > + }
> > +
> > + partition u-boot {
> > + in-partition-table = "no"
> > + image = "u-boot-sunxi-with-spl.bin"
> > + offset = 8192
> > + }
> > +
> > + partition rootfs {
> > + partition-type = 0x83
> > + image = "rootfs.ext4"
> > + size = 512M
> > + }
> > +}
>
> What about the dtb file? The other Allwinner based boards store this in
> a first vfat partition.
U-Boot grabs it from the /boot directory on the ext4 partition:
$ cat board/olimex/a20_olinuxino/boot.cmd
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
$
This behaviour has always been in place for the A20 OLinuXino series.
This patch does not change how these boards boot, it just automates
the manual writing instructions with genimage.
--
Luca
^ permalink raw reply [flat|nested] 22+ messages in thread* [Buildroot] [PATCH 6/9] olimex_a20_olinuxino_micro: update to use genimage
2016-02-24 22:39 ` Luca Ceresoli
@ 2016-02-24 22:42 ` Peter Korsgaard
0 siblings, 0 replies; 22+ messages in thread
From: Peter Korsgaard @ 2016-02-24 22:42 UTC (permalink / raw)
To: buildroot
>>>>> "Luca" == Luca Ceresoli <luca@lucaceresoli.net> writes:
> Hi Peter,
>> What about the dtb file? The other Allwinner based boards store this in
>> a first vfat partition.
> U-Boot grabs it from the /boot directory on the ext4 partition:
> $ cat board/olimex/a20_olinuxino/boot.cmd
> 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
> $
> This behaviour has always been in place for the A20 OLinuXino series.
> This patch does not change how these boards boot, it just automates
> the manual writing instructions with genimage.
Ahh, I missed that - Thanks.
--
Venlig hilsen,
Peter Korsgaard
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 7/9] olimex_a20_olinuxino_lime: update to use genimage
2016-02-23 0:24 [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates Luca Ceresoli
` (5 preceding siblings ...)
2016-02-23 0:24 ` [Buildroot] [PATCH 6/9] olimex_a20_olinuxino_micro: update to use genimage Luca Ceresoli
@ 2016-02-23 0:24 ` Luca Ceresoli
2016-02-24 17:41 ` François Perrad
2016-02-23 0:24 ` [Buildroot] [PATCH 8/9] olimex_a20_olinuxino_lime2: " Luca Ceresoli
` (3 subsequent siblings)
10 siblings, 1 reply; 22+ messages in thread
From: Luca Ceresoli @ 2016-02-23 0:24 UTC (permalink / raw)
To: buildroot
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Francois Perrad <fperrad@gmail.com>
---
board/olimex/a20_olinuxino/readme.txt | 2 +-
configs/olimex_a20_olinuxino_lime_defconfig | 2 ++
configs/olimex_a20_olinuxino_lime_mali_defconfig | 2 ++
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/board/olimex/a20_olinuxino/readme.txt b/board/olimex/a20_olinuxino/readme.txt
index feba9daefc6f..18c069e1077e 100644
--- a/board/olimex/a20_olinuxino/readme.txt
+++ b/board/olimex/a20_olinuxino/readme.txt
@@ -52,7 +52,7 @@ After building, you should get a tree like this:
+-- rootfs.ext2
+-- rootfs.ext4 -> rootfs.ext2
+-- script.bin (lime_mali)
- +-- sdcard.img (micro)
+ +-- sdcard.img (micro, lime)
+-- sun7i-a20-olinuxino-lime.dtb (lime, mainline)
+-- sun7i-a20-olinuxino-lime2.dtb (lime2, mainline)
+-- sun7i-a20-olinuxino-micro.dtb (micro, mainline)
diff --git a/configs/olimex_a20_olinuxino_lime_defconfig b/configs/olimex_a20_olinuxino_lime_defconfig
index e6c33c82d907..b2127672d74a 100644
--- a/configs/olimex_a20_olinuxino_lime_defconfig
+++ b/configs/olimex_a20_olinuxino_lime_defconfig
@@ -12,6 +12,7 @@ BR2_TARGET_GENERIC_ISSUE="Welcome to OLinuXino!"
BR2_TARGET_GENERIC_GETTY=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/olimex/a20_olinuxino/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/olimex/a20_olinuxino/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="board/olimex/a20_olinuxino/boot.cmd $(TARGET_DIR)/boot"
# Kernel
@@ -41,4 +42,5 @@ BR2_TARGET_UBOOT_SPL=y
BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
# Additional tools
+BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_HOST_UBOOT_TOOLS=y
diff --git a/configs/olimex_a20_olinuxino_lime_mali_defconfig b/configs/olimex_a20_olinuxino_lime_mali_defconfig
index ca71b55bcff8..737c690930e1 100644
--- a/configs/olimex_a20_olinuxino_lime_mali_defconfig
+++ b/configs/olimex_a20_olinuxino_lime_mali_defconfig
@@ -12,6 +12,7 @@ BR2_TARGET_GENERIC_ISSUE="Welcome to OLinuXino!"
BR2_TARGET_GENERIC_GETTY=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/olimex/a20_olinuxino/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/olimex/a20_olinuxino/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="board/olimex/a20_olinuxino/boot-mali.cmd $(TARGET_DIR)/boot"
# Kernel
@@ -45,4 +46,5 @@ BR2_TARGET_UBOOT_SPL=y
BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
# Additional tools
+BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_HOST_UBOOT_TOOLS=y
--
1.9.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* [Buildroot] [PATCH 7/9] olimex_a20_olinuxino_lime: update to use genimage
2016-02-23 0:24 ` [Buildroot] [PATCH 7/9] olimex_a20_olinuxino_lime: " Luca Ceresoli
@ 2016-02-24 17:41 ` François Perrad
0 siblings, 0 replies; 22+ messages in thread
From: François Perrad @ 2016-02-24 17:41 UTC (permalink / raw)
To: buildroot
2016-02-23 1:24 GMT+01:00 Luca Ceresoli <luca@lucaceresoli.net>:
> Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Tested-by: Francois Perrad <fperrad@gmail.com>
> Cc: Francois Perrad <fperrad@gmail.com>
> ---
> board/olimex/a20_olinuxino/readme.txt | 2 +-
> configs/olimex_a20_olinuxino_lime_defconfig | 2 ++
> configs/olimex_a20_olinuxino_lime_mali_defconfig | 2 ++
> 3 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/board/olimex/a20_olinuxino/readme.txt b/board/olimex/a20_olinuxino/readme.txt
> index feba9daefc6f..18c069e1077e 100644
> --- a/board/olimex/a20_olinuxino/readme.txt
> +++ b/board/olimex/a20_olinuxino/readme.txt
> @@ -52,7 +52,7 @@ After building, you should get a tree like this:
> +-- rootfs.ext2
> +-- rootfs.ext4 -> rootfs.ext2
> +-- script.bin (lime_mali)
> - +-- sdcard.img (micro)
> + +-- sdcard.img (micro, lime)
> +-- sun7i-a20-olinuxino-lime.dtb (lime, mainline)
> +-- sun7i-a20-olinuxino-lime2.dtb (lime2, mainline)
> +-- sun7i-a20-olinuxino-micro.dtb (micro, mainline)
> diff --git a/configs/olimex_a20_olinuxino_lime_defconfig b/configs/olimex_a20_olinuxino_lime_defconfig
> index e6c33c82d907..b2127672d74a 100644
> --- a/configs/olimex_a20_olinuxino_lime_defconfig
> +++ b/configs/olimex_a20_olinuxino_lime_defconfig
> @@ -12,6 +12,7 @@ BR2_TARGET_GENERIC_ISSUE="Welcome to OLinuXino!"
> BR2_TARGET_GENERIC_GETTY=y
> BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
> BR2_ROOTFS_POST_BUILD_SCRIPT="board/olimex/a20_olinuxino/post-build.sh"
> +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/olimex/a20_olinuxino/post-image.sh"
> BR2_ROOTFS_POST_SCRIPT_ARGS="board/olimex/a20_olinuxino/boot.cmd $(TARGET_DIR)/boot"
>
> # Kernel
> @@ -41,4 +42,5 @@ BR2_TARGET_UBOOT_SPL=y
> BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
>
> # Additional tools
> +BR2_PACKAGE_HOST_GENIMAGE=y
> BR2_PACKAGE_HOST_UBOOT_TOOLS=y
> diff --git a/configs/olimex_a20_olinuxino_lime_mali_defconfig b/configs/olimex_a20_olinuxino_lime_mali_defconfig
> index ca71b55bcff8..737c690930e1 100644
> --- a/configs/olimex_a20_olinuxino_lime_mali_defconfig
> +++ b/configs/olimex_a20_olinuxino_lime_mali_defconfig
> @@ -12,6 +12,7 @@ BR2_TARGET_GENERIC_ISSUE="Welcome to OLinuXino!"
> BR2_TARGET_GENERIC_GETTY=y
> BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
> BR2_ROOTFS_POST_BUILD_SCRIPT="board/olimex/a20_olinuxino/post-build.sh"
> +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/olimex/a20_olinuxino/post-image.sh"
> BR2_ROOTFS_POST_SCRIPT_ARGS="board/olimex/a20_olinuxino/boot-mali.cmd $(TARGET_DIR)/boot"
>
> # Kernel
> @@ -45,4 +46,5 @@ BR2_TARGET_UBOOT_SPL=y
> BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
>
> # Additional tools
> +BR2_PACKAGE_HOST_GENIMAGE=y
> BR2_PACKAGE_HOST_UBOOT_TOOLS=y
> --
> 1.9.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 8/9] olimex_a20_olinuxino_lime2: update to use genimage
2016-02-23 0:24 [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates Luca Ceresoli
` (6 preceding siblings ...)
2016-02-23 0:24 ` [Buildroot] [PATCH 7/9] olimex_a20_olinuxino_lime: " Luca Ceresoli
@ 2016-02-23 0:24 ` Luca Ceresoli
2016-02-23 0:24 ` [Buildroot] [PATCH 9/9] olimex_a20_olinuxino_*: remove old SD writing instructions Luca Ceresoli
` (2 subsequent siblings)
10 siblings, 0 replies; 22+ messages in thread
From: Luca Ceresoli @ 2016-02-23 0:24 UTC (permalink / raw)
To: buildroot
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Jan Viktorin <viktorin@rehivetech.com>
---
board/olimex/a20_olinuxino/readme.txt | 2 +-
configs/olimex_a20_olinuxino_lime2_defconfig | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/board/olimex/a20_olinuxino/readme.txt b/board/olimex/a20_olinuxino/readme.txt
index 18c069e1077e..7cfb51b5e8bf 100644
--- a/board/olimex/a20_olinuxino/readme.txt
+++ b/board/olimex/a20_olinuxino/readme.txt
@@ -52,7 +52,7 @@ After building, you should get a tree like this:
+-- rootfs.ext2
+-- rootfs.ext4 -> rootfs.ext2
+-- script.bin (lime_mali)
- +-- sdcard.img (micro, lime)
+ +-- sdcard.img
+-- sun7i-a20-olinuxino-lime.dtb (lime, mainline)
+-- sun7i-a20-olinuxino-lime2.dtb (lime2, mainline)
+-- sun7i-a20-olinuxino-micro.dtb (micro, mainline)
diff --git a/configs/olimex_a20_olinuxino_lime2_defconfig b/configs/olimex_a20_olinuxino_lime2_defconfig
index 1a2bb458dd7d..1e3fa4a1d22a 100644
--- a/configs/olimex_a20_olinuxino_lime2_defconfig
+++ b/configs/olimex_a20_olinuxino_lime2_defconfig
@@ -7,6 +7,7 @@ BR2_TARGET_GENERIC_HOSTNAME="a20-olinuxino"
BR2_TARGET_GENERIC_ISSUE="Welcome to OLinuXino!"
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/olimex/a20_olinuxino/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/olimex/a20_olinuxino/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="board/olimex/a20_olinuxino/boot.cmd $(TARGET_DIR)/boot"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
@@ -28,4 +29,5 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2015.01"
BR2_TARGET_UBOOT_SPL=y
BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
+BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_HOST_UBOOT_TOOLS=y
--
1.9.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* [Buildroot] [PATCH 9/9] olimex_a20_olinuxino_*: remove old SD writing instructions
2016-02-23 0:24 [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates Luca Ceresoli
` (7 preceding siblings ...)
2016-02-23 0:24 ` [Buildroot] [PATCH 8/9] olimex_a20_olinuxino_lime2: " Luca Ceresoli
@ 2016-02-23 0:24 ` Luca Ceresoli
2016-02-23 17:59 ` [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates François Perrad
2016-02-24 22:45 ` Peter Korsgaard
10 siblings, 0 replies; 22+ messages in thread
From: Luca Ceresoli @ 2016-02-23 0:24 UTC (permalink / raw)
To: buildroot
Now that all the boards have been converted to use genimage, the old
instructions on how to partition and write an SD card are useless.
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
board/olimex/a20_olinuxino/readme.txt | 58 ++---------------------------------
1 file changed, 2 insertions(+), 56 deletions(-)
diff --git a/board/olimex/a20_olinuxino/readme.txt b/board/olimex/a20_olinuxino/readme.txt
index 7cfb51b5e8bf..11d5628d44cb 100644
--- a/board/olimex/a20_olinuxino/readme.txt
+++ b/board/olimex/a20_olinuxino/readme.txt
@@ -61,8 +61,8 @@ After building, you should get a tree like this:
`-- zImage
-How to write the SD card - boards with sdcard.img
-=================================================
+How to write the SD card
+========================
The sdcard.img file is a complete bootable image ready to be written
on the boot medium. To install it, simply copy the image to a uSD
@@ -72,59 +72,5 @@ card:
Where 'sdX' is the device node of the uSD.
-
-How to write the SD card - other boards
-=======================================
-
-
-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 board, and power it up.
--
1.9.1
^ permalink raw reply related [flat|nested] 22+ messages in thread* [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates
2016-02-23 0:24 [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates Luca Ceresoli
` (8 preceding siblings ...)
2016-02-23 0:24 ` [Buildroot] [PATCH 9/9] olimex_a20_olinuxino_*: remove old SD writing instructions Luca Ceresoli
@ 2016-02-23 17:59 ` François Perrad
2016-02-24 22:46 ` Peter Korsgaard
2016-02-24 22:45 ` Peter Korsgaard
10 siblings, 1 reply; 22+ messages in thread
From: François Perrad @ 2016-02-23 17:59 UTC (permalink / raw)
To: buildroot
2016-02-23 1:24 GMT+01:00 Luca Ceresoli <luca@lucaceresoli.net>:
> Hi,
>
> here's a series of updates to the Olimex OlinuXino A20 board support
> in Buildroot.
>
> Patches 1 and 5 are just cleanups.
>
> Patches 2-4 revive the -MICRO board by upgrading the kernel and U-Boot
> and enabling DHCP autoconfiguration.
>
> Patch 6 enables genimage to generate an SD card image. It also
> documents how to write the SD, but the old, manual SD writing
> instructions are not removed since they are still needed for the -LIME
> and -LIME2 boards.
>
> Everything up to here is build- and run-time tested. Following patches
> are build-tested only since I don't own these boards.
>
> Patches 7 and 8 enable genimage for the other two boards, and patch 9
> removes the manual SD card writing instructions.
>
> Francois, Jan, or anybody having acces to these boards, if you could
> test patches 7 and 8 report whether they work, you would help in
> making simpler and more uniform the support for the whole family of
> boards. Thanks!
>
another cleanup, in configs/olimex_a20_olinuxino_lime2_defconfig these
3 lines could be removed:
BR2_PACKAGE_SUNXI_TOOLS=y
BR2_PACKAGE_SUNXI_BOARDS=y
BR2_PACKAGE_SUNXI_BOARDS_FEX_FILE="a20/a20-olinuxino_lime.fex"
there are only needed with a linux-sunxi kernel, like in
configs/olimex_a20_olinuxino_lime_mali_defconfig
Fran?ois
> Luca
>
>
> Luca Ceresoli (9):
> olimex/a20_olinuxino: update readme.txt with lime2 info
> olimex_a20_olinuxino_micro: bump linux to 4.4.2
> olimex_a20_olinuxino_micro: bump u-boot to 2016.01
> olimex_a20_olinuxino_micro: initialize the network with DHCP
> olimex_a20_olinuxino_micro: remove redundant defconfig lines
> olimex_a20_olinuxino_micro: update to use genimage
> olimex_a20_olinuxino_lime: update to use genimage
> olimex_a20_olinuxino_lime2: update to use genimage
> olimex_a20_olinuxino_*: remove old SD writing instructions
>
> board/olimex/a20_olinuxino/genimage.cfg | 16 +++++++
> board/olimex/a20_olinuxino/post-image.sh | 16 +++++++
> board/olimex/a20_olinuxino/readme.txt | 56 ++++--------------------
> configs/olimex_a20_olinuxino_lime2_defconfig | 2 +
> configs/olimex_a20_olinuxino_lime_defconfig | 2 +
> configs/olimex_a20_olinuxino_lime_mali_defconfig | 2 +
> configs/olimex_a20_olinuxino_micro_defconfig | 16 +++----
> 7 files changed, 54 insertions(+), 56 deletions(-)
> create mode 100644 board/olimex/a20_olinuxino/genimage.cfg
> create mode 100755 board/olimex/a20_olinuxino/post-image.sh
>
> --
> 1.9.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 22+ messages in thread* [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates
2016-02-23 0:24 [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates Luca Ceresoli
` (9 preceding siblings ...)
2016-02-23 17:59 ` [Buildroot] [PATCH 0/9] Olimex A20 OlinuXino updates François Perrad
@ 2016-02-24 22:45 ` Peter Korsgaard
10 siblings, 0 replies; 22+ messages in thread
From: Peter Korsgaard @ 2016-02-24 22:45 UTC (permalink / raw)
To: buildroot
>>>>> "Luca" == Luca Ceresoli <luca@lucaceresoli.net> writes:
> Hi,
> here's a series of updates to the Olimex OlinuXino A20 board support
> in Buildroot.
> Patches 1 and 5 are just cleanups.
> Patches 2-4 revive the -MICRO board by upgrading the kernel and U-Boot
> and enabling DHCP autoconfiguration.
> Patch 6 enables genimage to generate an SD card image. It also
> documents how to write the SD, but the old, manual SD writing
> instructions are not removed since they are still needed for the -LIME
> and -LIME2 boards.
> Everything up to here is build- and run-time tested. Following patches
> are build-tested only since I don't own these boards.
> Patches 7 and 8 enable genimage for the other two boards, and patch 9
> removes the manual SD card writing instructions.
> Francois, Jan, or anybody having acces to these boards, if you could
> test patches 7 and 8 report whether they work, you would help in
> making simpler and more uniform the support for the whole family of
> boards. Thanks!
Committed the rest of the series to next, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 22+ messages in thread