#contents
|SoC|Rockchip RK3588|
|CPU|Cortex A55 1.8GHz 4Core+A76 2.3GHz 4Core|
|GPU|Mali-G610 MP4 Quad-Core|
|Memory|16GB LPDDR5|

- [[spec sheet>https://download.t-firefly.com/%E4%BA%A7%E5%93%81%E8%A7%84%E6%A0%BC%E6%96%87%E6%A1%A3/%E5%BC%80%E6%BA%90%E4%B8%BB%E6%9D%BF/ROC-RK3588S-PC%20Specification.pdf]]

*スペック [#z641c7a5]
-CPU:Cortex-A55 Quad core 1.8GHz + Cortex-A76 Quad core 2.3GHz
-Architecture:Armv8.2
-cpuinfo
 $ cat /proc/cpuinfo
 processor       : 0
 BogoMIPS        : 48.00
 Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
 CPU implementer : 0x41
 CPU architecture: 8
 CPU variant     : 0x2
 CPU part        : 0xd05
 CPU revision    : 0
 
 processor       : 1
 BogoMIPS        : 48.00
 Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
 CPU implementer : 0x41
 CPU architecture: 8
 CPU variant     : 0x2
 CPU part        : 0xd05
 CPU revision    : 0
 
 processor       : 2
 BogoMIPS        : 48.00
 Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
 CPU implementer : 0x41
 CPU architecture: 8
 CPU variant     : 0x2
 CPU part        : 0xd05
 CPU revision    : 0
 
 processor       : 3
 BogoMIPS        : 48.00
 Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
 CPU implementer : 0x41
 CPU architecture: 8
 CPU variant     : 0x2
 CPU part        : 0xd05
 CPU revision    : 0
 
 processor       : 4
 BogoMIPS        : 48.00
 Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
 CPU implementer : 0x41
 CPU architecture: 8
 CPU variant     : 0x4
 CPU part        : 0xd0b
 CPU revision    : 0
 
 processor       : 5
 BogoMIPS        : 48.00
 Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
 CPU implementer : 0x41
 CPU architecture: 8
 CPU variant     : 0x4
 CPU part        : 0xd0b
 CPU revision    : 0
 
 processor       : 6
 BogoMIPS        : 48.00
 Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
 CPU implementer : 0x41
 CPU architecture: 8
 CPU variant     : 0x4
 CPU part        : 0xd0b
 CPU revision    : 0
 
 processor       : 7
 BogoMIPS        : 48.00
 Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
 CPU implementer : 0x41
 CPU architecture: 8
 CPU variant     : 0x4
 CPU part        : 0xd0b
 CPU revision    : 0
 
 Serial          : 902199e23ed07def
-auxv
 $ LD_SHOW_AUXV=1 ls
 AT_SYSINFO_EHDR:      0x7f90f2d000
 AT_??? (0x33): 0x1270
 AT_HWCAP:             119fff
 AT_PAGESZ:            4096
 AT_CLKTCK:            100
 AT_PHDR:              0x5585a40040
 AT_PHENT:             56
 AT_PHNUM:             9
 AT_BASE:              0x7f90efd000
 AT_FLAGS:             0x0
 AT_ENTRY:             0x5585a45780
 AT_UID:               1000
 AT_EUID:              1000
 AT_GID:               1000
 AT_EGID:              1000
 AT_SECURE:            0
 AT_RANDOM:            0x7fd3efe8f8
 AT_HWCAP2:            0x0
 AT_EXECFN:            /usr/bin/ls
 AT_PLATFORM:          aarch64
 Desktop
-lscpu
 $ lscpu
 Architecture:                    aarch64
 CPU op-mode(s):                  32-bit, 64-bit
 Byte Order:                      Little Endian
 CPU(s):                          8
 On-line CPU(s) list:             0-7
 Thread(s) per core:              1
 Core(s) per socket:              2
 Socket(s):                       3
 Vendor ID:                       ARM
 Model:                           0
 Model name:                      Cortex-A55
 Stepping:                        r2p0
 CPU max MHz:                     2352.0000
 CPU min MHz:                     408.0000
 BogoMIPS:                        48.00
 L1d cache:                       256 KiB
 L1i cache:                       256 KiB
 L2 cache:                        1 MiB
 L3 cache:                        3 MiB
 Vulnerability Itlb multihit:     Not affected
 Vulnerability L1tf:              Not affected
 Vulnerability Mds:               Not affected
 Vulnerability Meltdown:          Not affected
 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
 Vulnerability Spectre v1:        Mitigation; __user pointer sanitization
 Vulnerability Spectre v2:        Not affected
 Vulnerability Srbds:             Not affected
 Vulnerability Tsx async abort:   Not affected
 Flags:                           fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
-cpufreq
 $ sudo cat /sys/bus/cpu/devices/cpu*/cpufreq/cpuinfo_max_freq
 1800000
 1800000
 1800000
 1800000
 2304000
 2304000
 2352000
 2352000
-memory
 $ free -h
                total        used        free      shared  buff/cache   available
 Mem:            15Gi       217Mi        13Gi        33Mi       1.2Gi        14Gi
 Swap:             0B          0B          0B
-storage
 $ df -h /
 Filesystem      Size  Used Avail Use% Mounted on
 overlayroot     108G  588M  108G   1% /
-kernel
 $  uname -a
 Linux firefly 5.10.66 #24 SMP Fri Jun 10 10:44:09 CST 2022 aarch64 GNU/Linux
-OS
 $ lsb_release -a
 No LSB modules are available.
 Distributor ID: Debian
 Description:    Debian GNU/Linux 11 (bullseye)
 Release:        11
 Codename:       bullseye
-gcc
-clinfo
 $ clinfo
 Number of platforms                               1
   Platform Name                                   ARM Platform
   Platform Vendor                                 ARM
   Platform Version                                OpenCL 2.1 v1.g6p0-01eac0.efb75e2978d783a80fe78be1bfb0efc1
   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_int3
 2_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 c
 l_khr_image2d_from_buffer cl_khr_depth_images cl_khr_subgroups cl_khr_subgroup_extended_types cl_khr_subgroup_non_uniform_vote cl_khr_subgroup_ballot cl_khr_il_program c
 l_khr_priority_hints cl_khr_create_command_queue cl_khr_spirv_no_integer_wrap_decoration cl_khr_extended_versioning cl_khr_device_uuid cl_arm_core_id cl_arm_printf cl_ar
 m_non_uniform_work_group_size cl_arm_import_memory cl_arm_import_memory_dma_buf cl_arm_import_memory_host cl_arm_integer_dot_product_int8 cl_arm_integer_dot_product_accu
 mulate_int8 cl_arm_integer_dot_product_accumulate_saturate_int8 cl_arm_scheduling_controls cl_arm_controlled_kernel_termination cl_ext_cxx_for_opencl
   Platform Extensions function suffix             ARM
   Platform Host timer resolution                  1ns
 
   Platform Name                                   ARM Platform
 Number of devices                                 1
 arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '5'.
   Device Name                                     Mali-LODX r0p0
   Device Vendor                                   ARM
   Device Vendor ID                                0xa8670000
   Device Version                                  OpenCL 2.1 v1.g6p0-01eac0.efb75e2978d783a80fe78be1bfb0efc1
   Device UUID                                     000067a8-0100-0000-0000-000000000000
   Driver UUID                                     d9495bef-ea91-7c52-8a43-8a3c2f7b49cc
   Valid Device LUID                               No
   Device LUID                                     0000-000000000000
   Device Node Mask                                0
   Device Numeric Version                          0x801000 (2.1.0)
   Driver Version                                  2.1
   Device OpenCL C Version                         OpenCL C 2.0 v1.g6p0-01eac0.efb75e2978d783a80fe78be1bfb0efc1
   Device C++ for OpenCL Numeric Version           0x400000 (1.0.0)
   Device Type                                     GPU
   Device Profile                                  FULL_PROFILE
   Device Available                                Yes
   Compiler Available                              Yes
   Linker Available                                Yes
   Max compute units                               4
   Available core IDs                              0, 2, 16, 18
   Max clock frequency                             1000MHz
   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                             1024x1024x1024
   Max work group size                             1024
   Preferred work group size multiple (kernel)     16
   Max sub-groups per work group                   64
   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                              16451813376 (15.32GiB)
   Error Correction support                        No
   Max memory allocation                           16451813376 (15.32GiB)
   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
   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                        1048576 (1024KiB)
   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                     128
   Max constant buffer size                        16451813376 (15.32GiB)
   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
     Sub-group independent forward progress        Yes
     IL version                                    SPIR-V_1.0
     ILs with version                              SPIR-V                                                           0x400000 (1.0.0)
   printf() buffer size                            1048576 (1024KiB)
   Built-in kernels                                (n/a)
   Built-in kernels with version                   (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_int3
 2_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 c
 l_khr_image2d_from_buffer cl_khr_depth_images cl_khr_subgroups cl_khr_subgroup_extended_types cl_khr_subgroup_non_uniform_vote cl_khr_subgroup_ballot cl_khr_il_program c
 l_khr_priority_hints cl_khr_create_command_queue cl_khr_spirv_no_integer_wrap_decoration cl_khr_extended_versioning cl_khr_device_uuid cl_arm_core_id cl_arm_printf cl_ar
 m_non_uniform_work_group_size cl_arm_import_memory cl_arm_import_memory_dma_buf cl_arm_import_memory_host cl_arm_integer_dot_product_int8 cl_arm_integer_dot_product_accu
 mulate_int8 cl_arm_integer_dot_product_accumulate_saturate_int8 cl_arm_scheduling_controls cl_arm_controlled_kernel_termination cl_ext_cxx_for_opencl
   Device Extensions with Version                  cl_khr_global_int32_base_atomics                                 0x400000 (1.0.0)
                                                   cl_khr_global_int32_extended_atomics                             0x400000 (1.0.0)
                                                   cl_khr_local_int32_base_atomics                                  0x400000 (1.0.0)
                                                   cl_khr_local_int32_extended_atomics                              0x400000 (1.0.0)
                                                   cl_khr_byte_addressable_store                                    0x400000 (1.0.0)
                                                   cl_khr_3d_image_writes                                           0x400000 (1.0.0)
                                                   cl_khr_int64_base_atomics                                        0x400000 (1.0.0)
                                                   cl_khr_int64_extended_atomics                                    0x400000 (1.0.0)
                                                   cl_khr_fp16                                                      0x400000 (1.0.0)
                                                   cl_khr_icd                                                       0x400000 (1.0.0)
                                                   cl_khr_egl_image                                                 0x400000 (1.0.0)
                                                   cl_khr_image2d_from_buffer                                       0x400000 (1.0.0)
                                                   cl_khr_depth_images                                              0x400000 (1.0.0)
                                                   cl_khr_subgroups                                                 0x400000 (1.0.0)
                                                   cl_khr_subgroup_extended_types                                   0x400000 (1.0.0)
                                                   cl_khr_subgroup_non_uniform_vote                                 0x400000 (1.0.0)
                                                   cl_khr_subgroup_ballot                                           0x400000 (1.0.0)
                                                   cl_khr_il_program                                                0x400000 (1.0.0)
                                                   cl_khr_priority_hints                                            0x400000 (1.0.0)
                                                   cl_khr_create_command_queue                                      0x400000 (1.0.0)
                                                   cl_khr_spirv_no_integer_wrap_decoration                          0x400000 (1.0.0)
                                                   cl_khr_extended_versioning                                       0x400000 (1.0.0)
                                                   cl_khr_device_uuid                                               0x400000 (1.0.0)
                                                   cl_arm_core_id                                                   0x400000 (1.0.0)
                                                   cl_arm_printf                                                    0x400000 (1.0.0)
                                                   cl_arm_non_uniform_work_group_size                               0x400000 (1.0.0)
                                                   cl_arm_import_memory                                             0x400000 (1.0.0)
                                                   cl_arm_import_memory_dma_buf                                     0x400000 (1.0.0)
                                                   cl_arm_import_memory_host                                        0x400000 (1.0.0)
                                                   cl_arm_integer_dot_product_int8                                  0x400000 (1.0.0)
                                                   cl_arm_integer_dot_product_accumulate_int8                       0x400000 (1.0.0)
                                                   cl_arm_integer_dot_product_accumulate_saturate_int8              0x400000 (1.0.0)
                                                   cl_arm_scheduling_controls                                         0x3000 (0.3.0)
                                                   cl_arm_controlled_kernel_termination                             0x400000 (1.0.0)
                                                   cl_ext_cxx_for_opencl                                            0x400000 (1.0.0)
 
 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-LODX r0p0
   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-LODX r0p0
   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-LODX r0p0
 
 ICD loader properties
   ICD loader Name                                 OpenCL ICD Loader
   ICD loader Vendor                               OCL Icd free software
   ICD loader Version                              2.2.14
   ICD loader Profile                              OpenCL 3.0
-UART Debug console
--[[1500000 8N1>https://wiki.t-firefly.com/en/USB-TO-TTL-Serial/usb-to-ttl-serial.html]
--5V
-ROC-RK3588S-PC

*その他情報 [#ia1e78a6]

*セットアップ [#p55e9559]
-初期設定
--工場出荷時はAndroid12が載ってるらしいので、[[マニュアル>https://wiki.t-firefly.com/en/ROC-RK3588S-PC/usage_npu.html]]をもとにDebianにインストールする
--あと言語が中国語なので
 $ sudo dpkg-reconfigure locale
--で言語を英語にする
 $ sudo dpkg-reconfigure tzdata
--でタイムゾーンをTokyoにしておく
-アップデート
 $ sudo apt -y update && sudo apt -y upgrade
--バージョンホールドされてるパッケージがあってそれのせいで結構インストールがこけるので地道に一個ずつインストールしていく
-適宜インストール
 $ time sudo apt install build-essential ccache openjdk-17-jre-headless clinfo libgtk2.0-dev cron python3-pip python3-dev
-秘密鍵/公開鍵
-SSH認証用に対称鍵を生成する
 $ ssh-keygen -t ecdsa
 $ ssh-keygen -f hoge
 $ cat hoge.pub >> .ssh/authorized_keys
-.ssh/id_ecdsa.pub をGithubに、hoge の中身をJenkinsに登録する
-githubで確認
 $ ssh -T git@github.com

[[Arm]]

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