ODROID-N2

SoCAmlogic S922X
CPUArm Cortex A73 2.2Ghz Quad-core+Cortex A53 1.9GHz Dual-core
GPUMali G52
MemoryDDR4 4GB
Storage64GB eMMC

Arm:Arm Cortex A53?:Arm Cortex A73?

スペック

  • CPU: Cortex-A73+A53
  • kernel
    $ uname -a
    Linux odroid 4.9.230-89 #1 SMP PREEMPT Tue Jul 14 13:08:17 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
  • OS
    $ lsb_release  -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 20.04 LTS
    Release:        20.04
    Codename:       focal
  • 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        : 0xd09
    CPU revision    : 2
    
    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        : 0xd09
    CPU revision    : 2
    
    processor       : 4
    BogoMIPS        : 48.00
    Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x41
    CPU architecture: 8
    CPU variant     : 0x0
    CPU part        : 0xd09
    CPU revision    : 2
    
    processor       : 5
    BogoMIPS        : 48.00
    Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32
    CPU implementer : 0x41
    CPU architecture: 8
    CPU variant     : 0x0
    CPU part        : 0xd09
    CPU revision    : 2
    
    CPU info        : 290c400001121a00000239314e315350
    Serial          : f48f513c-8aa4-4b9a-be39-001e064250c9
    Hardware        : Hardkernel ODROID-N2Plus
    Revision        : 0400
  • lscpu
    $ lscpu
    Architecture:        aarch64
    CPU op-mode(s):      32-bit, 64-bit
    Byte Order:          Little Endian
    CPU(s):              6
    On-line CPU(s) list: 0-5
    Thread(s) per core:  1
    Core(s) per socket:  3
    Socket(s):           2
    Vendor ID:           ARM
    Model:               4
    Model name:          Cortex-A53
    Stepping:            r0p4
    CPU max MHz:         2208.0000
    CPU min MHz:         500.0000
    BogoMIPS:            48.00
    Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32
  • auxv
    $ LD_SHOW_AUXV=1 ls
    AT_SYSINFO_EHDR:      0x7fabbae000
    AT_HWCAP:             ff
    AT_PAGESZ:            4096
    AT_CLKTCK:            100
    AT_PHDR:              0x5565867040
    AT_PHENT:             56
    AT_PHNUM:             9
    AT_BASE:              0x7fabb7e000
    AT_FLAGS:             0x0
    AT_ENTRY:             0x556586c940
    AT_UID:               1000
    AT_EUID:              1000
    AT_GID:               1000
    AT_EGID:              1000
    AT_SECURE:            0
    AT_RANDOM:            0x7fef8276e8
    AT_EXECFN:            /bin/ls
    AT_PLATFORM:          aarch64
  • cpufreq 1.9GHz
    $ cat /sys/bus/cpu/devices/cpu?/cpufreq/cpuinfo_max_freq
    1908000
    1908000
    2208000
    2208000
    2208000
    2208000
  • gcc
    $ gcc --version
    gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
    Copyright (C) 2019 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.
    
  • cmake
    $ cmake --version
    cmake version 3.16.3
    
    CMake suite maintained and supported by Kitware (kitware.com/cmake).
  • ccache 初期状態では未インストール
    $ ccache --version
    ccache version 3.7.7
    
    Copyright (C) 2002-2007 Andrew Tridgell
    Copyright (C) 2009-2020 Joel Rosdahl
    
    This program is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free Software
    Foundation; either version 3 of the License, or (at your option) any later
    version.
  • clinfo
    • 恒例のここを参考に
      $ sudo apt install mali-fbdev
      $ sudo mkdir -p /etc/OpenCL/vendors/
      $ sudo vim /etc/OpenCL/vendors/mali.icd
      $ sudo cat /etc/OpenCL/vendors/mali.icd 
      libOpenCL.so
      $ cd /usr/lib/aarch64-linux-gnu/
      $ sudo ln -s libMali.so libOpenCL.so
      $ clinfo
      Number of platforms                               1
        Platform Name                                   ARM Platform
        Platform Vendor                                 ARM
        Platform Version                                OpenCL 2.0 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58
        Platform Profile                                FULL_PROFILE
        Platform Extensions                             cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_3d_image_writes
      cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp16 cl_khr_icd cl_khr_egl_image cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_subgroups cl_khr_create_command_queue cl_arm_core_id cl_arm_printf cl_arm_thread_limit_hint
      cl_arm_non_uniform_work_group_size cl_arm_import_memory cl_arm_shared_virtual_memory
        Platform Extensions function suffix             ARM
      
        Platform Name                                   ARM Platform
      Number of devices                                 1
        Device Name                                     Mali-G52
        Device Vendor                                   ARM
        Device Vendor ID                                0x72120000
        Device Version                                  OpenCL 2.0 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58
        Driver Version                                  2.0
        Device OpenCL C Version                         OpenCL C 2.0 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58
        Device Type                                     GPU
        Device Profile                                  FULL_PROFILE
        Device Available                                Yes
        Compiler Available                              Yes
        Linker Available                                Yes
        Max compute units                               2
        Max clock frequency                             750MHz
        Device Partition                                (core)
          Max number of sub-devices                     0
          Supported partition types                     None
          Supported affinity domains                    (n/a)
        Max work item dimensions                        3
        Max work item sizes                             384x384x384
        Max work group size                             384
        Preferred work group size multiple              8
        Preferred / native vector sizes
          char                                                16 / 4
          short                                                8 / 2
          int                                                  4 / 1
          long                                                 2 / 1
          half                                                 8 / 2        (cl_khr_fp16)
          float                                                4 / 1
          double                                               0 / 0        (n/a)
        Half-precision Floating-point support           (cl_khr_fp16)
          Denormals                                     Yes
          Infinity and NANs                             Yes
          Round to nearest                              Yes
          Round to zero                                 Yes
          Round to infinity                             Yes
          IEEE754-2008 fused multiply-add               Yes
          Support is emulated in software               No
        Single-precision Floating-point support         (core)
          Denormals                                     Yes
          Infinity and NANs                             Yes
          Round to nearest                              Yes
          Round to zero                                 Yes
          Round to infinity                             Yes
          IEEE754-2008 fused multiply-add               Yes
          Support is emulated in software               No
          Correctly-rounded divide and sqrt operations  No
        Double-precision Floating-point support         (n/a)
        Address bits                                    64, Little-Endian
        Global memory size                              3887648768 (3.621GiB)
        Error Correction support                        No
        Max memory allocation                           971912192 (926.9MiB)
        Unified memory for Host and Device              Yes
        Shared Virtual Memory (SVM) capabilities        (core)
          Coarse-grained buffer sharing                 Yes
          Fine-grained buffer sharing                   No
          Fine-grained system sharing                   No
          Atomics                                       No
        Shared Virtual Memory (SVM) capabilities (ARM)
          Coarse-grained buffer sharing                 Yes
          Fine-grained buffer sharing                   No
          Fine-grained system sharing                   No
          Atomics                                       No
        Minimum alignment for any data type             128 bytes
        Alignment of base address                       1024 bits (128 bytes)
        Preferred alignment for atomics
          SVM                                           0 bytes
          Global                                        0 bytes
          Local                                         0 bytes
        Max size for global variable                    65536 (64KiB)
        Preferred total size of global vars             0
        Global Memory cache type                        Read/Write
        Global Memory cache size                        131072 (128KiB)
        Global Memory cache line size                   64 bytes
        Image support                                   Yes
          Max number of samplers per kernel             16
          Max size for 1D images from buffer            65536 pixels
          Max 1D or 2D image array size                 2048 images
          Base address alignment for 2D image buffers   32 bytes
          Pitch alignment for 2D image buffers          64 pixels
          Max 2D image size                             65536x65536 pixels
          Max 3D image size                             65536x65536x65536 pixels
          Max number of read image args                 128
          Max number of write image args                64
          Max number of read/write image args           64
        Max number of pipe args                         16
        Max active pipe reservations                    1
        Max pipe packet size                            1024
        Local memory type                               Global
        Local memory size                               32768 (32KiB)
        Max number of constant args                     8
        Max constant buffer size                        65536 (64KiB)
        Max size of kernel argument                     1024
        Queue properties (on host)
          Out-of-order execution                        Yes
          Profiling                                     Yes
        Queue properties (on device)
          Out-of-order execution                        Yes
          Profiling                                     Yes
          Preferred size                                2097152 (2MiB)
          Max size                                      16777216 (16MiB)
        Max queues on device                            1
        Max events on device                            1024
        Prefer user sync for interop                    No
        Profiling timer resolution                      1000ns
        Execution capabilities
          Run OpenCL kernels                            Yes
          Run native kernels                            No
        printf() buffer size                            1048576 (1024KiB)
        Built-in kernels                                (n/a)
        Device Extensions                               cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_3d_image_writes
      cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_fp16 cl_khr_icd cl_khr_egl_image cl_khr_image2d_from_buffer cl_khr_depth_images cl_khr_subgroups cl_khr_create_command_queue cl_arm_core_id cl_arm_printf cl_arm_thread_limit_hint
      cl_arm_non_uniform_work_group_size cl_arm_import_memory cl_arm_shared_virtual_memory
      
      NULL platform behavior
        clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  ARM Platform
        clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [ARM]
        clCreateContext(NULL, ...) [default]            Success [ARM]
        clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
          Platform Name                                 ARM Platform
          Device Name                                   Mali-G52
        clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
        clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
          Platform Name                                 ARM Platform
          Device Name                                   Mali-G52
        clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
        clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
        clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
          Platform Name                                 ARM Platform
          Device Name                                   Mali-G52
      
      ICD loader properties
        ICD loader Name                                 OpenCL ICD Loader
        ICD loader Vendor                               OCL Icd free software
        ICD loader Version                              2.2.11
        ICD loader Profile                              OpenCL 2.1

購入品

  • 64GB eMMC
  • ODROID-N2+ 4GB
    • 公式のeMMCに入ってきたのはN2(not N2+)用のイメージだったので、公式から配布されているOSイメージのうち、http://de.eu.odroid.in/http://odroid.in/ から配布されている、N2向け20.04のイメージをダウンロードする。

セットアップ

  • 初期セットアップ
    $ sudo apt update 
    $ sudo apt full-upgrade
  • パッケージインストール
    $ time sudo apt install git clinfo tmux ccache libgtk-3-dev openjdk-11-jre-headless vim mali-fbdev

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2020-08-14 (金) 05:35:32 (47d)