board: Add Vyasa RK3288 board support
PATCH v9 1/3 board: Add Vyasa RK3288 board support
Add Vyasa board, from rk3288 family SOC.
---
Changes for v9:
- Rebase on master
Changes for v8:
- Rebase on master
Changes for v7:
- Rebase on master
Changes for v6:
- None
Changes for v5:
- Add host-uboot-tools
- Fix commit message
- Drop Qt5 configs
Changes for v4:
- enable BR2_LINUX_KERNEL_INSTALL_TARGET
- enable BR2_TARGET_UBOOT_FORMAT_DTB_BINe
- Create single u-boot binary
- Use linux-4.12 along with same headers
.gitlab-ci.yml | 1 + DEVELOPERS | 2 ++ board/amarula/vyasa/extlinux.conf | 4 +++ board/amarula/vyasa/genimage.cfg | 21 +++++++++++++++ board/amarula/vyasa/linux_gmac.fragment | 3 +++ board/amarula/vyasa/post-build.sh | 9 +++++++ board/amarula/vyasa/readme.txt | 31 ++++++++++++++++++++++ configs/amarula_vyasa_rk3288_defconfig | 46 +++++++++++++++++++++++++++++++++ 8 files changed, 117 insertions(+) create mode 100644 board/amarula/vyasa/extlinux.conf create mode 100644 board/amarula/vyasa/genimage.cfg create mode 100644 board/amarula/vyasa/linux_gmac.fragment create mode 100755 board/amarula/vyasa/post-build.sh create mode 100644 board/amarula/vyasa/readme.txt create mode 100644 configs/amarula_vyasa_rk3288_defconfig
.gitlab-ci.yml +1 -0
@@ -66,6 +66,7 @@ acmesystems_aria_g25_128mb_defconfig: *defconfig acmesystems_aria_g25_256mb_defconfig: *defconfig acmesystems_arietta_g25_128mb_defconfig: *defconfig acmesystems_arietta_g25_256mb_defconfig: *defconfig +amarula_vyasa_rk3288_defconfig: *defconfig arcturus_ucp1020_defconfig: *defconfig arm_foundationv8_defconfig: *defconfig arm_juno_defconfig: *defconfig
DEVELOPERS +2 -0
@@ -772,8 +772,10 @@ N: Ismael Luceno <[email protected]> F: package/axel/ N: Jagan Teki <[email protected]> +F: board/amarula/ F: board/bananapi/ F: board/engicam/ +F: configs/amarula_vyasa_rk3288_defconfig F: board/friendlyarm/nanopi-a64/ F: board/friendlyarm/nanopi-neo2/ F: board/olimex/a64-olinuxino/
board/amarula/vyasa/extlinux.conf new file +4 -0
@@ -0,0 +1,4 @@ +label Vyasa linux-next + kernel /boot/uImage + devicetree /boot/rk3288-vyasa.dtb + append console=ttyS2,115200n8 root=/dev/mmcblk0p1 rootwait
board/amarula/vyasa/genimage.cfg new file +21 -0
@@ -0,0 +1,21 @@ +image sdcard.img { + hdimage { + } + + partition u-boot-tpl-spl-dtb { + in-partition-table = "no" + image = "u-boot-tpl-spl-dtb.img" + offset = 32K + } + + partition u-boot-dtb { + in-partition-table = "no" + image = "u-boot-dtb.img" + offset = 8M + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + } +}
board/amarula/vyasa/linux_gmac.fragment new file +3 -0
@@ -0,0 +1,3 @@ +# Currently kernel mainline exhibits issues when running rockchip gmac +# on the board, so enable it as loadable module and insert it later +CONFIG_DWMAC_ROCKCHIP=m
board/amarula/vyasa/post-build.sh new file +9 -0
@@ -0,0 +1,9 @@ +#!/bin/sh + +MKIMAGE=$HOST_DIR/bin/mkimage +BOARD_DIR="$(dirname $0)" + +$MKIMAGE -n rk3288 -T rksd -d $BINARIES_DIR/u-boot-tpl.bin $BINARIES_DIR/u-boot-tpl.img +cat $BINARIES_DIR/u-boot-tpl.img $BINARIES_DIR/u-boot-spl-dtb.bin > $BINARIES_DIR/u-boot-tpl-spl-dtb.img + +install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf
board/amarula/vyasa/readme.txt new file +31 -0
@@ -0,0 +1,31 @@ +Vyasa RK3288 +============ + +Vyasa is RK3288 based Single board computer with fully supported opensource software. + +https://openedev.amarulasolutions.com/display/ODWIKI/Vyasa+RK3288 + +How to build it +=============== + + $ make amarula_vyasa_rk3288_defconfig + +Then you can edit the build options using + + $ make menuconfig + +Compile all and build rootfs image: + + $ make + +Prepare your SDCard +=================== + +Buildroot generates a ready-to-use SD card image that you can flash directly to +the card. The image will be in output/images/sdcard.img. +You can write this image directly to an SD card device (i.e. /dev/xxx): + + $ sudo dd if=output/images/sdcard.img of=/dev/xxx + $ sudo sync + +Finally, you can insert the SD card to the Vyasa RK3288 board, close J4 and boot it.
configs/amarula_vyasa_rk3288_defconfig new file +46 -0
46 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v9 2/3 board: vyasa: Add qst5 configuration
This configuration build qt5 along with MALI T76X
for vyasa rk3288 board.
---
Changes for v9:
- Rebase on master
Changes for v8:
- Rebase on master
Changes for v7:
- Rebase on master
Changes for v6:
- Use custom git repo for linux
Changes for v5:
- New patch
.gitlab-ci.yml | 1 + DEVELOPERS | 1 + board/amarula/vyasa/readme.txt | 19 ++++++++++ configs/amarula_vyasa_rk3288_qt5_defconfig | 59 ++++++++++++++++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 configs/amarula_vyasa_rk3288_qt5_defconfig
.gitlab-ci.yml +1 -0
@@ -67,6 +67,7 @@ acmesystems_aria_g25_256mb_defconfig: *defconfig acmesystems_arietta_g25_128mb_defconfig: *defconfig acmesystems_arietta_g25_256mb_defconfig: *defconfig amarula_vyasa_rk3288_defconfig: *defconfig +amarula_vyasa_rk3288_qt5_defconfig: *defconfig arcturus_ucp1020_defconfig: *defconfig arm_foundationv8_defconfig: *defconfig arm_juno_defconfig: *defconfig
DEVELOPERS +1 -0
@@ -776,6 +776,7 @@ F: board/amarula/ F: board/bananapi/ F: board/engicam/ F: configs/amarula_vyasa_rk3288_defconfig +F: configs/amarula_vyasa_rk3288_qt5_defconfig F: board/friendlyarm/nanopi-a64/ F: board/friendlyarm/nanopi-neo2/ F: board/olimex/a64-olinuxino/
board/amarula/vyasa/readme.txt +19 -0
@@ -29,3 +29,22 @@ You can write this image directly to an SD card device (i.e. /dev/xxx): $ sudo sync Finally, you can insert the SD card to the Vyasa RK3288 board, close J4 and boot it. + +Testing graphics on Vysa RK3288 +=============================== + +Built Mali T76X, Qt5 and demo application: + + $ make amarula_vyasa_rk3288_qt5_defconfig + $ make + +Test procedure: +- insert require modules +# modprobe -a rockchipdrm +# modprobe -a governor_simpleondemand + +- build kernel mali driver as module and insert + +- run qt hellowindow +# cd /usr/lib/qt/examples/opengl/ +# ./hellowindow/hellowindow
configs/amarula_vyasa_rk3288_qt5_defconfig new file +59 -0
59 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v9 2/3 board: vyasa: Add qst5 configuration
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jagan" == Jagan Teki <[email protected]> writes:
Hi,
Quoted 6 lines
This configuration build qt5 along with MALI T76X
for vyasa rk3288 board.Signed-off-by Jagan Teki <[email protected]>
board/amarula/vyasa/readme.txt You can write this image directly to an SD card device (i.e. /dev/xxx): · line 36
Quoted 8 lines
board/amarula/vyasa/readme.txt +5
-0@@ -29,3 +29,22 @@ You can write this image directly to an SD card device (i.e. /dev/xxx): $ sudo sync Finally, you can insert the SD card to the Vyasa RK3288 board, close J4 and boot it. + +Testing graphics on Vysa RK3288 +=============================== + +Built Mali T76X, Qt5 and demo application:
s/Built/Build/
board/amarula/vyasa/readme.txt You can write this image directly to an SD card device (i.e. /dev/xxx): · line 46
Quoted 10 lines
board/amarula/vyasa/readme.txt +10
-0+ + $ make amarula_vyasa_rk3288_qt5_defconfig + $ make + +Test procedure: +- insert require modules +# modprobe -a rockchipdrm +# modprobe -a governor_simpleondemand + +- build kernel mali driver as module and insert
So this defconfig isn't usable out of the box? That isn't really nice :/
How about adding a t76x-mali kernel driver package, similar to E.G. sunxi-mali-driver-mainline:
https://patchwork.ozlabs.org/patch/841314/
Signature · 1 line
Bye, Peter Korsgaard
PATCH v9 3/3 board: Add Tinker RK3288 board support
In reply to Jagan TekiAdd Tinker board, from rk3288 family SOC.
---
Changes for v9:
- Rebase on master
Changes for v8:
- Rebase on master
Changes for v7:
- Rebase on master
Changes for v6:
- None
Changes for v5:
- Add host-uboot-tools
- Fix commit message
- Drop Qt5 configs
Changes for v4:
- enable BR2_LINUX_KERNEL_INSTALL_TARGET
- enable BR2_TARGET_UBOOT_FORMAT_DTB_BINe
- Create single u-boot binary
- Use linux-4.12 along with same headers
.gitlab-ci.yml | 1 + DEVELOPERS | 2 ++ board/asus/tinker/extlinux.conf | 4 ++++ board/asus/tinker/genimage.cfg | 15 ++++++++++++ board/asus/tinker/post-build.sh | 9 ++++++++ board/asus/tinker/readme.txt | 37 +++++++++++++++++++++++++++++ configs/asus_tinker_rk3288_defconfig | 45 ++++++++++++++++++++++++++++++++++++ 7 files changed, 113 insertions(+) create mode 100644 board/asus/tinker/extlinux.conf create mode 100644 board/asus/tinker/genimage.cfg create mode 100755 board/asus/tinker/post-build.sh create mode 100644 board/asus/tinker/readme.txt create mode 100644 configs/asus_tinker_rk3288_defconfig
.gitlab-ci.yml +1 -0
@@ -74,6 +74,7 @@ arm_juno_defconfig: *defconfig armadeus_apf27_defconfig: *defconfig armadeus_apf28_defconfig: *defconfig armadeus_apf51_defconfig: *defconfig +asus_tinker_rk3288_defconfig: *defconfig at91sam9260eknf_defconfig: *defconfig at91sam9g20dfc_defconfig: *defconfig at91sam9g45m10ek_defconfig: *defconfig
DEVELOPERS +2 -0
@@ -773,10 +773,12 @@ F: package/axel/ N: Jagan Teki <[email protected]> F: board/amarula/ +F: board/asus/ F: board/bananapi/ F: board/engicam/ F: configs/amarula_vyasa_rk3288_defconfig F: configs/amarula_vyasa_rk3288_qt5_defconfig +F: configs/asus_tinker_rk3288_defconfig F: board/friendlyarm/nanopi-a64/ F: board/friendlyarm/nanopi-neo2/ F: board/olimex/a64-olinuxino/
board/asus/tinker/extlinux.conf new file +4 -0
@@ -0,0 +1,4 @@ +label Tinker linux-next + kernel /boot/uImage + devicetree /boot/rk3288-tinker.dtb + append console=ttyS2,115200n8 root=/dev/mmcblk0p1 rootwait
board/asus/tinker/genimage.cfg new file +15 -0
@@ -0,0 +1,15 @@ +image sdcard.img { + hdimage { + } + + partition u-boot-spl-dtb { + in-partition-table = "no" + image = "u-boot-spl-dtb.img" + offset = 32K + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + } +}
board/asus/tinker/post-build.sh new file +9 -0
@@ -0,0 +1,9 @@ +#!/bin/sh + +MKIMAGE=$HOST_DIR/bin/mkimage +BOARD_DIR="$(dirname $0)" + +$MKIMAGE -n rk3288 -T rksd -d $BINARIES_DIR/u-boot-spl-dtb.bin $BINARIES_DIR/u-boot-spl-dtb.img +cat $BINARIES_DIR/u-boot-dtb.bin >> $BINARIES_DIR/u-boot-spl-dtb.img + +install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf
board/asus/tinker/readme.txt new file +37 -0
@@ -0,0 +1,37 @@ +Tinker RK3288 +============= + +Tinker Board is a Single Board Computer (SBC) in an ultra-small form +factor that offers class-leading performance while leveraging outstanding +mechanical compatibility. + +Tinker link: +https://www.asus.com/in/Single-Board-Computer/Tinker-Board/ + +Wiki link: +https://openedev.amarulasolutions.com/display/ODWIKI/Tinker+RK3288 + +How to build it +=============== + + $ make asus_tinker_rk3288_defconfig + +Then you can edit the build options using + + $ make menuconfig + +Compile all and build rootfs image: + + $ make + +Prepare your SDCard +=================== + +Buildroot generates a ready-to-use SD card image that you can flash directly to +the card. The image will be in output/images/sdcard.img. +You can write this image directly to an SD card device (i.e. /dev/xxx): + + $ sudo dd if=output/images/sdcard.img of=/dev/xxx + $ sudo sync + +Finally, you can insert the SD card to the Tinker RK3288 board and boot it.
configs/asus_tinker_rk3288_defconfig new file +45 -0
45 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v9 3/3 board: Add Tinker RK3288 board support
Quoted 14 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jagan" == Jagan Teki <[email protected]> writes:
Add Tinker board, from rk3288 family SOC.
Signed-off-by Jagan Teki <[email protected]>---
Changes for v9:
- Rebase on master
Changes for v8:
- Rebase on master
Changes for v7:
- Rebase on master
Changes for v6:
- None
Changes for v5:
Quoted 8 lines
- Add host-uboot-tools
- Fix commit message
- Drop Qt5 configs
Changes for v4:
- enableBR2_LINUX_KERNEL_INSTALL_TARGET
- enableBR2_TARGET_UBOOT_FORMAT_DTB_BINe
- Create single u-boot binary
- Use linux-4.12 along with same headers
Committed to next, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v9 1/3 board: Add Vyasa RK3288 board support
In reply to Jagan TekiQuoted 22 lines · Jagan Teki
Add Vyasa board, from rk3288 family SOC.
Signed-off-by Jagan Teki <[email protected]>---
Changes for v9:
- Rebase on master
Changes for v8:
- Rebase on master
Changes for v7:
- Rebase on master
Changes for v6:
- None
Changes for v5:
- Add host-uboot-tools
- Fix commit message
- Drop Qt5 configs
Changes for v4:
- enableBR2_LINUX_KERNEL_INSTALL_TARGET
- enableBR2_TARGET_UBOOT_FORMAT_DTB_BINe
- Create single u-boot binary
- Use linux-4.12 along with same headers
Quoted 15 lines
.gitlab-ci.yml | 1 + DEVELOPERS | 2 ++ board/amarula/vyasa/extlinux.conf | 4 +++ board/amarula/vyasa/genimage.cfg | 21 +++++++++++++++ board/amarula/vyasa/linux_gmac.fragment | 3 +++ board/amarula/vyasa/post-build.sh | 9 +++++++ board/amarula/vyasa/readme.txt | 31 ++++++++++++++++++++++ configs/amarula_vyasa_rk3288_defconfig | 46 +++++++++++++++++++++++++++++++++ 8 files changed, 117 insertions(+) create mode 100644 board/amarula/vyasa/extlinux.conf create mode 100644 board/amarula/vyasa/genimage.cfg create mode 100644 board/amarula/vyasa/linux_gmac.fragment create mode 100755 board/amarula/vyasa/post-build.sh create mode 100644 board/amarula/vyasa/readme.txt create mode 100644 configs/amarula_vyasa_rk3288_defconfig
These been in ML, since from couple months any chance to comment or picking up these.
thanks!
Signature · 4 lines
Jagan Teki Senior Linux Kernel Engineer | Amarula Solutions U-Boot, Linux | Upstream Maintainer Hyderabad, India.
PATCH v9 1/3 board: Add Vyasa RK3288 board support
Hello,
Quoted 8 lines · Jagan Teki
Quoted 8 lines
Changes for v9:
- Rebase on master
Changes for v8:
- Rebase on master
Changes for v7:
- Rebase on master
Changes for v6:
- None
Why do you resend like crazy, with no changes between the different iterations ?
Quoted 2 lines
These been in ML, since from couple months any chance to comment or picking up these.
There are 250+ patches pending in patchwork. If you want your patches to be reviewed faster, please help reviewing patches from others.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH v9 1/3 board: Add Vyasa RK3288 board support
Quoted 13 lines · Thomas Petazzoni
Hello,
Quoted 8 lines · Jagan Teki
Quoted 8 lines
Changes for v9:
- Rebase on master
Changes for v8:
- Rebase on master
Changes for v7:
- Rebase on master
Changes for v6:
- None
Quoted 2 lines
Why do you resend like crazy, with no changes between the different iterations ?
There were rebase changes in between.
Quoted 6 lines
Quoted 3 lines
These been in ML, since from couple months any chance to comment or picking up these.
There are 250+ patches pending in patchwork. If you want your patches to be reviewed faster, please help reviewing patches from others.
Yes, I already did few which I'm aware of., no idea what can do much more.
PATCH v9 1/3 board: Add Vyasa RK3288 board support
In reply to Jagan Tekiboard/amarula/vyasa/linux_gmac.fragment line 3
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jagan" == Jagan Teki <[email protected]> writes:
Add Vyasa board, from rk3288 family SOC.
Signed-off-by Jagan Teki <[email protected]>+++ b/board/amarula/vyasa/linux_gmac.fragment
board/amarula/vyasa/linux_gmac.fragment new file +3
-0@@ -0,0 +1,3 @@ +# Currently kernel mainline exhibits issues when running rockchip gmac +# on the board, so enable it as loadable module and insert it later +CONFIG_DWMAC_ROCKCHIP=m
Here you talk about mainline, but:
configs/amarula_vyasa_rk3288_defconfig line 32
Quoted 9 lines
configs/amarula_vyasa_rk3288_defconfig new file +9
-0+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/openedev/linux-openedev" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="d127129e85a020879f334154300ddd3f7ec21c1e" +BR2_LINUX_KERNEL_DEFCONFIG="multi_v7" +BR2_LINUX_KERNEL_UIMAGE=y +BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x02000000" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="rk3288-vyasa" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/amarula/vyasa/linux_gmac.fragment"
It isn't using mainline.
But OK - Committed to next, thanks.
Signature · 1 line
Bye, Peter Korsgaard