Cubieboard2 support
Added Support for Cubieboard2 : http://cubieboard.org/2013/06/19/cubieboard2-is-here
Based on cubieboard support from Carlo Caione <[email protected]>
PATCH 1/3 support for cubieboard2 added
--- board/cubietech/cubieboard2/boot.cmd | 4 + .../cubieboard2/cubieboard2_kernel.config | 3158 ++++++++++++++++++++ board/cubietech/cubieboard2/mkcubiecard.sh | 116 + board/cubietech/cubieboard2/post-build.sh | 14 + board/cubietech/cubieboard2/readme.txt | 59 + configs/cubieboard2_defconfig | 40 + package/sunxi-boards/sunxi-boards.mk | 2 +- 7 files changed, 3392 insertions(+), 1 deletion(-) create mode 100644 board/cubietech/cubieboard2/boot.cmd create mode 100644 board/cubietech/cubieboard2/cubieboard2_kernel.config create mode 100755 board/cubietech/cubieboard2/mkcubiecard.sh create mode 100755 board/cubietech/cubieboard2/post-build.sh create mode 100644 board/cubietech/cubieboard2/readme.txt create mode 100644 configs/cubieboard2_defconfig
board/cubietech/cubieboard2/boot.cmd new file +4 -0
@@ -0,0 +1,4 @@ +setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 ${extra} +fatload mmc 0 0x43000000 script.bin +fatload mmc 0 0x48000000 uImage +bootm 0x48000000
board/cubietech/cubieboard2/cubieboard2_kernel.config new file +3158 -0
2,996 lines not on this page · raw message
board/cubietech/cubieboard2/mkcubiecard.sh new file +116 -0
116 lines not on this page · raw message
board/cubietech/cubieboard2/post-build.sh new file +14 -0
Lines of this file are not shown. View the raw message.
board/cubietech/cubieboard2/readme.txt new file +59 -0
59 lines not on this page · raw message
configs/cubieboard2_defconfig new file +40 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.9.5
Part of the diff is not shown here. View the raw message.
PATCH 1/3 support for cubieboard2 added
Dear Carlos Quijano,
Generally looks good, except:
Quoted 5 lines · Carlos Quijano
Signed-off-by Carlos Quijano <[email protected]>--- board/cubietech/cubieboard2/boot.cmd | 4 + .../cubieboard2/cubieboard2_kernel.config | 3158 ++++++++++++++++++++
The kernel configuration should be a minimal defconfig, generated with 'make ARCH=arm savedefconfig'. See the size of the kernel configuration files for the other platforms.
Also, the file should be named just kernel.config, or linux.config, or linux-<version>.config. Having the name of the board in the filename is useless since it's already in a directory named after the board.
Thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/3 support for cubieboard2 added
In reply to Carlos QuijanoQuoted 11 lines · Carlos Quijano
Signed-off-by Carlos Quijano <[email protected]>--- board/cubietech/cubieboard2/boot.cmd | 4 + .../cubieboard2/cubieboard2_kernel.config | 3158 ++++++++++++++++++++ board/cubietech/cubieboard2/mkcubiecard.sh | 116 + board/cubietech/cubieboard2/post-build.sh | 14 + board/cubietech/cubieboard2/readme.txt | 59 + configs/cubieboard2_defconfig | 40 + package/sunxi-boards/sunxi-boards.mk | 2 +- 7 files changed, 3392 insertions(+), 1 deletion(-)
Quoted 5 lines
create mode 100644 board/cubietech/cubieboard2/boot.cmd create mode 100644
board/cubietech/cubieboard2/cubieboard2_kernel.configcreate mode 100755board/cubietech/cubieboard2/mkcubiecard.shcreate mode 100755board/cubietech/cubieboard2/post-build.shcreate mode 100644board/cubietech/cubieboard2/readme.txt
As far as I can see, the scripts and readme are an exact copy of
cubieboard. I think it makes more sense then to make them symlinks to the cubieboard directory, to ensure consistency. Or perhaps it's even better to keep using the cubieboard directory for cubieboard2, and make a linux-cubieboard2.config.
Quoted 1 line
create mode 100644 configs/cubieboard2_defconfig
[snip]
Quoted 6 lines
configs/cubieboard2_defconfig new file +0
-0
configs/cubieboard2_defconfig line 10
Quoted 10 lines
configs/cubieboard2_defconfig new file +10
-0@@ -0,0 +1,40 @@ +# Architecture +BR2_arm=y +BR2_cortex_a7=y + +# System configuration +BR2_TARGET_GENERIC_HOSTNAME="Cubieboard2" +BR2_TARGET_GENERIC_ISSUE="Welcome to use Cubieboard!" +BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/cubietech/cubieboard/post-build.sh"
This should be cubieboard2/post-build.sh, right? :-)
Quoted 35 lines
configs/cubieboard2_defconfig new file +30
-0+ +# Additional tools +BR2_PACKAGE_HOST_SUNXI_TOOLS=y +BR2_PACKAGE_HOST_UBOOT_TOOLS=y +BR2_PACKAGE_SUNXI_TOOLS=y +BR2_PACKAGE_SUNXI_BOARDS=y +BR2_PACKAGE_SUNXI_BOARDS_FEX_FILE="a20/cubieboard2.fex" + +# Kernel headers +BR2_KERNEL_HEADERS_3_4=y + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL="https://github.com/linux-sunxi/linux-sunxi.git" +BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION="5dda5145c877335e17bd9ca48954841acc0f785a" +BR2_LINUX_KERNEL_VERSION="sunxi-3.4" +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/cubietech/cubieboard2/cubieboard2_kernel.config" + +# Bootloaders +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="cubieboard2" +BR2_TARGET_UBOOT_CUSTOM_GIT=y +BR2_TARGET_UBOOT_VERSION="sunxi" +BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL="https://github.com/linux-sunxi/u-boot-sunxi.git" +BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION="b4bca5e0651b460a4511582f07a935cb48f74948" +BR2_TARGET_UBOOT_FORMAT_BIN=y +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"package/sunxi-boards/sunxi-boards.mk +0
-0
package/sunxi-boards/sunxi-boards.mk line 7
Quoted 5 lines
package/sunxi-boards/sunxi-boards.mk +1
-1@@ -4,7 +4,7 @@ # ################################################################################ -SUNXI_BOARDS_VERSION = 88d663db44f65b73ef65c4148a28c6fa3665d2b6 +SUNXI_BOARDS_VERSION = 25a868189dbaa40872b2ac7d8a941dd73972eb08
I think this version bump should be a separate patch.
Regards,
Arnout
Quoted 4 lines
package/sunxi-boards/sunxi-boards.mk +0
-0SUNXI_BOARDS_SITE = https://github.com/linux-sunxi/sunxi-boards/tarball/$(SUNXI_BOARDS_VERSION) SUNXI_BOARDS_DEPENDENCIES = host-sunxi-tools SUNXI_BOARDS_INSTALL_IMAGES = YES
Signature · 6 lines
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
PATCH 2/3 updated author and readme
In reply to Carlos Quijano--- board/cubietech/cubieboard2/mkcubiecard.sh | 2 ++ board/cubietech/cubieboard2/readme.txt | 11 ++++++----- 2 files changed, 8 insertions(+), 5 deletions(-)
board/cubietech/cubieboard2/mkcubiecard.sh +2 -0
@@ -1,4 +1,6 @@ #! /bin/sh +# updated for cubiboard2: +# 2013, Carlos Quijano <[email protected]> # mkCubieCard.sh v0.1: # 2013, Carlo Caione <[email protected]> # heavely based on :
board/cubietech/cubieboard2/readme.txt +6 -5
@@ -1,10 +1,10 @@ -cubieboard +cubieboard2 ----- Intro ----- -To be able to use your cubieboard board with the images generated by +To be able to use your cubieboard board2 with the images generated by Buildroot you have to correctly setup the SD card. For more information, please see http://linux-sunxi.org/FirstSteps
@@ -14,7 +14,7 @@ How to build it --------------- You need to use the cubieboard_defconfig, to do so: - * make cubieboard_defconfig + * make cubieboard2_defconfig And to compile: * make
@@ -29,8 +29,7 @@ After building, you should obtain this tree: +-- rootfs.tar +-- boot.scr +-- script.bin - +-- sunxi-spl.bin - +-- u-boot.bin + +-- u-boot-sunxi-with-spl.bin `-- uImage --------------------------
@@ -56,4 +55,6 @@ where: -- +Carlos Quijano <[email protected]> +Based on cubieboard support from: Carlo Caione <[email protected]>
Signature · 1 line
1.7.9.5
PATCH 2/3 updated author and readme
Dear Carlos Quijano,
Any reason why this isn't part of the patch introducing mkcubiecard.sh and readme.txt ?
board/cubietech/cubieboard2/readme.txt line 7
Quoted 2 lines · Carlos Quijano
board/cubietech/cubieboard2/readme.txt +1
-1-To be able to use your cubieboard board with the images generated by +To be able to use your cubieboard board2 with the images generated by
I guess the change should be "cubieboard2 board".
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 3/3 enable needed modules for cubieboard2
In reply to Carlos Quijano--- .../cubieboard2/cubieboard2_kernel.config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
board/cubietech/cubieboard2/cubieboard2_kernel.config +2 -2
@@ -2109,9 +2109,9 @@ CONFIG_FB_MODE_HELPERS=y CONFIG_FB_SUNXI=y CONFIG_FB_SUNXI_RESERVED_MEM=y CONFIG_FB_SUNXI_UMP=y -# CONFIG_FB_SUNXI_LCD is not set +CONFIG_FB_SUNXI_LCD=y CONFIG_FB_SUNXI_HDMI=y -# CONFIG_HDMI_CEC is not set +CONFIG_HDMI_CEC=y # CONFIG_FB_ARMCLCD is not set # CONFIG_FB_UVESA is not set # CONFIG_FB_S1D13XXX is not set
Signature · 1 line
1.7.9.5
PATCH 3/3 enable needed modules for cubieboard2
Dear Carlos Quijano,
Quoted 6 lines · Carlos Quijano
board/cubietech/cubieboard2/cubieboard2_kernel.config +0
-0@@ -2109,9 +2109,9 @@ CONFIG_FB_MODE_HELPERS=y CONFIG_FB_SUNXI=y
board/cubietech/cubieboard2/cubieboard2_kernel.config CONFIG_FB_MODE_HELPERS=y · line 2117
Quoted 10 lines
board/cubietech/cubieboard2/cubieboard2_kernel.config +2
-2CONFIG_FB_SUNXI_RESERVED_MEM=y CONFIG_FB_SUNXI_UMP=y -# CONFIG_FB_SUNXI_LCD is not set +CONFIG_FB_SUNXI_LCD=y CONFIG_FB_SUNXI_HDMI=y -# CONFIG_HDMI_CEC is not set +CONFIG_HDMI_CEC=y # CONFIG_FB_ARMCLCD is not set # CONFIG_FB_UVESA is not set # CONFIG_FB_S1D13XXX is not set
This should be part of the patch adding the kernel configuration file.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com