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のほうが良さそうです。

参考