Skip to contentSkip to conversation

olimex_a20_olinuxino_lime2: new board

PATCH New Jan Viktorin 3 participants 6 messages Aug 12, 2015 – Oct 3, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 olimex_a20_olinuxino_lime2: new board

Based on olimex_a20_olinuxino_lime and olimex_a20_olinuxino_lime_mali configurations. It is based on the mainline kernel 4.1.4. It boots and the Ethernet is working at speed 1 Gbps.

---
 board/olimex/a20_olinuxino/boot-lime2.cmd    |  6 ++++++
 board/olimex/a20_olinuxino/readme.txt        |  3 +++
 configs/olimex_a20_olinuxino_lime2_defconfig | 31 ++++++++++++++++++++++++++++
 3 files changed, 40 insertions(+)
 create mode 100644 board/olimex/a20_olinuxino/boot-lime2.cmd
 create mode 100644 configs/olimex_a20_olinuxino_lime2_defconfig
board/olimex/a20_olinuxino/boot-lime2.cmd new file +6 -0
new file mode 100644
index 0000000..a987715
@@ -0,0 +1,6 @@
+setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 ${extra}
+setenv fdtfile sun7i-a20-olinuxino-lime2.dtb
+ext4load mmc 0 0x49000000 /boot/${fdtfile}
+ext4load mmc 0 0x46000000 /boot/zImage
+env set fdt_high ffffffff
+bootz 0x46000000 - 0x49000000
board/olimex/a20_olinuxino/readme.txt +3 -0
index 7e9af84..7998aa1 100644
@@ -17,6 +17,8 @@ The following defconfigs are available:
    for the A20-OLinuXino-LIME board using mainline kernel
  - olimex_a20_olinuxino_lime_mali_defconfig
    for the A20-OLinuXino-LIME board using legacy linux-sunxi kernel
+ - olimex_a20_olinuxino_lime2_defconfig
+   for the A20-OLinuXino-LIME2 board using mainline kernel
 
 The legacy linux-sunxi kernels are based on the vendor code drops.
 They are only useful when accelerated 3D graphics and multimedia support
@@ -50,6 +52,7 @@ After building, you should get a tree like this:
     +-- rootfs.ext4 -> rootfs.ext2
     +-- script.bin (lime_mali)
     +-- sun7i-a20-olinuxino-lime.dtb (lime, mainline)
+    +-- sun7i-a20-olinuxino-lime2.dtb (lime2, mainline)
     +-- sun7i-a20-olinuxino-micro.dtb (micro, mainline)
     +-- u-boot.bin
     +-- u-boot-sunxi-with-spl.bin
configs/olimex_a20_olinuxino_lime2_defconfig new file +31 -0
new file mode 100644
index 0000000..b1f9df1
@@ -0,0 +1,31 @@
+BR2_arm=y
+BR2_cortex_a7=y
+BR2_ARM_EABIHF=y
+BR2_CCACHE=y
+BR2_OPTIMIZE_2=y
+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_SCRIPT_ARGS="board/olimex/a20_olinuxino/boot-lime2.cmd $(TARGET_DIR)/boot"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.1.4"
+BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
+BR2_LINUX_KERNEL_ZIMAGE=y
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun7i-a20-olinuxino-lime2"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+BR2_PACKAGE_SUNXI_TOOLS=y
+BR2_PACKAGE_SUNXI_BOARDS=y
+BR2_PACKAGE_SUNXI_BOARDS_FEX_FILE="a20/a20-olinuxino_lime.fex"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+# BR2_TARGET_ROOTFS_TAR is not set
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="A20-OLinuXino-Lime2"
+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_UBOOT_TOOLS=y
Signature · 1 line
2.5.0
#1 lore raw

PATCH 1/1 olimex_a20_olinuxino_lime2: new board

2015-08-12 16:58 GMT+02:00 Jan Viktorin <[email protected]>:

