Arm

スペック

  • cpu:Arm Cortex A7 (Quad core) 1.2GHz
  • architecture:ARMv7 Processor rev 5
  • cpuinfo
    $ cat /proc/cpuinfo
    Processor       : ARMv7 Processor rev 5 (v7l)
    processor       : 0
    BogoMIPS        : 5714.28
    
    processor       : 1
    BogoMIPS        : 5714.28
    
    processor       : 2
    BogoMIPS        : 5714.28
    
    processor       : 3
    BogoMIPS        : 5714.28
    
    Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x0
    CPU part        : 0xc07
    CPU revision    : 5
    Hardware        : sun8i
    Revision        : 0000
    Serial          : 5400786708201c2a098e
  • lscpu
    $ lscpu
    Architecture:          armv7l
    Byte Order:            Little Endian
    CPU(s):                4
    On-line CPU(s) list:   0-3
    Thread(s) per core:    1
    Core(s) per socket:    4
    Socket(s):             1
    CPU max MHz:           1200.0000
    CPU min MHz:           480.0000
    Hypervisor vendor:     (null)
    Virtualization type:   full
  • max_freq 1.2GHz
    $ cat /sys/bus/cpu/devices/cpu*/cpufreq/cpuinfo_max_freq
    1200000
    1200000
    1200000
    1200000
  • auxv
    00000010 000fb8d7
    00000006 00001000
    00000011 00000064
    00000003 b6f17034
    00000004 00000020
    00000005 00000009
    00000007 b6eee000
    00000008 00000000
    00000009 b6f18b11
    0000000b 000003e8
    0000000c 000003e8
    0000000d 000003e8
    0000000e 000003e8
    00000017 00000000
    00000019 be9cc7ea
    0000001f be9ccfef
    0000000f be9cc7fa
    00000000 00000000
  • kernel
    $ uname -a
    Linux orangepione 3.4.113-sun8i #18 SMP PREEMPT Wed Jan 24 22:10:49 CET 2018 armv7l armv7l armv7l GNU/Linux
  • OS
    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 16.04.4 LTS
    Release:        16.04
    Codename:       xenial
    $ cat /etc/os-release
    NAME="Ubuntu"
    VERSION="16.04.4 LTS (Xenial Xerus)"
    ID=ubuntu
    ID_LIKE=debian
    PRETTY_NAME="Ubuntu 16.04.4 LTS"
    VERSION_ID="16.04"
    HOME_URL="http://www.ubuntu.com/"
    SUPPORT_URL="http://help.ubuntu.com/"
    BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
    VERSION_CODENAME=xenial
    UBUNTU_CODENAME=xenial
  • gcc
    $ gcc --version gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
    Copyright (C) 2015 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.
  • Orange Pi One

セットアップ

  • armbian のUbuntuでセットアップ
  • デバッグコンソールは115200kbps
  • rootと1234でログイン
  • rootのパスワードを決定
  • ユーザを作成
  • 今回もorangeというユーザを作ってみた。
  • "720pだけど、設定変える?"という質問が出た。
  • 今回もheadless運用を考えているのでnを押して進んだ
  • "Warning: a reboot is needed to finish resizing the filesystem"と出るのでreboot
    Ubuntu 16.04.3 LTS orangepione ttyS0
    
    orangepione login: root       <- rootでログイン
    Password:                     <- パスワードは1234
    You are required to change your password immediately (root enforced)
    Changing password for root.
    (current) UNIX password:      <- 1234を再度タイプ
    Enter new UNIX password:      <- ルートパスワードを設定
    Retype new UNIX password:     <- ルートパスワードを再度タイプ
      ___                               ____  _    ___
     / _ \ _ __ __ _ _ __   __ _  ___  |  _ \(_)  / _ \ _ __   ___
    | | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | | | | | '_ \ / _ \
    | |_| | | | (_| | | | | (_| |  __/ |  __/| | | |_| | | | |  __/
     \___/|_|  \__,_|_| |_|\__, |\___| |_|   |_|  \___/|_| |_|\___|
                           |___/
    
    Welcome to ARMBIAN 5.38 stable Ubuntu 16.04.3 LTS 3.4.113-sun8i
    System load:   0.08 0.20 0.10   Up time:       3 min
    Memory usage:  6 % of 494MB     IP:
    CPU temp:      33°C
    Usage of /:    75% of 2.9G
    
    [ General system configuration (beta): armbian-config ]
    
    Warning: a reboot is needed to finish resizing the filesystem
    Please reboot the system as soon as possible
    New to Armbian? Check the documentation first: https://docs.armbian.com
    
    
    Thank you for choosing Armbian! Support: www.armbian.com
    
    Creating a new user account. Press <Ctrl-C> to abort
    Desktop environment will not be enabled if you abort the new user creation
    
    Please provide a username (eg. your forename): orange <- 一般ユーザ作成
    Trying to add user orange
    Adding user `orange' ...
    Adding new group `orange' (1000) ...
    Adding new user `orange' (1000) with group `orange' ...
    Creating home directory `/home/orange' ...
    Copying files from `/etc/skel' ...
    Enter new UNIX password:          <- 一般ユーザのパスワード設定
    Retype new UNIX password:         <- 一般ユーザのパスワードを再度タイプ
    passwd: password updated successfully
    Changing the user information for orange
    Enter the new value, or press ENTER for the default
            Full Name []:
            Room Number []:
            Work Phone []:
            Home Phone []:
            Other []:
    Is the information correct? [Y/n]
    
    Dear orange, your account orange has been created and is sudo enabled.
    Please use this account for your daily work from now on.
    
    
    Your display settings are currently 720p (1280x720). To change this use the
    h3disp utility. Do you want to change display settings now? [nY] n <- とりあえずnをタイプ
    
    
    
    Warning: a reboot is needed to finish resizing the filesystem
    Please reboot the system now
    
    root@orangepione:~# reboot          <- 再起動

アップデート

  • だいたい13分かかった
    $ time sudo apt-get update && time sudo apt-get -y upgrade
    
    real    13m13.028s
    user    3m19.550s
    sys     1m21.170s

タイムゾーンの変更

  • せっかくなので、armbian-configで変える
    $ sudo armbian-config
    [sudo] password for orange:
  • Personal -> Timezone と進んで、選択肢の中からAsia -> Tokyoと選択
  • Cancelで抜ける

諸々のパッケージインストール

  • もろもろ入れる
    $ sudo apt-get install ssh cmake git build-essential vim libgtk-3-dev openjdk-8-jre-headless libavcodec-dev libavformat-dev libswscale-dev libswresample-dev libavutil-dev libavresample-dev ccache strace

Gitのコンフィグ

  • 忘れる前に
    $ git config --global user.email tomoaki.teshima@gmail.com
    $ git config --global user.name "Tomoaki Teshima"
    $ git config --global push.default simple

OpenCVのclone

  • OpenCVとOpenCV のデータセット
    $ time git clone git@github.com:tomoaki0705/opencv.git opencv-fork && pushd opencv-fork && git remote add upstream git@github.com:opencv/opencv.git && popd && time git clone git@github.com:opencv/opencv_extra.git

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2018-04-02 (月) 13:47:08 (201d)