Closed ckuethe closed 3 years ago
dmesg. As you can see, it thinks it's an M1 Plus
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.28-sunxi (root@builder) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #20.02.7 SMP Sat Mar 28 14:32:15 CET 2020
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: FriendlyArm NanoPi M1 Plus
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 128 MiB at 0x55c00000
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] Normal zone: 1152 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 131072 pages, LIFO batch:31
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] percpu: Embedded 20 pages/cpu s49868 r8192 d23860 u81920
[ 0.000000] pcpu-alloc: s49868 r8192 d23860 u81920 alloc=20*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129920
[ 0.000000] Kernel command line: root=UUID=51464e5d-3ef8-4fd1-9612-6948befb1945 rootwait rootfstype=ext4 console=ttyS0,115200 console=tty1 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 consoleblank=0 loglevel=7 ubootpart=8945af7f-01 ubootsource=mmc usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] allocated 524288 bytes of page_ext
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 365076K/524288K available (9216K kernel code, 1053K rwdata, 2880K rodata, 1024K init, 316K bss, 28140K reserved, 131072K cma-reserved, 0K highmem)
[ 0.000000] random: get_random_u32 called from __kmem_cache_create+0x2b/0x3ac with crng_init=0
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 41301 entries in 81 pages
[ 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 calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000017] Switching to timer-based delay loop, resolution 41ns
[ 0.000209] Console: colour dummy device 80x30
[ 0.000608] printk: console [tty1] enabled
[ 0.000662] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.000690] pid_max: default: 32768 minimum: 301
[ 0.000895] LSM: Security Framework initializing
[ 0.000991] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001014] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001107] *** VALIDATE tmpfs ***
[ 0.001753] *** VALIDATE proc ***
[ 0.002069] *** VALIDATE cgroup1 ***
[ 0.002090] *** VALIDATE cgroup2 ***
[ 0.002163] CPU: Testing write buffer coherency: ok
[ 0.002578] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.003098] Setting up static identity map for 0x40100000 - 0x40100054
[ 0.003237] rcu: Hierarchical SRCU implementation.
[ 0.003788] smp: Bringing up secondary CPUs ...
[ 0.014624] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.025449] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.036207] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.036308] smp: Brought up 1 node, 4 CPUs
[ 0.036366] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[ 0.036381] CPU: All CPU(s) started in HYP mode.
[ 0.036392] CPU: Virtualization extensions available.
[ 0.037151] devtmpfs: initialized
[ 0.043667] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.043960] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.044060] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.048903] xor: measuring software checksum speed
[ 0.088155] arm4regs : 1255.000 MB/sec
[ 0.128212] 8regs : 874.000 MB/sec
[ 0.168275] 32regs : 826.000 MB/sec
[ 0.208333] neon : 1270.000 MB/sec
[ 0.208347] xor: using function: neon (1270.000 MB/sec)
[ 0.208423] pinctrl core: initialized pinctrl subsystem
[ 0.209411] NET: Registered protocol family 16
[ 0.211212] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.211758] audit: initializing netlink subsys (disabled)
[ 0.211950] audit: type=2000 audit(0.188:1): state=initialized audit_enabled=0 res=1
[ 0.212485] cpuidle: using governor ladder
[ 0.212531] cpuidle: using governor menu
[ 0.213086] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.213109] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.308655] raid6: neonx8 gen() 709 MB/s
[ 0.376714] raid6: neonx8 xor() 590 MB/s
[ 0.444804] raid6: neonx4 gen() 727 MB/s
[ 0.512842] raid6: neonx4 xor() 616 MB/s
[ 0.580945] raid6: neonx2 gen() 663 MB/s
[ 0.649006] raid6: neonx2 xor() 584 MB/s
[ 0.717167] raid6: neonx1 gen() 495 MB/s
[ 0.785203] raid6: neonx1 xor() 467 MB/s
[ 0.853261] raid6: int32x8 gen() 267 MB/s
[ 0.921432] raid6: int32x8 xor() 175 MB/s
[ 0.989425] raid6: int32x4 gen() 285 MB/s
[ 1.057539] raid6: int32x4 xor() 195 MB/s
[ 1.125748] raid6: int32x2 gen() 255 MB/s
[ 1.193733] raid6: int32x2 xor() 206 MB/s
[ 1.261933] raid6: int32x1 gen() 200 MB/s
[ 1.329978] raid6: int32x1 xor() 176 MB/s
[ 1.329993] raid6: using algorithm neonx4 gen() 727 MB/s
[ 1.330006] raid6: .... xor() 616 MB/s, rmw enabled
[ 1.330019] raid6: using neon recovery algorithm
[ 1.331340] iommu: Default domain type: Translated
[ 1.331726] SCSI subsystem initialized
[ 1.331966] libata version 3.00 loaded.
[ 1.332168] usbcore: registered new interface driver usbfs
[ 1.332234] usbcore: registered new interface driver hub
[ 1.332320] usbcore: registered new device driver usb
[ 1.332518] mc: Linux media interface: v0.10
[ 1.332560] videodev: Linux video capture interface: v2.00
[ 1.332707] pps_core: LinuxPPS API ver. 1 registered
[ 1.332724] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 1.332769] PTP clock support registered
[ 1.334268] clocksource: Switched to clocksource arch_sys_counter
[ 2.170674] *** VALIDATE bpf ***
[ 2.171019] VFS: Disk quotas dquot_6.6.0
[ 2.171114] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 2.171225] *** VALIDATE ramfs ***
[ 2.178390] thermal_sys: Registered thermal governor 'fair_share'
[ 2.178396] thermal_sys: Registered thermal governor 'bang_bang'
[ 2.178427] thermal_sys: Registered thermal governor 'step_wise'
[ 2.178443] thermal_sys: Registered thermal governor 'power_allocator'
[ 2.178965] NET: Registered protocol family 2
[ 2.179697] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 2.179749] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 2.179804] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 2.179875] TCP: Hash tables configured (established 4096 bind 4096)
[ 2.179992] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 2.180041] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 2.180267] NET: Registered protocol family 1
[ 2.180828] RPC: Registered named UNIX socket transport module.
[ 2.180852] RPC: Registered udp transport module.
[ 2.180864] RPC: Registered tcp transport module.
[ 2.180876] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 2.181170] Trying to unpack rootfs image as initramfs...
[ 2.567386] Freeing initrd memory: 6180K
[ 2.568727] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[ 2.569897] Initialise system trusted keyrings
[ 2.570142] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 2.576763] zbud: loaded
[ 2.579178] NFS: Registering the id_resolver key type
[ 2.579231] Key type id_resolver registered
[ 2.579245] Key type id_legacy registered
[ 2.579266] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 2.579283] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 2.580687] JFS: nTxBlock = 3924, nTxLock = 31395
[ 2.586370] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[ 2.634678] Key type asymmetric registered
[ 2.634715] Asymmetric key parser 'x509' registered
[ 2.634802] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 2.635049] io scheduler mq-deadline registered
[ 2.635069] io scheduler kyber registered
[ 2.635156] io scheduler bfq registered
[ 2.641197] sun8i-h3-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 2.642855] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[ 2.649054] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 2.651316] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[ 2.651754] printk: console [ttyS0] disabled
[ 2.671940] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 42, base_baud = 1500000) is a U6_16550A
[ 3.549969] printk: console [ttyS0] enabled
[ 3.577130] 1c28c00.serial: ttyS1 at MMIO 0x1c28c00 (irq = 43, base_baud = 1500000) is a U6_16550A
[ 3.601231] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc0a8f2a8)
[ 3.608414] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0a8be90)
[ 3.616153] sun8i-dw-hdmi 1ee0000.hdmi: 1ee0000.hdmi supply hvcc not found, using dummy regulator
[ 3.625987] sun8i-dw-hdmi 1ee0000.hdmi: Detected HDMI TX controller v1.32a with HDCP (sun8i_dw_hdmi_phy)
[ 3.635911] sun8i-dw-hdmi 1ee0000.hdmi: registered DesignWare HDMI I2C bus driver
[ 3.643691] sun4i-drm display-engine: bound 1ee0000.hdmi (ops 0xc0a8e894)
[ 3.650503] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 3.657128] [drm] No driver support for vblank timestamp query.
[ 3.663455] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 3.671281] [drm] Cannot find any crtc or sizes
[ 3.676680] [drm] Cannot find any crtc or sizes
[ 3.679176] brd: module loaded
[ 3.690879] loop: module loaded
[ 3.695852] libphy: Fixed MDIO Bus: probed
[ 3.700711] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[ 3.710737] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[ 3.717116] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[ 3.723153] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 3.729955] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.736505] ehci-platform: EHCI generic platform driver
[ 3.741909] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 3.747524] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 3.755643] ehci-platform 1c1a000.usb: irq 28, io mem 0x01c1a000
[ 3.774270] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 3.780640] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 3.788937] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.796175] usb usb1: Product: EHCI Host Controller
[ 3.801065] usb usb1: Manufacturer: Linux 5.4.28-sunxi ehci_hcd
[ 3.806996] usb usb1: SerialNumber: 1c1a000.usb
[ 3.812117] hub 1-0:1.0: USB hub found
[ 3.815968] hub 1-0:1.0: 1 port detected
[ 3.820460] ehci-platform 1c1b000.usb: EHCI Host Controller
[ 3.826082] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 2
[ 3.834099] ehci-platform 1c1b000.usb: irq 30, io mem 0x01c1b000
[ 3.854283] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[ 3.860618] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 3.868916] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.876158] usb usb2: Product: EHCI Host Controller
[ 3.881050] usb usb2: Manufacturer: Linux 5.4.28-sunxi ehci_hcd
[ 3.886982] usb usb2: SerialNumber: 1c1b000.usb
[ 3.891995] hub 2-0:1.0: USB hub found
[ 3.895828] hub 2-0:1.0: 1 port detected
[ 3.900273] ehci-platform 1c1c000.usb: EHCI Host Controller
[ 3.905894] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 3
[ 3.913876] ehci-platform 1c1c000.usb: irq 32, io mem 0x01c1c000
[ 3.934282] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[ 3.940617] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 3.948908] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.956145] usb usb3: Product: EHCI Host Controller
[ 3.961036] usb usb3: Manufacturer: Linux 5.4.28-sunxi ehci_hcd
[ 3.966966] usb usb3: SerialNumber: 1c1c000.usb
[ 3.971980] hub 3-0:1.0: USB hub found
[ 3.975804] hub 3-0:1.0: 1 port detected
[ 3.980220] ehci-platform 1c1d000.usb: EHCI Host Controller
[ 3.985837] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 4
[ 3.993784] ehci-platform 1c1d000.usb: irq 34, io mem 0x01c1d000
[ 4.014283] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00
[ 4.020600] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 4.028893] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.036130] usb usb4: Product: EHCI Host Controller
[ 4.041021] usb usb4: Manufacturer: Linux 5.4.28-sunxi ehci_hcd
[ 4.046952] usb usb4: SerialNumber: 1c1d000.usb
[ 4.051971] hub 4-0:1.0: USB hub found
[ 4.055796] hub 4-0:1.0: 1 port detected
[ 4.060212] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 4.066438] ohci-platform: OHCI generic platform driver
[ 4.071884] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 4.078536] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 5
[ 4.086488] ohci-platform 1c1a400.usb: irq 29, io mem 0x01c1a400
[ 4.154513] usb usb5: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
[ 4.162800] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.170037] usb usb5: Product: Generic Platform OHCI controller
[ 4.175973] usb usb5: Manufacturer: Linux 5.4.28-sunxi ohci_hcd
[ 4.181907] usb usb5: SerialNumber: 1c1a400.usb
[ 4.186912] hub 5-0:1.0: USB hub found
[ 4.190723] hub 5-0:1.0: 1 port detected
[ 4.195203] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[ 4.201866] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 6
[ 4.209807] ohci-platform 1c1b400.usb: irq 31, io mem 0x01c1b400
[ 4.246289] usb 2-1: new high-speed USB device number 2 using ehci-platform
[ 4.278511] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
[ 4.279800] usb 2-1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=31.00
[ 4.286799] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.294986] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[ 4.302212] usb usb6: Product: Generic Platform OHCI controller
[ 4.309354] usb 2-1: Product: USB 10/100/1000 LAN
[ 4.315285] usb usb6: Manufacturer: Linux 5.4.28-sunxi ohci_hcd
[ 4.319990] usb 2-1: Manufacturer: Realtek
[ 4.325914] usb usb6: SerialNumber: 1c1b400.usb
[ 4.330017] usb 2-1: SerialNumber: 000000000000
[ 4.335050] hub 6-0:1.0: USB hub found
[ 4.342897] hub 6-0:1.0: 1 port detected
[ 4.347366] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[ 4.354025] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 7
[ 4.361997] ohci-platform 1c1c400.usb: irq 33, io mem 0x01c1c400
[ 4.430497] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
[ 4.438790] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.446027] usb usb7: Product: Generic Platform OHCI controller
[ 4.451957] usb usb7: Manufacturer: Linux 5.4.28-sunxi ohci_hcd
[ 4.457888] usb usb7: SerialNumber: 1c1c400.usb
[ 4.462890] hub 7-0:1.0: USB hub found
[ 4.466704] hub 7-0:1.0: 1 port detected
[ 4.471130] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
[ 4.477799] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 8
[ 4.485749] ohci-platform 1c1d400.usb: irq 35, io mem 0x01c1d400
[ 4.554494] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
[ 4.562790] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.570027] usb usb8: Product: Generic Platform OHCI controller
[ 4.575957] usb usb8: Manufacturer: Linux 5.4.28-sunxi ohci_hcd
[ 4.581887] usb usb8: SerialNumber: 1c1d400.usb
[ 4.586884] hub 8-0:1.0: USB hub found
[ 4.590701] hub 8-0:1.0: 1 port detected
[ 4.595709] usbcore: registered new interface driver usb-storage
[ 4.602080] usb_phy_generic usb_phy_generic.2.auto: usb_phy_generic.2.auto supply vcc not found, using dummy regulator
[ 4.613290] musb-hdrc musb-hdrc.3.auto: MUSB HDRC host driver
[ 4.619083] musb-hdrc musb-hdrc.3.auto: new USB bus registered, assigned bus number 9
[ 4.627176] usb usb9: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 4.635469] usb usb9: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.642713] usb usb9: Product: MUSB HDRC host driver
[ 4.647690] usb usb9: Manufacturer: Linux 5.4.28-sunxi musb-hcd
[ 4.653621] usb usb9: SerialNumber: musb-hdrc.3.auto
[ 4.659099] hub 9-0:1.0: USB hub found
[ 4.662935] hub 9-0:1.0: 1 port detected
[ 4.668857] sun6i-rtc 1f00000.rtc: registered as rtc0
[ 4.673949] sun6i-rtc 1f00000.rtc: RTC enabled
[ 4.678687] i2c /dev entries driver
[ 4.684263] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 4.692754] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 4.703418] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[ 4.733217] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 4.740424] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 4.751532] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[ 4.785031] mmc0: host does not support reading read-only switch, assuming write-enable
[ 4.787288] sunxi-mmc 1c11000.mmc: initialized, max. request size: 16384 KB
[ 4.794916] mmc0: new high speed SDHC card at address 0001
[ 4.800591] sun8i-h3-r-pinctrl 1f02c00.pinctrl: 1f02c00.pinctrl supply vcc-pl not found, using dummy regulator
[ 4.806357] mmcblk0: mmc0:0001 EB1QT 29.8 GiB
[ 4.820146] ledtrig-cpu: registered to indicate activity on CPUs
[ 4.826369] hidraw: raw HID events driver (C) Jiri Kosina
[ 4.832007] usbcore: registered new interface driver usbhid
[ 4.837615] usbhid: USB HID core driver
[ 4.842301] mmcblk0: p1
[ 4.843998] Initializing XFRM netlink socket
[ 4.849744] NET: Registered protocol family 10
[ 4.917479] Segment Routing with IPv6
[ 4.921323] NET: Registered protocol family 17
[ 4.925815] NET: Registered protocol family 15
[ 4.930344] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 4.943522] 8021q: 802.1Q VLAN Support v1.8
[ 4.947797] Key type dns_resolver registered
[ 4.952543] Registering SWP/SWPB emulation handler
[ 4.957669] registered taskstats version 1
[ 4.961799] Loading compiled-in X.509 certificates
[ 4.966704] zswap: loaded using pool lzo/zbud
[ 4.971372] Key type ._fscrypt registered
[ 4.975417] Key type .fscrypt registered
[ 4.981763] Btrfs loaded, crc32c=crc32c-generic
[ 5.017600] Key type encrypted registered
[ 5.032731] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[ 5.043655] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[ 5.050068] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[ 5.056110] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 5.061984] dwmac-sun8i 1c30000.ethernet: 1c30000.ethernet supply phy-io not found, using dummy regulator
[ 5.178494] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 50006 (expect 58000)
[ 5.187851] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 5.195091] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 5.202325] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 5.207301] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 5.214104] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 5.219776] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 5.225643] libphy: stmmac: probed
[ 5.229782] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 5.236018] libphy: mdio_mux: probed
[ 5.239630] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 5.246002] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 5.262557] ac200: Unknown symbol ac200_reg_mod (err -2)
[ 5.267938] ac200: Unknown symbol ac200_reg_write (err -2)
[ 5.274747] libphy: mdio_mux: probed
[ 5.278381] dwmac-sun8i 1c30000.ethernet: Switch mux to external PHY
[ 5.301788] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 5.313513] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 5.324629] sun6i-rtc 1f00000.rtc: setting system clock to 2020-04-04T00:39:39 UTC (1585960779)
[ 5.333544] of_cfs_init
[ 5.336129] of_cfs_init: OK
[ 5.342805] Freeing unused kernel memory: 1024K
[ 5.362492] Run /init as init process
[ 5.691200] input: r_gpio_keys as /devices/platform/r_gpio_keys/input/input0
[ 5.699389] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 5.786156] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 5.800282] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[ 5.830352] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[ 5.855023] mmc2: new high speed SDIO card at address 0001
[ 6.005027] random: fast init done
[ 6.160156] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null)
[ 6.885559] 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)
[ 6.907647] systemd[1]: Detected architecture arm.
[ 6.944222] systemd[1]: Set hostname to <DietPi>.
[ 7.397903] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.526143] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.533196] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 7.540530] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.547470] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 7.556059] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 7.563969] systemd[1]: Reached target Swap.
[ 7.569340] systemd[1]: Listening on Journal Audit Socket.
[ 7.575519] systemd[1]: Listening on udev Kernel Socket.
[ 7.581614] systemd[1]: Listening on Journal Socket (/dev/log).
[ 7.780944] g_serial gadget: Gadget Serial v2.4
[ 7.785643] g_serial gadget: g_serial ready
[ 7.829172] EXT4-fs (mmcblk0p1): re-mounted. Opts: (null)
[ 8.169299] g_serial gadget: high-speed config #2: CDC ACM config
[ 8.316634] systemd-journald[281]: Received request to flush runtime journal from PID 1
[ 8.669526] sunxi_cedrus: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.728256] cedrus 1c0e000.video-codec: Device registered as /dev/video0
[ 8.863725] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 8.905883] usbcore: registered new interface driver r8152
[ 8.957109] usbcore: registered new interface driver cdc_ether
[ 8.972162] lima 1c40000.gpu: IRQ ppmmu2 not found
[ 8.977120] lima 1c40000.gpu: IRQ ppmmu3 not found
[ 8.982129] lima 1c40000.gpu: gp - mali400 version major 1 minor 1
[ 8.988529] lima 1c40000.gpu: pp0 - mali400 version major 1 minor 1
[ 8.995019] lima 1c40000.gpu: pp1 - mali400 version major 1 minor 1
[ 9.001509] lima 1c40000.gpu: IRQ pp2 not found
[ 9.006143] lima 1c40000.gpu: IRQ pp3 not found
[ 9.006742] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 9.010775] lima 1c40000.gpu: l2 cache 64K, 4-way, 64byte cache line, 64bit external bus
[ 9.026072] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 9.034846] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[ 9.046431] usb 2-1: reset high-speed USB device number 2 using ehci-platform
[ 9.059424] lima 1c40000.gpu: bus rate = 200000000
[ 9.064444] lima 1c40000.gpu: mod rate = 384000000
[ 9.073899] [drm] Initialized lima 1.0.0 20190217 for 1c40000.gpu on minor 1
[ 9.107435] r8152 2-1:1.0 (unnamed net_device) (uninitialized): Invalid ether addr 00:00:00:00:00:00
[ 9.116672] r8152 2-1:1.0 (unnamed net_device) (uninitialized): Random ether addr 32:29:f6:e5:a7:86
[ 9.140186] Registered IR keymap rc-empty
[ 9.151900] rc rc1: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc1
[ 9.162487] rc rc1: lirc_dev: driver sunxi-ir registered at minor = 0, raw IR receiver, no transmitter
[ 9.172130] input: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc1/input2
[ 9.178094] bFWReady == _FALSE call reset 8051...
[ 9.185459] r8152 2-1:1.0 eth1: v1.10.11
[ 9.194354] Registered IR keymap rc-cec
[ 9.198538] rc rc0: dw_hdmi as /devices/platform/soc/1ee0000.hdmi/rc/rc0
[ 9.203364] sunxi-ir 1f02000.ir: initialized sunXi IR driver
[ 9.205524] input: dw_hdmi as /devices/platform/soc/1ee0000.hdmi/rc/rc0/input1
[ 9.400884] asoc-simple-card sound: i2s-hifi <-> 1c22800.i2s mapping ok
[ 9.452780] cfg80211: failed to load regulatory.db
[ 10.189009] random: crng init done
[ 10.192464] random: 7 urandom warning(s) missed due to ratelimiting
[ 14.140861] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 35.826297] vcc3v0: disabling
[ 35.826309] vcc5v0: disabling
I'm gonna implement NanoPi R1 support now: #4017 Again same SoC (H3) but as well two Ethernet ports. Image should work fine on both boards even that R1S-H3 has no eMMC and only 1 USB port.
There is an R1S-H5 as well, but I cannot even find it in the shop, so it doesn't seem to be relevant. That would require a new image of course, different SoC, even different architecture (ARMv6/aarch64). I mark this issue as closed in favour of the R1 request.
@ckuethe If it is still a topic for you, it would be great if you could test the NanoPi R1 image on your R1S-H3: EDIT: REMOVED OBSOLETE LINK
Trying it now...
Observations: serial console doesn't work; I know my cable is plugged in the right way because the M1 image prints the expected boot messages. Nothing from uboot or the kernel with the R1 image.
Something is happening though. After a few seconds the red light starts doing the heartbeat pattern. If power it off and check the microsd in my laptop, the filesystem has been resized from 610MB to 32GB (same 32GB card that worked as an M1)
It's not connecting to my wifi, though it did with the M1 image.
I'll have to play with it more after work.
Many thanks for testing.
Did you use UART0, the debug console, if I'm not mistaken? That should be enabled by default, but of course it's possible that the required device tree definitions of R1 and R1S are different, so that it does not work with R1 device tree on R1S. There are three overlays to enable UART1 - UART3. Okay I just see R1S has only the 3-pins UART0 connector, not UART1, right? The R1 has UART1 as well, and none of both have UART2 or UART3 exposed. Not sure if it's possible, but probably they can be swapped. Just to rule it our, in /boot/armbianEnv.txt
, you could append uart1 uart2 uart3
to the overlays setting to have all four theoretically existing UART devices enabled.
You did enable WiFi in /bootdietpi.txt
and set SSID + WPA key accordingly in /bootdietpi-wifi.txt
? Else connecting it via Ethernet to get SSH up should work to check what's wrong with WiFi and/or the serial device/console.
Btw, with the M1 Plus image, does the second Ethernet adapter work?
That's correct, the R1S has only the single 3-pin UART. This uart works with no fuss using the M1Plus image.
First difference: plugging in a stock M1Plus image starts emitting u-boot output immediately. The R1 image emits no output all from uboot.
I've added the suggested overlays to armbianEnv.txt; no change in serial console.
So I just didn't wait long enough for wifi to connect - after a while I saw it finally connect to my network.
Here's the dmesg from both M1Plus and R1; https://gist.github.com/ckuethe/97f77fdb47670921f3fd3acdd3f51d93
Okay good, then the firstrun setup steps simply took a little longer.
I think I found the problem. The "console=serial" setting in armbianEnv.txt
triggers boot messages to be printed to console=ttyS1
, which most likely is UART1 (as present on R1), while UART0 would then be ttyS0. Those IDs do not necessarily need to match, sometimes UART0 can be ttyS2 or so, but in most cases it does match.
But there is a way to add custom console outputs. Please try:
C_GONFIG_INJECT 'console=' 'console=none' /boot/armbianEnv.txt
C_GONFIG_INJECT 'consoleargs=' 'consoleargs=ttyS0,115200' /boot/armbianEnv.txt
This disables output to the non-existent ttyS1 and enables it on ttyS0. There is also an earlycon
flag, which sounds like it would give earlier boot messages. To enable it:
C_GONFIG_INJECT 'earlycon=' 'earlycon=on' /boot/armbianEnv.txt
Ah, lol thanks for the diff, which basically shows the ttyS0 assumption to be correct.
Strange is that with the M1+ image, the memory write speeds are nearly doubled. But this test probably doesn't mean something: https://forum.armbian.com/topic/5635-raid6-numbers-meaning/ Would be interesting though if there are actual memory benchmark result differences between both images.
Also interesting is that the available system memory is the same, even a tiny mit more with the M1+ image, right? free
I through there might be some reservation for the GPU with the M1+ image, since that one has an HDMI port.
When you run ip l
with the M1+ image, do you see both Ethernet interfaces?
Both the M1Plus and R1S images see two onboard ethernets and a wifi. Haven't tried plugging any wired network in yet, but the interfaces identify and don't complain when I up
them.
After setting console and consoleargs, boot messages and serial console work, even without the uart overlays. Enabling earlycon causes the boot to hang with no output... maybe in uboot somewhere. Dunno. u-boot isn't emitting anything.
Okay, many thanks for testing. Since the M1 Plus image requires no boot config changes, it seems to be the better choice then. I'll check if there maybe is an R1S-H3 device tree, or if we create an image where at least DietPi detects it as R1S, or if we merge M1 Plus and R1S-H3 device IDs.
Another interesting difference: the R1 image activates a CDC-ACM gadget, giving me a usb port over serial (yes I can log in to that tty), which the M1 image doesn't do.
Indeed interesting. But can the port then still be used for regular USB devices? If I'm not wrong, e.g. on RPi, the gadget mode is either-or.
Is this module loaded? lsmod | grep g_cdc
Indeed the presence of that does prevent normal usb port operation, which is definitely not helpful for my use case. :) I was hoping that maybe only the microusb port would go into gadget mode, but it seems to happen to the regular USB-A port too. I do have a bunch of these boards so it's easy enough to test R1S mode on one while running the others in M1Plus mode.
# lsmod | sort
8189es 1187840 0
Module Size Used by
autofs4 36864 2
cfg80211 491520 1 8189es
cpufreq_dt 20480 0
evdev 20480 0
g_serial 16384 0
gpio_keys 20480 0
industrialio 53248 1 sun4i_gpadc_iio
ip_tables 24576 0
libcomposite 45056 2 g_serial,usb_f_acm
phy_generic 20480 2 sunxi
pwrseq_simple 16384 1
r8152 180224 0
realtek 20480 0
rfkill 20480 3 cfg80211
sun4i_gpadc_iio 16384 0
sun8i_thermal 16384 0
sunxi 16384 0
sunxi_cedrus 32768 0
u_serial 24576 3 usb_f_acm
uio 16384 1 uio_pdrv_genirq
uio_pdrv_genirq 20480 0
usb_f_acm 20480 1
v4l2_mem2mem 20480 1 sunxi_cedrus
videobuf2_common 40960 3 sunxi_cedrus,v4l2_mem2mem,videobuf2_v4l2
videobuf2_dma_contig 20480 1 sunxi_cedrus
videobuf2_memops 20480 1 videobuf2_dma_contig
videobuf2_v4l2 20480 2 sunxi_cedrus,v4l2_mem2mem
x_tables 24576 1 ip_tables
# lsmod |sort
8189es 1187840 0
Module Size Used by
autofs4 36864 2
cdc_acm 32768 0
cfg80211 491520 1 8189es
cpufreq_dt 20480 0
display_connector 20480 0
dw_hdmi_cec 16384 0
dw_hdmi_i2s_audio 16384 0
evdev 20480 0
g_serial 16384 0
gpio_keys 20480 0
gpu_sched 28672 1 lima
industrialio 53248 1 sun4i_gpadc_iio
ip_tables 24576 0
libcomposite 45056 1 g_serial
lima 45056 0
pwrseq_simple 16384 1
r8152 180224 0
realtek 20480 0
rfkill 20480 3 cfg80211
snd_soc_hdmi_codec 20480 0
sun4i_gpadc_iio 16384 0
sun8i_thermal 16384 0
sunxi_cedrus 32768 0
sunxi_cir 20480 0
uio 16384 1 uio_pdrv_genirq
uio_pdrv_genirq 20480 0
v4l2_mem2mem 20480 1 sunxi_cedrus
videobuf2_common 40960 3 sunxi_cedrus,v4l2_mem2mem,videobuf2_v4l2
videobuf2_dma_contig 20480 1 sunxi_cedrus
videobuf2_memops 20480 1 videobuf2_dma_contig
videobuf2_v4l2 20480 2 sunxi_cedrus,v4l2_mem2mem
x_tables 24576 1 ip_tables
cdc_acm
is present because I have a USB GPS connected. It's detected by the M1 personality but not the R1, even when plugged in at boot time.
With a single USB port that is a problem indeed. On R1 there are two USB ports, so having one by default in gadget mode is okay. Does modprobe -r usb_f_acm g_serial
work to restore the regular USB port?
Another argument for M1 Plus image on R1S-H3 is that the second Ethernet port uses the USB bus, hence the single USB A port only, and hence the reason that second Ethernet port does not require any special device tree entry or so. On R1 it is differently attached, and due to SoC limitations only 100 Mbps, but it allows that SBC to have two USB A ports. So while it looks similar at first, R1 and R1S are quire different boards and another single Ethernet H3 image (and hence device tree) fits better for R1S.
Creating an image request
Formal device information
Is the SBC officially supported by the Debian installer?
If not, is a reliable 3rd party Debian image available for this SBC?
If not, are there install instructions for Debian available?
http://wiki.friendlyarm.com/wiki/index.php/Building_U-boot_and_Linux_for_H5/H3/H2%2B
The M1plus DietPi image boots, wifi and serial console work, so it shouldn't be a big lift to
Vote for this image on FeatHub: https://feathub.com/MichaIng/DietPi/