Quoted 19 lines

Based on olimex_a20_olinuxino_lime and olimex_a20_olinuxino_lime_mali configurations. It is based on the mainline kernel 4.1.4. It boots and the Ethernet is working at speed 1 Gbps.

---
 board/olimex/a20_olinuxino/boot-lime2.cmd    |  6 ++++++
 board/olimex/a20_olinuxino/readme.txt        |  3 +++
 configs/olimex_a20_olinuxino_lime2_defconfig | 31 ++++++++++++++++++++++++++++
 3 files changed, 40 insertions(+)
 create mode 100644 board/olimex/a20_olinuxino/boot-lime2.cmd
 create mode 100644 configs/olimex_a20_olinuxino_lime2_defconfig
board/olimex/a20_olinuxino/boot-lime2.cmd new file +0 -0
new file mode 100644
index 0000000..a987715

board/olimex/a20_olinuxino/boot-lime2.cmd line 2

Quoted 2 lines
board/olimex/a20_olinuxino/boot-lime2.cmd new file +2 -0
@@ -0,0 +1,6 @@
+setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 ${extra}
+setenv fdtfile sun7i-a20-olinuxino-lime2.dtb

With the board Lime (and Micro), U-Boot 2015.07 (or 2015.04) set the variable 'fdtfile' with the expected value.
So, the file board/olimex/a20_olinuxino/boot.cmd could be common for all A20-Olinuxino boards.

Fran?ois.

Quoted 69 lines
board/olimex/a20_olinuxino/boot-lime2.cmd new file +4 -0
+ext4load mmc 0 0x49000000 /boot/${fdtfile}
+ext4load mmc 0 0x46000000 /boot/zImage
+env set fdt_high ffffffff
+bootz 0x46000000 - 0x49000000
board/olimex/a20_olinuxino/readme.txt +3 -0
index 7e9af84..7998aa1 100644
@@ -17,6 +17,8 @@ The following defconfigs are available:
    for the A20-OLinuXino-LIME board using mainline kernel
  - olimex_a20_olinuxino_lime_mali_defconfig
    for the A20-OLinuXino-LIME board using legacy linux-sunxi kernel
+ - olimex_a20_olinuxino_lime2_defconfig
+   for the A20-OLinuXino-LIME2 board using mainline kernel
 
 The legacy linux-sunxi kernels are based on the vendor code drops.
 They are only useful when accelerated 3D graphics and multimedia support
@@ -50,6 +52,7 @@ After building, you should get a tree like this:
     +-- rootfs.ext4 -> rootfs.ext2
     +-- script.bin (lime_mali)
     +-- sun7i-a20-olinuxino-lime.dtb (lime, mainline)
+    +-- sun7i-a20-olinuxino-lime2.dtb (lime2, mainline)
     +-- sun7i-a20-olinuxino-micro.dtb (micro, mainline)
     +-- u-boot.bin
     +-- u-boot-sunxi-with-spl.bin
configs/olimex_a20_olinuxino_lime2_defconfig new file +31 -1
new file mode 100644
index 0000000..b1f9df1
@@ -0,0 +1,31 @@
+BR2_arm=y
+BR2_cortex_a7=y
+BR2_ARM_EABIHF=y
+BR2_CCACHE=y
+BR2_OPTIMIZE_2=y
+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_SCRIPT_ARGS="board/olimex/a20_olinuxino/boot-lime2.cmd $(TARGET_DIR)/boot"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.1.4"
+BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
+BR2_LINUX_KERNEL_ZIMAGE=y
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun7i-a20-olinuxino-lime2"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+BR2_PACKAGE_SUNXI_TOOLS=y
+BR2_PACKAGE_SUNXI_BOARDS=y
+BR2_PACKAGE_SUNXI_BOARDS_FEX_FILE="a20/a20-olinuxino_lime.fex"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+# BR2_TARGET_ROOTFS_TAR is not set
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="A20-OLinuXino-Lime2"
+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_UBOOT_TOOLS=y
--

