mpdのpulseaudioの設定

H6 TV-boxでmpdクライアントで音楽をかけていましたが、USBオーディオの相性が今一つでなかなかHDMIオーディオから切り替わってくれませんでした。ArchLinuxのウィキに解決方法がありました。

/etc/pulse/default.pa

load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1

/etc/mpd.conf

audio_output {
     type        "pulse"
     name        "My Pulse Output"
     server      "127.0.0.1"
 }

mpdデーモン、pulseaudioをリスタートします。

sudo systemctl restart mpd
pulseaudio --kill

TV-box: Armbian Tanix TX6 (Allwinner H6)バージョンのグラフィックス周りの調整

ビデオ周りが遅いので改善してみることにしました。まず、mali-midgard-dkmsをインストールしてみましたがビルドできません。LibreELECではビルドできているのでこれはおかしいと思い、LibreELECリポジトリからビルドしてみました。

cd /usr/src
PKG_VERSION="fe58463f54e3d8b204bae7e0292a054f583cc0f7"
PKG_URL="https://github.com/LibreELEC/mali-midgard/archive/${PKG_VERSION}.tar.gz"
wget $PKG_URL
tar xzvf ${PKG_VERSION}.tar.gz
cd /usr/src/mali-midgard-fe58463f54e3d8b204bae7e0292a054f583cc0f7/driver/product/kernel/drivers/gpu/arm/midgard

nano /usr/src/linux-headers-5.3.9-sunxi64/include/generated/utsrelease.h 
#define UTS_RELEASE "5.3.9-sunxi64"

find . -name Kbuild -exec sed -i 's/mali_kbase.o/mali_midgard.o/g; s/mali_kbase-/mali_midgard-/g' {} \;
make -C /lib/modules/5.3.9-sunxi64/build M=/usr/src/mali-midgard-fe58463f54e3d8b204bae7e0292a054f583cc0f7/driver/product/kernel/drivers/gpu/arm/midgard CONFIG_MALI_MIDGARD=m CONFIG_MALI_PLATFORM_NAME=sunxi

カーネルモジュールができたら/lib/modules配下の適当なディレクトリにおいてdepmodを実行します。リブートしてdmesgでカーネルモージュールが正しくロードできたか確認します。つぎにユーザランドのドライバーをインストールするのですが、mali-t76x-fbdev-driverをインストールしたらarmhfバージョンしかありません。ということはアプリケーションを全部、armhfに入れ替えないといけないことで、大変な作業になってしまします。できるかどうかもわからずにそれをやる気力もないので、armbianのフォーラムでgl4esを使った方法があるので試してみました。インストール方法は次のフォーラムのスレッドに書かれています。

あまり速くなった気はしないのですが一応は動いているようです。

LD_LIBRARY_PATH=/opt/gl4es LIBGL_FB=3 glmark2 
LIBGL: Initialising gl4es
LIBGL: v1.1.3 built on Nov 19 2019 08:55:42
LIBGL: using pbuffer
LIBGL: Using GLES 2.0 backend
LIBGL: loaded: libGLESv2.so
LIBGL: loaded: libEGL.so
LIBGL: Using GLES 2.0 backend
libEGL warning: DRI2: failed to authenticate
LIBGL: Hardware Full NPOT detected and used
LIBGL: Extension GL_EXT_blend_minmax detected and used
LIBGL: FBO are in core, and so used
LIBGL: PointSprite are in core, and so used
LIBGL: CubeMap are in core, and so used
LIBGL: BlendColor is in core, and so used
LIBGL: Blend Substract is in core, and so used
LIBGL: Blend Function and Equation Separation is in core, and so used
LIBGL: Texture Mirrored Repeat is in core, and so used
LIBGL: Extension GL_OES_mapbuffer detected
LIBGL: Extension GL_OES_element_index_uint detected and used
LIBGL: Extension GL_OES_packed_depth_stencil detected and used
LIBGL: Extension GL_OES_depth24 detected and used
LIBGL: Extension GL_OES_rgb8_rgba8 detected and used
LIBGL: Extension GL_EXT_multi_draw_arrays detected
LIBGL: Extension GL_EXT_texture_format_BGRA8888 detected and used
LIBGL: Extension GL_OES_depth_texture detected and used
LIBGL: Extension GL_OES_texture_stencil8 detected and used
LIBGL: Extension GL_EXT_texture_rg detected and used
LIBGL: Extension GL_OES_texture_float detected and used
LIBGL: Extension GL_OES_texture_half_float detected and used
LIBGL: Extension GL_EXT_color_buffer_float detected and used
LIBGL: high precision float in fragment shader available and used
LIBGL: Extension GL_EXT_frag_depth detected and used
LIBGL: Max vertex attrib: 16
LIBGL: Extension GL_OES_standard_derivatives detected and used
LIBGL: Extension GL_OES_get_program detected and used
LIBGL: Number of supported Program Binary Format: 0
LIBGL: Max texture size: 8192
LIBGL: Max Varying Vector: 32
LIBGL: Texture Units: 8(8), Max lights: 8, Max planes: 6
LIBGL: Hardware vendor is VMware, Inc.
LIBGL: GLSL 300 es supported and used
LIBGL: sRGB surface supported
LIBGL: Targeting OpenGL 2.0
LIBGL: Not trying to batch small subsequent glDrawXXXX
LIBGL: try to use VBO
LIBGL: Current folder is:/home/shiva
libEGL warning: DRI2: failed to authenticate
LIBGL: Warning, Swap Interval 0 is out of possible values 1, 1
** Failed to set swap interval. Results may be bounded above by refresh rate.
=======================================================
    glmark2 2014.03+git20150611.fa71af2d
=======================================================
    OpenGL Information
    GL_VENDOR:     ptitSeb
    GL_RENDERER:   GL4ES wrapper
    GL_VERSION:    2.0 gl4es wrapper 1.1.3
=======================================================
LIBGL: Warning, Swap Interval 0 is out of possible values 1, 1
** Failed to set swap interval. Results may be bounded above by refresh rate.
[build] use-vbo=false: FPS: 21 FrameTime: 47.619 ms
LIBGL: Warning, Swap Interval 0 is out of possible values 1, 1
** Failed to set swap interval. Results may be bounded above by refresh rate.
[build] use-vbo=true: FPS: 20 FrameTime: 50.000 ms
=======================================================
                                  glmark2 Score: 20 
=======================================================
LIBGL: Shuting down

来月ごろにarmbianでカーネル5.4がリリースされて、それに合わせてpanfrostが使えるようになるらしいのですが、リリースされたら試してみる予定です。

リトライ

前回のケースではmali fbdev blobがなかったので意味がありませんでした。そこでmali fbdev blobを検索してそれらしいものを見つけてインストールしてみました。

/usr/lib/aarch64-linux-gnuにあるlibEGL.so.1、libGLESv1_CM.so、libGLESv2.soを置き換えます。そしてLIBGL_FB=3をつけてアプリケーションを起動します。vlcは立ち上がらないですがmpvが720pできれいに動きます。1K、4Kはコマ落ちでだめでした。

rss-glx:lattice

TV-box: Armbian Tanix TX6 (Allwinner H6)バージョンの設置

先日の続きですがArmbian Tanix TX6版(Allwinner H6 TV-box)を設置して今使っているインテル製のデスクトップを置き換えてみました。

最下段はCPUクーラーです。その上にTVBOX、500g程度のUSBオーディオでTVBOXを押さえて固定しています。当初の予定と異なり、CPUの熱問題のためにご都合主義のやり方で解決しています。一応、デスクトップにconkyを入れてCPUのチェックを常時行っています。

システムの周辺機器

  • USB5Vのファン
  • 重しのUSBオーディオ:USB3ポートに接続
  • USB2HUB:4ポート
  • トラックパッド付きキーボード(またはキーボード+マウス)
USB冷却ファン
USBスピーカー
USB2用ハブ
トラックパッド付きキーボード

CPUファンは8cmの汎用型ファンでTVBOXの網目状になっている底から送風してボードを冷やします。CPU自体を冷却しているわけではないので周波数を上げすぎると熱暴走を起こしてしまいます。しかしながらこの簡易型冷却方法でもかなり効果がありYoutubeの480pの再生でも落ちません。このTVBOXはmali T720を使っていてHWデコードが使えればかなり動画関係はヌルヌルな感じになるはずですが、現時点でSWデコードを使っているので480pが限界です。

重しに使っているオーディオで音声を出力しています。HDMI音声はあまり音が良くないのでこの方法を音を再生しています。

USBポートが2つしかないのでUSBハブをつけました。2ポート空いているのでとくに困ることはないと思います。

CPUファンをつけているので稼働するCPUを当初の2から3に変えてみます。

/boot/extlinux/extlinux.conf

APPEND root=UUID=86771613-f9de-4054-ba36-d38d69797ad9 console=ttyS0,115200 console=tty1 maxcpus=3

カーネルオプションのmaxcpusを値を変えてリブートします。CPUのオンオフを手動でするには次のようにします。注意することはCPU0だけはオフにしてはいけません。

