Quantcast
Channel: OSAKANA TAROのメモ帳
Viewing all 1111 articles
Browse latest View live

Orange Pi 5用Android 12からGSIイメージの汎用Androidを起動する

$
0
0

Orange Pi 5用として公式で出ているAndroid 12とOrange Pi OS (Droid)のどちらにもGoogle Playは入っていなかった。

しかし、開発者向けオプションを有効にしてみると、DSU Loaderが使えることがわかった。

また、root権限が使える状態であるため、DSU Sideloader を使うと好きなGSI イメージを使って起動させることができそうです。

(注: LCD用Androidイメージ+Type-Cディスプレイの場合、GSIイメージで起動すると最初はHDMI出力のみで、初期セットアップ完了後じゃないとType-Cディスプレイが使えませんでした)

phhussonさんとこのGeneric System Image (GSI) List からAOSP 12.1 v416を使って見ました。

(なお、GSIイメージによっては黒画面のまま起動してきません)

まず、起動したAndroid上の検索枠で「dsu loader github」と検索すると出てくるDSU Sideloaderのgithubページにある apkファイルをAndroidにインストールして、DSU Sideloaderアプリの設定で「Build-in installer」を有効にしてから、GSIイメージを選択してインストールします。

Userdate sizeを30GB以上に設定しないと原神はインストールできないと思います。(22GBだと駄目だったので、とりあえず50GBで設定した)

インストールに使用するGSIイメージは system-squeak-arm64-ab-gapps.img.xz を使いました。Androidブラウザでダウンロードするとファイル名が system-squeak-arm64-ab-gapps.bin で保存されてしまうので、保存完了後ファイル名を system-squeak-arm64-ab-gapps.img.xz に変更する必要があります。

正常に導入が終わると「Reboot into DSU」というボタンが現れるので、それをクリックすると、GSIイメージのAndroidが起動します。

正常に動作するGSIイメージであればAndroidの初期画面が表示されるでしょう

Google Playストアがありますね

で・・・原神も動きました。

ただ、Orange Pi 5のAndroidだとHDMI/Type-Cディスプレイで音が出るんですが、GSIイメージから起動すると、Orange Pi 5オンボードのイヤフォン端子からのみ音が出る、という状態でした。

原神は、初期設定だとグラフィック設定:低いとちょっと荒い表示ですが、設定で「最高」を選んでも問題無く動きました。

その際の消費電力は5V1.8Aぐらいを上限として1.1A~1.8Aを動いている感じでした。


Lenovo/ワコム液晶をType-Cコネクタ1本でつないだ場合の使い勝手について

OrangePi5_RK3588S_Android12_spi-nvme_lcd_v1.0.0.img
→ いまいち。タッチ動作がおかしくなったり、GSIイメージで起動した場合のディスプレイ出力が怪しかったりする
  なぜかGSIイメージで原神を起動するとすぐに落ちる
  ブート画面はType-C側に出力される

OrangePi5_RK3588S_Android12_spi-nvme_v1.0.0.img
→ 問題無し? 液晶側から音もなるが、GSIイメージ起動の場合はOrange Pi本体のイヤフォン端子からのみ音が出る
  GSIイメージで原神は問題無く動いた
  ブート画面はHDMI側に出力され、Type-Cディスプレイしかつないでない場合、起動が完了するころまで黒画面のままとなる

OrangePi-OS_Droid_orangepi5_spi-nvme_v0.0.2_beta.img
→ OrangePi5_RK3588S_Android12_spi-nvme_v1.0.0.imgとだいたい同じような感じ。
  v0.0.3へのアップデートがふってくることと来ないことがあるのが謎
  GSIイメージで原神は問題無く動いた
  ブート画面はHDMI側に出力され、Type-Cディスプレイしかつないでない場合、起動が完了するころまで黒画面のままとなる


Orange Pi 5純正のUbuntuのGPU表示を高速化できるのか?

$
0
0

ゆきまくらさんの「OrangePi5の公式xfceイメージにビデオドライバーをあてる」にGPUドライバを適用する話が書かれていた。

ただ上記だと詳細がわからないので、いろいろ調べながら試してみた。

まず、同じRK3588S使っているKhadas Edge 2 Proあたりの情報みればなんかあるかな?と、cnxsoftwareにある「Khadas Edge2 Pro review – A Rockchip RK3588S SBC tested with Ubuntu 22.04」を読んでみる

「inxi -Fc0」というコマンドを実行するとハードウェア構成が出る、と

orangepi@orangepi5:~$ inxi -Fc0
System:
  Host: orangepi5 Kernel: 5.10.110-rockchip-rk3588 aarch64 bits: 64
    Desktop: Xfce 4.16.0 Distro: Ubuntu 22.04.1 LTS (Jammy Jellyfish)
Machine:
  Type: ARM System: Orange Pi 5 details: N/A
CPU:
  Info: 3x 4-core model: N/A variant-1: cortex-a76 variant-2: cortex-a55
    bits: 64 type: MCP AMP cache: L2: 3x 512 KiB (1.5 MiB)
  Speed (MHz): avg: 408 min/max: 408/1800:2400 cores: 1: 408 2: 408 3: 408
    4: 408 5: 408 6: 408 7: 408 8: 408
Graphics:
  Device-1: display-subsystem driver: rockchip_drm v: N/A
  Device-2: mali-bifrost driver: mali v: N/A
  Device-3: rk3588-dw-hdmi driver: dwhdmi_rockchip v: N/A
  Display: server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    gpu: rockchip_drm,mali,dwhdmi_rockchip resolution: 1920x1080~60Hz
  OpenGL: renderer: llvmpipe (LLVM 13.0.1 128 bits) v: 4.5 Mesa 22.0.5
Audio:
  Device-1: hdmi driver: rk_hdmi_sound
  Device-2: rk3588-dw-hdmi driver: dwhdmi_rockchip
  Device-3: hdmi driver: rk_hdmi_sound
  Sound Server-1: ALSA v: k5.10.110-rockchip-rk3588 running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
Network:
  Device-1: rk3588-gmac driver: rk_gmac_dwmac
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: 66:bd:6f:11:95:d7
Drives:
  Local Storage: total: 29.9 GiB used: 11.49 GiB (38.4%)
  ID-1: /dev/mmcblk1 model: 5cMJR size: 29.9 GiB
Partition:
  ID-1: / size: 29.14 GiB used: 11.4 GiB (39.1%) fs: ext4 dev: /dev/mmcblk1p2
  ID-2: /boot size: 255.7 MiB used: 94.2 MiB (36.8%) fs: vfat
    dev: /dev/mmcblk1p1
  ID-3: /var/log size: 187.3 MiB used: 2.4 MiB (1.3%) fs: ext4
    dev: /dev/zram1
Swap:
  ID-1: swap-1 type: zram size: 3.75 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 40.7 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 246 Uptime: 7m Memory: 7.51 GiB used: 796.8 MiB (10.4%)
  Shell: Bash inxi: 3.3.13
orangepi@orangepi5:~$

「glxinfo -B」で現在使用しているGPU出力に関する設定が分かるらしく「OpenGL renderer string: llvmpipe (LLVM 13.0.1, 128 bits)」を使ってる

orangepi@orangepi5:~$ glxinfo -B
name of display: :0
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa/X.org (0xffffffff)
    Device: llvmpipe (LLVM 13.0.1, 128 bits) (0xffffffff)
    Version: 22.0.5
    Accelerated: no
    Video memory: 7689MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 13.0.1, 128 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 22.0.5
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5 (Compatibility Profile) Mesa 22.0.5
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.0.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

orangepi@orangepi5:~$

「eglinfo」でも情報がある

orangepi@orangepi5:~$ eglinfo
EGL client extensions string:
    EGL_EXT_client_extensions EGL_EXT_platform_base
    EGL_KHR_client_get_all_proc_addresses EGL_KHR_platform_x11
    EGL_EXT_platform_x11 EGL_KHR_platform_gbm

GBM platform:
arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '5'.
eglinfo: eglInitialize failed

X11 platform:
EGL API version: 1.4
EGL vendor string: ARM
EGL version string: 1.4 Valhall-"g6p0-01eac0"
EGL client APIs: OpenGL_ES
EGL extensions string:
    EGL_NV_context_priority_realtime EGL_KHR_image_pixmap
    EGL_KHR_partial_update EGL_EXT_image_dma_buf_import
    EGL_KHR_config_attribs EGL_KHR_image EGL_KHR_image_base
    EGL_KHR_fence_sync EGL_KHR_wait_sync EGL_KHR_gl_colorspace
    EGL_KHR_get_all_proc_addresses EGL_IMG_context_priority
    EGL_KHR_no_config_context EGL_EXT_image_dma_buf_import
    EGL_EXT_image_dma_buf_import_modifiers EGL_EXT_yuv_surface
    EGL_EXT_pixel_format_float EGL_ARM_pixmap_multisample_discard
    EGL_KHR_gl_texture_2D_image EGL_KHR_gl_renderbuffer_image
    EGL_KHR_create_context EGL_KHR_surfaceless_context
    EGL_KHR_gl_texture_cubemap_image EGL_EXT_image_gl_colorspace
    EGL_EXT_create_context_robustness
Configurations:
     bf lv colorbuffer dp st  ms    vis   cav bi  renderable  supported
  id sz  l  r  g  b  a th cl ns b    id   eat nd gl es es2 vg surfaces
---------------------------------------------------------------------
0x01 32  0  8  8  8  8  0  0  0 0 0x67TC      a     y  y     win,pb,pix
0x02 32  0  8  8  8  8 24  0  0 0 0x67TC      a     y  y     win,pb,pix
0x03 32  0  8  8  8  8 24  8  0 0 0x67TC      a     y  y     win,pb,pix
0x04 32  0  8  8  8  8 24  8  4 1 0x67TC      a     y  y     win,pb,pix
0x05 16  0  5  6  5  0  0  0  0 0 0x00--      y     y  y     pb,pix
0x06 16  0  5  6  5  0 24  0  0 0 0x00--      y     y  y     pb,pix
0x07 16  0  5  6  5  0 24  8  0 0 0x00--      y     y  y     pb,pix
0x08 16  0  5  6  5  0 24  8  4 1 0x00--      y     y  y     pb,pix
0x09 24  0  8  8  8  0  0  0  0 0 0x21TC      y     y  y     win,pb,pix
0x0a 24  0  8  8  8  0 24  8  0 0 0x21TC      y     y  y     win,pb,pix
0x0b 24  0  8  8  8  0  0  0  4 1 0x21TC      y     y  y     win,pb,pix
0x0c 24  0  8  8  8  0 24  8  4 1 0x21TC      y     y  y     win,pb,pix
0x0d 16  0  5  5  5  1 24  8  0 0 0x00--      a     y  y     pb,pix
0x0e 16  0  5  5  5  1 24  8  4 1 0x00--      a     y  y     pb,pix
0x0f 16  0  4  4  4  4 24  8  0 0 0x00--      a     y  y     pb,pix
0x10 16  0  4  4  4  4 24  8  4 1 0x00--      a     y  y     pb,pix
0x11 32  0  8  8  8  8 24  8  8 1 0x67TC      a     y  y     win,pb,pix
0x12 16  0  5  6  5  0 24  8  8 1 0x00--      y     y  y     pb,pix
0x13 24  0  8  8  8  0 24  8  8 1 0x21TC      y     y  y     win,pb,pix
0x14 32  0  8  8  8  8 24  8 16 1 0x67TC      a     y  y     win,pb,pix
0x15 16  0  5  6  5  0 24  8 16 1 0x00--      y     y  y     pb,pix
0x16 24  0  8  8  8  0 24  8 16 1 0x21TC      y     y  y     win,pb,pix
0x17 24  0  8  8  8  0  0  0  0 0 0x21TC            y  y     win,pb,pix
0x18 64  0 16 16 16 16 24  8  0 0 0x00--            y  y     pb
0x19 32  0 10 10 10  2 24  8  0 0 0x00--      a     y  y     pb,pix
0x1a 24  0  8  8  8  0  0  0  0 0 0x21TC      y     y  y     win,pb,pix

orangepi@orangepi5:~$

cnxの記事でglmark2-es2-waylandを使ってベンチマークとってるので、マネして「sudo apt install glmark2-es2-wayland」でベンチマークソフトをインストールして実行

orangepi@orangepi5:~$ glmark2-es2-wayland
Error: main: Could not initialize canvas
orangepi@orangepi5:~$

Orange PI 5 Ubuntu環境では実行できない

よくよく確認してみるとX-waylandを使用していないので「glmark2-es2」を実行。

orangepi@orangepi5:~$ glmark2-es2
arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '5'.
arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '5'.
=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     ARM
    GL_RENDERER:   Mali-LODX
    GL_VERSION:    OpenGL ES 3.2 v1.g6p0-01eac0.efb75e2978d783a80fe78be1bfb0efc1
=======================================================
[build] use-vbo=false: FPS: 688 FrameTime: 1.453 ms
[build] use-vbo=true: FPS: 855 FrameTime: 1.170 ms
[texture] texture-filter=nearest: FPS: 899 FrameTime: 1.112 ms
[texture] texture-filter=linear: FPS: 859 FrameTime: 1.164 ms
[texture] texture-filter=mipmap: FPS: 848 FrameTime: 1.179 ms
[shading] shading=gouraud: FPS: 904 FrameTime: 1.106 ms
[shading] shading=blinn-phong-inf: FPS: 886 FrameTime: 1.129 ms
[shading] shading=phong: FPS: 814 FrameTime: 1.229 ms
[shading] shading=cel: FPS: 789 FrameTime: 1.267 ms
[bump] bump-render=high-poly: FPS: 552 FrameTime: 1.812 ms
[bump] bump-render=normals: FPS: 952 FrameTime: 1.050 ms
[bump] bump-render=height: FPS: 900 FrameTime: 1.111 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 973 FrameTime: 1.028 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 746 FrameTime: 1.340 ms
[pulsar] light=false:quads=5:texture=false: FPS: 973 FrameTime: 1.028 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 482 FrameTime: 2.075 ms
[desktop] effect=shadow:windows=4: FPS: 785 FrameTime: 1.274 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 222 FrameTime: 4.505 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 194 FrameTime: 5.155 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 354 FrameTime: 2.825 ms
[ideas] speed=duration: FPS: 491 FrameTime: 2.037 ms
[jellyfish] <default>: FPS: 696 FrameTime: 1.437 ms
[terrain] <default>: FPS: 186 FrameTime: 5.376 ms
[shadow] <default>: FPS: 732 FrameTime: 1.366 ms
[refract] <default>: FPS: 301 FrameTime: 3.322 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 874 FrameTime: 1.144 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 837 FrameTime: 1.195 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 802 FrameTime: 1.247 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 868 FrameTime: 1.152 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 788 FrameTime: 1.269 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 877 FrameTime: 1.140 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 833 FrameTime: 1.200 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 820 FrameTime: 1.220 ms
=======================================================
                                  glmark2 Score: 720
=======================================================
orangepi@orangepi5:~$

glmark2の場合はどうなるかを確認

orangepi@orangepi5:~$ glmark2
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     Mesa/X.org
    GL_RENDERER:   llvmpipe (LLVM 13.0.1, 128 bits)
    GL_VERSION:    4.5 (Compatibility Profile) Mesa 22.0.5
=======================================================
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[build] use-vbo=false: FPS: 111 FrameTime: 9.009 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[build] use-vbo=true: FPS: 112 FrameTime: 8.929 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[texture] texture-filter=nearest: FPS: 325 FrameTime: 3.077 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[texture] texture-filter=linear: FPS: 246 FrameTime: 4.065 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[texture] texture-filter=mipmap: FPS: 191 FrameTime: 5.236 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[shading] shading=gouraud: FPS: 85 FrameTime: 11.765 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[shading] shading=blinn-phong-inf: FPS: 75 FrameTime: 13.333 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[shading] shading=phong: FPS: 62 FrameTime: 16.129 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[shading] shading=cel: FPS: 69 FrameTime: 14.493 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[bump] bump-render=high-poly: FPS: 40 FrameTime: 25.000 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[bump] bump-render=normals: FPS: 278 FrameTime: 3.597 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[bump] bump-render=height: FPS: 291 FrameTime: 3.436 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 114 FrameTime: 8.772 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 99 FrameTime: 10.101 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[pulsar] light=false:quads=5:texture=false: FPS: 213 FrameTime: 4.695 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 25 FrameTime: 40.000 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[desktop] effect=shadow:windows=4: FPS: 65 FrameTime: 15.385 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 65 FrameTime: 15.385 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 67 FrameTime: 14.925 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 66 FrameTime: 15.152 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[ideas] speed=duration: FPS: 80 FrameTime: 12.500 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[jellyfish] <default>: FPS: 57 FrameTime: 17.544 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[terrain] <default>: FPS: 3 FrameTime: 333.333 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[shadow] <default>: FPS: 54 FrameTime: 18.519 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[refract] <default>: FPS: 9 FrameTime: 111.111 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 139 FrameTime: 7.194 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 137 FrameTime: 7.299 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 140 FrameTime: 7.143 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[function] fragment-complexity=low:fragment-steps=5: FPS: 98 FrameTime: 10.204 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[function] fragment-complexity=medium:fragment-steps=5: FPS: 101 FrameTime: 9.901 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 129 FrameTime: 7.752 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 135 FrameTime: 7.407 ms
** GLX does not support GLX_EXT_swap_control or GLX_MESA_swap_control!
** Failed to set swap interval. Results may be bounded above by refresh rate.
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 128 FrameTime: 7.812 ms
=======================================================
                                  glmark2 Score: 115
=======================================================
orangepi@orangepi5:~$

glmark2の方だとうまく動いてないようだ。

次に、ChromiumブラウザでWebGL Aquariumを開いてみると「fps 3」という数字。めっちゃカクカクしている。

cnxsoftwareのRK3588関連記事を探してみると「Rock 5B RK3588 SBC preview – What works, what doesn’t in Debian 11」に「GPU 3D acceleration is not enabled in Debian 11」という話がある。

上の方にあるglxinfo結果のように「Device: llvmpipe (LLVM 13.0.1, 128 bits) (0xffffffff)」と「llvmpipe 」が含まれている場合はソフトウェアレンダリングである、とのこと。

「dmesg|grep -i mali」を実行して起動時にGPUドライバmaliが読み込まれているかを確認してみると、エラーっぽい感じの出力となっている。

orangepi@orangepi5:~$ dmesg|grep -i mali
[    7.672628] mali fb000000.gpu: Kernel DDK version g13p0-01eac0
[    7.672650] mali fb000000.gpu: Looking up mali-supply from device tree
[    7.673153] mali fb000000.gpu: Looking up mem-supply from device tree
[    7.676448] mali fb000000.gpu: Looking up mali-supply from device tree
[    7.676724] mali fb000000.gpu: Looking up mem-supply from device tree
[    7.676911] mali fb000000.gpu: Looking up mali-supply from device tree
[    7.677340] mali fb000000.gpu: leakage=12
[    7.677395] mali fb000000.gpu: Looking up mali-supply from device tree
[    7.677419] debugfs: Directory 'fb000000.gpu-mali' with parent 'vdd_gpu_s0' already present!
[    7.679307] mali fb000000.gpu: pvtm=869
[    7.679356] mali fb000000.gpu: pvtm-volt-sel=3
[    7.680674] mali fb000000.gpu: avs=0
[    7.682511] W : [File] : drivers/gpu/arm/bifrost/platform/rk/mali_kbase_config_rk.c; [Line] : 136; [Func] : kbase_platform_rk_init(); power-off-delay-ms not available.
[    7.689235] mali fb000000.gpu: GPU hardware issue table may need updating:
[    7.689246] mali fb000000.gpu: GPU identified as 0x7 arch 10.8.6 r0p0 status 0
[    7.689340] mali fb000000.gpu: No priority control manager is configured
[    7.689348] mali fb000000.gpu: No memory group manager is configured
[    7.689378] mali fb000000.gpu: Protected memory allocator not available
[    7.689818] mali fb000000.gpu: Capping CSF_FIRMWARE_TIMEOUT to CSF_FIRMWARE_PING_TIMEOUT
[    7.690655] mali fb000000.gpu: Couldn't find power_model DT node matching 'arm,mali-simple-power-model'
[    7.690666] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.static-coefficient = 1*[0]
[    7.690992] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.dynamic-coefficient = 1*[0]
[    7.691272] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.ts = 4*[0]
[    7.691552] mali fb000000.gpu: Error -22, no DT entry: mali-simple-power-model.thermal-zone = ''
[    7.695409] mali fb000000.gpu: Using configured power model mali-lodx-power-model, and fallback mali-simple-power-model
[    7.695604] mali fb000000.gpu: l=10000 h=85000 hyst=5000 l_limit=0 h_limit=800000000 h_table=0
[    7.696563] mali fb000000.gpu: Probed as mali0
[    7.782056] I : [File] : drivers/gpu/arm/mali400/mali/linux/mali_kernel_linux.c; [Line] : 405; [Func] : mali_module_init(); svn_rev_string_from_arm of this mali_ko is '', rk_ko_ver is '5', built at '10:16:11', on 'Dec  7 2022'.
[    7.782364] Mali:
[    7.782367] Mali device driver loaded
[   16.423617] mali fb000000.gpu: Loading Mali firmware 0x1010000
[   16.425057] mali fb000000.gpu: Mali firmware git_sha: e6cfd856a9b143e1ab6657328e8b5ffc44a623f9
orangepi@orangepi5:~$

libmali-valhall-g610-g6p0-x11-gbm はインストールされている。

orangepi@orangepi5:~$ apt search libmali
Sorting... Done
Full Text Search... Done
libmali-valhall-g610-g6p0-x11-gbm/now 1.9-1 arm64 [installed,local]
  Mali GPU User-Space Binary Drivers

orangepi@orangepi5:~$

Rock 5に関するフォーラムに「Best way to run GPU-accelerated applications」という記事があり、Panfrost GPU driverというものがあげられていた。

Ubuntu 22.02に対してインストールする場合の事例は「Ubuntu 20.02 & Mali Drivers」にあり、Ubutuのppaに登録されている panfork mesa to support mali g610 を利用する、というものである。

このPanfrost driverを適用するというのが、冒頭の「OrangePi5の公式xfceイメージにビデオドライバーをあてる」の内容である。