2.5.0

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#2 lore raw

PATCH 1/1 olimex_a20_olinuxino_lime2: new board

Quoted 11 lines · On Wed, 12 Aug 2015 20:40:41 +0200 Fran?ois Perrad <[email protected]>…

board/olimex/a20_olinuxino/boot-lime2.cmd line 2

Quoted 5 lines
board/olimex/a20_olinuxino/boot-lime2.cmd new file +2 -0
@@ -0,0 +1,6 @@
+setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 ${extra}
+setenv fdtfile sun7i-a20-olinuxino-lime2.dtb  

With the board Lime (and Micro), U-Boot 2015.07 (or 2015.04) set the variable 'fdtfile' with the expected value.
So, the file board/olimex/a20_olinuxino/boot.cmd could be common for all A20-Olinuxino boards.

Quoted 1 line

Fran?ois.

OK, I didn't notice the fdtfile is already set in the default U-Boot environment. So the fdtfile does not have to be set at all. I will resend the fixed patch.

Jan

Quoted 7 lines
Quoted 7 lines
board/olimex/a20_olinuxino/boot-lime2.cmd new file +4 -0
+ext4load mmc 0 0x49000000 /boot/${fdtfile}
+ext4load mmc 0 0x46000000 /boot/zImage
+env set fdt_high ffffffff
+bootz 0x46000000 - 0x49000000
board/olimex/a20_olinuxino/readme.txt +0 -0
index 7e9af84..7998aa1 100644
Signature · 4 lines
   Jan Viktorin                  E-mail: Viktorin at RehiveTech.com
   System Architect              Web:    www.RehiveTech.com
   RehiveTech
   Brno, Czech Republic
#3 lore raw

PATCH v2 1/1 olimex_a20_olinuxino_lime2: new board

In reply to Jan Viktorin

It is based on olimex_a20_olinuxino_lime configuration. Tested on the mainline kernel 4.1.4. It boots and the Ethernet is working at speed 1 Gbps.

---
 board/olimex/a20_olinuxino/readme.txt        |  3 +++
 configs/olimex_a20_olinuxino_lime2_defconfig | 31 ++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 configs/olimex_a20_olinuxino_lime2_defconfig
board/olimex/a20_olinuxino/readme.txt +3 -0
index 7e9af84..7998aa1 100644
@@ -17,6 +17,8 @@ The following defconfigs are available:
    for the A20-OLinuXino-LIME board using mainline kernel
  - olimex_a20_olinuxino_lime_mali_defconfig
    for the A20-OLinuXino-LIME board using legacy linux-sunxi kernel
+ - olimex_a20_olinuxino_lime2_defconfig
+   for the A20-OLinuXino-LIME2 board using mainline kernel
 
 The legacy linux-sunxi kernels are based on the vendor code drops.
 They are only useful when accelerated 3D graphics and multimedia support
@@ -50,6 +52,7 @@ After building, you should get a tree like this:
     +-- rootfs.ext4 -> rootfs.ext2
     +-- script.bin (lime_mali)
     +-- sun7i-a20-olinuxino-lime.dtb (lime, mainline)
+    +-- sun7i-a20-olinuxino-lime2.dtb (lime2, mainline)
     +-- sun7i-a20-olinuxino-micro.dtb (micro, mainline)
     +-- u-boot.bin
     +-- u-boot-sunxi-with-spl.bin
