Olimex A20 OlinuXino updates
cover Olimex A20 OlinuXino updates
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!
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
Signature · 1 line
1.9.1
PATCH 1/9 olimex/a20_olinuxino: update readme.txt with lime2 info
--- board/olimex/a20_olinuxino/readme.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
board/olimex/a20_olinuxino/readme.txt +2 -1
@@ -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
Signature · 1 line
1.9.1
PATCH 1/9 olimex/a20_olinuxino: update readme.txt with lime2 info
Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Luca" == Luca Ceresoli <[email protected]> writes:
Signed-off-by Luca Ceresoli <[email protected]>--- board/olimex/a20_olinuxino/readme.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)board/olimex/a20_olinuxino/readme.txt +0
-0
board/olimex/a20_olinuxino/readme.txt A20-OLinuXino-LIME and A20-OLinuXino-MICRO · line 6
Quoted 5 lines
board/olimex/a20_olinuxino/readme.txt +1
-1@@ -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.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/9 olimex_a20_olinuxino_micro: bump linux to 4.4.2
In reply to Luca Ceresoli--- configs/olimex_a20_olinuxino_micro_defconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
configs/olimex_a20_olinuxino_micro_defconfig +3 -3
@@ -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
Signature · 1 line
1.9.1
PATCH 2/9 olimex_a20_olinuxino_micro: bump linux to 4.4.2
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Luca" == Luca Ceresoli <[email protected]> writes:
Signed-off-by Luca Ceresoli <[email protected]>
Committed to next, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 3/9 olimex_a20_olinuxino_micro: bump u-boot to 2016.01
In reply to Luca Ceresoli--- configs/olimex_a20_olinuxino_micro_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
configs/olimex_a20_olinuxino_micro_defconfig +2 -1
@@ -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"
Signature · 1 line
1.9.1
PATCH 3/9 olimex_a20_olinuxino_micro: bump u-boot to 2016.01
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Luca" == Luca Ceresoli <[email protected]> writes:
Signed-off-by Luca Ceresoli <[email protected]>
Committed to next, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 4/9 olimex_a20_olinuxino_micro: initialize the network with DHCP
In reply to Luca CeresoliTo allow a more complete "out-of-the-box" startup with the defconfig, enable automatic network configuration of eth0 using DHCP.
--- configs/olimex_a20_olinuxino_micro_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/olimex_a20_olinuxino_micro_defconfig +1 -0
@@ -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"
Signature · 1 line
1.9.1
PATCH 4/9 olimex_a20_olinuxino_micro: initialize the network with DHCP
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Luca" == Luca Ceresoli <[email protected]> writes:
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 <[email protected]>
Committed to next, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 5/9 olimex_a20_olinuxino_micro: remove redundant defconfig lines
In reply to Luca CeresoliThese defconfig options are set to their default values, so they are redundant and can be removed without effect.
--- configs/olimex_a20_olinuxino_micro_defconfig | 4 ---- 1 file changed, 4 deletions(-)
configs/olimex_a20_olinuxino_micro_defconfig +0 -4
@@ -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"
Signature · 1 line
1.9.1
PATCH 5/9 olimex_a20_olinuxino_micro: remove redundant defconfig lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Luca" == Luca Ceresoli <[email protected]> writes:
These defconfig options are set to their default values, so they are redundant and can be removed without effect.
Signed-off-by Luca Ceresoli <[email protected]>
Committed to next, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 6/9 olimex_a20_olinuxino_micro: update to use genimage
In reply to Luca Ceresoli--- 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
board/olimex/a20_olinuxino/genimage.cfg new file +16 -0
@@ -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 + } +}
board/olimex/a20_olinuxino/post-image.sh new file +16 -0
@@ -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 $?
board/olimex/a20_olinuxino/readme.txt +15 -2
@@ -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
configs/olimex_a20_olinuxino_micro_defconfig +2 -0
@@ -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
Signature · 1 line
1.9.1
PATCH 6/9 olimex_a20_olinuxino_micro: update to use genimage
Quoted 24 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Luca" == Luca Ceresoli <[email protected]> writes:
Signed-off-by Luca Ceresoli <[email protected]>--- 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.shboard/olimex/a20_olinuxino/genimage.cfg new file +6
-0@@ -0,0 +1,16 @@ +image sdcard.img { + hdimage { + } + + partition u-boot { + in-partition-table = "no"
board/olimex/a20_olinuxino/genimage.cfg line 16
Quoted 10 lines
board/olimex/a20_olinuxino/genimage.cfg new file +10
-0+ 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.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 6/9 olimex_a20_olinuxino_micro: update to use genimage
Hi Peter,
Quoted 29 lines · Peter Korsgaard
Quoted 29 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Luca" == Luca Ceresoli <[email protected]> writes:
Signed-off-by Luca Ceresoli <[email protected]>--- 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.shboard/olimex/a20_olinuxino/genimage.cfg new file +11
-0@@ -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 {
Quoted 8 lines
board/olimex/a20_olinuxino/genimage.cfg line 16
Quoted 5 lines
board/olimex/a20_olinuxino/genimage.cfg new file +5
-0+ 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.
Signature · 1 line
Luca
PATCH 6/9 olimex_a20_olinuxino_micro: update to use genimage
Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Luca" == Luca Ceresoli <[email protected]> writes:
Hi Peter,
Quoted 2 lines
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 $
Quoted 3 lines
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.
Signature · 2 lines
Venlig hilsen, Peter Korsgaard
PATCH 7/9 olimex_a20_olinuxino_lime: update to use genimage
In reply to Luca Ceresoli--- 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(-)
board/olimex/a20_olinuxino/readme.txt +1 -1
@@ -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)
configs/olimex_a20_olinuxino_lime_defconfig +2 -0
@@ -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
configs/olimex_a20_olinuxino_lime_mali_defconfig +2 -0
@@ -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
Signature · 1 line
1.9.1
PATCH 7/9 olimex_a20_olinuxino_lime: update to use genimage
2016-02-23 1:24 GMT+01:00 Luca Ceresoli <[email protected]>:
Quoted 1 line
Signed-off-by Luca Ceresoli <[email protected]>
Quoted 63 lines
Cc Francois Perrad <[email protected]>--- 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(-)board/olimex/a20_olinuxino/readme.txt +1
-1@@ -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)configs/olimex_a20_olinuxino_lime_defconfig +2
-0@@ -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=yconfigs/olimex_a20_olinuxino_lime_mali_defconfig +2
-1@@ -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
PATCH 8/9 olimex_a20_olinuxino_lime2: update to use genimage
In reply to Luca Ceresoli--- board/olimex/a20_olinuxino/readme.txt | 2 +- configs/olimex_a20_olinuxino_lime2_defconfig | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)
board/olimex/a20_olinuxino/readme.txt +1 -1
@@ -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)
configs/olimex_a20_olinuxino_lime2_defconfig +2 -0
@@ -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
Signature · 1 line
1.9.1
PATCH 9/9 olimex_a20_olinuxino_*: remove old SD writing instructions
In reply to Luca CeresoliNow that all the boards have been converted to use genimage, the old instructions on how to partition and write an SD card are useless.
--- board/olimex/a20_olinuxino/readme.txt | 58 ++--------------------------------- 1 file changed, 2 insertions(+), 56 deletions(-)
board/olimex/a20_olinuxino/readme.txt +2 -56
@@ -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.
Signature · 1 line
1.9.1
cover Olimex A20 OlinuXino updates
In reply to Luca Ceresoli2016-02-23 1:24 GMT+01:00 Luca Ceresoli <[email protected]>:
Quoted 18 lines
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.
Quoted 8 lines
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
Quoted 32 lines
Luca
Luca Ceresoli (9):
olimex/a20_olinuxino: update readme.txt with lime2 infoolimex_a20_olinuxino_micro: bump linux to 4.4.2olimex_a20_olinuxino_micro: bump u-boot to 2016.01olimex_a20_olinuxino_micro: initialize the network with DHCPolimex_a20_olinuxino_micro: remove redundant defconfig linesolimex_a20_olinuxino_micro: update to use genimage
olimex_a20_olinuxino_lime: update to use genimageolimex_a20_olinuxino_lime2: update to use genimage olimex_a20_olinuxino_*: remove old SD writing instructionsboard/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
cover Olimex A20 OlinuXino updates
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fran?ois" == Fran?ois Perrad <[email protected]> writes:
Hi,
Quoted 8 lines
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
Indeed. Care to send a patch to do this?
Signature · 1 line
Bye, Peter Korsgaard
cover Olimex A20 OlinuXino updates
In reply to Luca CeresoliQuoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Luca" == Luca Ceresoli <[email protected]> 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.
Quoted 7 lines
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.
Signature · 1 line
Bye, Peter Korsgaard