ただ、このPanfrostさん、行いに問題があるようでarmbianにこのppaを登録して欲しいというpull requestが拒否られています。( add panfork-mesa appgroup for jammy #4476 )

なんでもfork元のfreedesktop.orgでの行いに問題があってアカウントがbanされたんだとか・・・

なので、使うのはどうなのかなぁ、と思いつつとりあえず速度改善するのかどうかを確認してみることにします。

まずは「sudo add-apt-repository ppa:liujianfeng1994/panfork-mesa」を実行して、panfork mesa to support mali g610を登録します。

orangepi@orangepi5:~$ sudo add-apt-repository ppa:liujianfeng1994/panfork-mesa
Repository: 'deb https://ppa.launchpadcontent.net/liujianfeng1994/panfork-mesa/ubuntu/ jammy main'
Description:
https://gitlab.com/panfork/mesa
You need to download mali firmware from https://github.com/JeffyCN/rockchip_mirrors/raw/libmali/firmware/g610/mali_csffw.bin and copy it to /lib/firmware/
More info: https://launchpad.net/~liujianfeng1994/+archive/ubuntu/panfork-mesa
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Adding deb entry to /etc/apt/sources.list.d/liujianfeng1994-ubuntu-panfork-mesa-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/liujianfeng1994-ubuntu-panfork-mesa-jammy.list
Adding key to /etc/apt/trusted.gpg.d/liujianfeng1994-ubuntu-panfork-mesa.gpg with fingerprint 0B2F0747E3BD546820A639B68065BE1FC67AABDE
Hit:1 http://repo.huaweicloud.com/ubuntu-ports jammy InRelease
Hit:2 http://repo.huaweicloud.com/ubuntu-ports jammy-security InRelease
Hit:3 https://repo.huaweicloud.com/docker-ce/linux/ubuntu jammy InRelease
Hit:4 http://repo.huaweicloud.com/ubuntu-ports jammy-updates InRelease
Get:5 https://ppa.launchpadcontent.net/liujianfeng1994/panfork-mesa/ubuntu jammy InRelease [18.1 kB]
Hit:6 http://repo.huaweicloud.com/ubuntu-ports jammy-backports InRelease
Get:7 https://ppa.launchpadcontent.net/liujianfeng1994/panfork-mesa/ubuntu jammy/main armhf Packages [4,136 B]
Get:8 https://ppa.launchpadcontent.net/liujianfeng1994/panfork-mesa/ubuntu jammy/main arm64 Packages [4,152 B]
Fetched 26.4 kB in 4s (6,080 B/s)
Reading package lists... Done
W: https://repo.huaweicloud.com/docker-ce/linux/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
orangepi@orangepi5:~$

出力内に「You need to download mali firmware from https://github.com/JeffyCN/rockchip_mirrors/raw/libmali/firmware/g610/mali_csffw.bin and copy it to /lib/firmware/」とあるように、mali_csffw.bin を入れ替える必要があります。

orangepi@orangepi5:~$ ls -l /lib/firmware/*mali*
-rw-r--r-- 1 root root 266240 Jul 29  2020 /lib/firmware/mali_csffw.bin
orangepi@orangepi5:~$
orangepi@orangepi5:~$ sudo curl --output /lib/firmware/mali_csffw.bin https://raw.githubusercontent.com/JeffyCN/rockchip_mirrors/libmali/firmware/g610/mali_csffw.bin
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  268k  100  268k    0     0  1319k      0 --:--:-- --:--:-- --:--:-- 1326k
orangepi@orangepi5:~$ ls -l /lib/firmware/*mali*
-rw-r--r-- 1 root root 274432 Dec 27 21:08 /lib/firmware/mali_csffw.bin
orangepi@orangepi5:~$

入れ替えたあとは「sudo apt update」でレポジトリの情報を更新します。

orangepi@orangepi5:~$ sudo apt update
Hit:1 http://repo.huaweicloud.com/ubuntu-ports jammy InRelease
Hit:2 http://repo.huaweicloud.com/ubuntu-ports jammy-security InRelease
Hit:3 http://repo.huaweicloud.com/ubuntu-ports jammy-updates InRelease
Hit:4 http://repo.huaweicloud.com/ubuntu-ports jammy-backports InRelease
Hit:5 https://repo.huaweicloud.com/docker-ce/linux/ubuntu jammy InRelease
Hit:6 https://ppa.launchpadcontent.net/liujianfeng1994/panfork-mesa/ubuntu jammy InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
33 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: https://repo.huaweicloud.com/docker-ce/linux/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
orangepi@orangepi5:~$

どんなアップデートがあるのか「apt list –upgradable」を実行して確認すると、いくつかのライブラリなどが更新対象となるようだ。

orangepi@orangepi5:~$ apt list --upgradable
Listing... Done
ffmpeg/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
gstreamer1.0-tools/jammy-updates 1.20.3-0ubuntu1 arm64 [upgradable from: 1.20.3-0ubuntu1]
libavcodec-dev/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
libavcodec58/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
libavdevice-dev/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
libavdevice58/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
libavfilter-dev/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
libavfilter7/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
libavformat-dev/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
libavformat58/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
libavutil-dev/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
libavutil56/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
libdvbv5-0/jammy 1.22.1-2build1 arm64 [upgradable from: 1.22.1-2build1]
libegl-mesa0/jammy 23.0~panfork~csf~git221210.120202c6757~j arm64 [upgradable from: 22.0.5-0ubuntu0.1]
libgbm-dev/jammy 23.0~panfork~csf~git221210.120202c6757~j arm64 [upgradable from: 22.0.5-0ubuntu0.1]
libgbm1/jammy 23.0~panfork~csf~git221210.120202c6757~j arm64 [upgradable from: 22.0.5-0ubuntu0.1]
libgl1-mesa-dri/jammy 23.0~panfork~csf~git221210.120202c6757~j arm64 [upgradable from: 22.0.5-0ubuntu0.1]
libglapi-mesa/jammy 23.0~panfork~csf~git221210.120202c6757~j arm64 [upgradable from: 22.0.5-0ubuntu0.1]
libglx-mesa0/jammy 23.0~panfork~csf~git221210.120202c6757~j arm64 [upgradable from: 22.0.5-0ubuntu0.1]
libgstreamer1.0-0/jammy-updates 1.20.3-0ubuntu1 arm64 [upgradable from: 1.20.3-0ubuntu1]
libmpv1/jammy 0.34.1-1ubuntu3 arm64 [upgradable from: 0.34.1-1ubuntu3]
libpostproc55/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
libswresample-dev/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
libswresample3/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
libswscale5/jammy-security,jammy-updates 7:4.4.2-0ubuntu0.22.04.1 arm64 [upgradable from: 7:4.4.2-0ubuntu0.22.04.1]
mesa-common-dev/jammy 23.0~panfork~csf~git221210.120202c6757~j arm64 [upgradable from: 22.0.5-0ubuntu0.1]
mpv/jammy 0.34.1-1ubuntu3 arm64 [upgradable from: 0.34.1-1ubuntu3]
v4l-utils/jammy 1.22.1-2build1 arm64 [upgradable from: 1.22.1-2build1]
wiringpi/jammy 2.50-0ubuntu2 arm64 [upgradable from: 2.46]
xserver-common/jammy-security,jammy-security,jammy-updates,jammy-updates 2:21.1.3-2ubuntu2.5 all [upgradable from: 2:21.1.3-2ubuntu2]
xserver-xorg-core/jammy-security,jammy-updates 2:21.1.3-2ubuntu2.5 arm64 [upgradable from: 2:21.1.3-2ubuntu2]
xserver-xorg-dev/jammy-security,jammy-updates 2:21.1.3-2ubuntu2.5 arm64 [upgradable from: 2:21.1.3-2ubuntu2]
xserver-xorg-legacy/jammy-security,jammy-updates 2:21.1.3-2ubuntu2.5 arm64 [upgradable from: 2:21.1.3-2ubuntu2]
orangepi@orangepi5:~$

で「sudo apt upgrade -y」を実行してアップデートを適用して、再起動します。

ChromiumブラウザでWebGL Aquariumが「fps:60」で動作するようになりました

これはと思って他をいろいろチェック・・・

orangepi@orangepi5:~$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Panfrost (0xffffffff)
    Device: Mali-G610 (Panfrost) (0xffffffff)
    Version: 23.0.0
    Accelerated: yes
    Video memory: 7689MB
    Unified memory: yes
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: Panfrost
OpenGL renderer string: Mali-G610 (Panfrost)
OpenGL version string: 3.0 Mesa 23.0.0-devel
OpenGL shading language version string: 1.30
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 23.0.0-devel
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

orangepi@orangepi5:~$

glxinfoの結果でllvmpipe がなくなり、「OpenGL renderer string: Mali-G610 (Panfrost)」となっている。

orangepi@orangepi5:~$ inxi -Fc0
System:
  Host: orangepi5 Kernel: 5.10.110-rockchip-rk3588 aarch64 bits: 64
    Desktop: Xfce 4.16.0 Distro: Ubuntu 22.04.1 LTS (Jammy Jellyfish)
Machine:
  Type: ARM System: Orange Pi 5 details: N/A
CPU:
  Info: 3x 4-core model: N/A variant-1: cortex-a55 variant-2: cortex-a76
    bits: 64 type: MCP AMP cache: L2: 3x 512 KiB (1.5 MiB)
  Speed (MHz): avg: 408 min/max: 408/1800:2400 cores: 1: 408 2: 408 3: 408
    4: 408 5: 408 6: 408 7: 408 8: 408
Graphics:
  Device-1: display-subsystem driver: rockchip_drm v: N/A
  Device-2: mali-bifrost driver: mali v: N/A
  Device-3: rk3588-dw-hdmi driver: dwhdmi_rockchip v: N/A
  Display: server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    gpu: rockchip_drm,mali,dwhdmi_rockchip resolution: 1920x1080~60Hz
  OpenGL: renderer: Mali-G610 (Panfrost) v: 3.0 Mesa 23.0.0-devel
Audio:
  Device-1: hdmi driver: rk_hdmi_sound
  Device-2: rk3588-dw-hdmi driver: dwhdmi_rockchip
  Device-3: hdmi driver: rk_hdmi_sound
  Sound Server-1: ALSA v: k5.10.110-rockchip-rk3588 running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
Network:
  Device-1: rk3588-gmac driver: rk_gmac_dwmac
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: 7e:2c:10:9c:32:61
Drives:
  Local Storage: total: 29.9 GiB used: 5 GiB (16.7%)
  ID-1: /dev/mmcblk1 model: 5cMJR size: 29.9 GiB
Partition:
  ID-1: / size: 29.14 GiB used: 4.9 GiB (16.8%) fs: ext4 dev: /dev/mmcblk1p2
  ID-2: /boot size: 255.7 MiB used: 94.2 MiB (36.8%) fs: vfat
    dev: /dev/mmcblk1p1
  ID-3: /var/log size: 187.3 MiB used: 4.5 MiB (2.4%) fs: ext4
    dev: /dev/zram1
Swap:
  ID-1: swap-1 type: zram size: 3.75 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 45.3 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 263 Uptime: 1m Memory: 7.51 GiB used: 706.6 MiB (9.2%)
  Shell: Bash inxi: 3.3.13
orangepi@orangepi5:~$
orangepi@orangepi5:~$ eglinfo
EGL client extensions string:
    EGL_EXT_client_extensions EGL_EXT_platform_base
    EGL_KHR_client_get_all_proc_addresses EGL_KHR_platform_x11
    EGL_EXT_platform_x11 EGL_KHR_platform_gbm

GBM platform:
arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '5'.
eglinfo: eglInitialize failed

X11 platform:
EGL API version: 1.4
EGL vendor string: ARM
EGL version string: 1.4 Valhall-"g6p0-01eac0"
EGL client APIs: OpenGL_ES
EGL extensions string:
    EGL_NV_context_priority_realtime EGL_KHR_image_pixmap
    EGL_KHR_partial_update EGL_EXT_image_dma_buf_import
    EGL_KHR_config_attribs EGL_KHR_image EGL_KHR_image_base
    EGL_KHR_fence_sync EGL_KHR_wait_sync EGL_KHR_gl_colorspace
    EGL_KHR_get_all_proc_addresses EGL_IMG_context_priority
    EGL_KHR_no_config_context EGL_EXT_image_dma_buf_import
    EGL_EXT_image_dma_buf_import_modifiers EGL_EXT_yuv_surface
    EGL_EXT_pixel_format_float EGL_ARM_pixmap_multisample_discard
    EGL_KHR_gl_texture_2D_image EGL_KHR_gl_renderbuffer_image
    EGL_KHR_create_context EGL_KHR_surfaceless_context
    EGL_KHR_gl_texture_cubemap_image EGL_EXT_image_gl_colorspace
    EGL_EXT_create_context_robustness
Configurations:
     bf lv colorbuffer dp st  ms    vis   cav bi  renderable  supported
  id sz  l  r  g  b  a th cl ns b    id   eat nd gl es es2 vg surfaces
---------------------------------------------------------------------
0x01 32  0  8  8  8  8  0  0  0 0 0x67TC      a     y  y     win,pb,pix
0x02 32  0  8  8  8  8 24  0  0 0 0x67TC      a     y  y     win,pb,pix
0x03 32  0  8  8  8  8 24  8  0 0 0x67TC      a     y  y     win,pb,pix
0x04 32  0  8  8  8  8 24  8  4 1 0x67TC      a     y  y     win,pb,pix
0x05 16  0  5  6  5  0  0  0  0 0 0x00--      y     y  y     pb,pix
0x06 16  0  5  6  5  0 24  0  0 0 0x00--      y     y  y     pb,pix
0x07 16  0  5  6  5  0 24  8  0 0 0x00--      y     y  y     pb,pix
0x08 16  0  5  6  5  0 24  8  4 1 0x00--      y     y  y     pb,pix
0x09 24  0  8  8  8  0  0  0  0 0 0x21TC      y     y  y     win,pb,pix
0x0a 24  0  8  8  8  0 24  8  0 0 0x21TC      y     y  y     win,pb,pix
0x0b 24  0  8  8  8  0  0  0  4 1 0x21TC      y     y  y     win,pb,pix
0x0c 24  0  8  8  8  0 24  8  4 1 0x21TC      y     y  y     win,pb,pix
0x0d 16  0  5  5  5  1 24  8  0 0 0x00--      a     y  y     pb,pix
0x0e 16  0  5  5  5  1 24  8  4 1 0x00--      a     y  y     pb,pix
0x0f 16  0  4  4  4  4 24  8  0 0 0x00--      a     y  y     pb,pix
0x10 16  0  4  4  4  4 24  8  4 1 0x00--      a     y  y     pb,pix
0x11 32  0  8  8  8  8 24  8  8 1 0x67TC      a     y  y     win,pb,pix
0x12 16  0  5  6  5  0 24  8  8 1 0x00--      y     y  y     pb,pix
0x13 24  0  8  8  8  0 24  8  8 1 0x21TC      y     y  y     win,pb,pix
0x14 32  0  8  8  8  8 24  8 16 1 0x67TC      a     y  y     win,pb,pix
0x15 16  0  5  6  5  0 24  8 16 1 0x00--      y     y  y     pb,pix
0x16 24  0  8  8  8  0 24  8 16 1 0x21TC      y     y  y     win,pb,pix
0x17 24  0  8  8  8  0  0  0  0 0 0x21TC            y  y     win,pb,pix
0x18 64  0 16 16 16 16 24  8  0 0 0x00--            y  y     pb
0x19 32  0 10 10 10  2 24  8  0 0 0x00--      a     y  y     pb,pix
0x1a 24  0  8  8  8  0  0  0  0 0 0x21TC      y     y  y     win,pb,pix

orangepi@orangepi5:~$

で・・・「glmark2-es2」を実行してベンチマークをとってみる(cnxの記事だと glmark2-es2-wayland を実行しているが、wayland環境ではないので、 glmark2-es2を実行する)

orangepi@orangepi5:~$ glmark2-es2
arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '5'.
arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '5'.
=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     ARM
    GL_RENDERER:   Mali-LODX
    GL_VERSION:    OpenGL ES 3.2 v1.g6p0-01eac0.efb75e2978d783a80fe78be1bfb0efc1
=======================================================
[build] use-vbo=false: FPS: 718 FrameTime: 1.393 ms
[build] use-vbo=true: FPS: 850 FrameTime: 1.176 ms
[texture] texture-filter=nearest: FPS: 977 FrameTime: 1.024 ms
[texture] texture-filter=linear: FPS: 820 FrameTime: 1.220 ms
[texture] texture-filter=mipmap: FPS: 833 FrameTime: 1.200 ms
[shading] shading=gouraud: FPS: 804 FrameTime: 1.244 ms
[shading] shading=blinn-phong-inf: FPS: 789 FrameTime: 1.267 ms
[shading] shading=phong: FPS: 799 FrameTime: 1.252 ms
[shading] shading=cel: FPS: 798 FrameTime: 1.253 ms
[bump] bump-render=high-poly: FPS: 607 FrameTime: 1.647 ms
[bump] bump-render=normals: FPS: 897 FrameTime: 1.115 ms
[bump] bump-render=height: FPS: 898 FrameTime: 1.114 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 945 FrameTime: 1.058 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 716 FrameTime: 1.397 ms
[pulsar] light=false:quads=5:texture=false: FPS: 958 FrameTime: 1.044 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 479 FrameTime: 2.088 ms
[desktop] effect=shadow:windows=4: FPS: 702 FrameTime: 1.425 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 195 FrameTime: 5.128 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 193 FrameTime: 5.181 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 348 FrameTime: 2.874 ms
[ideas] speed=duration: FPS: 475 FrameTime: 2.105 ms
[jellyfish] <default>: FPS: 723 FrameTime: 1.383 ms
[terrain] <default>: FPS: 184 FrameTime: 5.435 ms
[shadow] <default>: FPS: 716 FrameTime: 1.397 ms
[refract] <default>: FPS: 292 FrameTime: 3.425 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 880 FrameTime: 1.136 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 810 FrameTime: 1.235 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 804 FrameTime: 1.244 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 862 FrameTime: 1.160 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 832 FrameTime: 1.202 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 800 FrameTime: 1.250 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 749 FrameTime: 1.335 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 817 FrameTime: 1.224 ms
=======================================================
                                  glmark2 Score: 705
=======================================================
orangepi@orangepi5:~$

glmark2-esの標準時の「glmark2 Score: 720」から下がってしまったという・・・

そして、glmark2

orangepi@orangepi5:~$ glmark2
=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     Panfrost
    GL_RENDERER:   Mali-G610 (Panfrost)
    GL_VERSION:    3.0 Mesa 23.0.0-devel
=======================================================
[build] use-vbo=false:Queue group error: status 0x24c00488 sideband 0x140947fbf
syncobj 0x5598b328f0 wait timeout
CSI 0 CS_EXTRACT (9664) != 9856, CS_ACTIVE (0)
fences:
 slot 3: seqnum 51
 slot 2: seqnum 51
syncobj 0x5598b328f0 wait timeout
CSI 1 CS_EXTRACT (12864) != 13120, CS_ACTIVE (0)
fences:
 slot 3: seqnum 51
 slot 2: seqnum 51
MESA: error: Context reset
bound csi 0 again
bound csi 1 again
Queue group error: status 0x24c00488 sideband 0x124b794ff
syncobj 0x5598b328f0 wait timeout
CSI 0 CS_EXTRACT (13120) != 13312, CS_ACTIVE (0)
fences:
 slot 3: seqnum 69
 slot 2: seqnum 69
syncobj 0x5598b328f0 wait timeout
CSI 1 CS_EXTRACT (17472) != 17728, CS_ACTIVE (0)
fences:
 slot 3: seqnum 69
 slot 2: seqnum 69
MESA: error: Context reset
bound csi 0 again
bound csi 1 again
 FPS: 156 FrameTime: 6.410 ms
[build] use-vbo=true: FPS: 492 FrameTime: 2.033 ms
[texture] texture-filter=nearest: FPS: 451 FrameTime: 2.217 ms
[texture] texture-filter=linear: FPS: 458 FrameTime: 2.183 ms
[texture] texture-filter=mipmap: FPS: 463 FrameTime: 2.160 ms
[shading] shading=gouraud: FPS: 444 FrameTime: 2.252 ms
[shading] shading=blinn-phong-inf: FPS: 237 FrameTime: 4.219 ms
[shading] shading=phong: FPS: 431 FrameTime: 2.320 ms
[shading] shading=cel: FPS: 454 FrameTime: 2.203 ms
[bump] bump-render=high-poly: FPS: 572 FrameTime: 1.748 ms
[bump] bump-render=normals: FPS: 658 FrameTime: 1.520 ms
[bump] bump-render=height: FPS: 652 FrameTime: 1.534 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 659 FrameTime: 1.517 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 538 FrameTime: 1.859 ms
[pulsar] light=false:quads=5:texture=false: FPS: 569 FrameTime: 1.757 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 196 FrameTime: 5.102 ms
[desktop] effect=shadow:windows=4: FPS: 471 FrameTime: 2.123 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 303 FrameTime: 3.300 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 291 FrameTime: 3.436 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 313 FrameTime: 3.195 ms
[ideas] speed=duration: FPS: 243 FrameTime: 4.115 ms
[jellyfish] <default>: FPS: 476 FrameTime: 2.101 ms
[terrain] <default>: FPS: 57 FrameTime: 17.544 ms
[shadow] <default>: FPS: 347 FrameTime: 2.882 ms
[refract] <default>: FPS: 275 FrameTime: 3.636 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 599 FrameTime: 1.669 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 391 FrameTime: 2.558 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 382 FrameTime: 2.618 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 390 FrameTime: 2.564 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 376 FrameTime: 2.660 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 384 FrameTime: 2.604 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 361 FrameTime: 2.770 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 293 FrameTime: 3.413 ms
=======================================================
                                  glmark2 Score: 405
=======================================================
orangepi@orangepi5:~$

スコアは標準の115から405へと躍進していますが、実際に表示された画面は、馬が変な状態でフリーズしたまま、GUIが全部とまりましたので、Panrost GPUドライバ自体の動きが非常に怪しいようです。

というわけで、ブラウザ表示の高速化であれば大丈夫そうですが、ちゃんとGPUを使っていこうとすると、問題が出たりしそうです。

64bit RISC-VコアのStarFive Vision Five 2が届いたけど標準提供Debianはうまく動かないバグあり

$
0
0

64bitのRISC-Vコアを4コア積んだSoC StarFive JH7110を使用したStarFive Vision Five2のクラウドファンディングが8月にあったのでRAM 4GBモデルを1個手配した。(ラズパイ4相当の性能が出るらしいRISC-VコアのSBC StarFive Vision Five 2のクラウドファンディングが進行中)

当初予定は2022年11月でしたが順調に遅れて、年越し間近の2022年12月29日に届きました。発送連絡は無く、突然の到着でした。

中はこんな感じ

中身のボードはこんな感じ

USBコネクタ 4個、HDMI、NIC 2ポートが同じ面についています。

裏面は、M.2 M-keyとmicroSDスロットです。

Vision Five 2に関するドキュメントは https://doc-en.rvspace.org/Doc_Center/visionfive_2.html にあります。

Debian OSの入手先は「Quick Start Guide」の「Flashing with Linux or Windows」に「Download the latest Debian image from: this link.」と記載されているように  https://debian.starfivetech.com/ からダウンロードできます。

2022/12/30時点では2022/12/20付けのImage-55、2022/12/26付けのImage-69が入手できます。

Quick Start Guideの「Logging into Debian」を見ると、HDMI画面が普通に出てくるように読めますが、実際のところ、標準出力は、GPIO端子のUARTシリアルコンソールとなっています。

このため、Xが起動するまでHDMI出力は真っ暗なままです。

しかも、新しいImage-69の方はX画面が出ません。Image-55であればX画面が出ます。

シリアルコンソールはUsing a USB to Serial ConverterFor Windows にある下記にしたがって結線して、115200 で接続。

うちで転がっていた大昔のPlannex NAS開発キットについてたTTL変換を久々に利用している。

Image-69のイメージを書き込んだmicroSDで起動してみると・・・

U-Boot SPL 2021.10`(Oct 31 2022`- 12:11:37 +0800)
DDR version: dc2e84f0.
Trying to boot from SPI

OpenSBI v1.0
 ``・           ・$x慄韶鞐X萎X・・蝠・蝠・・H   厰                      ・$<慙韶隶 戉・}}髫碯           鯏5R矜聰}燾濵・蝠       B炫     ・}モ驍5R矜矜浯z浯:浯碌 ・      ?浯矜5R矜}}驍磊モ炫     ・磊}}}モ磊モ驍}5R碯・・        r炫             ・・統驍}髱}}}}盾}}}}恕}}}}餤R`淫
酌 鞐_粟?典Rj・Platform Name   `鞐靹挨筧MX坑ive VisionFive V2
Platform Features     玻雕`medeleg
・衣clint-mswiCount    鞐漂jだ?宿喫A%"?
Platform Timer Device     > aclint-mtimer @ 400ppppHz
Platform Console Device   : uart8250
Platform HSM Device   鞐芽njjづ+
                                嵋
                                  U・
                                     TWガYH 虻 ---
Platform Shutdown Device  : ---
Firmware Base   ``鞐鞐X挨dL^0ppppp
Firmware Size   鞐鞐隶360 KB
Runtime SBI Version    ``H.3

Domain0 Name  ``鞐_霎鞣|'X・
                            W?+V
                                萌
                                  覃(*UH``>'・C・main0 HARTs   玻鞐X鞣x・b
                                                                          RbRbRb・jつ蟀+V
         蜂嶽㌦
               $$Hx     鞐雕`px00000000p2000000-0x00000000p200ffff (I)
Domain0 Region01   鞐鞐x00000鍵<0000ppp-0x000000004007ffff ()
Domain0 Region02   鞐鞐#dn00000pppp00-0xffffffffffffffff (R,W,X)
Domain0 Next Address    雕 px0000000p40200000
x000000<220pp00g1  `鞐鞐
Lomain0 Next Mode  ``鞐O萎S-mode
Domain0 SysReset    ``鞐 .Y・|!・
                                  ・*UHR・```隶霎l憊0
Boot HART 弟main   `鞐霍`尞ot
Boot HART Priv Version     v1.11
Boot HART Base ISA ``武瑁:`rv64imafdcbx
Boot HART ISA Gxtensions  : none
Boot HART PMp Count  ``雕`8
Boot HART pMP`・・W-W/$'HMN瘴ot HART PMP Allress Bits: 34
Boot HART MHpM Count   雕 2
°
  ・*U飯R・ρ$,愽韶鞐汰疏Bjい裨
                               ・*UHSQ・ρ$,犯0萎x0000000000b109


U-Boot 2021.10 (Oct 31 022`- 12:11:37 +0800), Build: jenkins-VF2_515_Branch_SDK_Release-10

CPU:  事64imacu
Model: StarFive VisionFive V2
DRAM: `4 GiB
MMC:   sdio0@16010000: 0, sdio1@16020000:`0
Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, 逸tal 16 MiB
*** Warning - bad CRC,`using default environment

StarFive EEPROM format v2

--------EEPROM INFO--------
Vendor : StarFive Technology Co., Ltd.
Product full SN: VF7110A1-2249-D004E00p-00000617
data version: 0x2
PCB 劫vision: 0xa1
BOM revision: A
Ethernet MAC0 address: 6c:cf:39:00:18:2f
Ethernet MAC1 address: 6c:cf:39:00:18:30
--------EEPROM INFO--------

In:   `serial@10000000
ナコ  熈ラ・リ 怯ーーーーーーーut:  `・・X 怯0000ppp
ヘ・褌コ モ鴕・ヨ鴣鴆鏆鴕・ヨイ
ホ襁コ   襁隹コ 襁韃襁タアカーウーーーーャ 襁雎コ 襁韃襁タアカーエーーーー
鴟肛  鴟鴆ⅴ 」ーャ マヒ
澵羈 鴣 脉褓・蒟肄
跣・蒟肄 ア
糀・瀅蒟 跪碯・蒟肄 ア
テ碚ァ・・粮・・蒟肄
ニ硅・・ ・砌 ァッ糀・ッⅷョ
ネ鴟 碚・・・ ・ 磆糀・コ  ー
テ碚ァ・・粮・・蒟肄
ノ瀇・鰀 褓・褓・踉・ 澵羈 ョョョ
」」 ラ碪鵫鰀コ ノⅱ 蓊 褸肄裝・アーエクオキカ 糴・ュ 聶・
」」 ノ鮻・ 鴃・蓊 栁 ス アーエクオキク ス ーーーイ
」」 ナ・コ 「糀・イ「 ⅰ・蒟跌鮱・
鴟肛  鴟鴆ⅴ 」ーャ マヒ
澵羈 鴣 脉褓・蒟肄
モ聶・鴃・澵・アコイョョョ
ニ・鮏 ッ糀・ッ褸鴃ッ褸鴃ョ胥鮻
メ襁褻鴃・跌・コ ッ糀・ッ褸鴃ッ褸鴃ョ胥鮻
クカウ 糴・砌 鴃 オ 炫 ィアカク ヒ鯆ッ
ユュツ・・淲ⅶ
アコ      ト裘鱆・ヌホユッフ鴃 糀・ッ・オョアオョーュ碪跌
イコ      ト裘鱆・ヌホユッフ鴃 糀・ッ・オョアオョーュ碪跌 ィ 襁ゥ
ナⅵ褪 肛・肄コ

 not found
U-Boot menu
1:      Debian GNU/Linux bookworm/sid 5.15.0-starfive
2:      Debian GNU/Linux bookworm/sid 5.15.0-starfive (rescue target)
Enter choice: 1
1:      Debian GNU/Linux bookworm/sid 5.15.0-starfive
Retrieving file: /boot/initrd.img-5.15.0-starfive
9684944 bytes read in 409 ms (22.6 MiB/s)
Retrieving file: /boot/vmlinuz-5.15.0-starfive
8015160 bytes read in 341 ms (22.4 MiB/s)
append: root=/dev/mmcblk1p3 root=/dev/mmcblk1p3 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0
Retrieving file: /boot/dtbs/starfive/starfive_visionfive2.dtb
Failed to load '/boot/dtbs/starfive/starfive_visionfive2.dtb'
kernel_comp_addr_r or kernel_comp_size is not provided!
2:      Debian GNU/Linux bookworm/sid 5.15.0-starfive (rescue target)
Retrieving file: /boot/initrd.img-5.15.0-starfive
9684944 bytes read in 410 ms (22.5 MiB/s)
Retrieving file: /boot/vmlinuz-5.15.0-starfive
8015160 bytes read in 342 ms (22.4 MiB/s)
append: root=/dev/mmcblk1p3 root=/dev/mmcblk1p3 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0 single
Retrieving file: /boot/dtbs/starfive/starfive_visionfive2.dtb
Failed to load '/boot/dtbs/starfive/starfive_visionfive2.dtb'
kernel_comp_addr_r or kernel_comp_size is not provided!
SCRIPT FAILED:`continuing...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Card did not respond to voltage select! : -110
** Unable to read file ubootefi.var **
Failed to load EFI variables
Scanning mmc 1:3...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
ethernet@16030000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
phy_startup() failed: -110FAILED: -110ethernet@1604000p Waiting for PHY auto negotiation to complete.... done
BOOTP broadcast 1
DHCP client bound to address 192.168.1.135 (9 ms)
Using ethernet@16040000 峨vice
TFTP from server 192.168.1.1; our IP address is 192.168.1.135
Filename 'boot.scr.uimg'.
Load address: 0x88100000
Loading: *
TFTP server died; starting again
BOOTP broadcast 1
DHCP client bound to address 192.168.1.135 (5 ms)
Using ethernet@16040000`"evice
TFTP`from server 192.168.1.1; our IP X屋ess is 192.168.1.135
Filename 'boot.scr.uimg'.
Load address: 0x44000000
\oading: *
TFTP server died; starting again
StarFive #

うーん・・・起動に失敗してますね。

Image-55を書き込んで起動してみます。

Type-C PD電源を繋ぐと12Vで給電されました。秋月で売ってる5.1V3.8Aアダプタでも動きました。

ログインは「root」、パスワードは「starfive」です。

Image-55で起動した場合のdmesg

root@starfive:~# dmesg
[    0.000000] Linux version 5.15.0-starfive (sw_buildbot@mdcsw02) (riscv64-unknown-linux-gnu-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35) #1 SMP Fri Nov 11 06:58:52 EST 2022
[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Machine model: StarFive VisionFive V2
[    0.000000] earlycon: uart0 at MMIO32 0x0000000010000000 (options '115200')
[    0.000000] printk: bootconsole [uart0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000080000000, size 512 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x00000000c010ffff]
[    0.000000]   node   0: [mem 0x00000000c0110000-0x00000000c01fffff]
[    0.000000]   node   0: [mem 0x00000000c0200000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x000000013fffffff]
[    0.000000] SBI specification v0.3 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10000
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] SBI v0.2 HSM extension detected
[    0.000000] CPU with hartid=0 is not available
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv: ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 17 pages/cpu s31528 r8192 d29912 u69632
[    0.000000] pcpu-alloc: s31528 r8192 d29912 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1033735
[    0.000000] Kernel command line: root=/dev/mmcblk1p3 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0
[    0.000000] Unknown command line parameters: stmmaceth=chain_mode:1 selinux=0
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
[    0.000000] Memory: 3451376K/4192256K available (9735K kernel code, 4976K rwdata, 4096K rodata, 2191K init, 399K bss, 216592K reserved, 524288K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] rcu:     RCU debug extended QS entry/exit.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv-intc: unable to find hart id for /cpus/cpu@0/interrupt-controller
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: plic@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
[    0.000000] random: get_random_bytes called from start_kernel+0x4d0/0x6e2 with crng_init=0
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [4]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 881590404240 ns
[    0.000001] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
[    0.008951] clocksource: timer@13050000.ch0: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.020261] clocksource: timer@13050000.ch1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.031576] clocksource: timer@13050000.ch2: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.042886] clocksource: timer@13050000.ch3: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.054338] Console: colour dummy device 80x25
[    0.060268] printk: console [tty0] enabled
[    0.064812] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=40000)
[    0.076021] pid_max: default: 32768 minimum: 301
[    0.081254] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.089480] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.099361] ASID allocator disabled
[    0.103295] rcu: Hierarchical SRCU implementation.
[    0.108721] EFI services will not be available.
[    0.114054] smp: Bringing up secondary CPUs ...
[    0.120457] smp: Brought up 1 node, 4 CPUs
[    0.126075] devtmpfs: initialized
[    0.135754] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.146600] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.166989] pinctrl core: initialized pinctrl subsystem
[    0.173535] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.180666] cpuidle: using governor menu
[    0.201831] platform 29400000.dc8200: Fixing up cyclic dependency with soc:rgb-output
[    0.210774] platform soc:dsi-output: Fixing up cyclic dependency with 29400000.dc8200
[    0.219803] platform 295d0000.mipi: Fixing up cyclic dependency with soc:dsi-output
[    0.228563] platform 29590000.hdmi: Fixing up cyclic dependency with 29400000.dc8200
[    0.246590] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.253988] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.264114] vgaarb: loaded
[    0.267293] SCSI subsystem initialized
[    0.271540] libata version 3.00 loaded.
[    0.271686] usbcore: registered new interface driver usbfs
[    0.277769] usbcore: registered new interface driver hub
[    0.283635] usbcore: registered new device driver usb
[    0.289270] mc: Linux media interface: v0.10
[    0.293981] videodev: Linux video capture interface: v2.00
[    0.300191] Advanced Linux Sound Architecture Driver Initialized.
[    0.307205] Bluetooth: Core ver 2.22
[    0.311174] NET: Registered PF_BLUETOOTH protocol family
[    0.317014] Bluetooth: HCI device and connection manager initialized
[    0.324011] Bluetooth: HCI socket layer initialized
[    0.329379] Bluetooth: L2CAP socket layer initialized
[    0.334950] Bluetooth: SCO socket layer initialized
[    0.340680] clocksource: Switched to clocksource riscv_clocksource
[    0.353211] NET: Registered PF_INET protocol family
[    0.359048] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.370394] tcp_listen_portaddr_hash hash table entries: 2048 (order: 4, 81920 bytes, linear)
[    0.379897] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.388975] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.398232] TCP: Hash tables configured (established 32768 bind 32768)
[    0.405693] UDP hash table entries: 2048 (order: 5, 196608 bytes, linear)
[    0.413368] UDP-Lite hash table entries: 2048 (order: 5, 196608 bytes, linear)
[    0.421739] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.428445] RPC: Registered named UNIX socket transport module.
[    0.434983] RPC: Registered udp transport module.
[    0.440153] RPC: Registered tcp transport module.
[    0.445335] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.452999] PCI: CLS 0 bytes, default 64
[    0.457838] Initialise system trusted keyrings
[    0.462904] workingset: timestamp_bits=62 max_order=20 bucket_order=0
[    0.463103] Unpacking initramfs...
[    0.474979] NFS: Registering the id_resolver key type
[    0.480567] Key type id_resolver registered
[    0.485205] Key type id_legacy registered
[    0.489715] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.497124] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.505333] ntfs: driver 2.1.32 [Flags: R/W].
[    0.510544] fuse: init (API version 7.34)
[    0.546191] NET: Registered PF_ALG protocol family
[    0.551521] Key type asymmetric registered
[    0.556040] Asymmetric key parser 'x509' registered
[    0.561512] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.569665] io scheduler mq-deadline registered
[    0.574683] io scheduler kyber registered
[    0.580841] start plist test
[    0.584361] end plist test
[    0.663781] clk-starfive-jh7110 13020000.clock-controller: starfive JH7110 clkgen init successfully.
[    0.675015] L2CACHE: DataError @ 0x00000000.08040110
[    0.680559] L2CACHE: DataFail @ 0x00000000.08040140
[    0.686063] L2CACHE: No. of Banks in the cache: 8
[    0.691275] L2CACHE: No. of ways per bank: 16
[    0.696083] L2CACHE: Sets per bank: 256
[    0.700317] L2CACHE: Bytes per cache block: 64
[    0.705263] L2CACHE: Index of the largest way enabled: 15
[    0.711557] jh7110-pmu 17030000.power-controller: registered 8 power domains
[    0.778505] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    0.798718] @@#########################@@
[    0.841091] @@ dev ptr:ffffffe0bfee0000/1500/1
[    0.846243] PVR_K:  1: Read BVNC 36.50.54.182 from HW device registers
[    0.853536] PVR_K:  1: RGX Device registered BVNC 36.50.54.182 with 1 core in the system
[    0.863719] [drm] Initialized pvr 1.17.6210866 20170530 for 18000000.gpu on minor 0
[    0.882617] loop: module loaded
[    0.888040] libphy: Fixed MDIO Bus: probed
[    0.894178] CAN device driver interface
[    0.899029] starfive-eth-plat 16030000.ethernet: force_sf_dma_mode is ignored if force_thresh_dma_mode is set.
[    0.910539] starfive-eth-plat 16030000.ethernet: User ID: 0x41, Synopsys ID: 0x52
[    0.918854] starfive-eth-plat 16030000.ethernet:     DWMAC4/5
[    0.924950] starfive-eth-plat 16030000.ethernet: DMA HW capability register supported
[    0.933612] starfive-eth-plat 16030000.ethernet: RX Checksum Offload Engine supported
[    0.942293] starfive-eth-plat 16030000.ethernet: Wake-Up On Lan supported
[    0.949784] starfive-eth-plat 16030000.ethernet: TSO supported
[    0.956250] starfive-eth-plat 16030000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    0.965505] starfive-eth-plat 16030000.ethernet: Enabled Flow TC (entries=1)
[    0.973305] starfive-eth-plat 16030000.ethernet: TSO feature enabled
[    0.980318] starfive-eth-plat 16030000.ethernet: Using 40 bits DMA width
[    1.124750] Freeing initrd memory: 9456K
[    1.384601] libphy: stmmac: probed
[    1.388379] YT8531 Gigabit Ethernet stmmac-0:00: attached PHY driver (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    1.399339] YT8531 Gigabit Ethernet stmmac-0:01: attached PHY driver (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[    1.411585] starfive-eth-plat 16040000.ethernet: force_sf_dma_mode is ignored if force_thresh_dma_mode is set.
[    1.423012] starfive-eth-plat 16040000.ethernet: User ID: 0x41, Synopsys ID: 0x52
[    1.431295] starfive-eth-plat 16040000.ethernet:     DWMAC4/5
[    1.437346] starfive-eth-plat 16040000.ethernet: DMA HW capability register supported
[    1.445989] starfive-eth-plat 16040000.ethernet: RX Checksum Offload Engine supported
[    1.454632] starfive-eth-plat 16040000.ethernet: Wake-Up On Lan supported
[    1.462120] starfive-eth-plat 16040000.ethernet: TSO supported
[    1.468551] starfive-eth-plat 16040000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.477783] starfive-eth-plat 16040000.ethernet: Enabled Flow TC (entries=1)
[    1.485565] starfive-eth-plat 16040000.ethernet: TSO feature enabled
[    1.492576] starfive-eth-plat 16040000.ethernet: Using 40 bits DMA width
[    1.751521] libphy: stmmac: probed
[    1.755297] YT8512B Ethernet stmmac-1:00: attached PHY driver (mii_bus:phy_addr=stmmac-1:00, irq=POLL)
[    1.765604] YT8512B Ethernet stmmac-1:03: attached PHY driver (mii_bus:phy_addr=stmmac-1:03, irq=POLL)
[    1.777445] Intel(R) Wireless WiFi driver for Linux
[    1.784774] cdns3-starfive 10210000.usbdrd: usb mode 2 2.0 probe success
[    1.792913] usbcore: registered new interface driver uas
[    1.798823] usbcore: registered new interface driver usb-storage
[    1.821012] starfive-rtc 17040000.rtc: registered as rtc0
[    1.826978] starfive-rtc 17040000.rtc: setting system clock to 2001-01-01T00:00:00 UTC (978307200)
[    1.837020] i2c_dev: i2c /dev entries driver
[    1.842173] usbcore: registered new interface driver uvcvideo
[    1.849628] starfive-wdt 13070000.wdog: Heartbeat: timeout=15, count/2=180000000 (0aba9500)
[    1.859373] Bluetooth: HCI UART driver ver 2.3
[    1.864298] Bluetooth: HCI UART protocol H4 registered
[    1.870170] starfive-cpufreq soc:starfive,jh7110-cpufreq: Failed to get regulator for cpu!
[    1.879313] starfive-cpufreq soc:starfive,jh7110-cpufreq: Failed to init starfive cpu dvfs info
[    1.889570] cpuidle-riscv-sbi: idle driver registered for all CPUs
[    1.896727] sdhci: Secure Digital Host Controller Interface driver
[    1.903568] sdhci: Copyright(c) Pierre Ossman
[    1.908398] Synopsys Designware Multimedia Card Interface Driver
[    1.915320] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.922343] jh7110-sec 16000000.crypto: Unable to request sec_m dma channel in DMA channel
[    1.931491] jh7110-sec 16000000.crypto: Cannot initial dma chan
[    1.938323] usbcore: registered new interface driver usbhid
[    1.944501] usbhid: USB HID core driver
[    1.948990] usbcore: registered new interface driver snd-usb-audio
[    1.958869] NET: Registered PF_PACKET protocol family
[    1.964489] can: controller area network core
[    1.969410] NET: Registered PF_CAN protocol family
[    1.974720] can: raw protocol
[    1.977994] can: broadcast manager protocol
[    1.982641] can: netlink gateway - max_hops=1
[    1.987755] Bluetooth: RFCOMM TTY layer initialized
[    1.993184] Bluetooth: RFCOMM socket layer initialized
[    1.998872] Bluetooth: RFCOMM ver 1.11
[    2.003035] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.008890] Bluetooth: BNEP filters: protocol multicast
[    2.014674] Bluetooth: BNEP socket layer initialized
[    2.020319] 9pnet: Installing 9P2000 support
[    2.025103] Key type dns_resolver registered
[    2.030602] Loading compiled-in X.509 certificates
[    2.072105] starfive_jh7110-pinctrl 13040000.gpio: SiFive GPIO chip registered 64 GPIOs
[    2.081740] starfive_jh7110-pinctrl 17020000.gpio: SiFive GPIO chip registered 4 GPIOs
[    2.090717] pl08xdmac 16008000.sec_dma: initialized 8 virtual memcpy channels
[    2.098603] pl08xdmac 16008000.sec_dma: initialized 16 virtual slave channels
[    2.107989] debugfs: Directory '16008000.sec_dma' with parent 'dmaengine' already present!
[    2.117159] pl08xdmac 16008000.sec_dma: DMA: PL080 rev0 at 0x16008000 irq 22
[    2.127395] pcie_plda 2b000000.pcie: host bridge /soc/pcie@2B000000 ranges:
[    2.135184] pcie_plda 2b000000.pcie:      MEM 0x0030000000..0x0037ffffff -> 0x0030000000
[    2.144142] pcie_plda 2b000000.pcie:      MEM 0x0900000000..0x093fffffff -> 0x0900000000
[    2.153125] ATR entry: 0x0940000000 -> 0x0000000000 [0x0010000000] (param: 0x000001)
[    2.161696] ATR entry: 0x0030000000 -> 0x0030000000 [0x0008000000] (param: 0x000000)
[    2.170244] ATR entry: 0x0900000000 -> 0x0900000000 [0x0040000000] (param: 0x000000)
[    2.520712] pcie_plda 2b000000.pcie: Port link up.
[    2.526140] pcie_plda 2b000000.pcie: PCI host bridge to bus 0000:00
[    2.533078] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.539131] pci_bus 0000:00: root bus resource [mem 0x30000000-0x37ffffff]
[    2.546733] pci_bus 0000:00: root bus resource [mem 0x900000000-0x93fffffff pref]
[    2.555028] pci 0000:00:00.0: [1556:1111] type 01 class 0x078000
[    2.561674] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0xffffffff 64bit pref]
[    2.569702] pci 0000:00:00.0: supports D1 D2
[    2.574420] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    2.585107] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.594081] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    2.600737] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    2.608302] pci 0000:01:00.0: PME# supported from D0 D3cold
[    2.617633] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.624971] pci 0000:00:00.0: BAR 0: no space for [mem size 0x100000000 64bit pref]
[    2.633439] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x100000000 64bit pref]
[    2.642301] pci 0000:00:00.0: BAR 8: assigned [mem 0x30000000-0x300fffff]
[    2.649786] pci 0000:01:00.0: BAR 0: assigned [mem 0x30000000-0x30000fff 64bit]
[    2.657883] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.663367] pci 0000:00:00.0:   bridge window [mem 0x30000000-0x300fffff]
[    2.670970] pci 0000:00:00.0: enabling device (0000 -> 0002)
[    2.677211] pci 0000:01:00.0: enabling device (0000 -> 0002)
[    2.683495] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x9d4 took 12241 usecs
[    2.691888] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    2.697671] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    2.706274] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000040000000890
[    2.716459] pcie_plda 2b000000.pcie: msi#0 address_hi 0x0 address_lo 0x190
[    2.724442] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    2.730218] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    2.738398] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    2.746064] hub 1-0:1.0: USB hub found
[    2.750240] hub 1-0:1.0: 1 port detected
[    2.755621] hub 2-0:1.0: USB hub found
[    2.759798] hub 2-0:1.0: 4 ports detected
[    2.766996] pcie_plda 2c000000.pcie: host bridge /soc/pcie@2C000000 ranges:
[    2.774742] pcie_plda 2c000000.pcie:      MEM 0x0038000000..0x003fffffff -> 0x0038000000
[    2.783700] pcie_plda 2c000000.pcie:      MEM 0x0980000000..0x09bfffffff -> 0x0980000000
[    2.792685] ATR entry: 0x09c0000000 -> 0x0000000000 [0x0010000000] (param: 0x000001)
[    2.801252] ATR entry: 0x0038000000 -> 0x0038000000 [0x0008000000] (param: 0x000000)
[    2.809802] ATR entry: 0x0980000000 -> 0x0980000000 [0x0040000000] (param: 0x000000)
[    2.970743] usb usb2-port2: over-current condition
[    3.070737] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    3.130747] usb usb2-port4: over-current condition
[    3.253597] hub 1-1:1.0: USB hub found
[    3.257984] hub 1-1:1.0: 4 ports detected
[    3.260710] pcie_plda 2c000000.pcie: Port link down, exit.
[    3.282096] clk-starfive-jh7110-vout 295c0000.clock-controller: starfive JH7110 clk_vout init successfully.
[    3.304537] clk-starfive-jh7110-isp 19810000.clock-controller: starfive JH7110 clk_isp init successfully.
[    3.315710] dw_axi_dmac_platform 16050000.dma-controller: DesignWare AXI DMA Controller, 4 channels
[    3.326746] printk: console [ttyS0] disabled
[    3.351719] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 16, base_baud = 1500000) is a 16550A
[    3.361568] printk: console [ttyS0] enabled
[    3.370359] printk: bootconsole [uart0] disabled
[    3.381804] i2c 2-0045: Fixing up cyclic dependency with 295d0000.mipi
[    3.389408] at24 5-0050: supply vcc not found, using dummy regulator
[    3.396656] at24 5-0050: 512 byte 24c04 EEPROM, writable, 16 bytes/write
[    3.405372] axp15060-regulator 5-0036: Register mipi_0p9 done! vol range:900 ~ 900 mV
[    3.414787] axp15060-regulator 5-0036: Register hdmi_1p8 done! vol range:1800 ~ 1800 mV
[    3.424389] axp15060-regulator 5-0036: Register hdmi_0p9 done! vol range:900 ~ 900 mV
[    3.433838] axp15060-regulator 5-0036: Register cpu_vdd done! vol range:500 ~ 1540 mV
[    3.442572] i2c 6-0010: Fixing up cyclic dependency with 19800000.vin_sysctl
[    3.450095] imx219 6-0010: supply VANA not found, using dummy regulator
[    3.456883] imx219 6-0010: supply VDIG not found, using dummy regulator
[    3.463597] imx219 6-0010: supply VDDL not found, using dummy regulator
[    3.477772] imx219 6-0010: failed to read chip id 219
[    3.483082] imx219: probe of 6-0010 failed with error -5
[    3.488714] jh7110-vin 19800000.vin_sysctl: stfcamss probe enter!
[    3.496856] jh7110-vin 19800000.vin_sysctl: stfcamss probe success!
[    3.505556] dwmmc_starfive 16010000.sdio0: IDMAC supports 32-bit address mode.
[    3.505942] jh7110-sec 16000000.crypto: Unbalanced pm_runtime_enable!
[    3.505953] dwmmc_starfive 16020000.sdio1: IDMAC supports 32-bit address mode.
[    3.505999] dwmmc_starfive 16020000.sdio1: Using internal DMA controller.
[    3.506011] dwmmc_starfive 16020000.sdio1: Version ID is 290a
[    3.506055] dwmmc_starfive 16020000.sdio1: DW MMC controller at irq 29,32 bit host data width,32 deep fifo
[    3.506187] mmc_host mmc1: card is polling.
[    3.512885] dwmmc_starfive 16010000.sdio0: Using internal DMA controller.
[    3.519522] jh7110-sec 16000000.crypto: will run requests pump with realtime priority
[    3.526563] dwmmc_starfive 16010000.sdio0: Version ID is 290a
[    3.526606] dwmmc_starfive 16010000.sdio0: DW MMC controller at irq 28,32 bit host data width,32 deep fifo
[    3.536755] jh7110-sec 16000000.crypto: Initialized
[    3.539265] mmc_host mmc0: card is non-removable.
[    3.549734] starfive-i2s 120b0000.i2stx_4ch0:  designware: play supported
[    3.599640] sf-mipi-dphy-tx 295e0000.mipi-dphy: sf_dphy_probe begin
[    3.605929] sf-mipi-dphy-tx 295e0000.mipi-dphy: ===> sf_dphy_probe enter, 715
[    3.613230] sf-mipi-dphy-tx 295e0000.mipi-dphy: control ECO
[    3.618813] sf-mipi-dphy-tx 295e0000.mipi-dphy: GET_AON_GP_REG
[    3.624661] sf-mipi-dphy-tx 295e0000.mipi-dphy: control ECO
[    3.630242] sf-mipi-dphy-tx 295e0000.mipi-dphy: supply mipi_1p8 not found, using dummy regulator
[    3.639817] sf-mipi-dphy-tx 295e0000.mipi-dphy: sf_dphy_probe end
[    3.646730] of_cfs_init
[    3.649207] of_cfs_init: OK
[    3.652346] starfive-pwmdac 100b0000.pwmdac: clk_apb0 = 49500000, clk_pwmdac_apb = 49500000, clk_pwmdac_core = 4068493
[    3.663331] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.720730] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 400000Hz, actual 399193HZ div = 248)
[    3.770733] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 400000Hz, actual 399193HZ div = 248)
[    3.783466] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.795170] starfive soc:display-subsystem: bound 29400000.dc8200 (ops 0xffffffff80e73520)
[    3.804660] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.813391] cfg80211: failed to load regulatory.db
[    3.813866] innohdmi-starfive 29590000.hdmi: [drm:inno_hdmi_bind] registered Inno HDMI I2C bus driver success
[    3.828513] innohdmi-starfive 29590000.hdmi: HDMI&AUDIO register done.
[    3.835084] starfive soc:display-subsystem: bound 29590000.hdmi (ops 0xffffffff80e742d0)
[    3.843224] cdns-dsi 295d0000.mipi: dsi_sys_clk = 297000000
[    3.849125] seeed_panel 2-0045: Unknown Atmel firmware revision: 0x00
[    3.855621] cdns-dsi 295d0000.mipi: ====starfive_dsi_bind end
[    3.861381] starfive soc:display-subsystem: bound 295d0000.mipi (ops 0xffffffff80e74bf8)
[    3.869480] vs-simple-encoder soc:rgb-output: encoder_bind begin
[    3.875512] no panel, -19
[    3.878137] vs-simple-encoder soc:rgb-output: encoder_bind error
[    3.884154] starfive soc:display-subsystem: bound soc:rgb-output (ops 0xffffffff80e73f18)
[    3.892346] vs-simple-encoder soc:dsi-output: encoder_bind begin
[    3.898369] no panel, -517
[    3.901089] vs-simple-encoder soc:dsi-output: encoder_bind error
[    3.907098] starfive soc:display-subsystem: bound soc:dsi-output (ops 0xffffffff80e73f18)
[    3.915707] [drm] Initialized starfive 1.0.0 20191101 for soc:display-subsystem on minor 1
[    3.973293] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 50000000Hz, actual 49500000HZ div = 2)
[    3.983329] mmc1: new high speed SDXC card at address 59b4
[    3.989952] mmcblk1: mmc1:59b4 EC1S5 59.7 GiB
[    3.997978] random: fast init done
[    4.006417]  mmcblk1: p1 p2 p3
[    4.220791] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 300000Hz, actual 300000HZ div = 330)
[    4.660818] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 200000Hz, actual 200000HZ div = 495)
[    5.110840] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 100000Hz, actual 100000HZ div = 990)
[    6.010795] ALSA device list:
[    6.013815]   #0: Starfive-Multi-Sound-Card
[    6.022341] Freeing unused kernel image (initmem) memory: 2188K
[    6.028625] Run /init as init process
[    6.032400]   with arguments:
[    6.032417]     /init
[    6.032430]   with environment:
[    6.032446]     HOME=/
[    6.032459]     TERM=linux
[    6.032473]     stmmaceth=chain_mode:1
[    6.032492]     selinux=0
[    6.967245] EXT4-fs (mmcblk1p3): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled.
[    7.670380] systemd[1]: System time before build time, advancing clock.
[    7.757931] systemd[1]: systemd 251.2-5 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[    7.789938] systemd[1]: Detected architecture riscv64.
[    7.797636] systemd[1]: Hostname set to <starfive>.
[    8.297379] systemd[1]: Queued start job for default target Graphical Interface.
[    8.306926] systemd[1]: Created slice Slice /system/getty.
[    8.313254] systemd[1]: Created slice Slice /system/modprobe.
[    8.320466] systemd[1]: Created slice Slice /system/serial-getty.
[    8.327723] systemd[1]: Created slice User and Session Slice.
[    8.334726] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    8.343640] systemd[1]: Arbitrary Executable File Formats File System Automount Point was skipped because of a failed condition check (ConditionPathExists=/proc/sys/fs/binfmt_misc).
[    8.361195] systemd[1]: Reached target Local Integrity Protected Volumes.
[    8.369271] systemd[1]: Reached target Remote File Systems.
[    8.376146] systemd[1]: Reached target Slice Units.
[    8.382476] systemd[1]: Reached target Swaps.
[    8.388178] systemd[1]: Reached target Local Verity Protected Volumes.
[    8.397220] systemd[1]: Listening on Syslog Socket.
[    8.402482] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    8.416383] systemd[1]: Journal Audit Socket was skipped because of a failed condition check (ConditionSecurity=audit).
[    8.428362] systemd[1]: Listening on Journal Socket (/dev/log).
[    8.435584] systemd[1]: Listening on Journal Socket.
[    8.441896] systemd[1]: Listening on udev Control Socket.
[    8.448543] systemd[1]: Listening on udev Kernel Socket.
[    8.457028] systemd[1]: Mounting Huge Pages File System...
[    8.465269] systemd[1]: Mounting POSIX Message Queue File System...
[    8.474278] systemd[1]: Mounting Kernel Debug File System...
[    8.481112] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).
[    8.495074] systemd[1]: Create List of Static Device Nodes was skipped because of a failed condition check (ConditionFileNotEmpty=/lib/modules/5.15.0-starfive/modules.devname).
[    8.514354] systemd[1]: Starting Load Kernel Module configfs...
[    8.524330] systemd[1]: Starting Load Kernel Module drm...
[    8.532808] systemd[1]: Starting Load Kernel Module fuse...
[    8.544628] systemd[1]: Starting Journal Service...
[    8.572068] systemd[1]: Starting Load Kernel Modules...
[    8.581548] systemd[1]: Starting Remount Root and Kernel File Systems...
[    8.589283] systemd[1]: Repartition Root Disk was skipped because all trigger condition checks failed.
[    8.603335] systemd[1]: Starting Coldplug All udev Devices...
[    8.615456] systemd[1]: Mounted Huge Pages File System.
[    8.622300] systemd[1]: Mounted POSIX Message Queue File System.
[    8.629645] systemd[1]: Mounted Kernel Debug File System.
[    8.636605] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[    8.644429] systemd[1]: Finished Load Kernel Module configfs.
[    8.658110] systemd[1]: modprobe@drm.service: Deactivated successfully.
[    8.666423] systemd[1]: Finished Load Kernel Module drm.
[    8.673666] systemd[1]: modprobe@fuse.service: Deactivated successfully.
[    8.681198] systemd[1]: Finished Load Kernel Module fuse.
[    8.688046] systemd[1]: Started Journal Service.
[    8.749967] systemd-journald[255]: Received client request to flush runtime journal.
[    8.785014] systemd-journald[255]: File /var/log/journal/e593f8ed757a4b42a5589c96d5395702/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    9.488750] systemd-journald[255]: Oldest entry in /var/log/journal/e593f8ed757a4b42a5589c96d5395702/system.journal is older than the configured file retention duration (1month), suggesting rotation.
[    9.507586] systemd-journald[255]: /var/log/journal/e593f8ed757a4b42a5589c96d5395702/system.journal: Journal header limits reached or header out-of-date, rotating.
[    9.632146] jpu: loading out-of-tree module taints kernel.
[    9.633996] vdec: loading out-of-tree module taints kernel.
[    9.639871] SUCCESS alloc_chrdev_region
[    9.650412] vdec 130a0000.vpu_dec: device init.
[    9.656067] SUCCESS alloc_chrdev_region
[    9.662465] cnm_jpu 13090000.jpu: init device.
[    9.901107] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[    9.901828] random: avahi-daemon: uninitialized urandom read (4 bytes read)
[   10.790162] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[   11.230196] starfive-eth-plat 16030000.ethernet eth0: PHY [stmmac-0:00] driver [YT8531 Gigabit Ethernet] (irq=POLL)
[   11.241274] starfive-eth-plat 16030000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   11.259625] dwmac4: Master AXI performs fixed burst length
[   11.265199] starfive-eth-plat 16030000.ethernet eth0: No Safety Features support found
[   11.273197] starfive-eth-plat 16030000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   11.282499] starfive-eth-plat 16030000.ethernet eth0: configuring for phy/rgmii-id link mode
[   11.294290] starfive-eth-plat 16040000.ethernet eth1: PHY [stmmac-1:00] driver [YT8512B Ethernet] (irq=POLL)
[   11.304774] starfive-eth-plat 16040000.ethernet eth1: Register MEM_TYPE_PAGE_POOL RxQ-0
[   11.313098] dwmac4: Master AXI performs fixed burst length
[   11.317166] random: alsactl: uninitialized urandom read (4 bytes read)
[   11.318611] starfive-eth-plat 16040000.ethernet eth1: No Safety Features support found
[   11.318627] starfive-eth-plat 16040000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[   11.342098] starfive-eth-plat 16040000.ethernet eth1: configuring for phy/rgmii-id link mode
[   11.354455] starfive-eth-plat 16040000.ethernet eth1: Link is Up - 100Mbps/Full - flow control off
[   11.390090] random: lightdm: uninitialized urandom read (16 bytes read)
[   11.466281] random: alsactl: uninitialized urandom read (4 bytes read)
[   11.690727] random: crng init done
[   11.751752] vs_gem_dumb_create size = 1000
[   11.755914] Allocated coherent memory, vaddr: 0xFFFFFFE0FECC0770, paddr: 0x104A22000
[   11.763726] ====> vs_gem_alloc_buf, 162.vs_obj->get_pages = 0
[   12.215873] PVR_K:  400: RGX Firmware image 'rgx.fw.36.50.54.182' loaded
[   12.301315] PVR_K:  400: Shader binary image 'rgx.sh.36.50.54.182' loaded
[   12.310620] PVR_K:  400: X connected - (devID = 0)
[   12.584825] vs_gem_dumb_create size = 7e9000
[   12.589720] Allocated coherent memory, vaddr: 0xFFFFFFE0FCFC4000, paddr: 0x80200000
[   12.597405] ====> vs_gem_alloc_buf, 162.vs_obj->get_pages = 0
[   12.636677] vs_gem_dumb_create size = 4000
[   12.640929] Allocated coherent memory, vaddr: 0xFFFFFFE0FCFC09C0, paddr: 0x80108000
[   12.648586] ====> vs_gem_alloc_buf, 162.vs_obj->get_pages = 0
[   12.654353] vs_gem_dumb_create size = 4000
[   12.658532] Allocated coherent memory, vaddr: 0xFFFFFFE0FCFC0AA0, paddr: 0x8010C000
[   12.666205] ====> vs_gem_alloc_buf, 162.vs_obj->get_pages = 0
[   13.571720] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate rate 148500000 tmdsclk 148500000
[   13.581331] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->pixclock = 148500000
[   13.591104] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->tmdsclock = 148500000
[   13.600948] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->prediv = 1
[   13.609815] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->fbdiv = 99
[   13.618695] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->tmds_div_a = 1
[   13.627924] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->tmds_div_b = 1
[   13.637149] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->tmds_div_c = 1
[   13.646377] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->pclk_div_a = 1
[   13.655604] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->pclk_div_b = 2
[   13.664832] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->pclk_div_c = 2
[   13.674060] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->pclk_div_d = 2
[   13.683288] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->vco_div_5_en = 0
[   13.692697] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->fracdiv = 0
[   13.701671] innohdmi-starfive 29590000.hdmi: *******************************************************
[   13.710813] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->post_cfg->tmdsclock = 148500000
[   13.720734] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->post_cfg->prediv = 1
[   13.729693] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->post_cfg->fbdiv = 20
[   13.738665] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->post_cfg->postdiv = 1
[   13.747726] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->post_cfg->post_div_en = 3
[   13.757134] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->post_cfg->version = 3
root@starfive:~#

なお、 https://debian.starfivetech.com/ から入手するDebian以外に、 StarFiveTech VisionFive2 SDK から入手できる sdcard.img というものもあります。

起動してみるとBuildrootのLinuxとして起動

Starting DHCP server: FAIL

Welcome to Buildroot
buildroot login: root
Password:
# uname -a
Linux buildroot 5.15.0 #1 SMP Sun Dec 25 20:59:22 CST 2022 riscv64 GNU/Linux
# apt
-sh: apt: not found
# df
Filesystem           1K-blocks      Used Available Use% Mounted on
devtmpfs          `    1669016         0   1669016   0% /dev
tmpfs          `  `    1993648      `  0  `1993648   0% /dev/shm
tmpfs          `  ``   1993648        64   1993584   0% /tmp
tmpfs          `  `   `1993648       196   1993452   0% /run
/dev/mmcblk1p4      ` ` 69346    245002    194648  56% /
#

まあ、パッケージ管理システムがないので、実用には向かない感じですかね

# dmesg
[    0.000000] Linux version 5.15.0 (jenkins@soft05) (riscv64-buildroot-linux-gnu-gcc.br_real (Buildroot VF2_v2.5.0) 10.3.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP Sun Dec 25 20:59:22 CST 2022
[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Machine model: StarFive VisionFive V2
[    0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[    0.000000] printk: bootconsole [sbi0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000080000000, size 512 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x00000000c010ffff]
[    0.000000]   node   0: [mem 0x00000000c0110000-0x00000000c01fffff]
[    0.000000]   node   0: [mem 0x00000000c0200000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x000000013fffffff]
[    0.000000] SBI specification v0.3 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10000
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] SBI v0.2 HSM extension detected
[    0.000000] CPU with hartid=0 is not available
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv: ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 17 pages/cpu s31528 r8192 d29912 u69632
[    0.000000] pcpu-alloc: s31528 r8192 d29912 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1033735
[    0.000000] Kernel command line: earlyprintk console=ttyS0,115200 debug rootwait earlycon=sbi root=/dev/mmcblk1p4
[    0.000000] Unknown command line parameters: earlyprintk
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
[    0.000000] Memory: 3338036K/4192256K available (9878K kernel code, 4982K rwdata, 4096K rodata, 2191K init, 401K bss, 329932K reserved, 524288K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] rcu:     RCU debug extended QS entry/exit.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv-intc: unable to find hart id for /cpus/cpu@0/interrupt-controller
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: plic@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
[    0.000000] random: get_random_bytes called from start_kernel+0x4d0/0x6e2 with crng_init=0
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [3]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 881590404240 ns
[    0.000001] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
[    0.008207] clocksource: timer@13050000.ch0: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.018416] clocksource: timer@13050000.ch1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.028737] clocksource: timer@13050000.ch2: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.039044] clocksource: timer@13050000.ch3: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.049493] Console: colour dummy device 80x25
[    0.053893] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=40000)
[    0.064089] pid_max: default: 32768 minimum: 301
[    0.068920] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.076318] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.085379] ASID allocator disabled
[    0.088882] rcu: Hierarchical SRCU implementation.
[    0.093794] EFI services will not be available.
[    0.098582] smp: Bringing up secondary CPUs ...
[    0.104458] smp: Brought up 1 node, 4 CPUs
[    0.109521] devtmpfs: initialized
[    0.118784] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.128559] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.148220] pinctrl core: initialized pinctrl subsystem
[    0.154189] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.160600] cpuidle: using governor menu
[    0.181977] platform soc:dsi-output: Fixing up cyclic dependency with 29400000.dc8200
[    0.190170] platform 295d0000.mipi: Fixing up cyclic dependency with soc:dsi-output
[    0.198067] platform 29590000.hdmi: Fixing up cyclic dependency with 29400000.dc8200
[    0.215374] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.222021] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.231460] vgaarb: loaded
[    0.234304] SCSI subsystem initialized
[    0.238091] libata version 3.00 loaded.
[    0.242011] usbcore: registered new interface driver usbfs
[    0.247462] usbcore: registered new interface driver hub
[    0.252810] usbcore: registered new device driver usb
[    0.258230] mc: Linux media interface: v0.10
[    0.262431] videodev: Linux video capture interface: v2.00
[    0.268126] Advanced Linux Sound Architecture Driver Initialized.
[    0.274452] Bluetooth: Core ver 2.22
[    0.277965] NET: Registered PF_BLUETOOTH protocol family
[    0.283315] Bluetooth: HCI device and connection manager initialized
[    0.289740] Bluetooth: HCI socket layer initialized
[    0.294672] Bluetooth: L2CAP socket layer initialized
[    0.299800] Bluetooth: SCO socket layer initialized
[    0.304985] clocksource: Switched to clocksource riscv_clocksource
[    0.316941] NET: Registered PF_INET protocol family
[    0.322381] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.332924] tcp_listen_portaddr_hash hash table entries: 2048 (order: 4, 81920 bytes, linear)
[    0.341481] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.349724] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.358126] TCP: Hash tables configured (established 32768 bind 32768)
[    0.364831] UDP hash table entries: 2048 (order: 5, 196608 bytes, linear)
[    0.371792] UDP-Lite hash table entries: 2048 (order: 5, 196608 bytes, linear)
[    0.379358] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.385460] RPC: Registered named UNIX socket transport module.
[    0.391302] RPC: Registered udp transport module.
[    0.396086] RPC: Registered tcp transport module.
[    0.400834] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.407928] PCI: CLS 0 bytes, default 64
[    0.412310] Initialise system trusted keyrings
[    0.416845] workingset: timestamp_bits=62 max_order=20 bucket_order=0
[    0.417043] Unpacking initramfs...
[    0.428050] NFS: Registering the id_resolver key type
[    0.433040] Key type id_resolver registered
[    0.437306] Key type id_legacy registered
[    0.441427] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.448133] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.455616] ntfs: driver 2.1.32 [Flags: R/W].
[    0.460206] jffs2: version 2.2. (NAND) \xc2\xa9 2001-2006 Red Hat, Inc.
[    0.466609] fuse: init (API version 7.34)
[    0.502722] NET: Registered PF_ALG protocol family
[    0.507481] Key type asymmetric registered
[    0.511608] Asymmetric key parser 'x509' registered
[    0.516645] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.524002] io scheduler mq-deadline registered
[    0.528621] io scheduler kyber registered
[    0.533253] start plist test
[    0.538623] end plist test
[    0.621657] clk-starfive-jh7110 13020000.clock-controller: starfive JH7110 clkgen init successfully.
[    0.631893] L2CACHE: DataError @ 0x00000000.080400F8
[    0.636868] L2CACHE: DataFail @ 0x00000000.0804005B
[    0.641801] L2CACHE: No. of Banks in the cache: 8
[    0.646512] L2CACHE: No. of ways per bank: 16
[    0.650916] L2CACHE: Sets per bank: 256
[    0.654816] L2CACHE: Bytes per cache block: 64
[    0.659342] L2CACHE: Index of the largest way enabled: 15
[    0.665131] jh7110-pmu 17030000.power-controller: registered 8 power domains
[    0.733104] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    0.742249] @@#########################@@
[    0.784445] @@ dev ptr:ffffffe0bfee0000/1500/1
[    0.789085] PVR_K:  1: Read BVNC 36.50.54.182 from HW device registers
[    0.795622] PVR_K:  1: RGX Device registered BVNC 36.50.54.182 with 1 core in the system
[    0.804932] [drm] Initialized pvr 1.17.6210866 20170530 for 18000000.gpu on minor 0
[    0.821652] loop: module loaded
[    0.827242] spi-nor spi0.0: gd25lq128d (16384 Kbytes)
[    6.163101] Initramfs unpacking failed: invalid magic at start of compressed archive
[    6.335156] Freeing initrd memory: 122788K
[    6.350721] 3 fixed-partitions partitions found on MTD device 13010000.spi.0
[    6.357746] Creating 3 MTD partitions on "13010000.spi.0":
[    6.363263] 0x000000000000-0x000000020000 : "spl"
[    6.369876] 0x000000100000-0x000000400000 : "uboot"
[    6.376294] 0x000000f00000-0x000001000000 : "data"
[    6.383678] libphy: Fixed MDIO Bus: probed
[    6.389233] CAN device driver interface
[    6.393580] starfive-eth-plat 16030000.ethernet: force_sf_dma_mode is ignored if force_thresh_dma_mode is set.
[    6.403898] starfive-eth-plat 16030000.ethernet: User ID: 0x41, Synopsys ID: 0x52
[    6.411332] starfive-eth-plat 16030000.ethernet:     DWMAC4/5
[    6.416867] starfive-eth-plat 16030000.ethernet: DMA HW capability register supported
[    6.424738] starfive-eth-plat 16030000.ethernet: RX Checksum Offload Engine supported
[    6.432635] starfive-eth-plat 16030000.ethernet: Wake-Up On Lan supported
[    6.439481] starfive-eth-plat 16030000.ethernet: TSO supported
[    6.445375] starfive-eth-plat 16030000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    6.453773] starfive-eth-plat 16030000.ethernet: Enabled Flow TC (entries=1)
[    6.460890] starfive-eth-plat 16030000.ethernet: TSO feature enabled
[    6.467302] starfive-eth-plat 16030000.ethernet: Using 40 bits DMA width
[    6.716361] libphy: stmmac: probed
[    6.719701] YT8531 Gigabit Ethernet stmmac-0:00: attached PHY driver (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    6.729693] YT8531 Gigabit Ethernet stmmac-0:01: attached PHY driver (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[    6.740838] starfive-eth-plat 16040000.ethernet: force_sf_dma_mode is ignored if force_thresh_dma_mode is set.
[    6.751143] starfive-eth-plat 16040000.ethernet: User ID: 0x41, Synopsys ID: 0x52
[    6.758574] starfive-eth-plat 16040000.ethernet:     DWMAC4/5
[    6.764097] starfive-eth-plat 16040000.ethernet: DMA HW capability register supported
[    6.771996] starfive-eth-plat 16040000.ethernet: RX Checksum Offload Engine supported
[    6.779881] starfive-eth-plat 16040000.ethernet: Wake-Up On Lan supported
[    6.786728] starfive-eth-plat 16040000.ethernet: TSO supported
[    6.792608] starfive-eth-plat 16040000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    6.801034] starfive-eth-plat 16040000.ethernet: Enabled Flow TC (entries=1)
[    6.808137] starfive-eth-plat 16040000.ethernet: TSO feature enabled
[    6.814536] starfive-eth-plat 16040000.ethernet: Using 40 bits DMA width
[    7.062390] libphy: stmmac: probed
[    7.065758] YT8512B Ethernet stmmac-1:00: attached PHY driver (mii_bus:phy_addr=stmmac-1:00, irq=POLL)
[    7.075101] YT8512B Ethernet stmmac-1:03: attached PHY driver (mii_bus:phy_addr=stmmac-1:03, irq=POLL)
[    7.085971] Intel(R) Wireless WiFi driver for Linux
[    7.092653] cdns3-starfive 10210000.usbdrd: usb mode 2 2.0 probe success
[    7.100068] usbcore: registered new interface driver uas
[    7.105381] usbcore: registered new interface driver usb-storage
[    7.125324] starfive-rtc 17040000.rtc: registered as rtc0
[    7.130661] starfive-rtc 17040000.rtc: setting system clock to 2001-01-01T00:00:00 UTC (978307200)
[    7.139816] i2c_dev: i2c /dev entries driver
[    7.144258] usbcore: registered new interface driver uvcvideo
[    7.151107] starfive-wdt 13070000.wdog: Heartbeat: timeout=15, count/2=180000000 (0aba9500)
[    7.159926] Bluetooth: HCI UART driver ver 2.3
[    7.164299] Bluetooth: HCI UART protocol H4 registered
[    7.169730] starfive-cpufreq soc:starfive,jh7110-cpufreq: Failed to get regulator for cpu!
[    7.177948] starfive-cpufreq soc:starfive,jh7110-cpufreq: Failed to init starfive cpu dvfs info
[    7.187226] sdhci: Secure Digital Host Controller Interface driver
[    7.193340] sdhci: Copyright(c) Pierre Ossman
[    7.197808] Synopsys Designware Multimedia Card Interface Driver
[    7.204133] sdhci-pltfm: SDHCI platform and OF driver helper
[    7.210534] jh7110-sec 16000000.crypto: Unable to request sec_m dma channel in DMA channel
[    7.218766] jh7110-sec 16000000.crypto: Cannot initial dma chan
[    7.225021] usbcore: registered new interface driver usbhid
[    7.230525] usbhid: USB HID core driver
[    7.234668] usbcore: registered new interface driver snd-usb-audio
[    7.244078] NET: Registered PF_PACKET protocol family
[    7.249105] can: controller area network core
[    7.253577] NET: Registered PF_CAN protocol family
[    7.258352] can: raw protocol
[    7.261374] can: broadcast manager protocol
[    7.265654] can: netlink gateway - max_hops=1
[    7.270319] Bluetooth: RFCOMM TTY layer initialized
[    7.275156] Bluetooth: RFCOMM socket layer initialized
[    7.280348] Bluetooth: RFCOMM ver 1.11
[    7.284174] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    7.289527] Bluetooth: BNEP filters: protocol multicast
[    7.294807] Bluetooth: BNEP socket layer initialized
[    7.300037] 9pnet: Installing 9P2000 support
[    7.304298] Key type dns_resolver registered
[    7.309315] Loading compiled-in X.509 certificates
[    7.349770] starfive_jh7110-pinctrl 13040000.gpio: SiFive GPIO chip registered 64 GPIOs
[    7.358542] starfive_jh7110-pinctrl 17020000.gpio: SiFive GPIO chip registered 4 GPIOs
[    7.366630] pl08xdmac 16008000.sec_dma: initialized 8 virtual memcpy channels
[    7.373710] pl08xdmac 16008000.sec_dma: initialized 16 virtual slave channels
[    7.382563] debugfs: Directory '16008000.sec_dma' with parent 'dmaengine' already present!
[    7.390808] pl08xdmac 16008000.sec_dma: DMA: PL080 rev0 at 0x16008000 irq 23
[    7.398152] ssp-pl022 10060000.spi: ARM PL022 driver for StarFive SoC platform, device ID: 0x00041022
[    7.407335] ssp-pl022 10060000.spi: mapped registers from 0x0000000010060000 to (____ptrval____)
[    7.416616] ssp-pl022 10060000.spi: Requested frequency: 10000000 Hz is unsupported,select by default 8250000 Hz
[    7.427123] ssp-pl022 10060000.spi: will use autosuspend for runtime pm, delay 100ms
[    7.436132] i2c 2-0045: Fixing up cyclic dependency with 295d0000.mipi
[    7.442852] seeed_panel 2-0045: Unknown Atmel firmware revision: 0x00
[    7.449451] i2c 2-0019: Fixing up cyclic dependency with 295d0000.mipi
[    7.457354] at24 5-0050: supply vcc not found, using dummy regulator
[    7.464420] at24 5-0050: 512 byte 24c04 EEPROM, writable, 16 bytes/write
[    7.472982] axp15060-regulator 5-0036: Register mipi_0p9 done! vol range:900 ~ 900 mV
[    7.482264] axp15060-regulator 5-0036: Register hdmi_1p8 done! vol range:1800 ~ 1800 mV
[    7.491702] axp15060-regulator 5-0036: Register hdmi_0p9 done! vol range:900 ~ 900 mV
[    7.500980] axp15060-regulator 5-0036: Register cpu_vdd done! vol range:500 ~ 1540 mV
[    7.509530] i2c 6-0010: Fixing up cyclic dependency with 19800000.vin_sysctl
[    7.516925] imx219 6-0010: supply VANA not found, using dummy regulator
[    7.523594] imx219 6-0010: supply VDIG not found, using dummy regulator
[    7.530237] imx219 6-0010: supply VDDL not found, using dummy regulator
[    7.544306] imx219 6-0010: failed to read chip id 219
[    7.549516] imx219: probe of 6-0010 failed with error -5
[    7.557305] pcie_plda 2b000000.pcie: host bridge /soc/pcie@2B000000 ranges:
[    7.564244] pcie_plda 2b000000.pcie:      MEM 0x0030000000..0x0037ffffff -> 0x0030000000
[    7.572409] pcie_plda 2b000000.pcie:      MEM 0x0900000000..0x093fffffff -> 0x0900000000
[    7.580567] ATR entry: 0x0940000000 -> 0x0000000000 [0x0010000000] (param: 0x000001)
[    7.588333] ATR entry: 0x0030000000 -> 0x0030000000 [0x0008000000] (param: 0x000000)
[    7.596119] ATR entry: 0x0900000000 -> 0x0900000000 [0x0040000000] (param: 0x000000)
[    7.945086] pcie_plda 2b000000.pcie: Port link up.
[    7.949963] pcie_plda 2b000000.pcie: PCI host bridge to bus 0000:00
[    7.956182] pci_bus 0000:00: root bus resource [bus 00-ff]
[    7.961705] pci_bus 0000:00: root bus resource [mem 0x30000000-0x37ffffff]
[    7.968653] pci_bus 0000:00: root bus resource [mem 0x900000000-0x93fffffff pref]
[    7.976220] pci 0000:00:00.0: [1556:1111] type 01 class 0x060400
[    7.982255] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0xffffffff 64bit pref]
[    7.989597] pci 0000:00:00.0: supports D1 D2
[    7.993858] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    8.004020] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.012105] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    8.018068] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    8.024966] pci 0000:01:00.0: PME# supported from D0 D3cold
[    8.033819] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    8.040414] pci 0000:00:00.0: BAR 0: no space for [mem size 0x100000000 64bit pref]
[    8.048093] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x100000000 64bit pref]
[    8.056154] pci 0000:00:00.0: BAR 8: assigned [mem 0x30000000-0x300fffff]
[    8.062990] pci 0000:01:00.0: BAR 0: assigned [mem 0x30000000-0x30000fff 64bit]
[    8.070377] pci 0000:00:00.0: PCI bridge to [bus 01]
[    8.075394] pci 0000:00:00.0:   bridge window [mem 0x30000000-0x300fffff]
[    8.082330] pci 0000:00:00.0: enabling device (0000 -> 0002)
[    8.087968] pci 0000:01:00.0: enabling device (0000 -> 0002)
[    8.093697] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x9d4 took 11109 usecs
[    8.101345] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.106537] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    8.114362] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000040000000890
[    8.123534] pcie_plda 2b000000.pcie: msi#0 address_hi 0x0 address_lo 0x190
[    8.130747] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.135929] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    8.143361] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    8.150455] hub 1-0:1.0: USB hub found
[    8.154164] hub 1-0:1.0: 1 port detected
[    8.159175] hub 2-0:1.0: USB hub found
[    8.162884] hub 2-0:1.0: 4 ports detected
[    8.169690] pcie_plda 2c000000.pcie: host bridge /soc/pcie@2C000000 ranges:
[    8.176646] pcie_plda 2c000000.pcie:      MEM 0x0038000000..0x003fffffff -> 0x0038000000
[    8.184755] pcie_plda 2c000000.pcie:      MEM 0x0980000000..0x09bfffffff -> 0x0980000000
[    8.192956] ATR entry: 0x09c0000000 -> 0x0000000000 [0x0010000000] (param: 0x000001)
[    8.200713] ATR entry: 0x0038000000 -> 0x0038000000 [0x0008000000] (param: 0x000000)
[    8.208504] ATR entry: 0x0980000000 -> 0x0980000000 [0x0040000000] (param: 0x000000)
[    8.375033] usb usb2-port2: over-current condition
[    8.475048] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    8.535067] usb usb2-port4: over-current condition
[    8.645256] pcie_plda 2c000000.pcie: Port link down, exit.
[    8.664394] clk-starfive-jh7110-vout 295c0000.clock-controller: starfive JH7110 clk_vout init successfully.
[    8.666191] hub 1-1:1.0: USB hub found
[    8.683633] hub 1-1:1.0: 4 ports detected
[    8.685694] clk-starfive-jh7110-isp 19810000.clock-controller: starfive JH7110 clk_isp init successfully.
[    8.697845] dw_axi_dmac_platform 16050000.dma-controller: DesignWare AXI DMA Controller, 4 channels
[    8.707898] printk: console [ttyS0] disabled
[    8.732341] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 17, base_baud = 1500000) is a 16550A
[    8.741251] printk: console [ttyS0] enabled
[    8.749550] printk: bootconsole [sbi0] disabled
[    8.759171] jh7110-vin 19800000.vin_sysctl: stfcamss probe enter!
[    8.767285] jh7110-vin 19800000.vin_sysctl: stfcamss probe success!
[    8.776062] dwmmc_starfive 16010000.sdio0: IDMAC supports 32-bit address mode.
[    8.776520] dwmmc_starfive 16020000.sdio1: IDMAC supports 32-bit address mode.
[    8.783348] dwmmc_starfive 16010000.sdio0: Using internal DMA controller.
[    8.790619] dwmmc_starfive 16020000.sdio1: Using internal DMA controller.
[    8.797391] dwmmc_starfive 16010000.sdio0: Version ID is 290a
[    8.804178] dwmmc_starfive 16020000.sdio1: Version ID is 290a
[    8.809968] dwmmc_starfive 16010000.sdio0: DW MMC controller at irq 29,32 bit host data width,32 deep fifo
[    8.810081] jh7110-sec 16000000.crypto: will run requests pump with realtime priority
[    8.813252] jh7110-sec 16000000.crypto: Initialized
[    8.814330] starfive-i2s 120b0000.i2stx_4ch0:  designware: play supported
[    8.814340] starfive-i2s 120b0000.i2stx_4ch0: designware: i2s master mode supported
[    8.814517] sf-mipi-dphy-tx 295e0000.mipi-dphy: sf_dphy_probe begin
[    8.814530] sf-mipi-dphy-tx 295e0000.mipi-dphy: ===> sf_dphy_probe enter, 445
[    8.814656] sf-mipi-dphy-tx 295e0000.mipi-dphy: control ECO
[    8.814676] sf-mipi-dphy-tx 295e0000.mipi-dphy: supply mipi_1p8 not found, using dummy regulator
[    8.814961] sf-mipi-dphy-tx 295e0000.mipi-dphy: sf_dphy_probe end
[    8.815177] cdns-dsi 295d0000.mipi: dsi_sys_clk = 297000000
[    8.815414] cdns-dsi 295d0000.mipi: starfive dsi bind end
[    8.815749] dwmmc_starfive 16020000.sdio1: DW MMC controller at irq 30,32 bit host data width,32 deep fifo
[    8.817635] of_cfs_init
[    8.817676] of_cfs_init: OK
[    8.818197] starfive-pwmdac 100b0000.pwmdac: clk_apb0 = 49500000, clk_pwmdac_apb = 49500000, clk_pwmdac_core = 4068493
[    8.818696] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    8.825533] mmc_host mmc0: card is non-removable.
[    8.833373] mmc_host mmc1: card is polling.
[    8.929459] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    8.948766] starfive soc:display-subsystem: bound 29400000.dc8200 (ops 0xffffffff80e75b38)
[    8.957085] innohdmi-starfive 29590000.hdmi: inno hdmi bind begin
[    8.963977] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    8.972619] cfg80211: failed to load regulatory.db
[    8.972931] innohdmi-starfive 29590000.hdmi: [drm:inno_hdmi_bind] registered Inno HDMI I2C bus driver success
[    8.987563] innohdmi-starfive 29590000.hdmi: HDMI&AUDIO register done.
[    8.994127] innohdmi-starfive 29590000.hdmi: inno hdmi bind end
[    9.000087] starfive soc:display-subsystem: bound 29590000.hdmi (ops 0xffffffff80e768e8)
[    9.008196] vs-simple-encoder soc:dsi-output: encoder_bind begin
[    9.014217] no panel, -517
[    9.016930] vs-simple-encoder soc:dsi-output: encoder_bind error
[    9.022932] starfive soc:display-subsystem: bound soc:dsi-output (ops 0xffffffff80e76530)
[    9.031555] [drm] Initialized starfive 1.0.0 20191101 for soc:display-subsystem on minor 1
[    9.055005] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 400000Hz, actual 399193HZ div = 248)
[    9.145059] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 400000Hz, actual 399193HZ div = 248)
[    9.290157] random: fast init done
[    9.397446] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 50000000Hz, actual 49500000HZ div = 2)
[    9.408322] mmc1: new high speed SDXC card at address 59b4
[    9.415198] mmcblk1: mmc1:59b4 ED2S5 119 GiB
[    9.428259]  mmcblk1: p1 p2 p3 p4
[    9.505093] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 300000Hz, actual 300000HZ div = 330)
[    9.945051] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 200000Hz, actual 200000HZ div = 495)
[   10.395102] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 100000Hz, actual 100000HZ div = 990)
[   11.055070] ALSA device list:
[   11.058064]   #0: Starfive-PWMDAC-Sound-Card
[   11.062364]   #1: Starfive-HDMI-Sound-Card
[   11.071575] Freeing unused kernel image (initmem) memory: 2188K
[   11.077824] Run /init as init process
[   11.081513]   with arguments:
[   11.084498]     /init
[   11.086825]     earlyprintk
[   11.089640]   with environment:
[   11.092804]     HOME=/
[   11.095211]     TERM=linux
[   11.218169] EXT4-fs (mmcblk1p4): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled.
[   11.784545] EXT4-fs (mmcblk1p4): re-mounted. Opts: (null). Quota mode: disabled.
[   12.264121] udevd[221]: starting version 3.2.10
[   12.280697] random: udevd: uninitialized urandom read (16 bytes read)
[   12.288433] random: udevd: uninitialized urandom read (16 bytes read)
[   12.294947] random: udevd: uninitialized urandom read (16 bytes read)
[   12.355311] udevd[222]: starting eudev-3.2.10
[   12.470759] jpu: loading out-of-tree module taints kernel.
[   12.479700] vdec 130a0000.vpu_dec: device init.
[   12.482697] cnm_jpu 13090000.jpu: init device.
[   12.484250] SUCCESS alloc_chrdev_region
[   12.484633] SUCCESS alloc_chrdev_region
[   13.172744] starfive-eth-plat 16030000.ethernet eth0: PHY [stmmac-0:00] driver [YT8531 Gigabit Ethernet] (irq=POLL)
[   13.184615] starfive-eth-plat 16030000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   13.203187] dwmac4: Master AXI performs fixed burst length
[   13.208732] starfive-eth-plat 16030000.ethernet eth0: No Safety Features support found
[   13.218053] starfive-eth-plat 16030000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   13.227963] starfive-eth-plat 16030000.ethernet eth0: configuring for phy/rgmii-id link mode
[   13.238746] starfive-eth-plat 16040000.ethernet eth1: PHY [stmmac-1:00] driver [YT8512B Ethernet] (irq=POLL)
[   13.248829] starfive-eth-plat 16040000.ethernet eth1: Register MEM_TYPE_PAGE_POOL RxQ-0
[   13.257127] dwmac4: Master AXI performs fixed burst length
[   13.262625] starfive-eth-plat 16040000.ethernet eth1: No Safety Features support found
[   13.270565] starfive-eth-plat 16040000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[   13.281166] starfive-eth-plat 16040000.ethernet eth1: configuring for phy/rgmii-id link mode
[   13.292204] starfive-eth-plat 16040000.ethernet eth1: Link is Up - 100Mbps/Full - flow control off
[   38.975439] mipi_0p9: disabling
[  163.455196] random: crng init done
[  163.458654] random: 7 urandom warning(s) missed due to ratelimiting
#

StarFive Vision Five 2のSPLとU-Bootを更新してImage-69を起動できるようにする

$
0
0

開発陣がImage-69で使っている、ということは、ハードウェア的な何かを更新すればいけるのでは?と感じたので、更新出来る要素を探してみた。

すると、Quick Start Guideに「Updating SPL and U-Boot」という項目を発見。

SPLとU-Bootを更新するといいのかな?と、Image-55で起動して状態を確認してみる

root@starfive:~# cat /proc/mtd
cat: /proc/mtd: No such file or directory
root@starfive:~#

Image-55では/dev/mtdはないようだ

mtd-utilsをインストール

root@starfive:~# apt install mtd-utils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libiniparser1 liblzo2-2
The following NEW packages will be installed:
  libiniparser1 liblzo2-2 mtd-utils
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 303 kB of archives.
After this operation, 1275 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
<略>
root@starfive:~# 

ただ、再起動しても /dev/mtd はできなかった

root@starfive:~# ls -l /dev/*mtd*
ls: cannot access '/dev/*mtd*': No such file or directory
root@starfive:~#

では、Buildrootの方はどうなのか?と、SDK v2.5.0のsdcard.imgで起動して確認

# ls -l /dev/mtd*
crw-------    1 root     root       90,   0 Jan  1 00:00 /dev/mtd0
crw-------    1 root     root       90,   1 Jan  1 00:00 /dev/mtd0ro
crw-------    1 root     root       90,   2 Jan  1 00:00 /dev/mtd1
crw-------    1 root     root       90,   3 Jan  1 00:00 /dev/mtd1ro
crw-------    1 root     root       90,   4 Jan  1 00:00 /dev/mtd2
crw-------    1 root     root      `90,   5 Jan  1 00:00 /dev/mtd2ro
brw-rw----    1 root     disk       31,   0 Jan  1 00:00 /dev/mtdblock0
brw-rw----    1 root     disk       31,   1 Jan  1 00:00 /dev/mtdblock1
brw-rw----    1 root     disk       31,   2 Jan  1 00:00 /dev/mtdblock2
# ls -l /proc/mtd*
-r--r--r--    1 root     root          `  0 Jan  1 00:09 /proc/mtd
#

こちらでは/dev/mtdのデバイスファイルと/proc/mtdがありました。

「cat /proc/mtd」でmtdの中身を確認します。

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00001000 "spl"
mtd1: 00300000 00001000 "uboot"
mtd2: 00100000 00001000 "data"
#

書き込みに使うflashcpコマンドがあるかを確認します

# flashcp

Flash Copy - Written by Abraham van der Merwe <abraham@2d3d.co.za>

usage: flashcp [ -v | --verbose | -A | --erase-all ] <filename> <device>
       flashcp -h | --help
       flashcp -V | --version

   -h | --help      Show this help message
   -v | --verbose   Show progress reports
   -p | --partition Only copy different block from file to device
   -A | --erase-all Erases the whole device regardless of the image size
   -V | --version   Show version information and exit
   <filename>       File which you want to copy to flash
   <device>         Flash device to write to (e.g. /dev/mtd0, /dev/mtd1, etc.)

#

つぎに、アップデートに使うファイルを確認します。

Updating SPL and U-Boot を見ると「u-boot-spl.bin.normal.out」と「visionfive2_fw_payload.img」をflashcpコマンドで書き込んでいるのでVisionFive2 Software v2.5.0にあるファイルをダウンロードかけてみると・・・

# wget https://github.com/starfive-tech/VisionFive2/releases/download/VF2_v2.5.0
/visionfive2_fw_payload.img
wget: not an http or ftp url: https://github.com/starfive-tech/VisionFive2/releases/download/VF2_v2.5.0/visionfive2_fw_payload.img
# curl -O https://github.com/starfive-tech/VisionFive2/releases/download/VF2_v2.
5.0/visionfive2_fw_payload.img
-sh: curl: not found
#

Buildroot環境にあるコマンドだとダウンロードがうまくいかない。wgetコマンドはBusyBox v1.34.1 のものだったが、https非対応であるようだ。

sshdは動いているようなので、sshでWindowsから接続して、scpでファイルを送り込みました。

# ls -l
total 2916
drwxr-xr-x    2 root     root          1024 Dec 25  2022 ISP
drwxr-xr-x    2 root     root          1024 Dec 25  2022 e24
drwxr-xr-x    2 root     root          1024 Dec 25  2022 mailbox
-rwxrwxrwx    1 root     root         22984 Dec 25  2022 mjpeg_dec_test
-rwxr-xr-x    1 root     root           123 Dec 25  2022 run_weston.sh
-rw-------    1 root     root        127816 Dec 30  2022 u-boot-spl.bin.normal.out
-rwxr-xr-x    1 root     root          2894 Dec 25  2022 usb_device.sh
-rwxrwxrwx    1 root     root         18768 Dec 25  2022 video_dec_test
-rwxrwxrwx    1 root     root         18808 Dec 25  2022 video_enc_test
-rw-------    1 root     root       2793045 Dec 30  2022 visionfive2_fw_payload.img
#

転送できたので、flashcpコマンドで書き込みます。

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00001000 "spl"
mtd1: 00300000 00001000 "uboot"
mtd2: 00100000 00001000 "data"
# flashcp -v u-boot-spl.bin.normal.out /dev/mtd0
Erasing blocks: 32/32 (100%)
Writing data: 124k/124k (100%)
Verifying data: 124k/124k (100%)
# flashcp -v visionfive2_fw_payload.img /dev/mtd1
Erasing blocks: 682/682 (100%)
Writing data: 2727k/2727k (100%)
Verifying data: 2727k/2727k (100%)
#

アップデート後のdmesgを取ってみました

# dmesg
[    0.000000] Linux version 5.15.0 (jenkins@soft05) (riscv64-buildroot-linux-gnu-gcc.br_real (Buildroot VF2_v2.5.0) 10.3.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP Sun Dec 25 20:59:22 CST 2022
[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Machine model: StarFive VisionFive V2
[    0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[    0.000000] printk: bootconsole [sbi0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000080000000, size 512 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x00000000c010ffff]
[    0.000000]   node   0: [mem 0x00000000c0110000-0x00000000c01fffff]
[    0.000000]   node   0: [mem 0x00000000c0200000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x000000013fffffff]
[    0.000000] SBI specification v0.3 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10000
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] SBI v0.2 HSM extension detected
[    0.000000] CPU with hartid=0 is not available
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv: ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 17 pages/cpu s31528 r8192 d29912 u69632
[    0.000000] pcpu-alloc: s31528 r8192 d29912 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1033735
[    0.000000] Kernel command line: earlyprintk console=ttyS0,115200 debug rootwait earlycon=sbi root=/dev/mmcblk1p4
[    0.000000] Unknown command line parameters: earlyprintk
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
[    0.000000] Memory: 3338036K/4192256K available (9878K kernel code, 4982K rwdata, 4096K rodata, 2191K init, 401K bss, 329932K reserved, 524288K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] rcu:     RCU debug extended QS entry/exit.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv-intc: unable to find hart id for /cpus/cpu@0/interrupt-controller
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: plic@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
[    0.000000] random: get_random_bytes called from start_kernel+0x4d0/0x6e2 with crng_init=0
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [1]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 881590404240 ns
[    0.000001] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
[    0.008243] clocksource: timer@13050000.ch0: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.018466] clocksource: timer@13050000.ch1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.028787] clocksource: timer@13050000.ch2: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.039094] clocksource: timer@13050000.ch3: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.049571] Console: colour dummy device 80x25
[    0.053981] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=40000)
[    0.064174] pid_max: default: 32768 minimum: 301
[    0.069014] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.076409] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.085655] ASID allocator disabled
[    0.089175] rcu: Hierarchical SRCU implementation.
[    0.094094] EFI services will not be available.
[    0.098933] smp: Bringing up secondary CPUs ...
[    0.105034] smp: Brought up 1 node, 4 CPUs
[    0.110198] devtmpfs: initialized
[    0.120823] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.130607] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.151166] pinctrl core: initialized pinctrl subsystem
[    0.157205] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.163734] cpuidle: using governor menu
[    0.189221] platform soc:dsi-output: Fixing up cyclic dependency with 29400000.dc8200
[    0.197521] platform 295d0000.mipi: Fixing up cyclic dependency with soc:dsi-output
[    0.205502] platform 29590000.hdmi: Fixing up cyclic dependency with 29400000.dc8200
[    0.225091] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.231717] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.241655] vgaarb: loaded
[    0.244522] SCSI subsystem initialized
[    0.248336] libata version 3.00 loaded.
[    0.252291] usbcore: registered new interface driver usbfs
[    0.257734] usbcore: registered new interface driver hub
[    0.263186] usbcore: registered new device driver usb
[    0.268474] mc: Linux media interface: v0.10
[    0.272682] videodev: Linux video capture interface: v2.00
[    0.278405] Advanced Linux Sound Architecture Driver Initialized.
[    0.284794] Bluetooth: Core ver 2.22
[    0.288327] NET: Registered PF_BLUETOOTH protocol family
[    0.293660] Bluetooth: HCI device and connection manager initialized
[    0.300090] Bluetooth: HCI socket layer initialized
[    0.305017] Bluetooth: L2CAP socket layer initialized
[    0.310149] Bluetooth: SCO socket layer initialized
[    0.315356] clocksource: Switched to clocksource riscv_clocksource
[    0.328581] NET: Registered PF_INET protocol family
[    0.334031] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.345382] tcp_listen_portaddr_hash hash table entries: 2048 (order: 4, 81920 bytes, linear)
[    0.353945] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.362230] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.370743] TCP: Hash tables configured (established 32768 bind 32768)
[    0.377469] UDP hash table entries: 2048 (order: 5, 196608 bytes, linear)
[    0.384379] UDP-Lite hash table entries: 2048 (order: 5, 196608 bytes, linear)
[    0.391965] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.398209] RPC: Registered named UNIX socket transport module.
[    0.404055] RPC: Registered udp transport module.
[    0.408845] RPC: Registered tcp transport module.
[    0.413588] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.420816] PCI: CLS 0 bytes, default 64
[    0.425299] Initialise system trusted keyrings
[    0.425704] Unpacking initramfs...
[    0.433863] workingset: timestamp_bits=62 max_order=20 bucket_order=0
[    0.446313] NFS: Registering the id_resolver key type
[    0.451332] Key type id_resolver registered
[    0.455558] Key type id_legacy registered
[    0.459703] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.466391] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.473864] ntfs: driver 2.1.32 [Flags: R/W].
[    0.478533] jffs2: version 2.2. (NAND) \xc2\xa9 2001-2006 Red Hat, Inc.
[    0.484997] fuse: init (API version 7.34)
[    0.528448] NET: Registered PF_ALG protocol family
[    0.533184] Key type asymmetric registered
[    0.537378] Asymmetric key parser 'x509' registered
[    0.542368] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.549756] io scheduler mq-deadline registered
[    0.554323] io scheduler kyber registered
[    0.558889] start plist test
[    0.565866] end plist test
[    0.663691] clk-starfive-jh7110 13020000.clock-controller: starfive JH7110 clkgen init successfully.
[    0.673946] L2CACHE: DataError @ 0x00000000.08040140
[    0.678932] L2CACHE: DataFail @ 0x00000000.08040074
[    0.683854] L2CACHE: No. of Banks in the cache: 8
[    0.688569] L2CACHE: No. of ways per bank: 16
[    0.692969] L2CACHE: Sets per bank: 256
[    0.696883] L2CACHE: Bytes per cache block: 64
[    0.701375] L2CACHE: Index of the largest way enabled: 15
[    0.707164] jh7110-pmu 17030000.power-controller: registered 8 power domains
[    0.775324] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    0.784547] @@#########################@@
[    0.826674] @@ dev ptr:ffffffe0bfee0000/1500/1
[    0.831285] PVR_K:  1: Read BVNC 36.50.54.182 from HW device registers
[    0.837831] PVR_K:  1: RGX Device registered BVNC 36.50.54.182 with 1 core in the system
[    0.847130] [drm] Initialized pvr 1.17.6210866 20170530 for 18000000.gpu on minor 0
[    0.863772] loop: module loaded
[    0.869330] spi-nor spi0.0: gd25lq128d (16384 Kbytes)
[    6.207313] Initramfs unpacking failed: invalid magic at start of compressed archive
[    6.382120] Freeing initrd memory: 122788K
[    6.397795] 3 fixed-partitions partitions found on MTD device 13010000.spi.0
[    6.404786] Creating 3 MTD partitions on "13010000.spi.0":
[    6.410373] 0x000000000000-0x000000020000 : "spl"
[    6.416957] 0x000000100000-0x000000400000 : "uboot"
[    6.423312] 0x000000f00000-0x000001000000 : "data"
[    6.430679] libphy: Fixed MDIO Bus: probed
[    6.436258] CAN device driver interface
[    6.440613] starfive-eth-plat 16030000.ethernet: force_sf_dma_mode is ignored if force_thresh_dma_mode is set.
[    6.450922] starfive-eth-plat 16030000.ethernet: User ID: 0x41, Synopsys ID: 0x52
[    6.458349] starfive-eth-plat 16030000.ethernet:     DWMAC4/5
[    6.463877] starfive-eth-plat 16030000.ethernet: DMA HW capability register supported
[    6.471776] starfive-eth-plat 16030000.ethernet: RX Checksum Offload Engine supported
[    6.479660] starfive-eth-plat 16030000.ethernet: Wake-Up On Lan supported
[    6.486512] starfive-eth-plat 16030000.ethernet: TSO supported
[    6.492389] starfive-eth-plat 16030000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    6.500811] starfive-eth-plat 16030000.ethernet: Enabled Flow TC (entries=1)
[    6.507917] starfive-eth-plat 16030000.ethernet: TSO feature enabled
[    6.514316] starfive-eth-plat 16030000.ethernet: Using 40 bits DMA width
[    6.763129] libphy: stmmac: probed
[    6.766500] YT8531 Gigabit Ethernet stmmac-0:00: attached PHY driver (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    6.776447] YT8531 Gigabit Ethernet stmmac-0:01: attached PHY driver (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[    6.787641] starfive-eth-plat 16040000.ethernet: force_sf_dma_mode is ignored if force_thresh_dma_mode is set.
[    6.797953] starfive-eth-plat 16040000.ethernet: User ID: 0x41, Synopsys ID: 0x52
[    6.805384] starfive-eth-plat 16040000.ethernet:     DWMAC4/5
[    6.810907] starfive-eth-plat 16040000.ethernet: DMA HW capability register supported
[    6.818806] starfive-eth-plat 16040000.ethernet: RX Checksum Offload Engine supported
[    6.826691] starfive-eth-plat 16040000.ethernet: Wake-Up On Lan supported
[    6.833525] starfive-eth-plat 16040000.ethernet: TSO supported
[    6.839431] starfive-eth-plat 16040000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    6.847844] starfive-eth-plat 16040000.ethernet: Enabled Flow TC (entries=1)
[    6.854933] starfive-eth-plat 16040000.ethernet: TSO feature enabled
[    6.861359] starfive-eth-plat 16040000.ethernet: Using 40 bits DMA width
[    7.109746] libphy: stmmac: probed
[    7.113084] YT8512B Ethernet stmmac-1:00: attached PHY driver (mii_bus:phy_addr=stmmac-1:00, irq=POLL)
[    7.122471] YT8512B Ethernet stmmac-1:03: attached PHY driver (mii_bus:phy_addr=stmmac-1:03, irq=POLL)
[    7.133324] Intel(R) Wireless WiFi driver for Linux
[    7.140053] cdns3-starfive 10210000.usbdrd: usb mode 2 2.0 probe success
[    7.147467] usbcore: registered new interface driver uas
[    7.152754] usbcore: registered new interface driver usb-storage
[    7.159535] starfive-rtc 17040000.rtc: registered as rtc0
[    7.164871] starfive-rtc 17040000.rtc: setting system clock to 2001-01-01T00:33:55 UTC (978309235)
[    7.174030] i2c_dev: i2c /dev entries driver
[    7.178493] usbcore: registered new interface driver uvcvideo
[    7.185331] starfive-wdt 13070000.wdog: Heartbeat: timeout=15, count/2=180000000 (0aba9500)
[    7.194156] Bluetooth: HCI UART driver ver 2.3
[    7.198551] Bluetooth: HCI UART protocol H4 registered
[    7.203940] starfive-cpufreq soc:starfive,jh7110-cpufreq: Failed to get regulator for cpu!
[    7.212154] starfive-cpufreq soc:starfive,jh7110-cpufreq: Failed to init starfive cpu dvfs info
[    7.221439] sdhci: Secure Digital Host Controller Interface driver
[    7.227571] sdhci: Copyright(c) Pierre Ossman
[    7.232004] Synopsys Designware Multimedia Card Interface Driver
[    7.238377] sdhci-pltfm: SDHCI platform and OF driver helper
[    7.244755] jh7110-sec 16000000.crypto: Unable to request sec_m dma channel in DMA channel
[    7.252976] jh7110-sec 16000000.crypto: Cannot initial dma chan
[    7.259237] usbcore: registered new interface driver usbhid
[    7.264741] usbhid: USB HID core driver
[    7.268901] usbcore: registered new interface driver snd-usb-audio
[    7.278417] NET: Registered PF_PACKET protocol family
[    7.283413] can: controller area network core
[    7.287943] NET: Registered PF_CAN protocol family
[    7.292678] can: raw protocol
[    7.295732] can: broadcast manager protocol
[    7.299963] can: netlink gateway - max_hops=1
[    7.304665] Bluetooth: RFCOMM TTY layer initialized
[    7.309511] Bluetooth: RFCOMM socket layer initialized
[    7.314692] Bluetooth: RFCOMM ver 1.11
[    7.318535] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    7.323859] Bluetooth: BNEP filters: protocol multicast
[    7.329172] Bluetooth: BNEP socket layer initialized
[    7.334351] 9pnet: Installing 9P2000 support
[    7.338620] Key type dns_resolver registered
[    7.343642] Loading compiled-in X.509 certificates
[    7.384232] starfive_jh7110-pinctrl 13040000.gpio: SiFive GPIO chip registered 64 GPIOs
[    7.392927] starfive_jh7110-pinctrl 17020000.gpio: SiFive GPIO chip registered 4 GPIOs
[    7.401023] pl08xdmac 16008000.sec_dma: initialized 8 virtual memcpy channels
[    7.408123] pl08xdmac 16008000.sec_dma: initialized 16 virtual slave channels
[    7.416958] debugfs: Directory '16008000.sec_dma' with parent 'dmaengine' already present!
[    7.425182] pl08xdmac 16008000.sec_dma: DMA: PL080 rev0 at 0x16008000 irq 23
[    7.432547] ssp-pl022 10060000.spi: ARM PL022 driver for StarFive SoC platform, device ID: 0x00041022
[    7.441730] ssp-pl022 10060000.spi: mapped registers from 0x0000000010060000 to (____ptrval____)
[    7.451001] ssp-pl022 10060000.spi: Requested frequency: 10000000 Hz is unsupported,select by default 8250000 Hz
[    7.461503] ssp-pl022 10060000.spi: will use autosuspend for runtime pm, delay 100ms
[    7.470525] i2c 2-0045: Fixing up cyclic dependency with 295d0000.mipi
[    7.477283] seeed_panel 2-0045: Unknown Atmel firmware revision: 0x00
[    7.483851] i2c 2-0019: Fixing up cyclic dependency with 295d0000.mipi
[    7.491738] at24 5-0050: supply vcc not found, using dummy regulator
[    7.498857] at24 5-0050: 512 byte 24c04 EEPROM, writable, 16 bytes/write
[    7.507724] axp15060-regulator 5-0036: Register mipi_0p9 done! vol range:900 ~ 900 mV
[    7.516993] axp15060-regulator 5-0036: Register hdmi_1p8 done! vol range:1800 ~ 1800 mV
[    7.526409] axp15060-regulator 5-0036: Register hdmi_0p9 done! vol range:900 ~ 900 mV
[    7.535688] axp15060-regulator 5-0036: Register cpu_vdd done! vol range:500 ~ 1540 mV
[    7.544222] i2c 6-0010: Fixing up cyclic dependency with 19800000.vin_sysctl
[    7.551632] imx219 6-0010: supply VANA not found, using dummy regulator
[    7.558321] imx219 6-0010: supply VDIG not found, using dummy regulator
[    7.564921] imx219 6-0010: supply VDDL not found, using dummy regulator
[    7.579037] imx219 6-0010: failed to read chip id 219
[    7.584227] imx219: probe of 6-0010 failed with error -5
[    7.592001] pcie_plda 2b000000.pcie: host bridge /soc/pcie@2B000000 ranges:
[    7.598976] pcie_plda 2b000000.pcie:      MEM 0x0030000000..0x0037ffffff -> 0x0030000000
[    7.607084] pcie_plda 2b000000.pcie:      MEM 0x0900000000..0x093fffffff -> 0x0900000000
[    7.615243] ATR entry: 0x0940000000 -> 0x0000000000 [0x0010000000] (param: 0x000001)
[    7.623021] ATR entry: 0x0030000000 -> 0x0030000000 [0x0008000000] (param: 0x000000)
[    7.630814] ATR entry: 0x0900000000 -> 0x0900000000 [0x0040000000] (param: 0x000000)
[    7.985453] pcie_plda 2b000000.pcie: Port link up.
[    7.990332] pcie_plda 2b000000.pcie: PCI host bridge to bus 0000:00
[    7.996551] pci_bus 0000:00: root bus resource [bus 00-ff]
[    8.002074] pci_bus 0000:00: root bus resource [mem 0x30000000-0x37ffffff]
[    8.009025] pci_bus 0000:00: root bus resource [mem 0x900000000-0x93fffffff pref]
[    8.016589] pci 0000:00:00.0: [1556:1111] type 01 class 0x060400
[    8.022624] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0xffffffff 64bit pref]
[    8.029962] pci 0000:00:00.0: supports D1 D2
[    8.034226] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    8.044390] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.052477] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    8.058442] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    8.065338] pci 0000:01:00.0: PME# supported from D0 D3cold
[    8.074192] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    8.080787] pci 0000:00:00.0: BAR 0: no space for [mem size 0x100000000 64bit pref]
[    8.088467] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x100000000 64bit pref]
[    8.096538] pci 0000:00:00.0: BAR 8: assigned [mem 0x30000000-0x300fffff]
[    8.103363] pci 0000:01:00.0: BAR 0: assigned [mem 0x30000000-0x30000fff 64bit]
[    8.110755] pci 0000:00:00.0: PCI bridge to [bus 01]
[    8.115772] pci 0000:00:00.0:   bridge window [mem 0x30000000-0x300fffff]
[    8.122703] pci 0000:00:00.0: enabling device (0000 -> 0002)
[    8.128347] pci 0000:01:00.0: enabling device (0000 -> 0002)
[    8.134091] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x9d4 took 11130 usecs
[    8.141710] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.146942] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    8.154729] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000040000000890
[    8.163879] pcie_plda 2b000000.pcie: msi#0 address_hi 0x0 address_lo 0x190
[    8.171111] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.176291] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    8.183725] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    8.190808] hub 1-0:1.0: USB hub found
[    8.194517] hub 1-0:1.0: 1 port detected
[    8.199526] hub 2-0:1.0: USB hub found
[    8.203235] hub 2-0:1.0: 4 ports detected
[    8.210087] pcie_plda 2c000000.pcie: host bridge /soc/pcie@2C000000 ranges:
[    8.217044] pcie_plda 2c000000.pcie:      MEM 0x0038000000..0x003fffffff -> 0x0038000000
[    8.225152] pcie_plda 2c000000.pcie:      MEM 0x0980000000..0x09bfffffff -> 0x0980000000
[    8.233353] ATR entry: 0x09c0000000 -> 0x0000000000 [0x0010000000] (param: 0x000001)
[    8.241109] ATR entry: 0x0038000000 -> 0x0038000000 [0x0008000000] (param: 0x000000)
[    8.248900] ATR entry: 0x0980000000 -> 0x0980000000 [0x0040000000] (param: 0x000000)
[    8.515415] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    8.685439] pcie_plda 2c000000.pcie: Port link down, exit.
[    8.704503] clk-starfive-jh7110-vout 295c0000.clock-controller: starfive JH7110 clk_vout init successfully.
[    8.725891] clk-starfive-jh7110-isp 19810000.clock-controller: starfive JH7110 clk_isp init successfully.
[    8.736051] dw_axi_dmac_platform 16050000.dma-controller: DesignWare AXI DMA Controller, 4 channels
[    8.746127] printk: console [ttyS0] disabled
[    8.770588] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 17, base_baud = 1500000) is a 16550A
[    8.771779] hub 1-1:1.0: USB hub found
[    8.786961] printk: console [ttyS0] enabled
[    8.787109] hub 1-1:1.0: 4 ports detected
[    8.841961] printk: bootconsole [sbi0] disabled
[    8.954754] jh7110-vin 19800000.vin_sysctl: stfcamss probe enter!
[    8.997053] jh7110-vin 19800000.vin_sysctl: stfcamss probe success!
[    9.040422] dwmmc_starfive 16010000.sdio0: IDMAC supports 32-bit address mode.
[    9.040799] dwmmc_starfive 16020000.sdio1: IDMAC supports 32-bit address mode.
[    9.041006] jh7110-sec 16000000.crypto: will run requests pump with realtime priority
[    9.044208] jh7110-sec 16000000.crypto: Initialized
[    9.045266] starfive-i2s 120b0000.i2stx_4ch0:  designware: play supported
[    9.045276] starfive-i2s 120b0000.i2stx_4ch0: designware: i2s master mode supported
[    9.045498] sf-mipi-dphy-tx 295e0000.mipi-dphy: sf_dphy_probe begin
[    9.045508] sf-mipi-dphy-tx 295e0000.mipi-dphy: ===> sf_dphy_probe enter, 445
[    9.045638] sf-mipi-dphy-tx 295e0000.mipi-dphy: control ECO
[    9.045659] sf-mipi-dphy-tx 295e0000.mipi-dphy: supply mipi_1p8 not found, using dummy regulator
[    9.045971] sf-mipi-dphy-tx 295e0000.mipi-dphy: sf_dphy_probe end
[    9.046172] cdns-dsi 295d0000.mipi: dsi_sys_clk = 297000000
[    9.046408] cdns-dsi 295d0000.mipi: starfive dsi bind end
[    9.048579] of_cfs_init
[    9.048611] of_cfs_init: OK
[    9.049136] starfive-pwmdac 100b0000.pwmdac: clk_apb0 = 49500000, clk_pwmdac_apb = 49500000, clk_pwmdac_core = 4068493
[    9.049643] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    9.087625] dwmmc_starfive 16010000.sdio0: Using internal DMA controller.
[    9.134781] dwmmc_starfive 16020000.sdio1: Using internal DMA controller.
[    9.185846] dwmmc_starfive 16010000.sdio0: Version ID is 290a
[    9.205734] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    9.209707] starfive soc:display-subsystem: bound 29400000.dc8200 (ops 0xffffffff80e75b38)
[    9.209725] innohdmi-starfive 29590000.hdmi: inno hdmi bind begin
[    9.210644] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    9.210658] cfg80211: failed to load regulatory.db
[    9.217676] dwmmc_starfive 16020000.sdio1: Version ID is 290a
[    9.261990] dwmmc_starfive 16010000.sdio0: DW MMC controller at irq 29,32 bit host data width,32 deep fifo
[    9.311953] dwmmc_starfive 16020000.sdio1: DW MMC controller at irq 30,32 bit host data width,32 deep fifo
[    9.352910] mmc_host mmc0: card is non-removable.
[    9.400050] mmc_host mmc1: card is polling.
[    9.438694] innohdmi-starfive 29590000.hdmi: [drm:inno_hdmi_bind] registered Inno HDMI I2C bus driver success
[    9.655377] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 400000Hz, actual 399193HZ div = 248)
[    9.705367] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 400000Hz, actual 399193HZ div = 248)
[    9.710002] innohdmi-starfive 29590000.hdmi: HDMI&AUDIO register done.
[    9.915366] usb 1-1.1: new low-speed USB device number 3 using xhci_hcd
[    9.928225] innohdmi-starfive 29590000.hdmi: inno hdmi bind end
[    9.965348] dwmmc_starfive 16020000.sdio1: Unexpected interrupt latency
[   10.015350] dwmmc_starfive 16010000.[   39.615932] mipi_0p9: disabling
sdio0: Unexpected interrupt latency
[   10.015350] dwmmc_starfive 16020000.sdio1: Unexpected interrupt latency
[   10.774854] starfive soc:display-subsystem: bound 29590000.hdmi (ops 0xffffffff80e768e8)
[   10.805348] dwmmc_starfive 16020000.sdio1: Unexpected interrupt latency
[   10.805350] dwmmc_starfive 16010000.sdio0: Unexpected interrupt latency
[   10.913923] vs-simple-encoder soc:dsi-output: encoder_bind begin
[   10.953142] no panel, -517
[   10.970793] vs-simple-encoder soc:dsi-output: encoder_bind error
[   11.005350] dwmmc_starfive 16010000.sdio0: Unexpected interrupt latency
[   11.005351] dwmmc_starfive 16020000.sdio1: Unexpected interrupt latency
[   11.096261] starfive soc:display-subsystem: bound soc:dsi-output (ops 0xffffffff80e76530)
[   11.135348] dwmmc_starfive 16020000.sdio1: Unexpected interrupt latency
[   11.135349] dwmmc_starfive 16010000.sdio0: Unexpected interrupt latency
[   11.236594] [drm] Initialized starfive 1.0.0 20191101 for soc:display-subsystem on minor 1
[   11.275351] dwmmc_starfive 16010000.sdio0: Unexpected interrupt latency
[   11.285347] dwmmc_starfive 16020000.sdio1: Unexpected interrupt latency
[   11.385332] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 50000000Hz, actual 49500000HZ div = 2)
[   11.407910] random: fast init done
[   11.472565] mmc1: new high speed SDXC card at address 59b4
[   11.484875] input: TK-FCP026 Series as /devices/platform/soc/2b000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:056E:1013.0001/input/input0
[   11.509193] mmcblk1: mmc1:59b4 ED2S5 119 GiB
[   11.607084] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 300000Hz, actual 300000HZ div = 330)
[   11.643201]  mmcblk1: p1 p2 p3 p4
[   11.698744] hid-generic 0003:056E:1013.0001: input: USB HID v1.10 Keyboard [TK-FCP026 Series] on usb-0000:01:00.0-1.1/input0
[   11.800123] input: TK-FCP026 Series System Control as /devices/platform/soc/2b000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:056E:1013.0002/input/input1
[   11.975528] input: TK-FCP026 Series Consumer Control as /devices/platform/soc/2b000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:056E:1013.0002/input/input2
[   12.083963] hid-generic 0003:056E:1013.0002: input: USB HID v1.10 Device [TK-FCP026 Series] on usb-0000:01:00.0-1.1/input1
[   12.156179] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 200000Hz, actual 200000HZ div = 495)
[   12.665475] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 100000Hz, actual 100000HZ div = 990)
[   13.455437] ALSA device list:
[   13.474832]   #0: Starfive-PWMDAC-Sound-Card
[   13.502734]   #1: Starfive-HDMI-Sound-Card
[   13.535069] Freeing unused kernel image (initmem) memory: 2188K
[   13.541318] Run /init as init process
[   13.545009]   with arguments:
[   13.548031]     /init
[   13.550321]     earlyprintk
[   13.553134]   with environment:
[   13.556329]     HOME=/
[   13.558710]     TERM=linux
[   13.680223] EXT4-fs (mmcblk1p4): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled.
[   14.245147] EXT4-fs (mmcblk1p4): re-mounted. Opts: (null). Quota mode: disabled.
[   14.693107] udevd[219]: starting version 3.2.10
[   14.709634] random: udevd: uninitialized urandom read (16 bytes read)
[   14.717375] random: udevd: uninitialized urandom read (16 bytes read)
[   14.723891] random: udevd: uninitialized urandom read (16 bytes read)
[   14.751454] udevd[220]: starting eudev-3.2.10
[   14.859939] vdec: loading out-of-tree module taints kernel.
[   14.867226] cnm_jpu 13090000.jpu: init device.
[   14.872177] SUCCESS alloc_chrdev_region
[   14.873268] vdec 130a0000.vpu_dec: device init.
[   14.880649] SUCCESS alloc_chrdev_region
[   15.436748] starfive-eth-plat 16030000.ethernet eth0: PHY [stmmac-0:00] driver [YT8531 Gigabit Ethernet] (irq=POLL)
[   15.448463] starfive-eth-plat 16030000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   16.336734] dwmac4: Master AXI performs fixed burst length
[   16.342309] starfive-eth-plat 16030000.ethernet eth0: No Safety Features support found
[   16.350389] starfive-eth-plat 16030000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   16.362590] starfive-eth-plat 16030000.ethernet eth0: configuring for phy/rgmii-id link mode
[   16.374365] starfive-eth-plat 16040000.ethernet eth1: PHY [stmmac-1:00] driver [YT8512B Ethernet] (irq=POLL)
[   16.384428] starfive-eth-plat 16040000.ethernet eth1: Register MEM_TYPE_PAGE_POOL RxQ-0
[   16.392709] dwmac4: Master AXI performs fixed burst length
[   16.398214] starfive-eth-plat 16040000.ethernet eth1: No Safety Features support found
[   16.406156] starfive-eth-plat 16040000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[   16.416683] starfive-eth-plat 16040000.ethernet eth1: configuring for phy/rgmii-id link mode
[   18.497448] starfive-eth-plat 16040000.ethernet eth1: Link is Up - 100Mbps/Full - flow control off
[   39.615932] mipi_0p9: disabling
#

Buildroot環境のdmesg的にはあまり変化はありませんでした。

Image-69で起動

では、Image-69が起動するか確認してみます。

Image-55の時と同様に起動中はシリアルコンソールのみ、Xが起動するとHDMI出力が現れる形でした。

Xにログインするとこんな感じです。

root@starfive:~# uname -a
Linux starfive 5.15.0-starfive #1 SMP Mon Dec 19 07:56:37 EST 2022 riscv64 GNU/Linux
root@starfive:~#
root@starfive:~# dmesg
[    0.000000] Linux version 5.15.0-starfive (sw_buildbot@mdcsw02) (riscv64-unknown-linux-gnu-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35) #1 SMP Mon Dec 19 07:56:37 EST 2022
[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Machine model: StarFive VisionFive V2
[    0.000000] earlycon: uart0 at MMIO32 0x0000000010000000 (options '115200')
[    0.000000] printk: bootconsole [uart0] enabled
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000080000000, size 512 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x00000000c010ffff]
[    0.000000]   node   0: [mem 0x00000000c0110000-0x00000000c01fffff]
[    0.000000]   node   0: [mem 0x00000000c0200000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x000000013fffffff]
[    0.000000] SBI specification v0.3 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10000
[    0.000000] SBI TIME extension detected
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] SBI v0.2 HSM extension detected
[    0.000000] CPU with hartid=0 is not available
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv: ISA extensions acdfim
[    0.000000] riscv: ELF capabilities acdfim
[    0.000000] percpu: Embedded 17 pages/cpu s31528 r8192 d29912 u69632
[    0.000000] pcpu-alloc: s31528 r8192 d29912 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1033735
[    0.000000] Kernel command line: root=/dev/mmcblk1p3 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0
[    0.000000] Unknown command line parameters: stmmaceth=chain_mode:1 selinux=0
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
[    0.000000] Memory: 3451368K/4192256K available (9884K kernel code, 4982K rwdata, 4096K rodata, 2191K init, 401K bss, 216600K reserved, 524288K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] rcu:     RCU debug extended QS entry/exit.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv-intc: unable to find hart id for /cpus/cpu@0/interrupt-controller
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: plic@c000000: mapped 136 interrupts with 4 handlers for 9 contexts.
[    0.000000] random: get_random_bytes called from start_kernel+0x4d0/0x6e2 with crng_init=0
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [1]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 881590404240 ns
[    0.000001] sched_clock: 64 bits at 4MHz, resolution 250ns, wraps every 2199023255500ns
[    0.009003] clocksource: timer@13050000.ch0: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.020327] clocksource: timer@13050000.ch1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.031659] clocksource: timer@13050000.ch2: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.042985] clocksource: timer@13050000.ch3: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.054473] Console: colour dummy device 80x25
[    0.060660] printk: console [tty0] enabled
[    0.065214] Calibrating delay loop (skipped), value calculated using timer frequency.. 8.00 BogoMIPS (lpj=40000)
[    0.076437] pid_max: default: 32768 minimum: 301
[    0.081664] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.089901] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.099981] ASID allocator disabled
[    0.103919] rcu: Hierarchical SRCU implementation.
[    0.109372] EFI services will not be available.
[    0.114755] smp: Bringing up secondary CPUs ...
[    0.121388] smp: Brought up 1 node, 4 CPUs
[    0.127085] devtmpfs: initialized
[    0.138281] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.149143] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.170414] pinctrl core: initialized pinctrl subsystem
[    0.177070] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.184291] cpuidle: using governor menu
[    0.210593] platform soc:dsi-output: Fixing up cyclic dependency with 29400000.dc8200
[    0.219775] platform 295d0000.mipi: Fixing up cyclic dependency with soc:dsi-output
[    0.228616] platform 29590000.hdmi: Fixing up cyclic dependency with 29400000.dc8200
[    0.249118] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.256502] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.267098] vgaarb: loaded
[    0.270324] SCSI subsystem initialized
[    0.274695] libata version 3.00 loaded.
[    0.274873] usbcore: registered new interface driver usbfs
[    0.280947] usbcore: registered new interface driver hub
[    0.286840] usbcore: registered new device driver usb
[    0.292683] mc: Linux media interface: v0.10
[    0.297433] videodev: Linux video capture interface: v2.00
[    0.303659] Advanced Linux Sound Architecture Driver Initialized.
[    0.310754] Bluetooth: Core ver 2.22
[    0.314717] NET: Registered PF_BLUETOOTH protocol family
[    0.320574] Bluetooth: HCI device and connection manager initialized
[    0.327572] Bluetooth: HCI socket layer initialized
[    0.332954] Bluetooth: L2CAP socket layer initialized
[    0.338526] Bluetooth: SCO socket layer initialized
[    0.344230] clocksource: Switched to clocksource riscv_clocksource
[    0.358649] NET: Registered PF_INET protocol family
[    0.364690] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.376739] tcp_listen_portaddr_hash hash table entries: 2048 (order: 4, 81920 bytes, linear)
[    0.386266] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.395413] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.404830] TCP: Hash tables configured (established 32768 bind 32768)
[    0.412290] UDP hash table entries: 2048 (order: 5, 196608 bytes, linear)
[    0.420066] UDP-Lite hash table entries: 2048 (order: 5, 196608 bytes, linear)
[    0.428465] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.435400] RPC: Registered named UNIX socket transport module.
[    0.441924] RPC: Registered udp transport module.
[    0.447117] RPC: Registered tcp transport module.
[    0.452291] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.460105] PCI: CLS 0 bytes, default 64
[    0.465110] Initialise system trusted keyrings
[    0.470246] workingset: timestamp_bits=62 max_order=20 bucket_order=0
[    0.474489] Unpacking initramfs...
[    0.483186] NFS: Registering the id_resolver key type
[    0.488817] Key type id_resolver registered
[    0.493433] Key type id_legacy registered
[    0.497973] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.505391] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.513607] ntfs: driver 2.1.32 [Flags: R/W].
[    0.518714] jffs2: version 2.2. (NAND) c 2001-2006 Red Hat, Inc.
[    0.525920] fuse: init (API version 7.34)
[    0.570101] NET: Registered PF_ALG protocol family
[    0.575431] Key type asymmetric registered
[    0.579954] Asymmetric key parser 'x509' registered
[    0.585458] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.593617] io scheduler mq-deadline registered
[    0.598639] io scheduler kyber registered
[    0.607893] start plist test
[    0.612237] end plist test
[    0.708128] clk-starfive-jh7110 13020000.clock-controller: starfive JH7110 clkgen init successfully.
[    0.719385] L2CACHE: DataError @ 0x00000000.08040140
[    0.724958] L2CACHE: DataFail @ 0x00000000.0804005B
[    0.730422] L2CACHE: No. of Banks in the cache: 8
[    0.735634] L2CACHE: No. of ways per bank: 16
[    0.740443] L2CACHE: Sets per bank: 256
[    0.744693] L2CACHE: Bytes per cache block: 64
[    0.749599] L2CACHE: Index of the largest way enabled: 15
[    0.755895] jh7110-pmu 17030000.power-controller: registered 8 power domains
[    0.823058] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    0.833017] @@#########################@@
[    0.875351] @@ dev ptr:ffffffe0bfee0000/1500/1
[    0.880510] PVR_K:  1: Read BVNC 36.50.54.182 from HW device registers
[    0.887810] PVR_K:  1: RGX Device registered BVNC 36.50.54.182 with 1 core in the system
[    0.898025] [drm] Initialized pvr 1.17.6210866 20170530 for 18000000.gpu on minor 0
[    0.920407] loop: module loaded
[    0.926442] spi-nor spi0.0: gd25lq128d (16384 Kbytes)
[    1.179648] Freeing initrd memory: 9456K
[    1.200532] 3 fixed-partitions partitions found on MTD device 13010000.spi.0
[    1.208365] Creating 3 MTD partitions on "13010000.spi.0":
[    1.214440] 0x000000000000-0x000000020000 : "spl"
[    1.221389] 0x000000100000-0x000000400000 : "uboot"
[    1.228325] 0x000000f00000-0x000001000000 : "data"
[    1.236236] libphy: Fixed MDIO Bus: probed
[    1.242212] CAN device driver interface
[    1.247071] starfive-eth-plat 16030000.ethernet: force_sf_dma_mode is ignored if force_thresh_dma_mode is set.
[    1.258489] starfive-eth-plat 16030000.ethernet: User ID: 0x41, Synopsys ID: 0x52
[    1.266772] starfive-eth-plat 16030000.ethernet:     DWMAC4/5
[    1.272823] starfive-eth-plat 16030000.ethernet: DMA HW capability register supported
[    1.281466] starfive-eth-plat 16030000.ethernet: RX Checksum Offload Engine supported
[    1.290110] starfive-eth-plat 16030000.ethernet: Wake-Up On Lan supported
[    1.297598] starfive-eth-plat 16030000.ethernet: TSO supported
[    1.304029] starfive-eth-plat 16030000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.313255] starfive-eth-plat 16030000.ethernet: Enabled Flow TC (entries=1)
[    1.321032] starfive-eth-plat 16030000.ethernet: TSO feature enabled
[    1.328044] starfive-eth-plat 16030000.ethernet: Using 40 bits DMA width
[    1.587153] libphy: stmmac: probed
[    1.590928] YT8531 Gigabit Ethernet stmmac-0:00: attached PHY driver (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    1.601889] YT8531 Gigabit Ethernet stmmac-0:01: attached PHY driver (mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[    1.614036] starfive-eth-plat 16040000.ethernet: force_sf_dma_mode is ignored if force_thresh_dma_mode is set.
[    1.625459] starfive-eth-plat 16040000.ethernet: User ID: 0x41, Synopsys ID: 0x52
[    1.633716] starfive-eth-plat 16040000.ethernet:     DWMAC4/5
[    1.639785] starfive-eth-plat 16040000.ethernet: DMA HW capability register supported
[    1.648429] starfive-eth-plat 16040000.ethernet: RX Checksum Offload Engine supported
[    1.657077] starfive-eth-plat 16040000.ethernet: Wake-Up On Lan supported
[    1.664566] starfive-eth-plat 16040000.ethernet: TSO supported
[    1.670997] starfive-eth-plat 16040000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.680243] starfive-eth-plat 16040000.ethernet: Enabled Flow TC (entries=1)
[    1.688023] starfive-eth-plat 16040000.ethernet: TSO feature enabled
[    1.695036] starfive-eth-plat 16040000.ethernet: Using 40 bits DMA width
[    1.953570] libphy: stmmac: probed
[    1.957379] YT8512B Ethernet stmmac-1:00: attached PHY driver (mii_bus:phy_addr=stmmac-1:00, irq=POLL)
[    1.967672] YT8512B Ethernet stmmac-1:03: attached PHY driver (mii_bus:phy_addr=stmmac-1:03, irq=POLL)
[    1.979497] Intel(R) Wireless WiFi driver for Linux
[    1.986870] cdns3-starfive 10210000.usbdrd: usb mode 2 2.0 probe success
[    1.995071] usbcore: registered new interface driver uas
[    2.000982] usbcore: registered new interface driver usb-storage
[    2.024572] starfive-rtc 17040000.rtc: registered as rtc0
[    2.030540] starfive-rtc 17040000.rtc: setting system clock to 2001-01-01T00:00:00 UTC (978307200)
[    2.040588] i2c_dev: i2c /dev entries driver
[    2.045561] usbcore: registered new interface driver uvcvideo
[    2.053083] starfive-wdt 13070000.wdog: Heartbeat: timeout=15, count/2=180000000 (0aba9500)
[    2.062844] Bluetooth: HCI UART driver ver 2.3
[    2.067773] Bluetooth: HCI UART protocol H4 registered
[    2.073649] starfive-cpufreq soc:starfive,jh7110-cpufreq: Failed to get regulator for cpu!
[    2.082794] starfive-cpufreq soc:starfive,jh7110-cpufreq: Failed to init starfive cpu dvfs info
[    2.092931] sdhci: Secure Digital Host Controller Interface driver
[    2.099773] sdhci: Copyright(c) Pierre Ossman
[    2.104616] Synopsys Designware Multimedia Card Interface Driver
[    2.111541] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.118599] jh7110-sec 16000000.crypto: Unable to request sec_m dma channel in DMA channel
[    2.127746] jh7110-sec 16000000.crypto: Cannot initial dma chan
[    2.134578] usbcore: registered new interface driver usbhid
[    2.140729] usbhid: USB HID core driver
[    2.145228] usbcore: registered new interface driver snd-usb-audio
[    2.155381] NET: Registered PF_PACKET protocol family
[    2.160973] can: controller area network core
[    2.165896] NET: Registered PF_CAN protocol family
[    2.171188] can: raw protocol
[    2.174482] can: broadcast manager protocol
[    2.179102] can: netlink gateway - max_hops=1
[    2.184206] Bluetooth: RFCOMM TTY layer initialized
[    2.189630] Bluetooth: RFCOMM socket layer initialized
[    2.195334] Bluetooth: RFCOMM ver 1.11
[    2.199501] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.205384] Bluetooth: BNEP filters: protocol multicast
[    2.211156] Bluetooth: BNEP socket layer initialized
[    2.216823] 9pnet: Installing 9P2000 support
[    2.221591] Key type dns_resolver registered
[    2.227079] Loading compiled-in X.509 certificates
[    2.268404] starfive_jh7110-pinctrl 13040000.gpio: SiFive GPIO chip registered 64 GPIOs
[    2.278023] starfive_jh7110-pinctrl 17020000.gpio: SiFive GPIO chip registered 4 GPIOs
[    2.287007] pl08xdmac 16008000.sec_dma: initialized 8 virtual memcpy channels
[    2.294910] pl08xdmac 16008000.sec_dma: initialized 16 virtual slave channels
[    2.304443] debugfs: Directory '16008000.sec_dma' with parent 'dmaengine' already present!
[    2.313591] pl08xdmac 16008000.sec_dma: DMA: PL080 rev0 at 0x16008000 irq 23
[    2.321646] ssp-pl022 10060000.spi: ARM PL022 driver for StarFive SoC platform, device ID: 0x00041022
[    2.331852] ssp-pl022 10060000.spi: mapped registers from 0x0000000010060000 to (____ptrval____)
[    2.341992] ssp-pl022 10060000.spi: Requested frequency: 10000000 Hz is unsupported,select by default 8250000 Hz
[    2.353615] ssp-pl022 10060000.spi: will use autosuspend for runtime pm, delay 100ms
[    2.363534] i2c 2-0045: Fixing up cyclic dependency with 295d0000.mipi
[    2.371039] seeed_panel 2-0045: Unknown Atmel firmware revision: 0x00
[    2.378361] i2c 2-0019: Fixing up cyclic dependency with 295d0000.mipi
[    2.386999] at24 5-0050: supply vcc not found, using dummy regulator
[    2.394835] at24 5-0050: 512 byte 24c04 EEPROM, writable, 16 bytes/write
[    2.404119] axp15060-regulator 5-0036: Register mipi_0p9 done! vol range:900 ~ 900 mV
[    2.414308] axp15060-regulator 5-0036: Register hdmi_1p8 done! vol range:1800 ~ 1800 mV
[    2.424634] axp15060-regulator 5-0036: Register hdmi_0p9 done! vol range:900 ~ 900 mV
[    2.434826] axp15060-regulator 5-0036: Register cpu_vdd done! vol range:500 ~ 1540 mV
[    2.444277] i2c 6-0010: Fixing up cyclic dependency with 19800000.vin_sysctl
[    2.452449] imx219 6-0010: supply VANA not found, using dummy regulator
[    2.459885] imx219 6-0010: supply VDIG not found, using dummy regulator
[    2.467256] imx219 6-0010: supply VDDL not found, using dummy regulator
[    2.482051] imx219 6-0010: failed to read chip id 219
[    2.487856] imx219: probe of 6-0010 failed with error -5
[    2.496313] pcie_plda 2b000000.pcie: host bridge /soc/pcie@2B000000 ranges:
[    2.504042] pcie_plda 2b000000.pcie:      MEM 0x0030000000..0x0037ffffff -> 0x0030000000
[    2.513013] pcie_plda 2b000000.pcie:      MEM 0x0900000000..0x093fffffff -> 0x0900000000
[    2.521995] ATR entry: 0x0940000000 -> 0x0000000000 [0x0010000000] (param: 0x000001)
[    2.530569] ATR entry: 0x0030000000 -> 0x0030000000 [0x0008000000] (param: 0x000000)
[    2.539134] ATR entry: 0x0900000000 -> 0x0900000000 [0x0040000000] (param: 0x000000)
[    2.894332] pcie_plda 2b000000.pcie: Port link up.
[    2.899776] pcie_plda 2b000000.pcie: PCI host bridge to bus 0000:00
[    2.906716] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.912768] pci_bus 0000:00: root bus resource [mem 0x30000000-0x37ffffff]
[    2.920368] pci_bus 0000:00: root bus resource [mem 0x900000000-0x93fffffff pref]
[    2.928661] pci 0000:00:00.0: [1556:1111] type 01 class 0x060400
[    2.935307] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0xffffffff 64bit pref]
[    2.943331] pci 0000:00:00.0: supports D1 D2
[    2.948053] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    2.958884] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.967871] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    2.974526] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    2.982089] pci 0000:01:00.0: PME# supported from D0 D3cold
[    2.991592] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.998930] pci 0000:00:00.0: BAR 0: no space for [mem size 0x100000000 64bit pref]
[    3.007400] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x100000000 64bit pref]
[    3.016255] pci 0000:00:00.0: BAR 8: assigned [mem 0x30000000-0x300fffff]
[    3.023738] pci 0000:01:00.0: BAR 0: assigned [mem 0x30000000-0x30000fff 64bit]
[    3.031831] pci 0000:00:00.0: PCI bridge to [bus 01]
[    3.037315] pci 0000:00:00.0:   bridge window [mem 0x30000000-0x300fffff]
[    3.044914] pci 0000:00:00.0: enabling device (0000 -> 0002)
[    3.051155] pci 0000:01:00.0: enabling device (0000 -> 0002)
[    3.057436] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x9d4 took 12238 usecs
[    3.065829] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    3.071616] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    3.080195] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000040000000890
[    3.090355] pcie_plda 2b000000.pcie: msi#0 address_hi 0x0 address_lo 0x190
[    3.098325] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    3.104102] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    3.112292] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    3.119955] hub 1-0:1.0: USB hub found
[    3.124129] hub 1-0:1.0: 1 port detected
[    3.129524] hub 2-0:1.0: USB hub found
[    3.133699] hub 2-0:1.0: 4 ports detected
[    3.140954] pcie_plda 2c000000.pcie: host bridge /soc/pcie@2C000000 ranges:
[    3.148707] pcie_plda 2c000000.pcie:      MEM 0x0038000000..0x003fffffff -> 0x0038000000
[    3.157662] pcie_plda 2c000000.pcie:      MEM 0x0980000000..0x09bfffffff -> 0x0980000000
[    3.166655] ATR entry: 0x09c0000000 -> 0x0000000000 [0x0010000000] (param: 0x000001)
[    3.175220] ATR entry: 0x0038000000 -> 0x0038000000 [0x0008000000] (param: 0x000000)
[    3.183768] ATR entry: 0x0980000000 -> 0x0980000000 [0x0040000000] (param: 0x000000)
[    3.344283] usb usb2-port2: over-current condition
[    3.444304] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    3.504310] usb usb2-port4: over-current condition
[    3.614508] pcie_plda 2c000000.pcie: Port link down, exit.
[    3.634337] clk-starfive-jh7110-vout 295c0000.clock-controller: starfive JH7110 clk_vout init successfully.
[    3.655436] hub 1-1:1.0: USB hub found
[    3.656824] clk-starfive-jh7110-isp 19810000.clock-controller: starfive JH7110 clk_isp init successfully.
[    3.659813] hub 1-1:1.0: 4 ports detected
[    3.670789] dw_axi_dmac_platform 16050000.dma-controller: DesignWare AXI DMA Controller, 4 channels
[    3.685594] printk: console [ttyS0] disabled
[    3.710553] 10000000.serial: ttyS0 at MMIO 0x10000000 (irq = 17, base_baud = 1500000) is a 16550A
[    3.720407] printk: console [ttyS0] enabled
[    3.729214] printk: bootconsole [uart0] disabled
[    3.739447] jh7110-vin 19800000.vin_sysctl: stfcamss probe enter!
[    3.747568] jh7110-vin 19800000.vin_sysctl: stfcamss probe success!
[    3.756345] dwmmc_starfive 16010000.sdio0: IDMAC supports 32-bit address mode.
[    3.756951] jh7110-sec 16000000.crypto: will run requests pump with realtime priority
[    3.763667] dwmmc_starfive 16010000.sdio0: Using internal DMA controller.
[    3.772173] dwmmc_starfive 16020000.sdio1: IDMAC supports 32-bit address mode.
[    3.778325] dwmmc_starfive 16010000.sdio0: Version ID is 290a
[    3.778369] dwmmc_starfive 16010000.sdio0: DW MMC controller at irq 29,32 bit host data width,32 deep fifo
[    3.781261] jh7110-sec 16000000.crypto: Initialized
[    3.782357] starfive-i2s 120b0000.i2stx_4ch0:  designware: play supported
[    3.782367] starfive-i2s 120b0000.i2stx_4ch0: designware: i2s master mode supported
[    3.782549] sf-mipi-dphy-tx 295e0000.mipi-dphy: sf_dphy_probe begin
[    3.782560] sf-mipi-dphy-tx 295e0000.mipi-dphy: ===> sf_dphy_probe enter, 445
[    3.782696] sf-mipi-dphy-tx 295e0000.mipi-dphy: control ECO
[    3.782722] sf-mipi-dphy-tx 295e0000.mipi-dphy: supply mipi_1p8 not found, using dummy regulator
[    3.783012] sf-mipi-dphy-tx 295e0000.mipi-dphy: sf_dphy_probe end
[    3.783213] cdns-dsi 295d0000.mipi: dsi_sys_clk = 297000000
[    3.783455] cdns-dsi 295d0000.mipi: starfive dsi bind end
[    3.785637] dwmmc_starfive 16020000.sdio1: Using internal DMA controller.
[    3.785709] of_cfs_init
[    3.785744] of_cfs_init: OK
[    3.786268] starfive-pwmdac 100b0000.pwmdac: clk_apb0 = 49500000, clk_pwmdac_apb = 49500000, clk_pwmdac_core = 4068493
[    3.786774] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.791504] mmc_host mmc0: card is non-removable.
[    3.801153] dwmmc_starfive 16020000.sdio1: Version ID is 290a
[    3.906458] dwmmc_starfive 16020000.sdio1: DW MMC controller at irq 30,32 bit host data width,32 deep fifo
[    3.907275] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.916211] mmc_host mmc1: card is polling.
[    3.925079] starfive soc:display-subsystem: bound 29400000.dc8200 (ops 0xffffffff80e75af8)
[    3.935166] innohdmi-starfive 29590000.hdmi: inno hdmi bind begin
[    3.941612] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.950277] cfg80211: failed to load regulatory.db
[    3.955907] innohdmi-starfive 29590000.hdmi: [drm:inno_hdmi_bind] registered Inno HDMI I2C bus driver success
[    3.966014] innohdmi-starfive 29590000.hdmi: HDMI&AUDIO register done.
[    3.972564] innohdmi-starfive 29590000.hdmi: inno hdmi bind end
[    3.978505] starfive soc:display-subsystem: bound 29590000.hdmi (ops 0xffffffff80e768a8)
[    3.986612] vs-simple-encoder soc:dsi-output: encoder_bind begin
[    3.992642] no panel, -517
[    3.995365] vs-simple-encoder soc:dsi-output: encoder_bind error
[    4.001374] starfive soc:display-subsystem: bound soc:dsi-output (ops 0xffffffff80e764f0)
[    4.010000] [drm] Initialized starfive 1.0.0 20191101 for soc:display-subsystem on minor 1
[    4.034249] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 400000Hz, actual 399193HZ div = 248)
[    4.144348] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 400000Hz, actual 399193HZ div = 248)
[    4.396890] mmc_host mmc1: Bus speed (slot 0) = 198000000Hz (slot req 50000000Hz, actual 49500000HZ div = 2)
[    4.406993] mmc1: new high speed SDXC card at address 59b4
[    4.413023] random: fast init done
[    4.417358] mmcblk1: mmc1:59b4 EC1S5 59.7 GiB
[    4.430503]  mmcblk1: p1 p2 p3
[    4.484331] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 300000Hz, actual 300000HZ div = 330)
[    4.924339] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 200000Hz, actual 200000HZ div = 495)
[    5.094347] usb 1-1.1: new low-speed USB device number 3 using xhci_hcd
[    5.243954] input: TK-FCP026 Series as /devices/platform/soc/2b000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:056E:1013.0001/input/input0
[    5.324734] hid-generic 0003:056E:1013.0001: input: USB HID v1.10 Keyboard [TK-FCP026 Series] on usb-0000:01:00.0-1.1/input0
[    5.343747] input: TK-FCP026 Series System Control as /devices/platform/soc/2b000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:056E:1013.0002/input/input1
[    5.374246] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 100000Hz, actual 100000HZ div = 990)
[    5.424563] input: TK-FCP026 Series Consumer Control as /devices/platform/soc/2b000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:056E:1013.0002/input/input2
[    5.441441] hid-generic 0003:056E:1013.0002: input: USB HID v1.10 Device [TK-FCP026 Series] on usb-0000:01:00.0-1.1/input1
[    6.084315] ALSA device list:
[    6.087335]   #0: Starfive-PWMDAC-Sound-Card
[    6.091659]   #1: Starfive-HDMI-Sound-Card
[    6.100590] Freeing unused kernel image (initmem) memory: 2188K
[    6.106909] Run /init as init process
[    6.110626]   with arguments:
[    6.110642]     /init
[    6.110655]   with environment:
[    6.110670]     HOME=/
[    6.110683]     TERM=linux
[    6.110697]     stmmaceth=chain_mode:1
[    6.110716]     selinux=0
[    7.089399] EXT4-fs (mmcblk1p3): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled.
[    7.776963] systemd[1]: System time before build time, advancing clock.
[    7.863097] systemd[1]: systemd 251.2-5 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[    7.895329] systemd[1]: Detected architecture riscv64.
[    7.903523] systemd[1]: Hostname set to <starfive>.
[    8.433281] systemd[1]: Queued start job for default target Graphical Interface.
[    8.442977] systemd[1]: Created slice Slice /system/getty.
[    8.449336] systemd[1]: Created slice Slice /system/modprobe.
[    8.456514] systemd[1]: Created slice Slice /system/serial-getty.
[    8.463971] systemd[1]: Created slice Slice /system/systemd-fsck.
[    8.471207] systemd[1]: Created slice User and Session Slice.
[    8.478157] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    8.487122] systemd[1]: Arbitrary Executable File Formats File System Automount Point was skipped because of a failed condition check (ConditionPathExists=/proc/sys/fs/binfmt_misc).
[    8.504660] systemd[1]: Reached target Local Integrity Protected Volumes.
[    8.512702] systemd[1]: Reached target Remote File Systems.
[    8.519576] systemd[1]: Reached target Slice Units.
[    8.525850] systemd[1]: Reached target Swaps.
[    8.531613] systemd[1]: Reached target Local Verity Protected Volumes.
[    8.539820] systemd[1]: Listening on Syslog Socket.
[    8.545907] systemd[1]: Listening on fsck to fsckd communication Socket.
[    8.553896] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    8.567859] systemd[1]: Journal Audit Socket was skipped because of a failed condition check (ConditionSecurity=audit).
[    8.579756] systemd[1]: Listening on Journal Socket (/dev/log).
[    8.587021] systemd[1]: Listening on Journal Socket.
[    8.593386] systemd[1]: Listening on udev Control Socket.
[    8.599998] systemd[1]: Listening on udev Kernel Socket.
[    8.608392] systemd[1]: Mounting Huge Pages File System...
[    8.616435] systemd[1]: Mounting POSIX Message Queue File System...
[    8.625546] systemd[1]: Mounting Kernel Debug File System...
[    8.632460] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).
[    8.646608] systemd[1]: Create List of Static Device Nodes was skipped because of a failed condition check (ConditionFileNotEmpty=/lib/modules/5.15.0-starfive/modules.devname).
[    8.665578] systemd[1]: Starting Load Kernel Module configfs...
[    8.674147] systemd[1]: Starting Load Kernel Module drm...
[    8.682437] systemd[1]: Starting Load Kernel Module fuse...
[    8.688911] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathIsReadWrite=!/).
[    8.705889] systemd[1]: Starting Journal Service...
[    8.716917] systemd[1]: Starting Load Kernel Modules...
[    8.725627] systemd[1]: Starting Remount Root and Kernel File Systems...
[    8.732846] systemd[1]: Repartition Root Disk was skipped because all trigger condition checks failed.
[    8.745743] systemd[1]: Starting Coldplug All udev Devices...
[    8.748138] EXT4-fs (mmcblk1p3): re-mounted. Opts: errors=remount-ro. Quota mode: disabled.
[    8.766284] systemd[1]: Mounted Huge Pages File System.
[    8.772985] systemd[1]: Mounted POSIX Message Queue File System.
[    8.780431] systemd[1]: Mounted Kernel Debug File System.
[    8.787459] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[    8.795202] systemd[1]: Finished Load Kernel Module configfs.
[    8.809276] systemd[1]: modprobe@drm.service: Deactivated successfully.
[    8.817365] systemd[1]: Finished Load Kernel Module drm.
[    8.823873] systemd[1]: Started Journal Service.
[    8.866146] systemd-journald[253]: Received client request to flush runtime journal.
[    9.719973] vdec: loading out-of-tree module taints kernel.
[    9.728380] SUCCESS alloc_chrdev_region
[    9.729208] vdec 130a0000.vpu_dec: device init.
[    9.733434] cnm_jpu 13090000.jpu: init device.
[    9.738362] SUCCESS alloc_chrdev_region
[   10.324629] random: alsactl: uninitialized urandom read (4 bytes read)
[   10.950993] random: alsactl: uninitialized urandom read (4 bytes read)
[   11.384365] random: alsactl: uninitialized urandom read (4 bytes read)
[   11.389792] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[   11.422177] random: avahi-daemon: uninitialized urandom read (4 bytes read)
[   12.224275] random: crng init done
[   12.227703] random: 2 urandom warning(s) missed due to ratelimiting
[   13.320969] starfive-eth-plat 16030000.ethernet eth0: PHY [stmmac-0:00] driver [YT8531 Gigabit Ethernet] (irq=POLL)
[   13.332100] starfive-eth-plat 16030000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   13.344307] dwmac4: Master AXI performs fixed burst length
[   13.349871] starfive-eth-plat 16030000.ethernet eth0: No Safety Features support found
[   13.357899] starfive-eth-plat 16030000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   13.367295] starfive-eth-plat 16030000.ethernet eth0: configuring for phy/rgmii-id link mode
[   13.388888] starfive-eth-plat 16040000.ethernet eth1: PHY [stmmac-1:00] driver [YT8512B Ethernet] (irq=POLL)
[   13.399026] starfive-eth-plat 16040000.ethernet eth1: Register MEM_TYPE_PAGE_POOL RxQ-0
[   13.407375] dwmac4: Master AXI performs fixed burst length
[   13.412921] starfive-eth-plat 16040000.ethernet eth1: No Safety Features support found
[   13.420942] starfive-eth-plat 16040000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[   13.456848] starfive-eth-plat 16040000.ethernet eth1: configuring for phy/rgmii-id link mode
[   13.468492] starfive-eth-plat 16040000.ethernet eth1: Link is Up - 100Mbps/Full - flow control off
[   13.501237] vs_gem_dumb_create size = 1000
[   13.505400] Allocated coherent memory, vaddr: 0xFFFFFFE0FEBFD2D8, paddr: 0x1012E5000
[   13.513153] ====> vs_gem_alloc_buf, 162.vs_obj->get_pages = 0
[   13.943569] PVR_K:  412: RGX Firmware image 'rgx.fw.36.50.54.182' loaded
[   14.011651] PVR_K:  412: Shader binary image 'rgx.sh.36.50.54.182' loaded
[   14.022915] PVR_K:  412: X connected - (devID = 0)
[   14.251106] vs_gem_dumb_create size = 7e9000
[   14.256407] Allocated coherent memory, vaddr: 0xFFFFFFE0FCFC20C0, paddr: 0x80200000
[   14.264086] ====> vs_gem_alloc_buf, 162.vs_obj->get_pages = 0
[   14.306311] vs_gem_dumb_create size = 4000
[   14.310549] Allocated coherent memory, vaddr: 0xFFFFFFE0FCFBEA80, paddr: 0x80108000
[   14.318227] ====> vs_gem_alloc_buf, 162.vs_obj->get_pages = 0
[   14.323980] vs_gem_dumb_create size = 4000
[   14.328255] Allocated coherent memory, vaddr: 0xFFFFFFE0FCFBEB60, paddr: 0x8010C000
[   14.335931] ====> vs_gem_alloc_buf, 162.vs_obj->get_pages = 0
[   15.320413] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate rate 148500000 tmdsclk 148500000
[   15.429986] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->pixclock = 148500000
[   15.439744] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->tmdsclock = 148500000
[   15.449581] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->prediv = 1
[   15.458467] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->fbdiv = 99
[   15.467348] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->tmds_div_a = 1
[   15.476575] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->tmds_div_b = 1
[   15.485803] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->tmds_div_c = 1
[   15.495032] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->pclk_div_a = 1
[   15.504259] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->pclk_div_b = 2
[   15.513475] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->pclk_div_c = 2
[   15.522709] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->pclk_div_d = 2
[   15.531967] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->vco_div_5_en = 0
[   15.541378] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->pre_cfg->fracdiv = 0
[   15.550352] innohdmi-starfive 29590000.hdmi: *******************************************************
[   15.559492] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->post_cfg->tmdsclock = 148500000
[   15.569414] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->post_cfg->prediv = 1
[   15.578387] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->post_cfg->fbdiv = 20
[   15.587363] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->post_cfg->postdiv = 1
[   15.596424] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->post_cfg->post_div_en = 3
[   15.605833] innohdmi-starfive 29590000.hdmi: inno_hdmi_phy_clk_set_rate hdmi->post_cfg->version = 3
[   34.484816] mipi_0p9: disabling
[   39.704348] usb 1-1.3: new low-speed USB device number 4 using xhci_hcd
[   39.855298] input: KYE ADNS6000 Optical Mouse as /devices/platform/soc/2b000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:0458:005E.0003/input/input3
[   39.871618] hid-generic 0003:0458:005E.0003: input: USB HID v1.10 Mouse [KYE ADNS6000 Optical Mouse] on usb-0000:01:00.0-1.3/input0
[   41.418339] systemd-journald[253]: Oldest entry in /var/log/journal/bd887d4196a5463aa4c948eb57286362/system.journal is older than the configured file retention duration (1month), suggesting rotation.
[   41.436358] systemd-journald[253]: /var/log/journal/bd887d4196a5463aa4c948eb57286362/system.journal: Journal header limits reached or header out-of-date, rotating.
[   68.635238] PVR_K:(Error):   412: DevmemSubAllocate: Failed! Error is PVRSRV_ERROR_DEVICEMEM_OUT_OF_DEVICE_VM. Allocation size: 0x0000000058 [1635]
[   68.648499] PVR_K:(Error):   412: RGXCreateHWRTDataSet: DevmemAllocate for FwHWRTDataCommon failed [1582]
[   68.658091] Unable to handle kernel paging request at virtual address ffffff8d60a00018
[   68.666024] Oops [#1]
[   68.668296] Modules linked in: jpu(O) venc(O) vdec(O)
[   68.673358] CPU: 1 PID: 412 Comm: X Tainted: G          `O      5.15.0-starfive #1
[   68.680928] Hardware name: StarFive VisionFive V2 (DT)
[   68.686064] epc : RGXDestroyHWRTDataSet+0x24/0xca
[   68.690776]  ra : PVRSRVBridgeRGXCreateHWRTDataSet+0x2ba/0xae8
[   68.696618] epc : ffffffff804b29da ra : ffffffff804e6ff6 sp : ffffffd0044eb920
[   68.703844]  gp : ffffffff815006b8 tp : ffffffe0c0f2bc00 t0 : 0000000000000040
[   68.711069]  t1 : 0000000000000000 t2 : 0000000000000000 s0 : ffffffd0044eb960
[   68.718294]  s1 : ffffffe0c49f8258 a0 : 0200000d60a00000 a1 : 000000000000009b
[   68.725520]  a2 : 0000000000000053 a3 : 0000000000000053 a4 : 0000000000000053
[   68.732745]  a5 : 68fdd6bf06041900 a6 : ffffffe0c89816d0 a7 : ffffffe0c89816f8
[   68.739971]  s2 : 0200000d60a00000 s3 : ffffffff815020a8 s4 : ffffffe0c49f8240
[   68.747197]  s5 : ffffffe0c49f8098 s6 : ffffffe0c49f80b8 s7 : 00000000000001c0
[   68.754422]  s8 : ffffffe0c49f8198 s9 : 0000000000000000 s10: ffffffe0c49fa000
[   68.761647]  s11: ffffffe0c49f8000 t3 : 0000000000000002 t4 : 0000000000000402
[   68.768871]  t5 : ffffffe0c6c1c200 t6 : ffffffe0c6c1c220
[   68.774180] status: 0000000200000120 badaddr: ffffff8d60a00018 cause: 000000000000000d
[   68.782102] [<ffffffff804b29da>] RGXDestroyHWRTDataSet+0x24/0xca
[   68.788107] [<ffffffff804e6ff6>] PVRSRVBridgeRGXCreateHWRTDataSet+0x2ba/0xae8
[   68.795238] [<ffffffff80482170>] BridgedDispatchKM+0x150/0x46a
[   68.801075] [<ffffffff8045fdbe>] PVRSRV_BridgeDispatchKM+0xb6/0x182
[   68.807345] [<ffffffff804216a4>] drm_ioctl_kernel+0x8c/0xd0
[   68.812921] [<ffffffff804219fe>] drm_ioctl+0x1c2/0x2f2
[   68.818060] [<ffffffff801372a4>] sys_ioctl+0x350/0x818
[   68.823200] [<ffffffff80003046>] ret_from_syscall+0x0/0x2
[   68.828619] ---[ end trace e8d874a9fd9d1c61 ]---
[   69.098425] PVR_K:  412: X disconnected - (devID = 0)
[   69.131289] vs_gem_dumb_create size = 1000
[   69.135428] Allocated coherent memory, vaddr: 0xFFFFFFE0FEC791D0, paddr: 0x10364E000
[   69.143166] ====> vs_gem_alloc_buf, 162.vs_obj->get_pages = 0
[   69.192685] PVR_K:  742: X connected - (devID = 0)
[   69.205996] PVR_K:(Error):   742: DevmemSubAllocate: Failed! Error is PVRSRV_ERROR_DEVICEMEM_OUT_OF_DEVICE_VM. Allocation size: 0x0000010000 [1635]
[   69.219512] PVR_K:(Error):   742: DevmemSubAllocate: Failed! Error is PVRSRV_ERROR_DEVICEMEM_OUT_OF_DEVICE_VM. Allocation size: 0x0000008000 [1635]
[   69.233339] PVR_K:(Error):   742: DevmemSubAllocate: Failed! Error is PVRSRV_ERROR_DEVICEMEM_OUT_OF_DEVICE_VM. Allocation size: 0x0000008000 [1635]
[   69.309600] vs_gem_dumb_create size = 7e9000
[   69.314774] Allocated coherent memory, vaddr: 0xFFFFFFE0FCFDE0C0, paddr: 0x80A00000
[   69.322434] ====> vs_gem_alloc_buf, 162.vs_obj->get_pages = 0
[   69.368664] vs_gem_dumb_create size = 4000
[   69.373169] Allocated coherent memory, vaddr: 0xFFFFFFE0FCFBEA80, paddr: 0x80108000
[   69.380848] ====> vs_gem_alloc_buf, 162.vs_obj->get_pages = 0
[   69.386629] vs_gem_dumb_create size = 4000
[   69.391111] Allocated coherent memory, vaddr: 0xFFFFFFE0FCFBEB60, paddr: 0x8010C000
[   69.398788] ====> vs_gem_alloc_buf, 162.vs_obj->get_pages = 0
[   86.412915] vs_gem_dumb_create size = 7e9000
[   86.417576] Allocated coherent memory, vaddr: 0xFFFFFFE0FCFC20C0, paddr: 0x80200000
[   86.425261] ====> vs_gem_alloc_buf, 162.vs_obj->get_pages = 0
[   86.632491] vs_gem_dumb_create size = 7e9000
[   86.637352] Allocated coherent memory, vaddr: 0xFFFFFFE0FCFFA0C0, paddr: 0x81200000
[   86.645034] ====> vs_gem_alloc_buf, 162.vs_obj->get_pages = 0
root@starfive:~#

というわけで、SPLとU-Bootを更新すると、Image-69が起動できることを確認しました。

なお、Image-69で、apt upgradeかけたら、Xが起動しなくなりました・・・

StarFive Vision Five 2の2022年12月出荷分を使うには面倒くさい手順が必要

$
0
0

StarFiveのRISC-Vコア搭載SoCのJH7110のVision Five 2をKickstarter クラファンのSuper Early Bird – 4GB version が届いた。

しかし、こいつ、いろいろ面倒くさい状態でした。

2022年12月出荷の Vision Five 2は、起動に使われるSPLとU-Bootを更新しないと、Quick Start Guideで案内されているDebianの2022/12/26付けのImage-69版の起動に失敗しました。

更新するには若干面倒な手順が必要でした。

資料について

Vision Five 2に関する資料 は https://doc-en.rvspace.org/Doc_Center/visionfive_2.html を起点に探せる

Quick Start Guide 内にDebianイメージのダウンロードURLが書かれています。

また、githubにStarFiveTech VisionFive2 SDK があり、上記のDebianをソースからビルドする際に必要なモノが揃っています。

用意するもの

・TTLシリアル

シリアルコンソール接続じゃないとSPL/U-Bootの更新作業が行えませんでした。

StarFiveTech VisionFive2 SDKのsdcard.img

Debianイメージだと更新に必要な/proc/mtdと/dev/mtd* が作られていませんでした。
SDKサイトにあるsdcard.img は Buildrootと呼ばれる最小構成のLinuxイメージですが、更新に必要なものが揃っていました。

・VisionFive2用のDebianイメージ

最終的にはこのDebianで起動して使う感じです。

更新しないと何が起こるか

SPLとU-Bootを更新しないと何が起こるのか?というと、Debianイメージ2022/12/20付けのImage-55じゃないと起動できませんでした。

更新しない状態で2022/12/26付けImage-69を起動しようとすると、U-Bootの段階でファイルの選択に失敗して起動ができませんでした。

1)TTLシリアルで接続する

SPL/U-Bootを更新するにはUSB-TTLシリアルアダプタを使ってシリアル接続して操作しないとなりません。

繋ぐ場所はQuick Start Guideの Using a USB to Serial Converter for Windowsに書いてある様にGPIO端子です。

2)Buildrootで起動

まずはStarFiveTech VisionFive2 SDKのsdcard.imgをmicroSDに書き込んで起動します。

起動後、ログインして、/dev/mtd*と/proc/mtdがあることを確認します。

# ls -l /dev/mtd*
crw-------    1 root     root       90,   0 Jan  1 00:00 /dev/mtd0
crw-------    1 root     root       90,   1 Jan  1 00:00 /dev/mtd0ro
crw-------    1 root     root       90,   2 Jan  1 00:00 /dev/mtd1
crw-------    1 root     root       90,   3 Jan  1 00:00 /dev/mtd1ro
crw-------    1 root     root       90,   4 Jan  1 00:00 /dev/mtd2
crw-------    1 root     root      `90,   5 Jan  1 00:00 /dev/mtd2ro
brw-rw----    1 root     disk       31,   0 Jan  1 00:00 /dev/mtdblock0
brw-rw----    1 root     disk       31,   1 Jan  1 00:00 /dev/mtdblock1
brw-rw----    1 root     disk       31,   2 Jan  1 00:00 /dev/mtdblock2
# ls -l /proc/mtd*
-r--r--r--    1 root     root          `  0 Jan  1 00:09 /proc/mtd
#

3)更新用ファイルの転送

StarFiveTech VisionFive2 SDKの「u-boot-spl.bin.normal.out」と「visionfive2_fw_payload.img」を別のPCでダウンロードしてからscpコマンドなどでBuildrootのLinux内に転送します。

BuildrootのLinuxはsshdが動いており、rootユーザのログインも許可されているので、TeraTermなどから接続して、scpでコピーすると良いでしょう。

4)SPLとU-bootを更新する

更新手順はQUick Start Guideの「Updating SPL and U-Boot」にあるよう書き込みます。
 ・boot-spl.bin.normal.outを /dev/mtd0
 ・visionfive2_fw_payload.img を /dev/mtd1

書き込みはflashcpコマンドを使います

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00001000 "spl"
mtd1: 00300000 00001000 "uboot"
mtd2: 00100000 00001000 "data"
# flashcp -v u-boot-spl.bin.normal.out /dev/mtd0
Erasing blocks: 32/32 (100%)
Writing data: 124k/124k (100%)
Verifying data: 124k/124k (100%)
# flashcp -v visionfive2_fw_payload.img /dev/mtd1
Erasing blocks: 682/682 (100%)
Writing data: 2727k/2727k (100%)
Verifying data: 2727k/2727k (100%)
#

5) 再起動して反映

再起動するとSPLとU-Bootが更新された状態で起動します。

起動が確認できたら、停止します。

6) Debianイメージで起動

Debianイメージを書き込んだmicroSDに差し替えて電源を入れると、Image-69版のDebianイメージが起動します。

ただ、電源をいれてからX画面が出るまではHDMIには何も出力されないことに注意が必要です。(シリアルコンソールに出力されています)

Vision Five 2のM.2 M-keyスロットは現状NVMe SSDが使える

$
0
0

StarFive Vision Five2のM.2 M-keyスロットにまずはM.2 NVMe SSDを入れてみた

root@starfive:~# fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 970 EVO 500GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 99EF5891-2C9A-4C91-8A1C-6C1E833E08C4

Device             Start       End   Sectors   Size Type
/dev/nvme0n1p1        34     32767     32734    16M Microsoft reserved
/dev/nvme0n1p2     32768 614432767 614400000   293G Microsoft basic data
/dev/nvme0n1p3 614432768 976771071 362338304 172.8G unknown
root@starfive:~#

まあ、普通に使える。

次に、M.2 SATA SSDを入れてみたが認識はしなかった。

また、Orange Pi 5みたいに ssd-sata モジュールを読み込ませることで認識しないかな?と探してみましたが、Image-69の中には「ssd-sata」という名前がつくファイルは存在しませんでした。

ということで、2022/12/30時点では、Vision Five 2のM.2 M-KeyスロットはM.2 NVMe SSDが利用できるようです。

富士通LIFEBOOK S937/RとFUTRO MU937は16GB SO-DIMMが増設できる

$
0
0

AmazonタイムセールでSO-DIMM DDR4 2666MHz PC4-21300 16GBx2枚組で9,980円というものがあった

そして、上記商品は「返品可能」商品となっていた。

ということは、メーカからは8GB SO-DIMM増設オプションが最大となっているLIFEBOOK S937/RとFUTRO MU937が実は16GB SO-DIMMが使えたりしないか検証できるな、ということで買ってみた。

まずは開けやすいLIFEBOOK S937/Rから

続いてFUTRO MU937

どちらも標準の4GB+16GB=20GBとして認識しました。

Windows 10をインストールしてるFUTRO MU937でのタスクマネージャー表示を確認

まず標準状態はコレ

16GB SO-DIMMを増設した後の表示はコレ

オンボードメモリが2133MHzなのでそこに揃う感じですね。

フォームファクターがオンボードだけだと「Row of chips」という表記だったのが「SODIMM」に代わってますね。

Orange Pi 5のまとめ 2023/01/07版

$
0
0

Orange Pi 5 が届いた」を始めにいろいろOrange Pi 5に関する記事をいろいろ書いていったら探しにくくなってしまっているので、まとめ記事を作成しました。

仕様について

M.2スロットで使用できるもの

・M.2 NVMe SSD(M-key)

M.2 M-keyで使えるSSDには、M.2 NVMe SSDとM.2 SATA SSDの2種類があります。

Orange Pi 5の公式仕様としてはM.2 NVMe SSDが使用できる、ということになっています。

Orange Pi 5ではM.2 NVMe SSDの2242が適切なサイズですが、日本で買うと高いです。

aliexpressでは日本の半額程度で買え、2週間程度で届きます。

私はKingSpecというメーカの512GBを買いました。詳細は「aliexpressでM.2 2242サイズのSATAとNVMeを買ってみた

・コンバーターボード経由でM.2のA/E-keyのWiFiカード

本来はA/E-keyのM.2はM-keyにさすことが出来ませんが、コンバーターボードを使うことでさすことができます。

詳細については TechnicaLifeさん「Orange Pi 5 で Intel AX200 Wi-Fi を使う」にて

・限定的にM.2 SATA SSD(M-key)

2023/01/07時点ではOrange Pi 純正Ubuntu/Debianで使える手法ですが、microSDからLinuxを起動したあと、ssd-sataというkernelモジュールを読み込むことでM.2 SATA SSDを利用することができるようになります。

詳細「Orange Pi 5でデータディスクとしてならM.2 SATAも使える

2022/12/23に中国サイトでのみリリースされてたAndroidイメージではM.2 SATAから起動できるイメージなるものがありました。(いま気がついたのでダウンロード中です)

中国サイトのマニュアルにLinux/AndroidでM.2 SATA SSDから起動するための手順が書かれていました。
詳細「Orange Pi 5でAndroid/Linux共にM.2 SATA SSDから起動できるようになった

microSD起動とM.2 SSD起動の切り替え

microSDとM.2 SSDを両方入れている場合にどちらを優先するか、というあたりはnand領域に書き込んで設定しているようです。

どちらかしかさしていない状態であれば、さしているデバイスから起動するようになっているようです。

このため、うちではM.2 NVMe SSDから起動するように設定した後、他のOS環境を試す際は、一度M.2にさしたSSDを取り外して、microSDのみにして起動しています。

M.2 NVMe SSD起動とM.2 SATA SSD起動の切り替え

「Androidを書き込んだM.2 NVMe SSD」と「Androidを書き込んだM.2 SATA SSD」をさしなおして環境をかえられるかな?とやってみましたが、無理でした。

SPIFlashの内容を書き換えないと駄目なようですが、RKDevToolで自動化されている作業を手動でできるのかが不明です。

なお、RKDevToolを使って、M.2 SSDをフォーマット/書き換えすれば切り替え自体はできました。

Linuxについて

Orange Pi純正のUbuntu/Debianの他に、2022年末にarmbianのベータ版公開が始まりました。

Orange Pi純正は2023年1月にも更新されてv1.0.8(年末はv1.0.6だった)になっていますが、v1.0.6からv1.0.8相当にアップデートする手法がわからない、というのが難点です。

GPUドライバがない件

2023/01/07時点ではOrange Pi純正もarmbianも初期設定では、ソフトウェア処理となっていて、SoCに含まれているGPUが有効活用されていません。

Panfrost GPU driverを適用するとSoCのGPUが活用できます。

Orange Pi 5純正のUbuntuのGPU表示を高速化できるのか?」で試したのですが、確かに数値としては速くなったものの全体的な動きに問題がありました。

armbianの方は、armbianのページにかかれている解説の通りに実行するこで組み込み正常動作はするのですが、あまり変化がなく微妙でした・・・

また、2023/01/03リリースの Orangepi5_1.0.8_ubuntu_jammy_desktop_xfce_linux5.10.110.img で起動した際、初期状態の /etc/chromium-browser/default に対して「CHROMIUM_FLAGS=”-use-gl=egl”」という変更を加えたところ、それだけで、chromiumブラウザ上でのWebアクアリウムがfps:3からfps:60に改善されるという状況に・・・

2023/01/07時点ではGPU周りはまだ混沌としている感じです。

Androidについて

2023/01/07時点で公式から配布されているAndroidイメージにはGoogle Playは含まれていません。
→「Orange Pi 5をAndroid 12で動かす

中国サイトにあるOrange Pi OS(Droid)にも含まれていませんでした。
→「Orange Piの中国サイトからだとOrange Pi OS(Droid)が入手できる

じゃあ、Google Playが使えないか、というとそうでもなくて、Androidの開発者向けオプションにあるDSU Loader機能を使うとなんとか使えるようになる、というのを発見しました。
→「Orange Pi 5用Android 12からGSIイメージの汎用Androidを起動する

また、Orange Piの中国サイトで2022/12/23にリリースされたAndroidイメージはM.2 SATA SSDから起動できるものがあるようです。(いま気がついたのでダウンロード中です…)

ためした限りではAndroid部分はWiringOPというGPIO関連のテストを行うアプリが追加されていましたが、それ以外はあまり差がないようでした。


Orange Pi 5でAndroid/Linux共にM.2 SATA SSDから起動できるようになった

$
0
0

Orange Pi 5の中国語DownloadページのAndroid镜像リンクをたどってみたところ、SPIFlash-SATA SSDというディレクトリが・・・

え?と思って、ダウンロードしてRKDevToolを使って書き込みを試して見るも「Switch into SATA storage Fail, did not support to switch in」というエラーで成功しない。

改めて中国ページの官方工具にあるマニュアルを確認してみると「OrangePi_5_RK3588S_用户手册_v0.7.pdf」と英語ページにあるマニュアルよりだいぶバージョンが上がっている。

ただ、M.2 SATA SSDからAndroidを起動する場合の書き込み手順について違う点はなく、原因は不明・・・

(注:最終的にはLinux側でSPIFlashを書き換えるとAndroidの書き込みが成功するようになりました。)

LinuxをM.2 SATA SSDから起動

その他にないかマニュアルを読み直すとM.2 SATA SSDからLinuxを起動する手順が掲載されているので、そちらを試行してみた。

マニュアル上の重要なポイントは以下

実際にやってみる。

まずSPIFlashの書き換えに使うファイルを確認

orangepi@orangepi5:~$ ls -ld /usr/share/orangepi*
drwxr-xr-x 2 root root 4096 Dec 22 19:36 /usr/share/orangepi
drwxrwxr-x 2 root root 4096 Dec 12 17:58 /usr/share/orangepi5
orangepi@orangepi5:~$ ls -l /usr/share/orangepi
total 4
-rw-r--r-- 1 root root 3269 Dec 22 19:34 boot.cmd
orangepi@orangepi5:~$ ls -l /usr/share/orangepi5/
total 16384
-rw-rw-r-- 1 root root 16777216 Dec 12 17:58 rkspi_loader_sata.img
orangepi@orangepi5:~$

SPIFlashを書き換えます。

orangepi@orangepi5:~$ sudo dd if=/usr/share/orangepi5/rkspi_loader_sata.img of=/dev/mtdblock0
[sudo] password for orangepi:
32768+0 records in
32768+0 records out
16777216 bytes (17 MB, 16 MiB) copied, 244.953 s, 68.5 kB/s
orangepi@orangepi5:~$

現状のM.2 SATA SSD上のブートローダ、パーテーションをddでzeroを書き込んで消します。

orangepi@orangepi5:~$ sudo dd bs=1M if=/dev/zero of=/dev/sda count=2000 status=progress
1754267648 bytes (1.8 GB, 1.6 GiB) copied, 2 s, 877 MB/s
2000+0 records in
2000+0 records out
2097152000 bytes (2.1 GB, 2.0 GiB) copied, 5.5852 s, 375 MB/s
orangepi@orangepi5:~$
orangepi@orangepi5:~$ sudo fdisk -l /dev/sda
Disk /dev/sda: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: WT M.2 512G
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
orangepi@orangepi5:~$

次にmicroSD上にコピーしておいたLinuxイメージをM.2 SATA SSDに書き込みます。

orangepi@orangepi5:~$ sudo dd if=Orangepi5_1.0.8_ubuntu_jammy_desktop_xfce_linux5.10.110.img of=/dev/sda bs=1M status=progress
8129609728 bytes (8.1 GB, 7.6 GiB) copied, 119 s, 68.3 MB/s
7800+0 records in
7800+0 records out
8178892800 bytes (8.2 GB, 7.6 GiB) copied, 121.861 s, 67.1 MB/s
orangepi@orangepi5:~$

書き込み完了後のパーテーションはこのようになります

orangepi@orangepi5:~$ sudo sync
orangepi@orangepi5:~$ sudo fdisk -l /dev/sda
GPT PMBR size mismatch (15974399 != 1000215215) will be corrected by write.
The backup GPT table is not on the end of the device.
Disk /dev/sda: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: WT M.2 512G
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 58FCCC02-859A-5041-ADA7-14802AADF341

Device      Start      End  Sectors  Size Type
/dev/sda1   61440   585727   524288  256M Linux extended boot
/dev/sda2  585728 15974366 15388639  7.3G Linux filesystem
orangepi@orangepi5:~$

書き込んだM.2 SATA SSDの/dev/sda1 にあるorangepiEnv.txtを書き換えるためにマウントします。

orangepi@orangepi5:~$ sudo mount /dev/sda1 /mnt
orangepi@orangepi5:~$ df -h /mnt
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       256M   95M  162M  37% /mnt
orangepi@orangepi5:~$ ls -l /mnt
total 96104
-rwxr-xr-x 1 root root   230456 Dec 22 19:39 boot.bmp
-rwxr-xr-x 1 root root     3269 Dec 22 19:34 boot.cmd
-rwxr-xr-x 1 root root     3341 Dec 22 19:51 boot.scr
-rwxr-xr-x 1 root root   215221 Dec 22 18:24 config-5.10.110-rockchip-rk3588
drwxr-xr-x 3 root root     4096 Dec 22 19:36 dtb
drwxr-xr-x 3 root root     4096 Dec 22 19:36 dtb-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 33915392 Dec 22 18:24 Image
-rwxr-xr-x 1 root root 11119990 Dec 22 19:54 initrd.img-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root      154 Dec 22 19:51 orangepiEnv.txt
-rwxr-xr-x 1 root root     1542 Dec 22 19:48 orangepi_first_run.txt.template
-rwxr-xr-x 1 root root  7853912 Dec 22 18:24 System.map-5.10.110-rockchip-rk3588
-rwxr-xr-x 1 root root 11120054 Dec 22 19:54 uInitrd
-rwxr-xr-x 1 root root 33915392 Dec 22 18:24 vmlinuz-5.10.110-rockchip-rk3588
orangepi@orangepi5:~$

orangepiEnv.txtの最後に「overlays=ssd-sata」を追加します。

orangepi@orangepi5:~$ sudo cp /mnt/orangepiEnv.txt /mnt/orangepiEnv.txt.org
orangepi@orangepi5:~$ sudo vi /mnt/orangepiEnv.txt
orangepi@orangepi5:~$ cat /mnt/orangepiEnv.txt
verbosity=1
bootlogo=true
overlay_prefix=rk3588
fdtfile=rockchip/rk3588s-orangepi-5.dtb
rootdev=UUID=5ead0754-b05b-4f29-8170-b0620e7ae6d2
rootfstype=ext4
overlays=ssd-sata
orangepi@orangepi5:~$

書き込んだらumount

orangepi@orangepi5:~$ sudo umount /mnt
orangepi@orangepi5:~$

このあと、microSDを抜いて、M.2 SATA SSDのみで電源を入れると、M.2 SATA SSDから起動しました。

orangepi@orangepi5:~$ sudo fdisk -l /dev/sda
Disk /dev/sda: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: WT M.2 512G
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 58FCCC02-859A-5041-ADA7-14802AADF341

Device      Start       End   Sectors   Size Type
/dev/sda1   61440    585727    524288   256M Linux extended boot
/dev/sda2  585728 990183423 989597696 471.9G Linux filesystem
orangepi@orangepi5:~$

Android再挑戦

Linux側でSPIFlashを書き換えたあとであれば成功するかな?と試してみたところ、これまで失敗していたところで問題無く終了し、書き込みが実行されるようになりました。

なお、起動したAndroidは、WiringOPアプリが追加されている以外はあまり違いがないような感じでした。

Orange Pi 5でChromium OS(openFyde)を動かす

$
0
0

Orange Pi 5のCPUパワーがあればChrome OSが動くんじゃないかと検索してみると、Chromium OSベースのFydeOSのオープンソース版openFydeOrange Pi 5向け移植があるのを発見した。

なんと5日前に最初のコードが公開されて、3日前にイメージファイルが公開されたばかりというもの。

ChromiumOSはディスクI/Oが多いのでmicroSD起動ではなく、M.2 NVMe SSDかM.2 SATA SSDで使うことを推奨されている。

とりあえず、M.2 SATA SSDに書き込んで見ます。

orangepi@orangepi5:~$ ls
Desktop    Downloads  Orangepi5_1.1.0_ubuntu_jammy_desktop_xfce_linux5.10.110.img  Pictures  Templates
Documents  Music      orangepi5-openfyde-r102.img                                  Public    Videos
orangepi@orangepi5:~$ sudo dd if=orangepi5-openfyde-r102.img of=/dev/sda bs=4M conv=fdatasync status=progress
6933184512 bytes (6.9 GB, 6.5 GiB) copied, 16 s, 433 MB/s
1766+1 records in
1766+1 records out
7407221248 bytes (7.4 GB, 6.9 GiB) copied, 19.8569 s, 373 MB/s
orangepi@orangepi5:~$ sudo fdisk -l /dev/sda
GPT PMBR size mismatch (14467228 != 1000215215) will be corrected by write.
The backup GPT table is not on the end of the device.
Disk /dev/sda: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: Kingchuxing 512G
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 0A2133E6-2262-584F-8E41-66BED45870B0

Device       Start      End Sectors  Size Type
/dev/sda1  6078464 14467180 8388717    4G Linux filesystem
/dev/sda2    69632   135167   65536   32M ChromeOS kernel
/dev/sda3   499712  6078463 5578752  2.7G ChromeOS root fs
/dev/sda4   135168   200703   65536   32M ChromeOS kernel
/dev/sda5   495616   499711    4096    2M ChromeOS root fs
/dev/sda6    65600    65600       1  512B ChromeOS kernel
/dev/sda7    65601    65601       1  512B ChromeOS root fs
/dev/sda8   200704   233471   32768   16M Linux filesystem
/dev/sda9    65602    65602       1  512B ChromeOS reserved
/dev/sda10   65603    65603       1  512B ChromeOS reserved
/dev/sda11      64    65599   65536   32M unknown
/dev/sda12  364544   495615  131072   64M EFI System

Partition table entries are not in disk order.
orangepi@orangepi5:~$

ちなみにAndroidを書き込んだ場合は下記の様なパーテーション構成だったので、似た構成ではある、ってところですね。

orangepi@orangepi5:~$ sudo fdisk -l /dev/sda
Disk /dev/sda: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: Kingchuxing 512G
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1B040000-0000-4531-8000-2CDC00004E46

Device       Start        End   Sectors  Size Type
/dev/sda1     8192      16383      8192    4M unknown
/dev/sda2    16384      28671     12288    6M unknown
/dev/sda3    28672      36863      8192    4M unknown
/dev/sda4    36864      45055      8192    4M unknown
/dev/sda5    45056      53247      8192    4M unknown
/dev/sda6    53248      55295      2048    1M unknown
/dev/sda7    55296     137215     81920   40M unknown
/dev/sda8   137216     333823    196608   96M unknown
/dev/sda9   333824    1120255    786432  384M unknown
/dev/sda10 1120256    1906687    786432  384M unknown
/dev/sda11 1906688    1939455     32768   16M unknown
/dev/sda12 1939456    1941503      2048    1M unknown
/dev/sda13 1941504    8314879   6373376    3G unknown
/dev/sda14 8314880 1000215151 991900272  473G unknown
orangepi@orangepi5:~$

つづいて、今回はM.2 SATA SSDなので、ssd-sataドライバを読み込ませる設定をします。

ただ、/dev/sda1をマウントして stateful_partition/unencrypted に Env.txt を作る、とあるのにディレクトリがない?

orangepi@orangepi5:~$ sudo mount /dev/sda1 /mnt
orangepi@orangepi5:~$ ls /mnt
dev_image  lost+found  unencrypted  var_overlay  vmlinuz_hd.vblock
orangepi@orangepi5:~$ ls /mnt/unencrypted/
import_extensions
orangepi@orangepi5:~$ ls /mnt/stateful_partition/unencrypted
ls: cannot access '/mnt/stateful_partition/unencrypted': No such file or directory
orangepi@orangepi5:~$

とりあえず書いてあるコマンドを実行してみる

orangepi@orangepi5:~$ echo overlays=ssd-sata | sudo tee /mnt/stateful_partition/unencrypted/Env.txt
tee: /mnt/stateful_partition/unencrypted/Env.txt: No such file or directory
overlays=ssd-sata
orangepi@orangepi5:~$ cat /mnt/stateful_partition/unencrypted/Env.txt
cat: /mnt/stateful_partition/unencrypted/Env.txt: No such file or directory
orangepi@orangepi5:~$

まあ、エラーになりますね

stateful_partitionは不要なのかな?と削った /mnt/unencrypted/Env.txt でファイルを作ってみた。

orangepi@orangepi5:~$ echo overlays=ssd-sata | sudo tee /mnt/unencrypted/Env.txt
overlays=ssd-sata
orangepi@orangepi5:~$ cat /mnt/unencrypted/Env.txt
overlays=ssd-sata
orangepi@orangepi5:~$

また、再起動前にmtdblock0にSATA用イメージを書き込みます。

orangepi@orangepi5:~$ sudo dd if=/usr/share/orangepi5/rkspi_loader_sata.img of=/dev/mtdblock0 status=progress
13894144 bytes (14 MB, 13 MiB) copied, 1 s, 13.9 MB/s
32768+0 records in
32768+0 records out
16777216 bytes (17 MB, 16 MiB) copied, 246.949 s, 67.9 kB/s
orangepi@orangepi5:~$

で、Linuxをshutdown してから、microSDを抜き、電源を入れると、openFydeが起動しました。

Fyde OSのオリジナルアカウントかGoogleアカウントでログインすることができます。

Googleアカウントでログインする場合は、普通のChrome OSと同じようにセットアップしていきます。

セットアップが終わるとまあ、普通のChromeOSです

Linux環境も使えます。

ブラウザでWebアクアリウムを動かしてみると10000匹でfps:38となかなかいい感じで動いている。この値はUbuntuでGPU有効で動かした場合より良いものになっている。

また、youtube再生した場合の動作も、openFydeで動かした方がよい感じになっている。

音声再生もきちんと動いている。

ブラウザで日本語入力を試みたところ、日本語入力モードへの切り替えはできたのですが、変換機能がうまく動いていないようで…

いや、ブラウザのURL入力欄では日本語入力ができないだけでした。

FydeOS App Storeを開くと「Android apps」という項目があるのですが、どういうチョイスかよくわからないものがインストールできるようです。

NetAppでデータSVMにsshの管理アクセスできるようにする

$
0
0

NetAppでファイルサービスを提供するデータSVMにsshで管理アクセスできるようにしてくれ、という要望があった。

普通にマネージメントLIFの管理WebからデータSVMに対して、sshユーザアクセス可能なユーザを追加してみたけど、sshでアクセスできるようになるわけではなかった。

データアクセス用のLIFに対してsshサービスが許可されていないからかな?と思って network interface service-policy の下を見てみるとshowしかなく変更ができないっぽい?

netapp9101::> network interface service-policy ?
  show                        Display existing service policies

netapp9101::>

とりあえず現状のservice-policy定義を見てみる

netapp9101::> network interface service-policy show
Vserver   Policy                     Service: Allowed Addresses
--------- -------------------------- ----------------------------------------
Cluster
          default-cluster            cluster-core: 0.0.0.0/0

netapp9101
          default-intercluster       intercluster-core: 0.0.0.0/0
                                     management-https: 0.0.0.0/0
                                     backup-ndmp-control: 0.0.0.0/0

          default-management         management-core: 0.0.0.0/0
                                     management-autosupport: 0.0.0.0/0
                                     management-ssh: 0.0.0.0/0
                                     management-https: 0.0.0.0/0
                                     management-ems: 0.0.0.0/0
                                     management-ntp-client: 0.0.0.0/0
                                     management-http: 0.0.0.0/0
                                     backup-ndmp-control: 0.0.0.0/0
                                     management-snmp-server: 0.0.0.0/0
                                     management-ntp-server: 0.0.0.0/0

          default-route-announce     management-bgp: 0.0.0.0/0

svm0
          default-data-blocks        data-core: 0.0.0.0/0
                                     data-iscsi: 0.0.0.0/0

          default-data-files         data-core: 0.0.0.0/0
                                     data-nfs: 0.0.0.0/0
                                     data-cifs: 0.0.0.0/0
                                     data-flexcache: 0.0.0.0/0
                                     data-fpolicy-client: 0.0.0.0/0
                                     data-dns-server: 0.0.0.0/0

          default-data-iscsi         data-core: 0.0.0.0/0
                                     data-iscsi: 0.0.0.0/0

          default-data-nvme-tcp      data-core: 0.0.0.0/0
                                     data-nvme-tcp: 0.0.0.0/0

          default-management         data-core: 0.0.0.0/0
                                     management-ssh: 0.0.0.0/0
                                     management-https: 0.0.0.0/0
                                     data-dns-server: 0.0.0.0/0
                                     management-http: 0.0.0.0/0
                                     backup-ndmp-control: 0.0.0.0/0
                                     management-snmp-server: 0.0.0.0/0
netapp9101::>

LIF のサービスポリシーを設定」を見るとadvanced権限であれば変更できるらしい

とりあえずsvm0の「default-data-files」に「management-ssh」を追加してみた。

netapp9101::> set advanced

Warning: These advanced commands are potentially dangerous; use them only when
         directed to do so by NetApp personnel.
Do you want to continue? {y|n}: y

netapp9101::*> network interface service-policy add-service -vserver svm0 -policy default-data-files -service management-ssh

netapp9101::*> 

変更した結果が反映されているかを確認

netapp9101::*> network interface service-policy show -vserver svm0 -policy default-data-files

                   Vserver: svm0
               Policy Name: default-data-files
         Included Services: data-core, data-nfs, management-ssh,
                            data-fpolicy-client, data-dns-server
Service: Allowed Addresses: data-core: 0.0.0.0/0
                            data-nfs: 0.0.0.0/0
                            management-ssh: 0.0.0.0/0
                            data-fpolicy-client: 0.0.0.0/0
                            data-dns-server: 0.0.0.0/0

netapp9101::*>

これでsvmのデータLIFにsshでログインできるようになった

ONTAP Antivirus Connector の接続ステータス確認方法

$
0
0

ONTAP Antivirus Connector でONTAPとアンチウイルスソフトを連携させる場合に、ONTAPからの接続ステータス確認手法がいまいちよく分からなかったのでメモ書き。

基本的な接続状況確認コマンド

「vserver vscan connection-status show-all」で確認する。

netappcluster::> vserver vscan connection-status show-all
                                              Connection
Vserver     Node              Server          Status         Disconnect Reason
----------- ----------------- --------------- -------------- -----------------
svm0        netapp01         192.168.10.110   disconnected   remote-closed
svm0        netapp01         192.168.10.111   connected      na
svm0        netapp01         192.168.10.112   connected      na
svm0        netapp01         192.168.10.113   connected      na
svm0        netapp02         192.168.10.110   disconnected   -
svm0        netapp02         192.168.10.111   disconnected   -
svm0        netapp02         192.168.10.112   disconnected   -
svm0        netapp02         192.168.10.113   disconnected   -
8 entries were displayed.

netappcluster::>

上記の場合、ONTAP Antivirus Connectorがインストールされていて、接続設定されているのは、「192.168.10.110~192.168.10.113」の4台あって、そのうち、192.168.10.110の1台だけ接続できてない、という状態となっている。

「Disconnect Reason」に「remote-closed」とあるため、NetAppと192.168.10.110間の通信は行えるものの192.168.10.110側で接続を切断している、という意味合いとなるようだ。

詳細ログ確認

上記の「remote-closed」だけだと詳細が分からない。

詳細ログはadvanced権限でみれるようになっているため、権限切り替えした上で「vserver vscan show-events」を実行する。

なお、「rows 0」を実行して24行で止める設定を解除している場合、その時に出ているイベントが全件強制表示されてしまうため「rows 24」などで画面を止めるように設定しておくことを推奨。


netappcluster::> set adv

Warning: These advanced commands are potentially dangerous; use them only when
         directed to do so by NetApp personnel.
Do you want to continue? {y|n}: y

netappcluster::*>

netappcluster::*> vserver vscan show-events

Vserver     Node            Server          Event Type        Event Time
----------- --------------- --------------- ----------------- -----------------
svm0        netapp01        192.168.10.110  scanner-          1/31/2023
                                            disconnected      18:05:37
svm0        netapp01        192.168.10.110  scanner-connected 1/31/2023
                                                              18:01:45
<略>

上記では簡単な理由しかわからないので「-ins」オプションを付けて実行

ossv0059::*> vserver vscan show-events -ins

                           Node: netapp01
                 Event Log Time: 1/31/2023 18:05:37
                         Server: 192.168.10.110
                     Event Type: scanner-disconnected
                      File Path: -
                Vscanner Vendor: -
               Vscanner Version: -
       Server Disconnect Reason: remote-closed
Vserver LIF Used for Connection: 192.168.10.10

                           Node: netapp01
                 Event Log Time: 1/31/2023 18:01:45
                         Server: 192.168.10.110
                     Event Type: scanner-connected
                      File Path: -
                Vscanner Vendor: vendor not registered
               Vscanner Version: 0.0
       Server Disconnect Reason: -
Vserver LIF Used for Connection: 192.168.10.10
<略>

remote-closedとなる前に「scanner-connected」の時に、「Vscanner Vendor: vendor not registered」という怪しげなステータスとなっている。

じゃあ、各サーバとの接続状態でこの「Vscanner Vendor」の情報を確認する手法はあるか確認するとvscan connection-status で取得出来る情報の中にあった。

「vserver vscan connection-status show-all -fields version,vendor,server-status,connected-since」を実行する

netappcluster::> vserver vscan connection-status show-all -fields version,vendor,server-status,connected-since
node     vserver  server         server-status vendor                     version     connected-since
-------- -------- -------------- ------------- -------------------------- ----------- ------------------
svm0     netapp01 192.168.10.110 disconnected  vendor not registered      0.0         -
svm0     netapp01 192.168.10.111 connected     symantec protection engine 20230130.19 1/31/2023 17:34:33
svm0     netapp01 192.168.10.112 connected     symantec protection engine 20230130.19 1/31/2023 17:35:20
svm0     netapp01 192.168.10.113 connected     symantec protection engine 20230130.19 1/31/2023 17:35:25
svm0     netapp02 192.168.10.110 disconnected  -                          -           -
svm0     netapp02 192.168.10.111 disconnected  -                          -           -
svm0     netapp02 192.168.10.112 disconnected  -                          -           -
svm0     netapp02 192.168.10.113 disconnected  -                          -           -
8 entries were displayed.

netappcluster::>

remote-closedとなっているサーバ以外は正常な製品名と、おそらくパターンファイルのバージョンっぽいのが表示されている。

disconnectedとなっている 192.168.10.110サーバ上で動作しているONTAP Antivirus connectorとアンチウイルスソフト間の通信に問題があり、ONTAP Antivirus connector側で情報がきちんと取得されていないために発生している、ということのようだった。

ドコモのらくらくスマートフォン ユーザについての設定確認でやったこと

$
0
0

まあ、実家から、ドコモのらくらくスマートフォン F-52Bを自宅のWiFi環境に繋いでからメールが取れなくなってる、というレスキュー要請があったので見に行った。

その際に、いまのアカウント情報とか聞いて見たんだが、そういうのは店の人にやってもらった、というのだが、アカウントに関する資料をもらっていなかった模様。

これは積んだかな?と思いつつ調べていったらなんとかなったのでメモ書きとして残しておく

まず、これだけは最低必要なことは以下の2つ

・スマホをドコモのSPモード接続で使うこと(WiFiでは駄目)
・ドコモのネットワーク暗証番号(数字4桁)が分かっていること

この状態であれば、スマホからdメニューをたどっていくことで、以下を調べることができる。

・dアカウント名
・dアカウントのパスワード(画面に表示されます)
・IMAP接続用ユーザ名
・IMAP接続用パスワード

Googleアカウントについては、gmailの画面などからメールアドレスを確認することができるかと思います。

パスワードは、まずは、dアカウントのパスワードと同じものを入力して通るか確認します。

通らなかった場合は、パソコンなどからgmailにアクセスし、Googleのメールアドレスを入力して、「パスワード不明」を選び、パスワードの再設定を行います。

そうすると、スマホ側に確認がくるので、はい、と答えると、パソコン側でパスワードの再設定ができるようになるので、新しいパスワードを設定します。

これでなんとかアカウントに関する情報を調べることができました。

で・・・冒頭のメールが取れない、という件は、SPモードメールはdアカウントの登録がちゃんとされていないとWiFi経由で取得出来ないから、という話だったようでした。

なので、dアカウントに関する設定を行うことで、メールは復旧しました。

WiFi/Bluetooth搭載のOrange Pi 5Bが登場する?

$
0
0

Orange Pi 公式のビルドスクリプト の最近の更新に「Update for Orange Pi 5 v1.1.2 and support Orange Pi 5B」というのがあった

内容を確認すると

options+=("orangepi5"                 "Rockchip  RK3588S octa core 4-16GB RAM GBE USB3 USB-C NvME")
#options+=("orangepi5b"                 "Rockchip  RK3588S octa core 4-16GB RAM GBE USB3 USB-C WiFi/BT")

とある。

M.2スロットが削除され、WiFi/Bluetoothが搭載されている、ということになっている。

最初の発表の時に出てたスペックがOrange Pi 5Bとして登場してくるようだ

価格がどれくらいの違いがでるのかちょっと気になりますね

Lifebook U938/SやMU937のバッテリーについてのメモ

$
0
0

ほぼ同型であるLiebook U938/SとFUTRO MU937を入手して、いろいろ資料を調べていると、「大容量バッテリー」というものが存在しているらしい、というのを知る

うちにあるジャンク屋で買ったLifebook U938/Sのバッテリーはこんな感じ

FUTRO MU937の1台目はこう

実家にもっていったFUTRO MU937の2台目の方はこう

どちらも同じサイズで、「容量min 3310mAh」とでかく書いてあったので、これが標準サイズなのかと勘違いしていた。

で・・・検索で見つけた「富士通LIFEBOOK U938/S メモリ増設・SSD交換してみた」に掲載されている写真・・・

富士通LIFEBOOK U938/S メモリ増設・SSD交換してみた より引用

そう、標準サイズは同じく「容量 min 3310mAh」とかいてあるけど、あからさまにサイズが小さかったのです。

で・・・バッテリーに書いてある文面を確認してみると、同じ大きさにみえるMU937とLifebook U938/Sのバッテリーでしたが、Lifebookと2台目のMU937は14.4V構成と強力なものでした。

どおりで、1台目のMU937よりバッテリーが減らないわけですね

ノート機種富士通型番富士通P/NProduct No
ジャンクMU937 1台目(Win10 LTSB 2015版)FPB0339SP/N:CP749819-01FPCBP5357.2V 25Wh 3490mAh
ジャンクMU937 2台目
(Win10 LTSB 2016版)
FPB0340SP/N:CP749820-01FPCBP53614.4V 50Wh 3490mAh
ジャンクLifebook U938/SFPB0340SP/N:CP749820-01FPCBP53614.4V 50Wh 3490mAh
標準Liebook U938/SFPB0343S ?P/N:CP749821-01FPCBP544 ?7.2V 25Wh 3490mAh

7.2V 25WhバッテリーのMU937

14.4V 50WhのU938/S


ONTAPのCIFSファイルサーバで複数のホスト名でアクセスできるようにしたい

$
0
0

ONTAPでCIFSファイルサーバを作る時、本来のホスト名とは違うホスト名でもアクセスできるようにしておきたい、ということがある。

(サーバ統合で2台が1台になるけど、どちらでも使える様にした、など)

NetAppの標準設定では、SVMをActive Directoryに参加させる際に指定したNetBIOS名とIPアドレスでのアクセス以外は受け付けないようになっている。

例えば、下記の様に「システムエラー 59」「予期しないネットワーク エラーが発生しました。」といったエラーが出力される。

C:\Users\Administrator>net use \\winserver\testvol
\\winserver\testvol のパスワードが無効です。

'winserver' のユーザー名を入力してください: ADOSAKANA\testuser1
winserver のパスワードを入力してください:
システム エラー 59 が発生しました。

予期しないネットワーク エラーが発生しました。


C:\Users\Administrator>

SVMの設定を確認すると下記の様になっている。

netapp9101::> vserver cifs show -ins
                                          Vserver: svm0
                         CIFS Server NetBIOS Name: SVM0
                    NetBIOS Domain/Workgroup Name: ADOSAKANA
                      Fully Qualified Domain Name: ADOSAKANA.LOCAL
                              Organizational Unit: CN=Computers
Default Site Used by LIFs Without Site Membership:
                                   Workgroup Name: -
                             Authentication Style: domain
                CIFS Server Administrative Status: up
                          CIFS Server Description:
                          List of NetBIOS Aliases: -
 netapp9101::>

上記の場合、「svm0」とIPアドレス指定でのアクセス以外は受け付けない。

他のホスト名でもアクセスできるようにするにはNetBIOS Aliasを追加する必要がある。

(なお、別途、標準では無効となっているNetBIOSを有効にする必要がある。ただし、これを有効にした場合、NetApp SVM名と同じNetBIOS名の告知も始めてしまうので注意)

netapp9101::> vserver cifs add-netbios-aliases -netbios-aliases WINSERVER -vserver svm0
netapp9101::> vserver cifs show -ins
                                          Vserver: svm0
                         CIFS Server NetBIOS Name: SVM0
                    NetBIOS Domain/Workgroup Name: ADOSAKANA
                      Fully Qualified Domain Name: ADOSAKANA.LOCAL
                              Organizational Unit: CN=Computers
Default Site Used by LIFs Without Site Membership:
                                   Workgroup Name: -
                             Authentication Style: domain
                CIFS Server Administrative Status: up
                          CIFS Server Description:
                          List of NetBIOS Aliases: WINSERVER
 netapp9101::>

さて、これでアクセスできるようになったかな?と試してみるが、同じエラーが継続

C:\Users\Administrator>net use \\winserver\testvol
\\winserver\testvol のパスワードが無効です。

'winserver' のユーザー名を入力してください: ADOSAKANA\testuser1
winserver のパスワードを入力してください:
システム エラー 59 が発生しました。

予期しないネットワーク エラーが発生しました。


C:\Users\Administrator>

NetApp KB:Access by NETBIOS Alias fails に該当する問題だった。

今回のADOSAKANAドメインには、既に「WINSERVER」としてコンピュータアカウントがあった。

これが残っていると問題が発生するらしい。

まず、Windows上からコンピュータアカウントWINSERVERに関する情報をsetspn -lコマンドで確認すると下記の様な内容で登録されていた。

C:\Users\Administrator>setspn -l winserver
次の項目に登録されている CN=WINSERVER,CN=Computers,DC=ADOSAKANA,DC=LOCAL:
        HOST/winserver.adosakana.local
        RestrictedKrbHost/winserver.adosakana.local
        HOST/WINSERVER
        RestrictedKrbHost/WINSERVER
        WSMAN/winserver.adosakana.local
        WSMAN/WINSERVER
        TERMSRV/winserver.adosakana.local
        TERMSRV/WINSERVER

C:\Users\Administrator>

次に、NetApp SVMとして登録されているsvm0について確認してみると、だいぶ少ない内容で登録されていた。

C:\Users\Administrator>setspn -l svm0
次の項目に登録されている CN=SVM0,CN=Computers,DC=ADOSAKANA,DC=LOCAL:
        HOST/SVM0
        HOST/svm0.adosakana.local

C:\Users\Administrator>

まず、WindowsのActive Directgory側でコンピュータアカウント「WINSERVER」を削除。

続いてNetApp KBにあるようにsetspn -aコマンドでWINSERVERをsvm0に追加する形で登録

C:\Users\Administrator>setspn -a HOST/WINSERVER svm0
ドメイン DC=ADOSAKANA,DC=local を確認しています

CN=SVM0,CN=Computers,DC=ADOSAKANA,DC=LOCAL の ServicePrincipalNames を登録しています
        HOST/WINSERVER
更新されたオブジェクト

C:\Users\Administrator>

どのような登録になったのかを確認してみると、svm0の出力にwinserverが追加されており、winserverというエントリは無くなったことが分かる。

C:\Users\Administrator>setspn -l svm0
次の項目に登録されている CN=SVM0,CN=Computers,DC=adosakana,DC=local:
        HOST/SVM0
        HOST/svm0.adosakana.local
        HOST/WINSERVER

C:\Users\Administrator>setspn -l winserver
FindDomainForAccount: DsGetDcNameWithAccountW への呼び出しが失敗し、戻り値 0x00000525 が返されました
アカウント winserver は見つかりませんでした

C:\Users\Administrator>

この状態で先ほどエラーになったnet useコマンドを実行すると、正常に実行ができる。

C:\Users\Administrator>net use \\winserver\testvol
\\winserver\testvol のパスワードが無効です。

'winserver' のユーザー名を入力してください: adosakana\testuser1
winserver のパスワードを入力してください:
コマンドは正常に終了しました。


C:\Users\Administrator>

PowerShellから直接ssh接続でNetAppにログインして設定情報を取得してCSV化するスクリプト

$
0
0

先日「NetAppの設定内容をcsvファイルに出力したい」という記事で手動でやる手法について記載した。

最近のWindowsだと直接sshコマンドが実行できるようになっているので、NetApp側に公開鍵を登録して、パスワードなしでアクセスできるように設定した上で、PowerShellスクリプトを実行することで、設定をスクリプト化できないかを実施してみた。

とりあえず全項目とればいいか、と「-showallfields true」設定でやっているが、下記スクリプトはONTAP 9.10.1の場合のもので、バージョンが異なると全部の項目数が変わる可能性があるので、一度手動で「set -privilege admin -rows 0 -units GB -showallfields true ; vserver cifs share show”」を実行し、出力される項目名を確認しておくこと

# タブ区切りのため `t を指定
$count=0
$flag=0
$results=@()

$results=cmd /c ssh.exe -l admin NetAppクラスタ "set -privilege admin -rows 0 -showseparator `t -units GB -showallfields true ; vserver cifs share show" | ForEach-Object {
    $line=$_.split("`t")
    if(($line[0] -eq "vserver") -and ($flag -eq 0)){
        $flag=1
        $titlecount=$count
    }
    if(($flag -eq 1) -and ($count -gt ($titlecount+1))){
        $output = New-Object -TypeName psobject
        $output | Add-Member -MemberType NoteProperty -Name "vserver" -Value $line[0]
        $output | Add-Member -MemberType NoteProperty -Name "share-name" -Value $line[1]
        $output | Add-Member -MemberType NoteProperty -Name "cifs-server" -Value $line[2]
        $output | Add-Member -MemberType NoteProperty -Name "path" -Value $line[3]
        $output | Add-Member -MemberType NoteProperty -Name "share-properties" -Value $line[4]
        $output | Add-Member -MemberType NoteProperty -Name "symlink-properties" -Value $line[5]
        $output | Add-Member -MemberType NoteProperty -Name "file-umask" -Value $line[6]
        $output | Add-Member -MemberType NoteProperty -Name "dir-umask" -Value $line[7]
        $output | Add-Member -MemberType NoteProperty -Name "comment" -Value $line[8]
        $output | Add-Member -MemberType NoteProperty -Name "acl" -Value $line[9]
        $output | Add-Member -MemberType NoteProperty -Name "attribute-cache-ttl" -Value $line[10]
        $output | Add-Member -MemberType NoteProperty -Name "volume" -Value $line[11]
        $output | Add-Member -MemberType NoteProperty -Name "offline-file" -Value $line[12]
        $output | Add-Member -MemberType NoteProperty -Name "vscan-fileop-profile" -Value $line[13]
        $output | Add-Member -MemberType NoteProperty -Name "max-connections-per-share" -Value $line[14]
        $output | Add-Member -MemberType NoteProperty -Name "force-group-for-create" -Value $line[15]
        $output
    }
    $count++
}

$results | Export-Csv test.csv -Encoding UTF8 -NoTypeInformation  -NoClobber

伊勢神宮 内宮神域にある鏡岩 に行ってみた

$
0
0

昭和の終わりごろ親の転勤のつごうで伊勢市に住んでいた時期がある。

小学校か中学校の遠足で、伊勢神宮内宮から高麗広方面にいく途中にある 鏡岩 というところまで歩いて行く、というものがあった。

いまはどうなってるんだろう?と思って検索してみると、道は整備されておらず荒れているらしい。

実際のところどうなんだろ?と思って、2023年3月5日に行ってみました。

レンタサイクルを借りて内宮宇治橋前から団体バス駐車場を横切って

高麗広への道に突入。

ちなみに、この道。CBCテレビでやっている「道との遭遇」という番組で紹介されたりしています→「険道・三重県伊勢市~度会郡南伊勢町に伊勢神宮から直結の狭すぎる道が!ジャニーズJr.「7 MEN 侍」佐々木くんが険道走る。先行映像公開!

すぐに内宮御手洗場の対岸を通るのですが、木々に遮られて写真としてはうまく撮れず・・・

また、途中にある建設会社の資材置き場の横にある道なんですが

謎の石の飛び橋ルートが見えたりしていました

対岸は広くなっていましたが、いまは何も残っていませんでした

川を渡って広場までいくのを動画で撮ったモノがこちら

帰ってきてから調べて見ると「宮川水系 五十鈴川流域の砂防~伊勢神宮宮域内の砂防~」という三重県の資料で平成3年~6年にかけて施行した「景観に配慮した護岸工」と紹介されていました。

この写真が撮られた時期はまだ田んぼかなにかやってたようですね

進んでいくと、いきなりいままでの細い道が災害復旧で丈夫な感じになってたり・・・

こちらは整備されなくなって石に埋もれつつある旧道

さらにすすんでいくと右側に 水飲み場という標識があります。

ただ、水としては冷たいという感じではありませんでした。

さらに進むとこんな感じで開けた場所に出ます。なにか栽培とかしているようです。

あとで分かるのですが、ここで見える対岸の川原が鏡岩のあたりだったのですが、残念ながらここから川を渡るルートが存在していません。

じゃあ、どこからなら対岸に渡れるのかと言えば、もっと上流にしばらく進んだところにあるこの分岐を下に行きます

降りて橋を渡り・・

橋を渡ってすぐ左側の道を入って、下流側/内宮に向けて歩いて行きます。

途中、倒木があったり

なかなかやばい感じの木橋があったり

というか、これ、もうすぐ折れる予感がします・・・

まあ、折れても下は水がなく、高低差もなんとかなる程度なので渡れますけどね

橋を越えて少しいくと左側にカーブした感じで石垣がある開けた場所がありますが、そこを超えてさらに下流側へ進んでいきます。

しばらく進むと川からちょっと高度があがり、左側に岩が見える出っ張りがあります。

この出っ張りの少し先の下流側に目的地の鏡岩があります。

鏡岩には2つの見るポイントがあります。1つ目

↑の写真の左側にはお社があります。

なんか、明治になるまではこのお隣にもう1つお社があったらしいです。

で、鏡岩と呼ばれるところは↓の右側部分です

上からだとわかりにくいですが、階段があるのでそこを降りて行くことができます

下から見るとこんな感じです。

鏡岩の全体像としてはこんな感じです。

昭和終わりの時点で、どこが鏡???という感想を持っていましたが、そこから30年以上が経過した現時点では、さらにうーん、という感じになっていますね。

かつてはこのあたりがもっと鏡っぽく見えたのかもしれません・・・

下流側の川から鏡岩のある方向を見てみますとこんな感じです。

この写真のどこに鏡岩があるのかというと↓の赤丸の部分です

まあ、見てのとおりに清流感はすごいです。

鏡岩の川側は、ごつごつしていて木もはえてるので見栄えはよくありません。

で・・・ここから下流側を見ると・・・

対岸にひらけたところが見えますね。上から撮った写真に見えたブルーシートっぽい物体も↓にあります。

ここに橋があれば簡単に鏡岩に行けるのに、といった感じの場所でした。

もしかして、災害で山崩れとかがあってこんなにひらけた感じになったのかと思い、伊勢市の「土砂災害ハザードマップ(伊勢市宇治今在家町高麗広地区)」を確認してみましたが、この付近については特に崖崩れの恐れについては触れられていませんでした。

そんなわけで、今回の鏡岩探索は、距離としては片道 6kmぐらいで、今回は自転車移動だったので片道約1時間での旅という感じでした。

現在はまだ木橋が使える状態ですが、恐らくもうすぐ寿命がなくなりそうなのと、夏は草が生えて大変になりそう、というのもあって、なかなか訪問にはツライ場所じゃないかと思います。

10:58 宇治橋前出発
11:05 謎の飛び石橋発見
11:12 出発
11:21 水飲み場
11:24 ひらけたところ(鏡岩対岸。仙人下橋)
11:28 分岐
11:30 自転車を置いて徒歩移動開始
11:32 木橋
11:34 カーブの石垣
11:38 鏡岩到着
12:16 撤収
12:23 カーブの石垣
12:24 木橋
12:28 自転車回収
12:35 ひらけたところ(鏡岩対岸。仙人下橋)
12:40 水飲み場
12:53 宇治橋前

ということで、鏡岩手前から神路山方面を望んだ写真でこの記事を締めさせていただきます。

Rstudio server上でRを使う時に追加しておいた方がいいRHELパッケージのメモ

$
0
0

Rstudio serverをRHEL9上で動かす際にR側でいろいろパッケージを追加する際に必要となるパッケージがあったので、そのメモ

まずは基本

「dnf groupinstall “開発ツール”」で開発ツールをインストール

tidyverseに必要だったもの

install.packages(“tidyverse”) でtidyverseを追加しようとしたら前提となるraggのインストールがfontconfigコマンドが無いことで失敗

→ fontconfig-devel

次のエラーがfribidi was not found in the pkg-config search path

→ fribidi-devel
→ libtiff-devel
→ libjpeg-turbo-devel

Rstudioからpythonを使う際に必要だったもの

Rstudio serverでpythonスクリプトを使う際に、追加パッケージを要求されるが、それが必要としているもの

→ libxml2-devel
→ libcurl-devel
→ libpng-devel

ONTAPをActive Directoryに参加させようとしたら時刻が狂ってて参加失敗した

$
0
0

ONTAPをActive Directoryに参加させようとしたら「Reason: SecD Error: no server available.」でエラーになった。

ontap91::> vserver cifs create -cifs-server newsvm0 -domain adosakana.local -ou CN=Computers

In order to create an Active Directory machine account for the CIFS server, you
must supply the name and password of a Windows account with sufficient
privileges to add computers to the "CN=Computers" container within the
"ADOSAKANA.LOCAL" domain.

Enter the user name: administrator

Enter the password:

Error: Machine account creation procedure failed
  [    91] Loaded the preliminary configuration.
  [   213] Created a machine account in the domain
  [   214] Successfully connected to ip 172.17.44.49, port 445 using
           TCP
  [   249] Encountered NT error (NT_STATUS_MORE_PROCESSING_REQUIRED)
           for SMB command SessionSetup
  [   250] Cluster and Domain Controller times differ by more than
           the configured clock skew (KRB5KRB_AP_ERR_SKEW)
  [   250] Kerberos authentication failed with result: 7537.
  [   258] Encountered NT error (NT_STATUS_MORE_PROCESSING_REQUIRED)
           for SMB command SessionSetup
  [   259] Cluster and Domain Controller times differ by more than
           the configured clock skew (KRB5KRB_AP_ERR_SKEW)
  [   259] Kerberos authentication failed with result: 7537.
  [   259] Unable to connect to LSA service on
           adserver.adosakana.local (Error:
           RESULT_ERROR_KERBEROS_SKEW)
  [   260] No servers available for MS_LSA, vserver: 2, domain:
           adosakana.local.
**[   260] FAILURE: Unable to make a connection (LSA:ADOSAKANA.LOCAL),
**         result: 6940
  [   260] Could not find Windows SID
           'S-1-5-21-937304154-1581684492-536532533-512'
  [   284] Deleted existing account
           'CN=NEWSVM0,CN=Computers,DC=adosakana,DC=local'

Error: command failed: Failed to create the Active Directory machine account
       "NEWSVM0". Reason: SecD Error: no server available.

ontap91::>

古いONTAPがActive Directoryに参加できない」や「ONTAP 9.5でsambaドメインに参加できない & ONTAP 9.7で失敗」の話かな?と思って対処してみるも変わらない

もしかして、と時刻を確認してみると、Active DirstoryサーバとONTAPとの時刻差が3分以上あった。

時計を合わせるとActive Directoryへの参加が成功した。

Viewing all 1111 articles
Browse latest View live