[[FrontPage]]

#contents

https://www.hardkernel.com/shop/odroid-n2-with-4gbyte-ram/

|SoC|Amlogic S922X|
|CPU|Arm Cortex A72 1.8Ghz Quad-core+Cortex A53 1.9GHz Dual-core|
|GPU|Mali G52|
|Memory|DDR4 4GB|
|Storage|32GB eMMC|

[[Arm]][[:Arm Cortex A53]][[:Arm Cortex A72]]

*スペック [#t917ed10]
-CPU: Cortex-A72+A53
-kernel
 $ uname -a
 Linux odroid 4.9.162-22 #1 SMP PREEMPT Mon Mar 25 12:17:29 -03 2019 aarch64 aarch64 aarch64 GNU/Linux
 odroid@odroid:~$ gcc --version
 gcc (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04) 7.3.0
 Copyright (C) 2017 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
 $ lsb_release  -a
 No LSB modules are available.
 Distributor ID:	Ubuntu
 Description:	Ubuntu 18.04.2 LTS
 Release:	18.04
 Codename:	bionic
-cpuinfo
 odroid@odroid:~$ 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	: 290a4000011c0d000006383448564d50
 Serial		: 8bc59af9-66d8-4ec0-8caf-001e064229f9
 Hardware	: Hardkernel ODROID-N2
 Revision	: 0400
-lscpu
 $ lscpu
 Architecture:        aarch64
 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:         1896.0000
 CPU min MHz:         100.0000
 BogoMIPS:            48.00
 Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32
-auxv
 $ xxd -e -g8 /proc/self/auxv
 00000000: 0000000000000021 0000007f79aa9000  !..........y....
 00000010: 0000000000000010 00000000000000ff  ................
 00000020: 0000000000000006 0000000000001000  ................
 00000030: 0000000000000011 0000000000000064  ........d.......
 00000040: 0000000000000003 0000005591afe040  ........@...U...
 00000050: 0000000000000004 0000000000000038  ........8.......
 00000060: 0000000000000005 0000000000000008  ................
 00000070: 0000000000000007 0000007f79a7e000  ...........y....
 00000080: 0000000000000008 0000000000000000  ................
 00000090: 0000000000000009 0000005591b001a4  ............U...
 000000a0: 000000000000000b 00000000000003e8  ................
 000000b0: 000000000000000c 00000000000003e8  ................
 000000c0: 000000000000000d 00000000000003e8  ................
 000000d0: 000000000000000e 00000000000003e8  ................
 000000e0: 0000000000000017 0000000000000000  ................
 000000f0: 0000000000000019 0000007fc664a3a8  ..........d.....
 00000100: 000000000000001f 0000007fc664afeb  ..........d.....
 00000110: 000000000000000f 0000007fc664a3b8  ..........d.....
 00000120: 0000000000000000 0000000000000000  ................
|0000000000000021|0000007f79aa9000|
|0000000000000010|00000000000000ff|
|0000000000000006|0000000000001000|
|0000000000000011|0000000000000064|
|0000000000000003|0000005591afe040|
|0000000000000004|0000000000000038|
|0000000000000005|0000000000000008|
|0000000000000007|0000007f79a7e000|
|0000000000000008|0000000000000000|
|0000000000000009|0000005591b001a4|
|000000000000000b|00000000000003e8|
|000000000000000c|00000000000003e8|
|000000000000000d|00000000000003e8|
|000000000000000e|00000000000003e8|
|0000000000000017|0000000000000000|
|0000000000000019|0000007fc664a3a8|
|000000000000001f|0000007fc664afeb|
|000000000000000f|0000007fc664a3b8|
|0000000000000000|0000000000000000|
-cpufreq 1.9GHz
 $ cat /sys/bus/cpu/devices/cpu?/cpufreq/cpuinfo_max_freq
 1896000
 1896000
 1800000
 1800000
 1800000
 1800000
-gcc
 $ gcc --version
 gcc (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04) 7.3.0
 Copyright (C) 2017 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.10.2
 
 CMake suite maintained and supported by Kitware (kitware.com/cmake).
-clinfo
 $ clinfo
 Number of platforms                               0
--(´・ω・`)しょんぼり
--[[ここ>https://forum.odroid.com/viewtopic.php?t=34020]]に詳細が書いてあった。
 $ sudo mkdir -p /etc/OpenCL/vendors
 $ sudo touch /etc/OpenCL/vendors/mali.icd
 $ 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                             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
   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                              3887435776 (3.62GiB)
   Error Correction support                        No
   Max memory allocation                           971858944 (926.8MiB)
   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                                
   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
   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
-UART Debug console
--[[accessory:development:usb_uart_kit [ODROID Wiki]>https://wiki.odroid.com/accessory/development/usb_uart_kit]]&note{ref-debug-uart:[[accessory:development:usb_uart_kit [ODROID Wiki]>https://wiki.odroid.com/accessory/development/usb_uart_kit]]};
--3.3V 115200 8N1
 
*購入品 [#l87e6e9c]
-32GB eMMC
-ODROID-N2 4GB

*初期設定 [#yc2ab60a]
-1回目の電源投入時はシステム設定のためにすぐに電源が切れる。規定の動作。
-電源再投入は、ボタンが無いので、電源プラグを抜いて再度差し込む
**パッケージ諸々のアップデート [#y6d166b9]

-Ubuntuなので、apt-getでアップデート可能
 $ sudo apt update
 $ sudo apt upgrade
-同梱のマニュアルによると、初回時にシステムを最新にするために以下のコマンドを実行するように書かれている
 $ sudo apt update
 $ sudo apt full-upgrade
 $ sudo reboot
**諸々初期設定 [#vcdf87a8]
-必要なのはgit、ccache、vim など
 $ time sudo apt install libgtk-3-dev openjdk-8-jre-headless git ccache clinfo vim
 $ ssh-keygen -t ecdsa
 $ ssh-keygen -f hoge
 $ cat hoge.pub >> .ssh/authorized_keys
 $ sudo timedatectl set-timezone Asia/Tokyo
 $ git config --global user.name "Foo Bar"
 $ git config --global user.email foo@bar.com

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS