[U-Boot] [PATCH 2/2] board: Add Vamrs Limited Rock960 board support
Manivannan Sadhasivam
manivannan.sadhasivam at linaro.org
Thu Aug 30 02:54:36 UTC 2018
Hi Ezequiel,
On Wed, Aug 29, 2018 at 03:11:07AM -0300, Ezequiel Garcia wrote:
> On 21 August 2018 at 14:09, Manivannan Sadhasivam
> <manivannan.sadhasivam at linaro.org> wrote:
> > Add board support for Vamrs Limited Rock960 board, which is
> > one of the 96Boards Consumer Edition platform.
> >
> > Rock960 features:
> > * CPU: ARMv8 64bit Big-Little architecture,
> > * Big: dual-core Cortex-A72
> > * Little: quad-core Cortex-A53
> > * IRAM: 200KB
> > * DRAM: 2GB/4GB LPDDR3 @ 1866MHz
> > * eMMC: 16/32GB eMMC 5.1
> > * PMU: RK808
> > * SD/MMC
> > * USB:
> > * 1x USB 3.0 type A, 1x USB 2.0 type A (host mode only) and
> > 1x USB 3.0 type C OTG
> > * Display:
> > * 1x HDMI 2.0(Type A - full) up to 4Kx2K at 60Hz,
> > 1x 4L - MIPI DSI up to 1080p at 60Hz,
> > 1x DP 1.2(Type C) up to 4Kx2K at 60
> > * Camera: 2x 4-lane MIPI CSI
> > * PCI-E: 4- lane M.2 PCI-E 2.1
> > * Low Speed Expansion Connector
> > * High Speed Expansion Connector
> >
> > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam at linaro.org>
> > ---
> > arch/arm/mach-rockchip/rk3399/Kconfig | 16 +++++
> > board/vamrs/rock960_rk3399/Kconfig | 15 ++++
> > board/vamrs/rock960_rk3399/MAINTAINERS | 6 ++
> > board/vamrs/rock960_rk3399/Makefile | 6 ++
> > board/vamrs/rock960_rk3399/README | 79 +++++++++++++++++++++
> > board/vamrs/rock960_rk3399/rock960-rk3399.c | 50 +++++++++++++
> > configs/rock960-rk3399_defconfig | 62 ++++++++++++++++
> > include/configs/rock960_rk3399.h | 15 ++++
> > 8 files changed, 249 insertions(+)
> > create mode 100644 board/vamrs/rock960_rk3399/Kconfig
> > create mode 100644 board/vamrs/rock960_rk3399/MAINTAINERS
> > create mode 100644 board/vamrs/rock960_rk3399/Makefile
> > create mode 100644 board/vamrs/rock960_rk3399/README
> > create mode 100644 board/vamrs/rock960_rk3399/rock960-rk3399.c
> > create mode 100644 configs/rock960-rk3399_defconfig
> > create mode 100644 include/configs/rock960_rk3399.h
> >
> > diff --git a/arch/arm/mach-rockchip/rk3399/Kconfig b/arch/arm/mach-rockchip/rk3399/Kconfig
> > index 415466a49bb..ce4605187e3 100644
> > --- a/arch/arm/mach-rockchip/rk3399/Kconfig
> > +++ b/arch/arm/mach-rockchip/rk3399/Kconfig
> > @@ -28,6 +28,21 @@ config TARGET_PUMA_RK3399
> > * HDMI, eDP, MIPI-DSI, MIPI-DSI/CSI and MIPI-CSI
> > * SPI, I2C, I2S, UART, GPIO, ...
> >
> > +config TARGET_ROCK960_RK3399
> > + bool "Vamrs Limited Rock960 board"
> > + help
> > + Support for Rock960 board. This board complies with
> > + 96Board Consumer Edition Specification.
> > +
> > + Features:
> > + * Rockchip RK3399 SoC (2xCortex A72, 4xCortex A53, ARM Mali T860MP4)
> > + * 2GiB/4GiB RAM
> > + * 16/32GB eMMC, uSD slot
> > + * WiFi, Bluetooth
> > + * 1x USB 3.0 type A, 1x USB 2.0 type A (host mode only), 1x USB 3.0 type C OTG
> > + * HDMI
> > + * 20-pin low speed and 40-pin high speed expanders, 6 LED, 3 buttons
> > +
> > endchoice
> >
> > config SYS_SOC
> > @@ -38,5 +53,6 @@ config SYS_MALLOC_F_LEN
> >
> > source "board/rockchip/evb_rk3399/Kconfig"
> > source "board/theobroma-systems/puma_rk3399/Kconfig"
> > +source "board/vamrs/rock960_rk3399/Kconfig"
> >
> > endif
> > diff --git a/board/vamrs/rock960_rk3399/Kconfig b/board/vamrs/rock960_rk3399/Kconfig
> > new file mode 100644
> > index 00000000000..cacc53f3780
> > --- /dev/null
> > +++ b/board/vamrs/rock960_rk3399/Kconfig
> > @@ -0,0 +1,15 @@
> > +if TARGET_ROCK960_RK3399
> > +
> > +config SYS_BOARD
> > + default "rock960_rk3399"
> > +
> > +config SYS_VENDOR
> > + default "vamrs"
> > +
> > +config SYS_CONFIG_NAME
> > + default "rock960_rk3399"
> > +
> > +config BOARD_SPECIFIC_OPTIONS # dummy
> > + def_bool y
> > +
> > +endif
> > diff --git a/board/vamrs/rock960_rk3399/MAINTAINERS b/board/vamrs/rock960_rk3399/MAINTAINERS
> > new file mode 100644
> > index 00000000000..9f3fe75f4fb
> > --- /dev/null
> > +++ b/board/vamrs/rock960_rk3399/MAINTAINERS
> > @@ -0,0 +1,6 @@
> > +ROCK960-RK3399
> > +M: Manivannan Sadhasivam manivannan.sadhasivam at linaro.org
> > +S: Maintained
> > +F: board/rockchip/rock960_rk3399
> > +F: include/configs/rock960_rk3399.h
> > +F: configs/rock960-rk3399_defconfig
> > diff --git a/board/vamrs/rock960_rk3399/Makefile b/board/vamrs/rock960_rk3399/Makefile
> > new file mode 100644
> > index 00000000000..6c3e475b3a8
> > --- /dev/null
> > +++ b/board/vamrs/rock960_rk3399/Makefile
> > @@ -0,0 +1,6 @@
> > +# SPDX-License-Identifier: GPL-2.0+
> > +#
> > +# Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam at linaro.org>
> > +#
> > +
> > +obj-y += rock960-rk3399.o
> > diff --git a/board/vamrs/rock960_rk3399/README b/board/vamrs/rock960_rk3399/README
> > new file mode 100644
> > index 00000000000..be6b5cd1d34
> > --- /dev/null
> > +++ b/board/vamrs/rock960_rk3399/README
> > @@ -0,0 +1,79 @@
> > +Introduction
> > +============
> > +
> > +Rock960 is a 96Boards Consumer Edition platform featuring the Rockchip
> > +RK3399 SoC.
> > +
> > +Rock960 features:
> > + * CPU: ARMv8 64bit Big-Little architecture,
> > + * Big: dual-core Cortex-A72
> > + * Little: quad-core Cortex-A53
> > + * IRAM: 200KB
> > + * DRAM: 2GB/4GB LPDDR3 @ 1866MHz
> > + * eMMC: 16/32GB eMMC 5.1
> > + * PMU: RK808
> > + * SD/MMC
> > + * USB:
> > + * 1x USB 3.0 type A, 1x USB 2.0 type A (host mode only) and
> > + 1x USB 3.0 type C OTG
> > + * Display:
> > + * 1x HDMI 2.0(Type A - full) up to 4Kx2K at 60Hz,
> > + 1x 4L - MIPI DSI up to 1080p at 60Hz,
> > + 1x DP 1.2(Type C) up to 4Kx2K at 60
> > + * Camera: 2x 4-lane MIPI CSI
> > + * PCI-E: 4- lane M.2 PCI-E 2.1
> > + * Low Speed Expansion Connector
> > + * High Speed Expansion Connector
> > +
> > +Here is the step-by-step to boot to U-Boot on rk3399.
> > +
> > +Get the Source and prebuild binary
> > +==================================
> > +
> > + > git clone https://github.com/96rocks/rkbin.git
> > + > git clone https://github.com/rockchip-linux/rkdeveloptool.git
> > +
> > +Compile the U-Boot
> > +==================
> > +
> > + > cd ../u-boot
> > + > export ARCH=arm64
> > + > export CROSS_COMPILE=aarch64-linux-gnu-
> > + > make rock960-rk3399_defconfig
> > + > make
> > +
> > +Compile the rkdeveloptool
> > +=========================
> > + Follow instructions in latest README
> > + > cd ../rkdeveloptool
> > + > autoreconf -i
> > + > ./configure
> > + > make
> > + > sudo make install
> > +
> > +Package the image
> > +=================
> > +
> > +Package the image for Rockchip miniloader
>
> Is there any reason to use the miniloader instead of SPL?
>
I had some issues flashing the image using SPL initially. So decided
to use miniloader till I'm able to find time for it.
Thanks,
Mani
> Regards,
> Ezequiel
>
> --
> Ezequiel GarcĂa, VanguardiaSur
> www.vanguardiasur.com.ar
More information about the U-Boot
mailing list