Difference between revisions of "RK3399"

From Rockchip open source Document
Jump to: navigation, search
(Created page with "= Overview = == Cortex-A7 == = SoC Features =   = History =   = Documentation =   = Software = == Original SDKs == = Devices = = See also = = Owners...")
 
Line 14: Line 14:
  
 
 
 
 
 +
  
 
= Software =
 
= Software =
  
== Original SDKs ==
+
== Borad configuration ==
 +
 
 +
{|
 +
|-
 +
! <span style="color:#ffffff;"><span style="background-color:#0000ff;">board</span></span>
 +
! <span style="color:#ffffff;"><span style="background-color:#0000ff;">kernel</span></span>
 +
! <span style="color:#ffffff;"><span style="background-color:#0000ff;">uboot</span></span>
 +
! <span style="color:#ffffff;"><span style="background-color:#0000ff;">dts</span></span>
 +
|-
 +
| rk3399-excavator
 +
| rockchip_linux_defconfig
 +
| rk3399_linux_defconfig && evb-rk3399_defconfig
 +
| rk3399-sapphire-excavator-linux.dts
 +
|}
 +
 
 +
== Chip configuration ==
 +
 
 +
{|
 +
|-
 +
! <span style="color:#FFFFFF;"><span style="background-color:#0000FF;">chip</span></span>
 +
! <span style="color:#FFFFFF;"><span style="background-color:#0000FF;">Kernel eMMC index</span></span>
 +
! <span style="color:#FFFFFF;"><span style="background-color:#0000FF;">Kernel SD index</span></span>
 +
! <span style="color:#FFFFFF;"><span style="background-color:#0000FF;">Uboot eMMC index</span></span>
 +
! <span style="color:#FFFFFF;"><span style="background-color:#0000FF;">Uboot SD index</span></span>
 +
! <span style="color:#FFFFFF;"><span style="background-color:#0000FF;">Baud speed</span></span>
 +
|-
 +
| style="text-align: center;" | RK3399
 +
| style="text-align: center;" | 1
 +
| style="text-align: center;" | 0
 +
| style="text-align: center;" | 0
 +
| style="text-align: center;" | 1
 +
| style="text-align: center;" | 1500000 or 115200
 +
|}
 +
 
 +
== How to get the sources ==
 +
 
 +
The rockchip linux SDK source tree is located in multi Git repository hosted by Github. The SDK uses repo to sync down source code.&nbsp;Beside the generic community Linux support, we have chip optimized Linux SDK and it's also opensource and can get source from github.
 +
 
 +
RK3399 optimized Debian & Buildroot
 +
<pre><code>repo init -u [https://github.com/rockchip-linux/manifests https://github.com/rockchip-linux/manifests] -m rk3399.xml
 +
repo sync</code>
 +
</pre>
 +
 
 +
== How to build the sources ==
 +
 
 +
=== Build Environment ===
 +
 
 +
Please use GCC 5
 +
<pre><code>$ sudo apt-get install git-core gitk git-gui gcc-arm-linux-gnueabihf u-boot-tools device-tree-compiler gcc-aarch64-linux-gnu    mtools parted</code></pre>
 +
 
 +
=== Installing the build tools and download source ===
 +
 
 +
Please follow&nbsp;[http://rockchip.wikidot.com/linux-user-guide linux user guide]&nbsp;to install the build tools and download source.
 +
 
 +
=== Building kernel ===
 +
 
 +
For ARM V8 (RK3399 optimized SDK)
 +
<pre><code>make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- rockchip_linux_defconfig
 +
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- rk3399-sapphire-excavator-linux.img -j4</code></pre>
 +
 
 +
=== Building uboot ===
 +
 
 +
For RK3399 optimized SDK (rkproduct uboot)
 +
<pre><code>CROSS_COMPILE=aarch64-linux-gnu- make rk3399_linux_defconfig all</code></pre>
 +
 
 +
=== Building rootfs ===
 +
 
 +
==== Debian ====
 +
 
 +
Yu can download the prebuilt image directly.
 +
 
 +
[http://pan.baidu.com/s/1eSE1tfW Baidu Pan]、[https://drive.google.com/folderview?id=0BwAJtUrQohwXdGRVYTAwdlJDOUU&usp=sharing Google Drive]
 +
 
 +
or you could use the&nbsp;[https://github.com/rockchip-linux/rk-rootfs-build rootfs-build-script]&nbsp;from Rockchip to build rootfs yourselves.
 +
 
 +
==== Yocto ====
 +
 
 +
If you want to use Yocto to build your rootfs see&nbsp;[http://rockchip.wikidot.com/yocto-user-guide yocto-user-guide]&nbsp;for detail.
 +
 
 +
==== Buildroot ====
 +
 
 +
If you want to use Buildroot to build your rootfs see&nbsp;[http://rockchip.wikidot.com/buildroot-user-guide buildroot-user-guide]&nbsp;for detail.
 +
 
 +
&nbsp;
  
 
= Devices =
 
= Devices =

Revision as of 02:12, 3 March 2017

Overview

Cortex-A7

SoC Features

 

History

 

Documentation

 


Software

Borad configuration

board kernel uboot dts
rk3399-excavator rockchip_linux_defconfig rk3399_linux_defconfig && evb-rk3399_defconfig rk3399-sapphire-excavator-linux.dts

Chip configuration

chip Kernel eMMC index Kernel SD index Uboot eMMC index Uboot SD index Baud speed
RK3399 1 0 0 1 1500000 or 115200

How to get the sources

The rockchip linux SDK source tree is located in multi Git repository hosted by Github. The SDK uses repo to sync down source code. Beside the generic community Linux support, we have chip optimized Linux SDK and it's also opensource and can get source from github.

RK3399 optimized Debian & Buildroot

<code>repo init -u [https://github.com/rockchip-linux/manifests https://github.com/rockchip-linux/manifests] -m rk3399.xml
repo sync</code>

How to build the sources

Build Environment

Please use GCC 5

<code>$ sudo apt-get install git-core gitk git-gui gcc-arm-linux-gnueabihf u-boot-tools device-tree-compiler gcc-aarch64-linux-gnu     mtools parted</code>

Installing the build tools and download source

Please follow linux user guide to install the build tools and download source.

Building kernel

For ARM V8 (RK3399 optimized SDK)

<code>make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- rockchip_linux_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- rk3399-sapphire-excavator-linux.img -j4</code>

Building uboot

For RK3399 optimized SDK (rkproduct uboot)

<code>CROSS_COMPILE=aarch64-linux-gnu- make rk3399_linux_defconfig all</code>

Building rootfs

Debian

Yu can download the prebuilt image directly.

Baidu PanGoogle Drive

or you could use the rootfs-build-script from Rockchip to build rootfs yourselves.

Yocto

If you want to use Yocto to build your rootfs see yocto-user-guide for detail.

Buildroot

If you want to use Buildroot to build your rootfs see buildroot-user-guide for detail.

 

Devices

See also

Owners of the SoC on IRC

Commuity Support

References

Exteneral Links