configs/olimex_a20_olinuxino_lime2_defconfig new file +31 -0
new file mode 100644
index 0000000..1464cb8
@@ -0,0 +1,31 @@
+BR2_arm=y
+BR2_cortex_a7=y
+BR2_ARM_EABIHF=y
+BR2_CCACHE=y
+BR2_OPTIMIZE_2=y
+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_SCRIPT_ARGS="board/olimex/a20_olinuxino/boot.cmd $(TARGET_DIR)/boot"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.1.4"
+BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
+BR2_LINUX_KERNEL_ZIMAGE=y
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun7i-a20-olinuxino-lime2"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+BR2_PACKAGE_SUNXI_TOOLS=y
+BR2_PACKAGE_SUNXI_BOARDS=y
+BR2_PACKAGE_SUNXI_BOARDS_FEX_FILE="a20/a20-olinuxino_lime.fex"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+# BR2_TARGET_ROOTFS_TAR is not set
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="A20-OLinuXino-Lime2"
+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_UBOOT_TOOLS=y
Signature · 1 line
2.5.0
#4 lore raw

PATCH v2 1/1 olimex_a20_olinuxino_lime2: new board

It is based on olimex_a20_olinuxino_lime configuration. Tested on the mainline kernel 4.1.4. It boots and the Ethernet is working at speed 1 Gbps.

---
 board/olimex/a20_olinuxino/readme.txt        |  3 +++
 configs/olimex_a20_olinuxino_lime2_defconfig | 31 ++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 configs/olimex_a20_olinuxino_lime2_defconfig
board/olimex/a20_olinuxino/readme.txt +3 -0
index 7e9af84..7998aa1 100644
@@ -17,6 +17,8 @@ The following defconfigs are available:
    for the A20-OLinuXino-LIME board using mainline kernel
  - olimex_a20_olinuxino_lime_mali_defconfig
    for the A20-OLinuXino-LIME board using legacy linux-sunxi kernel
+ - olimex_a20_olinuxino_lime2_defconfig
+   for the A20-OLinuXino-LIME2 board using mainline kernel
 
 The legacy linux-sunxi kernels are based on the vendor code drops.
 They are only useful when accelerated 3D graphics and multimedia support
@@ -50,6 +52,7 @@ After building, you should get a tree like this:
     +-- rootfs.ext4 -> rootfs.ext2
     +-- script.bin (lime_mali)
     +-- sun7i-a20-olinuxino-lime.dtb (lime, mainline)
+    +-- sun7i-a20-olinuxino-lime2.dtb (lime2, mainline)
     +-- sun7i-a20-olinuxino-micro.dtb (micro, mainline)
     +-- u-boot.bin
     +-- u-boot-sunxi-with-spl.bin
configs/olimex_a20_olinuxino_lime2_defconfig new file +31 -0
new file mode 100644
index 0000000..1464cb8
@@ -0,0 +1,31 @@
+BR2_arm=y
+BR2_cortex_a7=y
+BR2_ARM_EABIHF=y
+BR2_CCACHE=y
+BR2_OPTIMIZE_2=y
+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_SCRIPT_ARGS="board/olimex/a20_olinuxino/boot.cmd $(TARGET_DIR)/boot"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.1.4"
+BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
+BR2_LINUX_KERNEL_ZIMAGE=y
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun7i-a20-olinuxino-lime2"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+BR2_PACKAGE_SUNXI_TOOLS=y
+BR2_PACKAGE_SUNXI_BOARDS=y
+BR2_PACKAGE_SUNXI_BOARDS_FEX_FILE="a20/a20-olinuxino_lime.fex"
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+# BR2_TARGET_ROOTFS_TAR is not set
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARDNAME="A20-OLinuXino-Lime2"
+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_UBOOT_TOOLS=y
Signature · 1 line
2.5.0
#5 lore raw

PATCH v2 1/1 olimex_a20_olinuxino_lime2: new board

Jan,

configs/olimex_a20_olinuxino_lime2_defconfig line 5

Quoted 2 lines · Jan Viktorin
configs/olimex_a20_olinuxino_lime2_defconfig new file +2 -0
+BR2_CCACHE=y
+BR2_OPTIMIZE_2=y

These two options should not be part of a defconfig, so I got rid of them, and applied your patch.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com