FrontPage

SoCRockchip RK3328
CPUArm Cortex A53 1.3GHz Quad-core
GPUMali 450 MP2
Memory4GB

購入品

  • ROCK64 4GB版

スペック

  • cpu:Arm Cortex A53
  • architecture:Armv8
  • cpuinfo
    $ cat /proc/cpuinfo
    processor       : 0
    BogoMIPS        : 48.00
    Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x41
    CPU architecture: 8
    CPU variant     : 0x0
    CPU part        : 0xd03
    CPU revision    : 4
    
    processor       : 1
    BogoMIPS        : 48.00
    Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x41
    CPU architecture: 8
    CPU variant     : 0x0
    CPU part        : 0xd03
    CPU revision    : 4
    
    processor       : 2
    BogoMIPS        : 48.00
    Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x41
    CPU architecture: 8
    CPU variant     : 0x0
    CPU part        : 0xd03
    CPU revision    : 4
    
    processor       : 3
    BogoMIPS        : 48.00
    Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x41
    CPU architecture: 8
    CPU variant     : 0x0
    CPU part        : 0xd03
    CPU revision    : 4
    
    Serial          : 56cfae47a706c5e0
  • auxv
    0000000000000021 0000007f9acc1000
    0000000000000010 00000000000000ff
    0000000000000006 0000000000001000
    0000000000000011 0000000000000064
    0000000000000003 00000055721dd040
    0000000000000004 0000000000000038
    0000000000000005 0000000000000008
    0000000000000007 0000007f9ac96000
    0000000000000008 0000000000000000
    0000000000000009 00000055721df188
    000000000000000b 00000000000003e8
    000000000000000c 00000000000003e8
    000000000000000d 00000000000003e8
    000000000000000e 00000000000003e8
    0000000000000017 0000000000000000
    0000000000000019 0000007ff9888198
    000000000000001f 0000007ff9888feb
    000000000000000f 0000007ff98881a8
    0000000000000000 0000000000000000
  • kernel
    $ uname -a
    Linux rock64 4.4.70-rockchip-ayufan-83 #1 SMP Mon Jul 31 08:43:12 UTC 2017 aarch64 GNU/Linux
  • cpufreq 1.3GHz
    $ cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq
    1296000
    1296000
    1296000
    1296000
  • OS
    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Debian
    Description:    Debian GNU/Linux 9.1 (stretch)
    Release:        9.1
    Codename:       stretch
    $ cat /etc/os-release
    PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
    NAME="Debian GNU/Linux"
    VERSION_ID="9"
    VERSION="9 (stretch)"
    ID=debian
    HOME_URL="https://www.debian.org/"
    SUPPORT_URL="https://www.debian.org/support"
    BUG_REPORT_URL="https://bugs.debian.org/"
  • gcc
    $ gcc --version
    gcc (Debian 6.3.0-18) 6.3.0 20170516
    Copyright (C) 2016 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

初期設定

OS

  • ROCK64 Main Page - PINE64に一覧がある
  • いくつかLinuxを試して、Community Build Debian Stretchを試すことにした。
  • gccが6.3(!)

gparted

  • イメージが2GBなものなので、gpartedを使って拡張
  • 最後のパーティションが/で、その後ろが未使用領域。それを最大限拡張

インストール

  • 本当にminimalしか入ってないので、aptで必要パッケージをインストール
    $ sudo apt-get install cmake build-essential debconf libgtk2.0-dev openjdk-8-jre-headless strace less file
  • ついでにOpenCVのビデオ用に、gstreamerをインストール
    $ sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad

Time zoneの変更

  • dpkg-reconfigureコマンドは前述のdebconfパッケージに含まれる
    $ sudo dpkg-reconfigure tzdata

gitのconfig

  • 名前とメールアドレス
    $ git config --global user.name "Foo Bar"
    $ git config --global user.email foo@bar.com

SSH鍵の生成

  • とりあえずecdsa型で鍵を生成
    $ ssh-keygen -t ecdsa
    $ ssh-keygen -f hoge
    $ cat hoge.pub >> .ssh/authorized_keys

OpenCVのclone

$ time git clone git@github.com:opencv/opencv.git opencv-fork
Cloning into 'opencv'...
remote: Counting objects: 209536, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 209536 (delta 0), reused 0 (delta 0), pack-reused 209533
Receiving objects: 100% (209536/209536), 429.67 MiB | 214.00 KiB/s, done.
Resolving deltas: 100% (144977/144977), done.
Checking out files: 100% (5367/5367), done.

real    46m29.041s
user    1m59.190s
sys     0m26.775s
$ time git clone git@github.com:opencv/opencv_extra.git
Cloning into 'opencv_extra'...
Warning: Permanently added the RSA host key for IP address '192.30.255.112' to the list of known hosts.
remote: Counting objects: 5940, done.

Arm:Arm?:Arm Cortex A53?


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2018-04-03 (火) 10:53:31 (227d)