CPU ON:
echo 1 > /sys/devices/system/cpu/cpu3/online
CPU OFF:
echo 0 > /sys/devices/system/cpu/cpu3/online

結論

使い始めて僅かですが、ぎこちないもののとくに動作に問題はありません。4G128GのTVBOXが出ているのでサーバ用途以外でも使えなくはないなという印象です。ただこのTVBOXはDRAM4GBを積んでいるんですが、どういうわけか3GBしか使えません。フォーラムでは設計上の仕様かと議論していました。3GBでもデスクトップ用途で十分使えます(追記:ブラウザでタブを作りすぎるとメモリが限界に達してカーネルダンプを起こします。そして、しばらく固まって通常に戻ります)。あと動いていないのがリモコンとWI-FI(BT含む)ですが、リモコンはXorgとの関係がよくわからなくて、デバイスが専有されてリモコンデバイスがlircが動いてくれません。WI-FIはIT6335がAP6335と互換性があるのでという情報をみましたが、どうも動かないようです。Core i5のPCに比べて静音、低消費電力なので電気代が節約できます。半年くらいで製作に使ったコストくらいはペイできそうです。

システム情報

lsmod
Module                  Size  Used by
xt_recent              24576  0
fuse                   98304  3
overlay                90112  3
uinput                 20480  2
bnep                   20480  2
zstd                   16384  3
zram                   28672  2
ip6t_REJECT            16384  1
nf_reject_ipv6         16384  1 ip6t_REJECT
snd_soc_simple_card    20480  2
sunxi_cir              16384  0
snd_soc_simple_card_utils    20480  1 snd_soc_simple_card
rc_core                40960  2 sunxi_cir
btsdio                 16384  0
nf_log_ipv6            16384  5
bluetooth             360448  9 btsdio,bnep
snd_usb_audio         180224  2
snd_hwdep              20480  1 snd_usb_audio
snd_usbmidi_lib        28672  1 snd_usb_audio
snd_rawmidi            32768  1 snd_usbmidi_lib
brcmfmac              204800  0
snd_seq_device         16384  1 snd_rawmidi
mc                     40960  1 snd_usb_audio
brcmutil               16384  1 brcmfmac
xt_hl                  16384  22
cfg80211              323584  1 brcmfmac
ip6t_rt                16384  3
rfkill                 28672  4 bluetooth,cfg80211
sun4i_i2s              24576  2
ipt_REJECT             16384  1
nf_reject_ipv4         16384  1 ipt_REJECT
nf_log_ipv4            16384  5
nf_log_common          16384  2 nf_log_ipv4,nf_log_ipv6
xt_LOG                 16384  10
xt_limit               16384  13
xt_addrtype            16384  4
xt_conntrack           16384  16
ip6table_filter        16384  1
ip6_tables             32768  53 ip6table_filter
nf_conntrack_netbios_ns    16384  0
nf_conntrack_broadcast    16384  1 nf_conntrack_netbios_ns
nf_nat_ftp             16384  0
nf_nat                 40960  1 nf_nat_ftp
nf_conntrack_ftp       16384  1 nf_nat_ftp
nf_conntrack          106496  6 xt_conntrack,nf_nat,nf_nat_ftp,nf_conntrack_netbios_ns,nf_conntrack_broadcast,nf_conntrack_ftp
nf_defrag_ipv6         16384  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
iptable_filter         16384  1
algif_skcipher         16384  0
af_alg                 20480  1 algif_skcipher
uas                    24576  0
hid_lenovo             20480  0
dm_crypt               32768  1
dm_mod                110592  3 dm_crypt
dax                    24576  1 dm_mod
xhci_plat_hcd          16384  0
xhci_hcd              139264  1 xhci_plat_hcd
dw_hdmi_i2s_audio      16384  0
snd_soc_hdmi_codec     16384  2 dw_hdmi_i2s_audio
snd_soc_core          131072  4 sun4i_i2s,snd_soc_hdmi_codec,snd_soc_simple_card_utils,snd_soc_simple_card
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_pcm                94208  5 sun4i_i2s,snd_usb_audio,snd_soc_hdmi_codec,snd_soc_core,snd_pcm_dmaengine
snd_timer              32768  1 snd_pcm
snd                    57344  17 snd_seq_device,snd_hwdep,snd_usb_audio,snd_usbmidi_lib,snd_soc_hdmi_codec,snd_timer,snd_soc_core,snd_pcm,snd_rawmidi
soundcore              16384  1 snd
dw_hdmi_cec            16384  0
phy_sun50i_usb3        16384  2
dwmac_sun8i            24576  0
sunxi                  20480  0
mdio_mux               16384  1 dwmac_sun8i
i2c_mv64xxx            20480  0
panfrost               40960  0
gpu_sched              24576  1 panfrost
dmesg
[    0.003986] CPU: All CPU(s) started at EL2
[    0.004001] alternatives: patching kernel code
[    0.005731] devtmpfs: initialized
[    0.009843] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.009858] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.013988] xor: measuring software checksum speed
[    0.052059]    8regs     :  1750.000 MB/sec
[    0.092091]    32regs    :  2151.000 MB/sec
[    0.132134]    arm64_neon:  1929.000 MB/sec
[    0.132138] xor: using function: 32regs (2151.000 MB/sec)
[    0.132186] pinctrl core: initialized pinctrl subsystem
[    0.132914] NET: Registered protocol family 16
[    0.133250] audit: initializing netlink subsys (disabled)
[    0.133392] audit: type=2000 audit(0.132:1): state=initialized audit_enabled=0 res=1
[    0.133823] cpuidle: using governor menu
[    0.133937] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.134984] DMA: preallocated 256 KiB pool for atomic allocations
[    0.135099] Serial: AMBA PL011 UART driver
[    0.146396] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.146405] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.146409] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.146414] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.148893] cryptd: max_cpu_qlen set to 1000
[    0.220350] raid6: neonx8   gen()  1254 MB/s
[    0.288413] raid6: neonx8   xor()  1172 MB/s
[    0.356524] raid6: neonx4   gen()  1150 MB/s
[    0.424564] raid6: neonx4   xor()  1107 MB/s
[    0.492656] raid6: neonx2   gen()   887 MB/s
[    0.560756] raid6: neonx2   xor()   928 MB/s
[    0.628834] raid6: neonx1   gen()   555 MB/s
[    0.696912] raid6: neonx1   xor()   656 MB/s
[    0.765018] raid6: int64x8  gen()   748 MB/s
[    0.833118] raid6: int64x8  xor()   572 MB/s
[    0.901189] raid6: int64x4  gen()   792 MB/s
[    0.969265] raid6: int64x4  xor()   573 MB/s
[    1.037403] raid6: int64x2  gen()   517 MB/s
[    1.105459] raid6: int64x2  xor()   461 MB/s
[    1.173552] raid6: int64x1  gen()   338 MB/s
[    1.241643] raid6: int64x1  xor()   338 MB/s
[    1.241647] raid6: using algorithm neonx8 gen() 1254 MB/s
[    1.241649] raid6: .... xor() 1172 MB/s, rmw enabled
[    1.241653] raid6: using neon recovery algorithm
[    1.242469] vcc33-wifi: supplied by vcc-5v
[    1.242668] vcc-wifi-io: supplied by vcc33-wifi
[    1.243349] SCSI subsystem initialized
[    1.243513] usbcore: registered new interface driver usbfs
[    1.243545] usbcore: registered new interface driver hub
[    1.243595] usbcore: registered new device driver usb
[    1.243846] pps_core: LinuxPPS API ver. 1 registered
[    1.243849] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.243861] PTP clock support registered
[    1.244911] clocksource: Switched to clocksource arch_sys_counter
[    1.245055] VFS: Disk quotas dquot_6.6.0
[    1.245104] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.245164] *** VALIDATE hugetlbfs ***
[    1.250845] thermal_sys: Registered thermal governor 'fair_share'
[    1.250849] thermal_sys: Registered thermal governor 'bang_bang'
[    1.250855] thermal_sys: Registered thermal governor 'step_wise'
[    1.250858] thermal_sys: Registered thermal governor 'user_space'
[    1.250860] thermal_sys: Registered thermal governor 'power_allocator'
[    1.251326] NET: Registered protocol family 2
[    1.251822] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    1.251880] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    1.252148] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[    1.252652] TCP: Hash tables configured (established 32768 bind 32768)
[    1.252764] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    1.252859] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    1.253123] NET: Registered protocol family 1
[    1.253510] RPC: Registered named UNIX socket transport module.
[    1.253513] RPC: Registered udp transport module.
[    1.253516] RPC: Registered tcp transport module.
[    1.253518] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.253700] Trying to unpack rootfs image as initramfs...
[    1.813844] Freeing initrd memory: 10580K
[    1.973651] Initialise system trusted keyrings
[    1.973800] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    1.978904] zbud: loaded
[    1.980314] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.980958] NFS: Registering the id_resolver key type
[    1.980980] Key type id_resolver registered
[    1.980982] Key type id_legacy registered
[    1.980992] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.980995] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.981876] 9p: Installing v9fs 9p2000 file system support
[    2.003401] async_tx: api initialized (async)
[    2.003415] Key type asymmetric registered
[    2.003419] Asymmetric key parser 'x509' registered
[    2.003475] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    2.003637] io scheduler mq-deadline registered
[    2.003641] io scheduler kyber registered
[    2.003800] io scheduler bfq registered
[    2.004708] sun4i-usb-phy 5100400.phy: failed to get clock usb0_phy
[    2.008574] sun50i-h6-r-pinctrl 7022000.pinctrl: initialized sunXi PIO driver
[    2.017261] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.020697] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.024715] loop: module loaded
[    2.025922] libphy: Fixed MDIO Bus: probed
[    2.026798] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.026802] ehci-platform: EHCI generic platform driver
[    2.026950] ehci-platform 5101000.usb: EHCI Host Controller
[    2.026969] ehci-platform 5101000.usb: new USB bus registered, assigned bus number 1
[    2.027052] ehci-platform 5101000.usb: irq 24, io mem 0x05101000
[    2.040915] ehci-platform 5101000.usb: USB 2.0 started, EHCI 1.00
[    2.041110] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.03
[    2.041117] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.041123] usb usb1: Product: EHCI Host Controller
[    2.041128] usb usb1: Manufacturer: Linux 5.3.9-sunxi64 ehci_hcd
[    2.041134] usb usb1: SerialNumber: 5101000.usb
[    2.041549] hub 1-0:1.0: USB hub found
[    2.041585] hub 1-0:1.0: 1 port detected
[    2.042081] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.042096] ohci-platform: OHCI generic platform driver
[    2.042231] ohci-platform 5101400.usb: Generic Platform OHCI controller
[    2.042248] ohci-platform 5101400.usb: new USB bus registered, assigned bus number 2
[    2.042345] ohci-platform 5101400.usb: irq 25, io mem 0x05101400
[    2.105218] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.03
[    2.105225] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.105231] usb usb2: Product: Generic Platform OHCI controller
[    2.105236] usb usb2: Manufacturer: Linux 5.3.9-sunxi64 ohci_hcd
[    2.105242] usb usb2: SerialNumber: 5101400.usb
[    2.105594] hub 2-0:1.0: USB hub found
[    2.105627] hub 2-0:1.0: 1 port detected
[    2.106140] usbcore: registered new interface driver usb-storage
[    2.106402] mousedev: PS/2 mouse device common for all mice
[    2.106919] sun6i-rtc 7000000.rtc: registered as rtc0
[    2.106924] sun6i-rtc 7000000.rtc: RTC enabled
[    2.107011] i2c /dev entries driver
[    2.108050] sunxi-wdt 7020400.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    2.109495] core: _opp_supported_by_regulators: OPP minuV: 1060000 maxuV: 1060000, not supported by regulator
[    2.109505] cpu cpu0: _opp_add: OPP not supported by regulators (1488000000)
[    2.109578] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 912000 KHz
[    2.109630] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 1080000 KHz
[    2.109760] thermal thermal_zone0: binding zone cpu_thermal with cdev thermal-cpufreq-0 failed:-22
[    2.109952] sun50i-h6-r-pinctrl 7022000.pinctrl: 7022000.pinctrl supply vcc-pm not found, using dummy regulator
[    2.110189] sdhci: Secure Digital Host Controller Interface driver
[    2.110190] sdhci: Copyright(c) Pierre Ossman
[    2.110210] Synopsys Designware Multimedia Card Interface Driver
[    2.110725] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.110999] ledtrig-cpu: registered to indicate activity on CPUs
[    2.111219] hidraw: raw HID events driver (C) Jiri Kosina
[    2.111281] usbcore: registered new interface driver usbhid
[    2.111283] usbhid: USB HID core driver
[    2.112213] NET: Registered protocol family 10
[    2.127833] Segment Routing with IPv6
[    2.127923] NET: Registered protocol family 17
[    2.128088] 8021q: 802.1Q VLAN Support v1.8
[    2.128246] 9pnet: Installing 9P2000 support
[    2.128300] Key type dns_resolver registered
[    2.128824] registered taskstats version 1
[    2.128827] Loading compiled-in X.509 certificates
[    2.128938] zswap: loaded using pool lzo/zbud
[    2.130141] Btrfs loaded, crc32c=crc32c-generic
[    2.139018] Key type encrypted registered
[    2.146798] sun50i-h6-r-pinctrl 7022000.pinctrl: 7022000.pinctrl supply vcc-pl not found, using dummy regulator
[    2.155840] sun50i-h6-pinctrl 300b000.pinctrl: initialized sunXi PIO driver
[    2.156189] sun50i-h6-pinctrl 300b000.pinctrl: 300b000.pinctrl supply vcc-pb not found, using dummy regulator
[    2.189454] sun50i-h6-pinctrl 300b000.pinctrl: 300b000.pinctrl supply vcc-ph not found, using dummy regulator
[    2.190000] printk: console [ttyS0] disabled
[    2.210901] 5000000.serial: ttyS0 at MMIO 0x5000000 (irq = 19, base_baud = 1500000) is a 16550A
[    2.210936] printk: console [ttyS0] enabled
[    2.224588] sun4i-drm display-engine: bound 1100000.mixer (ops 0xffff000010bcd508)
[    2.224688] sun4i-drm display-engine: bound 6510000.tcon-top (ops 0xffff000010bd1930)
[    2.224885] sun4i-drm display-engine: bound 6515000.lcd-controller (ops 0xffff000010bc99c0)
[    2.224940] sun8i-dw-hdmi 6000000.hdmi: 6000000.hdmi supply hvcc not found, using dummy regulator
[    2.225165] sun8i-dw-hdmi 6000000.hdmi: Detected HDMI TX controller v2.12a with HDCP (DWC HDMI 2.0 TX PHY)
[    2.225488] sun8i-dw-hdmi 6000000.hdmi: registered DesignWare HDMI I2C bus driver
[    2.225682] sun4i-drm display-engine: bound 6000000.hdmi (ops 0xffff000010bcc868)
[    2.225686] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.225688] [drm] No driver support for vblank timestamp query.
[    2.225912] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    2.332637] random: fast init done
[    2.484426] Console: switching to colour frame buffer device 240x67
[    2.528300] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    2.529079] ehci-platform 5311000.usb: EHCI Host Controller
[    2.529097] ehci-platform 5311000.usb: new USB bus registered, assigned bus number 3
[    2.529181] ehci-platform 5311000.usb: irq 27, io mem 0x05311000
[    2.544947] ehci-platform 5311000.usb: USB 2.0 started, EHCI 1.00
[    2.545208] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.03
[    2.545221] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.545232] usb usb3: Product: EHCI Host Controller
[    2.545242] usb usb3: Manufacturer: Linux 5.3.9-sunxi64 ehci_hcd
[    2.545251] usb usb3: SerialNumber: 5311000.usb
[    2.545954] hub 3-0:1.0: USB hub found
[    2.546005] hub 3-0:1.0: 1 port detected
[    2.546994] ohci-platform 5311400.usb: Generic Platform OHCI controller
[    2.547030] ohci-platform 5311400.usb: new USB bus registered, assigned bus number 4
[    2.547172] ohci-platform 5311400.usb: irq 28, io mem 0x05311400
[    2.609154] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.03
[    2.609163] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.609170] usb usb4: Product: Generic Platform OHCI controller
[    2.609177] usb usb4: Manufacturer: Linux 5.3.9-sunxi64 ohci_hcd
[    2.609184] usb usb4: SerialNumber: 5311400.usb
[    2.609638] hub 4-0:1.0: USB hub found
[    2.609677] hub 4-0:1.0: 1 port detected
[    2.611295] sun50i-h6-pinctrl 300b000.pinctrl: 300b000.pinctrl supply vcc-pf not found, using dummy regulator
[    2.611801] sunxi-mmc 4020000.mmc: Got CD GPIO
[    2.637306] sunxi-mmc 4020000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    2.638149] sun50i-h6-pinctrl 300b000.pinctrl: 300b000.pinctrl supply vcc-pg not found, using dummy regulator
[    2.638874] sunxi-mmc 4021000.mmc: allocated mmc-pwrseq
[    3.185520] sunxi-mmc 4021000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    3.186430] sun50i-h6-pinctrl 300b000.pinctrl: 300b000.pinctrl supply vcc-pc not found, using dummy regulator
[    3.203196] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    3.205984] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    3.207532] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    3.212455] sunxi-mmc 4022000.mmc: initialized, max. request size: 2048 KB, uses new timings mode
[    3.212668] reg-fixed-voltage ddc-io: nonexclusive access to GPIO for ddc-io
[    3.214519] sun6i-rtc 7000000.rtc: setting system clock to 2019-11-15T09:06:45 UTC (1573808805)
[    3.214713] of_cfs_init
[    3.214847] of_cfs_init: OK
[    3.215711] Freeing unused kernel memory: 768K
[    3.215842] Run /init as init process
[    3.273000] mmc1: new high speed SDIO card at address 0001
[    3.429153] panfrost 1800000.gpu: clock rate = 432000000
[    3.439695] panfrost 1800000.gpu: gpu soft reset timed out
[    3.439714] panfrost 1800000.gpu: Fatal error during GPU init
[    3.439787] panfrost: probe of 1800000.gpu failed with error -110
[    3.472433] sun50i-h6-pinctrl 300b000.pinctrl: 300b000.pinctrl supply vcc-pa not found, using dummy regulator
[    3.472639] dwmac-sun8i 5020000.ethernet: PTP uses main clock
[    3.472668] dwmac-sun8i 5020000.ethernet: 5020000.ethernet supply phy not found, using dummy regulator
[    3.472710] dwmac-sun8i 5020000.ethernet: 5020000.ethernet supply phy-io not found, using dummy regulator
[    3.478907] dwmac-sun8i 5020000.ethernet: Current syscon value is not the default 58000 (expect 50000)
[    3.478930] dwmac-sun8i 5020000.ethernet: No HW DMA feature register supported
[    3.478935] dwmac-sun8i 5020000.ethernet: RX Checksum Offload Engine supported
[    3.478938] dwmac-sun8i 5020000.ethernet: COE Type 2
[    3.478942] dwmac-sun8i 5020000.ethernet: TX Checksum insertion supported
[    3.478945] dwmac-sun8i 5020000.ethernet: Normal descriptors
[    3.478949] dwmac-sun8i 5020000.ethernet: Chain mode enabled
[    3.479107] libphy: stmmac: probed
[    3.481498] mmc2: new high speed MMC card at address 0001
[    3.483528] ac200-ephy ac200-ephy: DMA mask not set
[    3.489169] usb_phy_generic usb_phy_generic.2.auto: usb_phy_generic.2.auto supply vcc not found, using dummy regulator
[    3.489529] musb-hdrc musb-hdrc.3.auto: MUSB HDRC host driver
[    3.489538] musb-hdrc musb-hdrc.3.auto: new USB bus registered, assigned bus number 5
[    3.489796] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.03
[    3.489801] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.489806] usb usb5: Product: MUSB HDRC host driver
[    3.489809] usb usb5: Manufacturer: Linux 5.3.9-sunxi64 musb-hcd
[    3.489813] usb usb5: SerialNumber: musb-hdrc.3.auto
[    3.490263] hub 5-0:1.0: USB hub found
[    3.490287] hub 5-0:1.0: 1 port detected
[    3.491144] mmcblk2: mmc2:0001 128G32 116 GiB 
[    3.491953] mmcblk2boot0: mmc2:0001 128G32 partition 1 4.00 MiB
[    3.492750] mmcblk2boot1: mmc2:0001 128G32 partition 2 4.00 MiB
[    3.502090]  mmcblk2: p1 p2 p4
[    3.594342] xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
[    3.594375] xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 6
[    3.594570] xhci-hcd xhci-hcd.5.auto: hcc params 0x0220f064 hci version 0x100 quirks 0x0000000002010010
[    3.594635] xhci-hcd xhci-hcd.5.auto: irq 26, io mem 0x05200000
[    3.595039] usb usb6: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.03
[    3.595048] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.595056] usb usb6: Product: xHCI Host Controller
[    3.595063] usb usb6: Manufacturer: Linux 5.3.9-sunxi64 xhci-hcd
[    3.595070] usb usb6: SerialNumber: xhci-hcd.5.auto
[    3.595836] hub 6-0:1.0: USB hub found
[    3.595875] hub 6-0:1.0: 1 port detected
[    3.596135] xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
[    3.596146] xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 7
[    3.596160] xhci-hcd xhci-hcd.5.auto: Host supports USB 3.0 SuperSpeed
[    3.596227] usb usb7: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.596377] usb usb7: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.03
[    3.596382] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.596386] usb usb7: Product: xHCI Host Controller
[    3.596390] usb usb7: Manufacturer: Linux 5.3.9-sunxi64 xhci-hcd
[    3.596394] usb usb7: SerialNumber: xhci-hcd.5.auto
[    3.596768] hub 7-0:1.0: USB hub found
[    3.596793] hub 7-0:1.0: 1 port detected
[    3.725040] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    3.886495] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.36
[    3.886503] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.886507] usb 1-1: Product: USB2.0 Hub
[    3.887235] hub 1-1:1.0: USB hub found
[    3.887628] hub 1-1:1.0: 4 ports detected
[    4.067104] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    4.176955] usb 1-1.3: new low-speed USB device number 3 using ehci-platform
[    4.291009] usb 1-1.3: New USB device found, idVendor=04b3, idProduct=3025, bcdDevice= 1.02
[    4.291022] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.291034] usb 1-1.3: Product: USB NetVista Full Width Keyboard
[    4.291044] usb 1-1.3: Manufacturer: CHICONY
[    4.296593] input: CHICONY USB NetVista Full Width Keyboard as /devices/platform/soc/5101000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:04B3:3025.0001/input/input0
[    4.353853] hid-generic 0003:04B3:3025.0001: input,hidraw0: USB HID v1.10 Keyboard [CHICONY USB NetVista Full Width Keyboard] on usb-5101000.usb-1.3/input0
[    4.432954] usb 1-1.4: new low-speed USB device number 4 using ehci-platform
[    4.544513] usb 1-1.4: New USB device found, idVendor=0461, idProduct=4d80, bcdDevice= 2.00
[    4.544526] usb 1-1.4: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[    4.544537] usb 1-1.4: Product: USB Optical Mouse
[    4.548990] input: USB Optical Mouse as /devices/platform/soc/5101000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:0461:4D80.0002/input/input1
[    4.549446] hid-generic 0003:0461:4D80.0002: input,hidraw1: USB HID v1.11 Mouse [USB Optical Mouse] on usb-5101000.usb-1.4/input0
[    4.664978] usb 6-1: new full-speed USB device number 2 using xhci-hcd
[    4.814391] usb 6-1: New USB device found, idVendor=1908, idProduct=2220, bcdDevice= 1.00
[    4.814404] usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.814414] usb 6-1: Product: USB2.0 Device
[    4.814425] usb 6-1: Manufacturer: Generic
[    4.814434] usb 6-1: SerialNumber: 20121120222017
[    4.821523] usb-storage 6-1:1.0: USB Mass Storage device detected
[    4.822011] scsi host0: usb-storage 6-1:1.0
[    4.825135] input: Generic USB2.0 Device as /devices/platform/soc/5200000.dwc3/xhci-hcd.5.auto/usb6/6-1/6-1:1.4/0003:1908:2220.0003/input/input2
[    4.885432] hid-generic 0003:1908:2220.0003: input,hidraw2: USB HID v2.01 Device [Generic USB2.0 Device] on usb-xhci-hcd.5.auto-1/input4
[    4.890970] usbcore: registered new interface driver uas
[    5.829832] scsi 0:0:0:0: Direct-Access     Buildwin Media-Player     1.00 PQ: 0 ANSI: 2
[    5.830573] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.832453] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   12.255959] NET: Registered protocol family 38
[   14.475930] random: crng init done
[   19.159699] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)
[   19.639049] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[   19.639431] systemd[1]: Detected architecture arm64.
[   19.646834] systemd[1]: Set hostname to <orangepi3>.
[   19.779646] systemd[1]: File /lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[   19.779660] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[   19.933238] systemd[1]: Reached target User and Group Name Lookups.
[   19.933957] systemd[1]: Reached target Remote File Systems.
[   19.934897] systemd[1]: Created slice System Slice.
[   19.935642] systemd[1]: Listening on Journal Audit Socket.
[   19.935941] systemd[1]: Reached target Swap.
[   20.073942
cat /sys/devices/system/cpu/cpufreq/policy0/stats/time_in_state
480000 1866
720000 3196
816000 15
888000 31
1080000 2528
1320000 201131

snmpのグラフで見るとLoad Averageが平均のMAXが5〜6くらいなのでなんとか許容できる程度です。Videoで720p再生だと10を超えるようになるのでかなり重く感じます。Maliのバイナリドライバーを入れればその点は改善できそうですが、今のカーネルバージョンではmali-midgard-dkmsすらインストールできない状況です。あとmali-t76-fbdev-driverまたはmali-t76x-wayland-driverが32bitしかないので、インストール方法を模索中です。

通常の使い方でメモリ他のシステムをチェック。3GBのRAMだとかなり厳しいですが気をつけていれば大丈夫です。

コンパイルして負荷をかけてみます。CPUが1080MHzになっているのでDTのtrip設定が生きています。TVBOXのケースを加工してCPUクーラーをつけない限りH6 CPUの性能をフルに発揮できません。

冷却ファンを外すテストをしてみました。CPUクロックは下がりますが温度が下がりません。DTの設定でダミーレギュレータにしているのでクロックに合わせて電圧の調整ができません。つまりクロックを下げると返ってCPUは限りなく100%に近く使われて発熱するということです。それなのでやはり性能を発揮させるためにはCPUクーラー付きのヒートシンクしかないようです。ちなみにCPUは仕様書では115度まで耐えられますがDTでは105度を上限にしています。

TV-box: Armbian Tanix TX6 (Allwinner H6)バージョンのビルド

TVboxのH96 mini H6はTFソケットがない以外、Tanix TX6系とほぼ同じシステム構成なので、すでにWIP版ができているLibreELECからパッチを流用して作成しました。前回書いたように、Armbianのビルドは素人なので、この際、ARM系のイロハの題材として学びながら作るいい機会です。パッチもいろいろ出回っていて最適なパッチでないとカーネルダンプを起こしたりするので、正しいパッチを適用できるように細心の注意を払います。成果物は次のリンクにあります。

https://mega.nz/#F!xKgUkC6C!fQlaFvIUrBJy33g_dukrWQ

WIPなのでまだいくつもの不具合がありますが一応起動できる状態にはなっています。また、Allwinner H6は発熱問題があって1.8GHzで動かすとすぐに熱暴走を起こしてリブートするので、4コアを2コアに減らし、さらに1.81GHzから1.32GHzに変更してあります。これでも熱暴走起こさない保障はありませんが、とりあえず現状では安定した動作の確認は取れています。

残念がらUSB3は使えないのでトラックパッド付きのキーボードを使っています。新しいパッチが出たらカーネルのアップデートを継続していく予定です。

今回、Armbianを作成するにあたり、つぎのフォーラムのスレッドがとても役に立ちました。

基本設定

OrangePi3と互換性の問題のためつぎのパケージはapt-markでインストールしないようにします。

apt-mark hold linux-image-dev-sunxi64 linux-dtb-dev-sunxi64 linux-u-boot-orangepi3-dev

熱の問題について

調整して稼働させていますがなかなか厳しい状況です。

90度超えているのでちょっとしたはずみでリブートがかかります。何かしらの熱対策が必要です。

CPU1とCPU2が重なっていて、つまり連動していてちょっと普通のcpufreqとは違います。たとえばYoutubeで再生するとつられてほかのコアまで周波数が上がるので温度が上がります。やはり物理的に冷却ファンで冷やすしかなさそうです。

#lscpu
 Architecture:         aarch64
 Byte Order:           Little Endian
 CPU(s):               4
 On-line CPU(s) list:  0,1
 Off-line CPU(s) list: 2,3
 Thread(s) per core:   1
 Core(s) per socket:   2
 Socket(s):            1
 NUMA node(s):         1
 Vendor ID:            ARM
 Model:                4
 Model name:           Cortex-A53
 Stepping:             r0p4
 CPU max MHz:          1320.0000
 CPU min MHz:          480.0000
 BogoMIPS:             48.00
 NUMA node0 CPU(s):    0,1
 Flags:                fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid

netdataのconfigテンプレート

インストール時の設定ファイルでは不十分なので次のリンク先から設定ファイルをダウンロードして使います。

http://netdata.firehol.org/netdata.conf

gitの覚書

Arnbianを作成するにあたり、 gitコマンドの使い方を知らないと進まないことからさらっと勉強しながらまとめてみました。

リポジトリの作成

git init
git add .
git config user.email "you@example.com"
git config user.name "Your Name"
git commit -m "First commit."
git branch -a

gitのルートの.gitを削除するとリポジトリ情報を取り除くことができる。

差分

git add -N FILENAME
git diff

masterに移動して最新のcommitと同期する

git checkout master
git pull

変更を取り消す

git fetch origin
git reset --hard origin/master
git reset --hard master

ブランチの削除

git branch --delete NAME
git branch -d NAME
git branch -D NAME

commitする

git add .
git commit -m "Second commit."

ブランチの作成

git checkout -b <branch name>
git branch

ファイルの削除

EDIT: .gitignore

git rm --cached -r filename

git add .
git commit -m "comment"

H96mini H6にLibreelecをインストールする

今まではAmlogicのTV BOXでcoreELECやArmbianを動かしていましたが、今回、Allwinnerでもやってみることにしました。ところが取り寄せたTV BOXにはTFカードソケットがありませんでした。ついているものだと思いこんでいたのが大誤算でした。SDモードが使えないと簡単にLibreelecやArmbianがインストールができません。そこでいろいろ調べてみました。

u-bootから作り込んでインストールするのは初めてで、さらにAllwinnerも初めての初心者なので、いろいろ調査してみました。さらにTV BOXのH6はDDR3を使っていてOrangePiなどの本流のLPDDR3と互換性がありません。そのためブートしていきなりコケるという状態です。そこでフォーラムを参考にu-bootを2つほどu-bootのパターンをつくり、sunxi-felでsplモードでテストしたところすべて失敗でした。フォーラムではSDカードに落とし込んでいるところから、SDカードからなら立ち上がるようです。

視点を変えてadb sideloadでもTV BOX側でadbdが立ち上がらないので、この方法でも無理です。

いろいろ手を尽くして、最終的に思いついたのはddコマンドを使ってイメージを書き込むことです。まずAndroidのRecoveryモードでTWRP for H6をインストールします。これは実際にインストールできず、メモリ内で起動しているらしいのですが、一応使えます。そこでターミナルから次のコマンド打ちます。

dd if=LibreELEC-H6.arm-VER-nightly-DATE-tanix-tx6.img of=/dev/block/mmcblk0 bs=1M

これで再起動するとLibreelecのロゴが表れます。Kodiの画面は綺麗なのですが、使うにはまだ問題があって、熱暴走して再起動を繰り返します。カーネル周りの温度管理の作り込みが必要な段階です。安定稼働させるにはCPUの周波数管理を使えるようにしないといけまん。これは今後の課題です。

Androidに戻すときはPhoenix Suiteを使ってROMを焼きます。

リカバリの方法

もとのAndroidに戻す方法ですが、Phoenix Suitを使います。USB A型ケーブル(オス – オス)を用意してPCとデバイスにつなぎます。デバイスは隠しスイッチを押しながら電源を入れてリカバリモードにします。詳しくはPhoenix Suitの説明書を参考にします。stock ROMは野良のものしかありません。LibreELECを一度入れると原因は分かりませんがAndroid 9には戻せないようです。Android 7は大丈夫です。

libreELECのログ

nightly版をコンパイルしてログを見てみました。安定版のソースをみるとパッチがないのでネットワークが繋がらにようなので、この開発バージョンが良いでしょう。ただし、LibreELECの設定がバグってできませんでした。sshで掘り下げてみようと思ったのですがssh設定ができませんでした。

U-Boot SPL 2019.10 (Nov 05 2019 - 00:35:48 +0900)
 DRAM: 4096 MiB
 Trying to boot from MMC2
 NOTICE:  BL31: v2.1(release):9.0.0-2032-gcfe1640715
 NOTICE:  BL31: Built : 00:34:15, Nov  5 2019
 NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
 NOTICE:  BL31: Found U-Boot DTB at 0xc07a4a0, model: Eachlink H6 Mini
 NOTICE:  PMIC: Probing AXP805
 ERROR:   Start clear bit timeout
 ERROR:   PMIC: Cannot put AXP805 to master mode.
 U-Boot 2019.10 (Nov 05 2019 - 00:35:48 +0900) Allwinner Technology
 CPU:   Allwinner H6 (SUN50I)
 Model: Eachlink H6 Mini
 DRAM:  3 GiB
 MMC:   mmc@4020000: 0, mmc@4022000: 1
 Loading Environment from FAT… *** Warning - bad CRC, using default environment
 In:    serial@5000000
 Out:   serial@5000000
 Err:   serial@5000000
 Net:   No ethernet found.
 Hit any key to stop autoboot:  0 
 switch to partitions #0, OK
 mmc1(part 0) is current device
 Scanning mmc 1:1…
 Found /extlinux/extlinux.conf
 Retrieving file: /extlinux/extlinux.conf
 179 bytes read in 4 ms (43 KiB/s)
 1:    LibreELEC
 Retrieving file: /KERNEL
 17074688 bytes read in 1711 ms (9.5 MiB/s)
 append: boot=UUID=0511-0148 disk=UUID=3076de46-e6fd-42bc-a166-f431296e7249 quiet console=ttyS0,115200 console=tty1
 Retrieving file: /sun50i-h6-tanix-tx6.dtb
 15841 bytes read in 4 ms (3.8 MiB/s)
 Flattened Device Tree blob at 4fa00000
 Booting using the fdt blob at 0x4fa00000
    Loading Device Tree to 0000000049ff9000, end 0000000049fffde0 … OK
 Starting kernel …
 [    0.272143] sun50i-de2-bus 1000000.bus: Error couldn't map SRAM to device
 [    0.272940] sun4i-usb-phy 5100400.phy: failed to get clock usb0_phy
 [    0.273247] sun50i-usb3-phy 5210000.phy: failed to get phy clock

sunxi-toolsを使うのは無理のようです。

sunxi-fel uboot u-boot-sunxi-with-spl.bin
 usb_bulk_send() ERROR -7: Operation timed out

追記: LOG

U-Boot SPL 2019.10 (Nov 05 2019 - 00:35:48 +0900)
 DRAM: 4096 MiB
 Trying to boot from MMC2
 NOTICE:  BL31: v2.1(release):9.0.0-2032-gcfe1640715
 NOTICE:  BL31: Built : 00:34:15, Nov  5 2019
 NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
 NOTICE:  BL31: Found U-Boot DTB at 0xc07a4a0, model: Eachlink H6 Mini
 NOTICE:  PMIC: Probing AXP805
 ERROR:   Start clear bit timeout
 ERROR:   PMIC: Cannot put AXP805 to master mode.
 U-Boot 2019.10 (Nov 05 2019 - 00:35:48 +0900) Allwinner Technology
 CPU:   Allwinner H6 (SUN50I)
 Model: Eachlink H6 Mini
 DRAM:  3 GiB
 MMC:   mmc@4020000: 0, mmc@4022000: 1
 Loading Environment from FAT… Unable to use mmc 1:1… In:    serial@5000000
 Out:   serial@5000000
 Err:   serial@5000000
 Net:   No ethernet found.
 Hit any key to stop autoboot:  0 
 switch to partitions #0, OK
 mmc1(part 0) is current device
 Scanning mmc 1:1…
 Found /boot/extlinux/extlinux.conf
 Retrieving file: /boot/extlinux/extlinux.conf
 221 bytes read in 2 ms (107.4 KiB/s)
 1:    Armbian
 Retrieving file: /boot/Image
 21233672 bytes read in 2126 ms (9.5 MiB/s)
 append: root=/dev/mmcblk1p1 quiet console=ttyS0,115200 console=tty1
 Retrieving file: /boot/sun50i-h6-tanix-tx6.dtb
 15841 bytes read in 3 ms (5 MiB/s)
 Flattened Device Tree blob at 4fa00000
 Booting using the fdt blob at 0x4fa00000
    Loading Device Tree to 0000000049ff9000, end 0000000049fffde0 … OK
 Starting kernel …
 sun50i-de2-bus 1000000.bus: Error couldn't map SRAM to device
 sun4i-usb-phy 5100400.phy: failed to get clock usb0_phy
 panfrost 1800000.gpu: gpu soft reset timed out
 panfrost 1800000.gpu: Fatal error during GPU init
 rc_core: Couldn't load IR keymap rc-cec
 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
 CPU: 3 PID: 1 Comm: swapper/0 Not tainted 5.4.0-rc5-meg-ah6+ #3
 Hardware name: Tanix TX6 (DT)
 Call trace:
  dump_backtrace+0x0/0x120
  show_stack+0x14/0x20
  dump_stack+0xb0/0xf8
  panic+0x148/0x340
  mount_block_root+0x1a4/0x284
  mount_root+0x134/0x150
  prepare_namespace+0x138/0x19c
  kernel_init_freeable+0x264/0x2b0
  kernel_init+0x10/0x100
  ret_from_fork+0x10/0x1c
 SMP: stopping secondary CPUs
 Kernel Offset: disabled
 CPU features: 0x0002,20002000
 Memory Limit: none
 ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

追記: LOG2

U-Boot SPL 2019.10 (Nov 05 2019 - 00:35:48 +0900)
 DRAM: 4096 MiB
 Trying to boot from MMC2
 NOTICE:  BL31: v2.1(release):9.0.0-2032-gcfe1640715
 NOTICE:  BL31: Built : 00:34:15, Nov  5 2019
 NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
 NOTICE:  BL31: Found U-Boot DTB at 0xc07a4a0, model: Eachlink H6 Mini
 NOTICE:  PMIC: Probing AXP805
 ERROR:   Start clear bit timeout
 ERROR:   PMIC: Cannot put AXP805 to master mode.
 U-Boot 2019.10 (Nov 05 2019 - 00:35:48 +0900) Allwinner Technology
 CPU:   Allwinner H6 (SUN50I)
 Model: Eachlink H6 Mini
 DRAM:  3 GiB
 MMC:   mmc@4020000: 0, mmc@4022000: 1
 Loading Environment from FAT… Unable to use mmc 1:1… In:    serial@5000000
 Out:   serial@5000000
 Err:   serial@5000000
 Net:   No ethernet found.
 Hit any key to stop autoboot:  0 
 switch to partitions #0, OK
 mmc1(part 0) is current device
 Scanning mmc 1:1…
 Found /boot/extlinux/extlinux.conf
 Retrieving file: /boot/extlinux/extlinux.conf
 335 bytes read in 2 ms (163.1 KiB/s)
 1:    Armbian
 Retrieving file: /boot/uInitrd
 7429970 bytes read in 745 ms (9.5 MiB/s)
 Retrieving file: /boot/Image
 21233672 bytes read in 2125 ms (9.5 MiB/s)
 append: root=UUID=17591b27-91a7-467e-87f6-7465b01c5597 console=ttyS0,115200 console=tty1
 Retrieving file: /boot/sun50i-h6-tanix-tx6.dtb
 16752 bytes read in 3 ms (5.3 MiB/s)
 Loading init Ramdisk from Legacy Image at 4fe00000 …
 Image Name:   uInitrd
    Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
    Data Size:    7429906 Bytes = 7.1 MiB
    Load Address: 00000000
    Entry Point:  00000000
    Verifying Checksum … OK
 Flattened Device Tree blob at 4fa00000
 Booting using the fdt blob at 0x4fa00000
    Loading Ramdisk to 498ea000, end 49ffff12 … OK
    Loading Device Tree to 00000000498e2000, end 00000000498e916f … OK
 Starting kernel …
 Booting Linux on physical CPU 0x0000000000 [0x410fd034]
 Linux version 5.4.0-rc5-meg-ah6+ (root@ubuntu) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #4 SMP Wed Nov 6 00:43:06 JST 2019
 Machine model: Tanix TX6
 cma: Reserved 64 MiB at 0x00000000fc000000
 psci: probing for conduit method from DT.
 psci: PSCIv1.1 detected in firmware.
 psci: Using standard PSCI v0.2 function IDs
 psci: MIGRATE_INFO_TYPE not supported.
 psci: SMC Calling Convention v1.1
 percpu: Embedded 22 pages/cpu s49240 r8192 d32680 u90112
 Detected VIPT I-cache on CPU0
 Speculative Store Bypass Disable mitigation not required
 Built 1 zonelists, mobility grouping on.  Total pages: 774144
 Kernel command line: root=UUID=17591b27-91a7-467e-87f6-7465b01c5597 console=ttyS0,115200 console=tty1
 Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
 Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
 mem auto-init: stack:off, heap alloc:off, heap free:off
 Memory: 2989676K/3145728K available (13822K kernel code, 768K rwdata, 3752K rodata, 2048K init, 604K bss, 90516K reserved, 65536K cma-reserved)
 SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
 rcu: Hierarchical RCU implementation.
 rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
 rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
 rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
 NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
 GIC: Using split EOI/Deactivate mode
 arch_timer: cp15 timer(s) running at 24.00MHz (phys).
 clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
 sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
 Console: colour dummy device 80x25
 printk: console [tty1] enabled
 Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
 pid_max: default: 32768 minimum: 301
 Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
 Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
 *** VALIDATE tmpfs ***
 *** VALIDATE proc ***
 *** VALIDATE cgroup1 ***
 *** VALIDATE cgroup2 ***
 ASID allocator initialised with 32768 entries
 rcu: Hierarchical SRCU implementation.
 smp: Bringing up secondary CPUs …
 Detected VIPT I-cache on CPU1
 CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
 Detected VIPT I-cache on CPU2
 CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
 Detected VIPT I-cache on CPU3
 CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
 smp: Brought up 1 node, 4 CPUs
 SMP: Total of 4 processors activated.
 CPU features: detected: 32-bit EL0 Support
 CPU features: detected: CRC32 instructions
 CPU: All CPU(s) started at EL2
 alternatives: patching kernel code
 random: get_random_u64 called from compute_layout+0xb4/0x130 with crng_init=0
 devtmpfs: initialized
 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
 futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
 pinctrl core: initialized pinctrl subsystem
 NET: Registered protocol family 16
 DMA: preallocated 256 KiB pool for atomic allocations
 cpuidle: using governor ladder
 cpuidle: using governor menu
 hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
 cryptd: max_cpu_qlen set to 1000
 fbcon: Taking over console
 iommu: Default domain type: Translated 
 SCSI subsystem initialized
 usbcore: registered new interface driver usbfs
 usbcore: registered new interface driver hub
 usbcore: registered new device driver usb
 pps_core: LinuxPPS API ver. 1 registered
 pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
 PTP clock support registered
 Advanced Linux Sound Architecture Driver Initialized.
 Bluetooth: Core ver 2.22
 NET: Registered protocol family 31
 Bluetooth: HCI device and connection manager initialized
 Bluetooth: HCI socket layer initialized
 Bluetooth: L2CAP socket layer initialized
 Bluetooth: SCO socket layer initialized
 clocksource: Switched to clocksource arch_sys_counter
 *** VALIDATE bpf ***
 FS-Cache: Loaded
 *** VALIDATE ramfs ***
 thermal_sys: Registered thermal governor 'fair_share'
 thermal_sys: Registered thermal governor 'bang_bang'
 thermal_sys: Registered thermal governor 'step_wise'
 NET: Registered protocol family 2
 tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
 TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
 TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
 TCP: Hash tables configured (established 32768 bind 32768)
 UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
 UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
 NET: Registered protocol family 1
 RPC: Registered named UNIX socket transport module.
 RPC: Registered udp transport module.
 RPC: Registered tcp transport module.
 RPC: Registered tcp NFSv4.1 backchannel transport module.
 Unpacking initramfs…
 Freeing initrd memory: 7252K
 kvm [1]: IPA Size Limit: 40bits
 kvm [1]: vgic interrupt IRQ1
 kvm [1]: Hyp mode initialized successfully
 Initialise system trusted keyrings
 workingset: timestamp_bits=46 max_order=20 bucket_order=0
 zbud: loaded
 squashfs: version 4.0 (2009/01/31) Phillip Lougher
 NFS: Registering the id_resolver key type
 Key type id_resolver registered
 Key type id_legacy registered
 nfs4filelayout_init: NFSv4 File Layout Driver Registering…
 Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
 Key type cifs.idmap registered
 fuse: init (API version 7.31)
 *** VALIDATE fuse ***
 *** VALIDATE fuse ***
 SGI XFS with ACLs, security attributes, no debug enabled
 NET: Registered protocol family 38
 Key type asymmetric registered
 Asymmetric key parser 'x509' registered
 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
 io scheduler mq-deadline registered
 io scheduler bfq registered
 sun50i-de2-bus 1000000.bus: Error couldn't map SRAM to device
 sun4i-usb-phy 5100400.phy: failed to get clock usb0_phy
 sun50i-h6-r-pinctrl 7022000.pinctrl: initialized sunXi PIO driver
 Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
 panfrost 1800000.gpu: clock rate = 432000000
 panfrost 1800000.gpu: 1800000.gpu supply mali not found, using dummy regulator
 panfrost 1800000.gpu: gpu soft reset timed out
 panfrost 1800000.gpu: Fatal error during GPU init
 panfrost: probe of 1800000.gpu failed with error -110
 cacheinfo: Unable to detect cache hierarchy for CPU 0
 loop: module loaded
 zram: Added device: zram0
 Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
 libphy: Fixed MDIO Bus: probed
 tun: Universal TUN/TAP device driver, 1.6
 Broadcom 43xx driver loaded [ Features: NLS ]
 usbcore: registered new interface driver rt2800usb
 usbcore: registered new interface driver r8152
 usbcore: registered new interface driver cdc_ether
 usbcore: registered new interface driver cdc_eem
 usbcore: registered new interface driver cdc_ncm
 ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 ehci-platform: EHCI generic platform driver
 ehci-platform 5101000.usb: EHCI Host Controller
 ehci-platform 5101000.usb: new USB bus registered, assigned bus number 1
 ehci-platform 5101000.usb: irq 20, io mem 0x05101000
 ehci-platform 5101000.usb: USB 2.0 started, EHCI 1.00
 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
 usb usb1: Product: EHCI Host Controller
 usb usb1: Manufacturer: Linux 5.4.0-rc5-meg-ah6+ ehci_hcd
 usb usb1: SerialNumber: 5101000.usb
 hub 1-0:1.0: USB hub found
 hub 1-0:1.0: 1 port detected
 ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
 ohci-platform: OHCI generic platform driver
 ohci-platform 5101400.usb: Generic Platform OHCI controller
 ohci-platform 5101400.usb: new USB bus registered, assigned bus number 2
 ohci-platform 5101400.usb: irq 21, io mem 0x05101400
 usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
 usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
 usb usb2: Product: Generic Platform OHCI controller
 usb usb2: Manufacturer: Linux 5.4.0-rc5-meg-ah6+ ohci_hcd
 usb usb2: SerialNumber: 5101400.usb
 hub 2-0:1.0: USB hub found
 hub 2-0:1.0: 1 port detected
 usbcore: registered new interface driver cdc_acm
 cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
 usbcore: registered new interface driver usblp
 usbcore: registered new interface driver cdc_wdm
 usbcore: registered new interface driver uas
 usbcore: registered new interface driver usb-storage
 usbcore: registered new interface driver ch341
 usbserial: USB Serial support registered for ch341-uart
 usbcore: registered new interface driver cp210x
 usbserial: USB Serial support registered for cp210x
 usbcore: registered new interface driver ftdi_sio
 usbserial: USB Serial support registered for FTDI USB Serial Device
 udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers
 vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
 vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 3
 vhci_hcd: created sysfs vhci_hcd.0
 usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
 usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
 usb usb3: Product: USB/IP Virtual Host Controller
 usb usb3: Manufacturer: Linux 5.4.0-rc5-meg-ah6+ vhci_hcd
 usb usb3: SerialNumber: vhci_hcd.0
 hub 3-0:1.0: USB hub found
 hub 3-0:1.0: 8 ports detected
 vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
 vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 4
 usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
 usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.04
 usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
 usb usb4: Product: USB/IP Virtual Host Controller
 usb usb4: Manufacturer: Linux 5.4.0-rc5-meg-ah6+ vhci_hcd
 usb usb4: SerialNumber: vhci_hcd.0
 hub 4-0:1.0: USB hub found
 hub 4-0:1.0: 8 ports detected
 usbcore: registered new device driver usbip-host
 using random self ethernet address
 using random host ethernet address
 usb0: HOST MAC 3e:a7:7c:23:ac:f0
 usb0: MAC 8a:c4:09:c3:d4:73
 using random self ethernet address
 using random host ethernet address
 g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
 g_ether gadget: g_ether ready
 mousedev: PS/2 mouse device common for all mice
 sun6i-rtc 7000000.rtc: registered as rtc0
 sun6i-rtc 7000000.rtc: RTC enabled
 i2c /dev entries driver
 IR NEC protocol handler initialized
 IR RC5(x/sz) protocol handler initialized
 IR RC6 protocol handler initialized
 IR JVC protocol handler initialized
 IR Sony protocol handler initialized
 IR SANYO protocol handler initialized
 IR Sharp protocol handler initialized
 IR MCE Keyboard/mouse protocol handler initialized
 IR XMP protocol handler initialized
 sun50i-h6-r-pinctrl 7022000.pinctrl: 7022000.pinctrl supply vcc-pl not found, using dummy regulator
 Registered IR keymap rc-empty
 rc rc0: sunxi-ir as /devices/platform/soc/7040000.ir/rc/rc0
 input: sunxi-ir as /devices/platform/soc/7040000.ir/rc/rc0/input0
 rc rc0: lirc_dev: driver sunxi-ir registered at minor = 0, raw IR receiver, no transmitter
 sunxi-ir 7040000.ir: initialized sunXi IR driver
 sunxi-wdt 7020400.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
 Bluetooth: HCI UART driver ver 2.3
 Bluetooth: HCI UART protocol H4 registered
 Bluetooth: HCI UART protocol Broadcom registered
 ledtrig-cpu: registered to indicate activity on CPUs
 hidraw: raw HID events driver (C) Jiri Kosina
 usbcore: registered new interface driver usbhid
 usbhid: USB HID core driver
 gnss: GNSS driver registered with major 243
 usbcore: registered new interface driver snd-usb-audio
 GACT probability NOT on
 ipip: IPv4 and MPLS over IPv4 tunneling driver
 NET: Registered protocol family 10
 Segment Routing with IPv6
 sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
 NET: Registered protocol family 17
 NET: Registered protocol family 15
 Bluetooth: RFCOMM TTY layer initialized
 Bluetooth: RFCOMM socket layer initialized
 Bluetooth: RFCOMM ver 1.11
 Bluetooth: BNEP (Ethernet Emulation) ver 1.3
 Bluetooth: BNEP filters: protocol multicast
 Bluetooth: BNEP socket layer initialized
 Bluetooth: HIDP (Human Interface Emulation) ver 1.2
 Bluetooth: HIDP socket layer initialized
 l2tp_core: L2TP core driver, V2.0
 l2tp_netlink: L2TP netlink interface
 NET4: DECnet for Linux: V.2.5.68s (C) 1995-2003 Linux DECnet Project Team
 DECnet: Routing cache hash table of 1024 buckets, 16Kbytes
 NET: Registered protocol family 12
 8021q: 802.1Q VLAN Support v1.8
 Key type dns_resolver registered
 registered taskstats version 1
 Loading compiled-in X.509 certificates
 Key type ._fscrypt registered
 Key type .fscrypt registered
 Key type encrypted registered
 sun50i-h6-pinctrl 300b000.pinctrl: initialized sunXi PIO driver
 sun50i-h6-pinctrl 300b000.pinctrl: 300b000.pinctrl supply vcc-ph not found, using dummy regulator
 printk: console [ttyS0] disabled
 5000000.serial: ttyS0 at MMIO 0x5000000 (irq = 17, base_baud = 1500000) is a 16550A
 printk: console [ttyS0] enabled
 sun4i-drm display-engine: bound 1100000.mixer (ops 0xffffffc010e925b8)
 sun4i-drm display-engine: bound 6510000.tcon-top (ops 0xffffffc010e966a0)
 sun4i-drm display-engine: bound 6515000.lcd-controller (ops 0xffffffc010e8eac8)
 sun8i-dw-hdmi 6000000.hdmi: 6000000.hdmi supply hvcc not found, using dummy regulator
 sun8i-dw-hdmi 6000000.hdmi: Detected HDMI TX controller v2.12a with HDCP (DWC HDMI 2.0 TX PHY)
 sun8i-dw-hdmi 6000000.hdmi: registered DesignWare HDMI I2C bus driver
 rc_core: IR keymap rc-cec not found
 Registered IR keymap rc-empty
 rc rc1: dw_hdmi as /devices/platform/soc/6000000.hdmi/rc/rc1
 input: dw_hdmi as /devices/platform/soc/6000000.hdmi/rc/rc1/input1
 sun4i-drm display-engine: bound 6000000.hdmi (ops 0xffffffc010e91960)
 [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
 [drm] No driver support for vblank timestamp query.
 [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
 random: fast init done
 Console: switching to colour frame buffer device 240x67
 sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
 ehci-platform 5311000.usb: EHCI Host Controller
 ehci-platform 5311000.usb: new USB bus registered, assigned bus number 5
 ehci-platform 5311000.usb: irq 22, io mem 0x05311000
 ehci-platform 5311000.usb: USB 2.0 started, EHCI 1.00
 usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
 usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
 usb usb5: Product: EHCI Host Controller
 usb usb5: Manufacturer: Linux 5.4.0-rc5-meg-ah6+ ehci_hcd
 usb usb5: SerialNumber: 5311000.usb
 hub 5-0:1.0: USB hub found
 hub 5-0:1.0: 1 port detected
 ohci-platform 5311400.usb: Generic Platform OHCI controller
 ohci-platform 5311400.usb: new USB bus registered, assigned bus number 6
 ohci-platform 5311400.usb: irq 23, io mem 0x05311400
 usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
 usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
 usb usb6: Product: Generic Platform OHCI controller
 usb usb6: Manufacturer: Linux 5.4.0-rc5-meg-ah6+ ohci_hcd
 usb usb6: SerialNumber: 5311400.usb
 hub 6-0:1.0: USB hub found
 hub 6-0:1.0: 1 port detected
 usb_phy_generic usb_phy_generic.3.auto: usb_phy_generic.3.auto supply vcc not found, using dummy regulator
 musb-hdrc musb-hdrc.4.auto: MUSB HDRC host driver
 musb-hdrc musb-hdrc.4.auto: new USB bus registered, assigned bus number 7
 usb usb7: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
 usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
 usb usb7: Product: MUSB HDRC host driver
 usb usb7: Manufacturer: Linux 5.4.0-rc5-meg-ah6+ musb-hcd
 usb usb7: SerialNumber: musb-hdrc.4.auto
 hub 7-0:1.0: USB hub found
 hub 7-0:1.0: 1 port detected
 sun50i-h6-pinctrl 300b000.pinctrl: 300b000.pinctrl supply vcc-pf not found, using dummy regulator
 sunxi-mmc 4020000.mmc: Got CD GPIO
 sunxi-mmc 4020000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
 sun6i-rtc 7000000.rtc: setting system clock to 1971-11-05T17:26:22 UTC (58209982)
 cfg80211: Loading compiled-in X.509 certificates for regulatory database
 cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
 ALSA device list:
 platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
   #0: Dummy 1
 cfg80211: failed to load regulatory.db
   #1: Loopback 1
 Freeing unused kernel memory: 2048K
 Run /init as init process
 usb 2-1: new full-speed USB device number 2 using ohci-platform
 usb 2-1: New USB device found, idVendor=17ef, idProduct=6047, bcdDevice= 3.00
 usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
 usb 2-1: Product: ThinkPad Compact USB Keyboard with TrackPoint
 usb 2-1: Manufacturer: Lenovo
 input: Lenovo ThinkPad Compact USB Keyboard with TrackPoint as /devices/platform/soc/5101400.usb/usb2/2-1/2-1:1.0/0003:17EF:6047.0001/input/input2
 hid-generic 0003:17EF:6047.0001: input,hidraw0: USB HID v1.00 Keyboard [Lenovo ThinkPad Compact USB Keyboard with TrackPoint] on usb-5101400.usb-1/input0
 input: Lenovo ThinkPad Compact USB Keyboard with TrackPoint Mouse as /devices/platform/soc/5101400.usb/usb2/2-1/2-1:1.1/0003:17EF:6047.0002/input/input3
 input: Lenovo ThinkPad Compact USB Keyboard with TrackPoint Consumer Control as /devices/platform/soc/5101400.usb/usb2/2-1/2-1:1.1/0003:17EF:6047.0002/input/input4
 input: Lenovo ThinkPad Compact USB Keyboard with TrackPoint as /devices/platform/soc/5101400.usb/usb2/2-1/2-1:1.1/0003:17EF:6047.0002/input/input5
 input: Lenovo ThinkPad Compact USB Keyboard with TrackPoint as /devices/platform/soc/5101400.usb/usb2/2-1/2-1:1.1/0003:17EF:6047.0002/input/input6
 input: Lenovo ThinkPad Compact USB Keyboard with TrackPoint as /devices/platform/soc/5101400.usb/usb2/2-1/2-1:1.1/0003:17EF:6047.0002/input/input7
 hid-generic 0003:17EF:6047.0002: input,hiddev96,hidraw1: USB HID v1.00 Mouse [Lenovo ThinkPad Compact USB Keyboard with TrackPoint] on usb-5101400.usb-1/input1
 vcc3v3: disabling
 random: crng init done
Run /init as init process
 usb 1-1: new high-speed USB device number 2 using ehci-platform
 usb 1-1: New USB device found, idVendor=8564, idProduct=1000, bcdDevice=11.00
 usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 usb 1-1: Product: Mass Storage Device
 usb 1-1: Manufacturer: JetFlash
 usb 1-1: SerialNumber: 33V8NQ6D50MRZRPI
 usb-storage 1-1:1.0: USB Mass Storage device detected
 scsi host0: usb-storage 1-1:1.0
 scsi 0:0:0:0: Direct-Access     JetFlash Transcend 8GB    1100 PQ: 0 ANSI: 4
 sd 0:0:0:0: [sda] 15826944 512-byte logical blocks: (8.10 GB/7.55 GiB)
 sd 0:0:0:0: [sda] Write Protect is off
 sd 0:0:0:0: [sda] No Caching mode page found
 sd 0:0:0:0: [sda] Assuming drive cache: write through
  sda: sda1
 sd 0:0:0:0: [sda] Attached SCSI removable disk
 EXT4-fs (sda1): mounted filesystem with writeback data mode. Opts: (null)
 systemd[1]: System time before build time, advancing clock.
 systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
 systemd[1]: Detected architecture arm64.
 systemd[1]: Set hostname to .
 systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
 random: systemd: uninitialized urandom read (16 bytes read)
 systemd[1]: Condition check resulted in Arbitrary Executable File Formats File System Automount Point being skipped.
 random: systemd: uninitialized urandom read (16 bytes read)
 systemd[1]: Started Forward Password Requests to Wall Directory Watch.
 random: systemd: uninitialized urandom read (16 bytes read)
 systemd[1]: Reached target System Time Synchronized.
 systemd[1]: Listening on initctl Compatibility Named Pipe.
 systemd[1]: Listening on Syslog Socket.
 systemd[1]: Reached target Swap.
 EXT4-fs (sda1): re-mounted. Opts: commit=600,errors=remount-ro
 systemd-journald[391]: Received request to flush runtime journal from PID 1
 Debian Buster with Armbian Linux ttyS0 
 orangepi3 login:

USBドライブで起動までできましたが、eMMCとUSB3は使えず、USB2ポートは一つなのでこれ以上進めません。とりあえずAndroidのROM焼きから逃れるためにはもう少し手を打たないといけません。シリアルコンソールは表示はできるのですが入力ができません。プルアップすればできるかと思いますが現状は難しいです。

リトライ

usb3は使えませんがネットワークは繋がりました。これで一段落です。

___  ____  _   _____ 
 / _ \|  _ \(_) |___ / 
| | | | |_) | |   |_ \ 
| |_| |  __/| |  ___) |
 \___/|_|   |_| |____/ 
                       
Welcome to Debian Buster with Armbian Linux 5.4.0-rc5-meg-ah6+
System load:   0.19 0.30 0.14  	Up time:       3 min		
Memory usage:  3 % of 2992MB 	IP:            192.168.1.23
Usage of /:    1% of 114G   	

[ Menu-driven system configuration (beta): sudo apt update && sudo apt install armbian-config ]

デスクトップで綺麗に表示できるかチェックしました。問題ありません。十分使えそうです。4GBのRAMを積んでますが実際は3GBしか使えませんがブラウザも問題なく表示できています。debianはfirefoxがリポになくてfirefox-esrをいうものを使います。デスクトップならubuntuのほうが良さそうです。

参考