warpme / miniarch

ArchLinux ARM SD card images for quick start with ArchLinux on ARM SBC & TV Boxes
GNU General Public License v2.0
81 stars 7 forks source link

xr819 support #4

Closed dchauran closed 1 year ago

dchauran commented 1 year ago

The link to the supported devices implies that an H6 with xr819 should work, however I only see the wired connection. I see the frmware but no xradio modules. Is there a different module I should be loading?

warpme commented 1 year ago

May you pls give me: -HW details -output of dmesg?

dchauran commented 1 year ago

Hello - hardware is a "t95 max" stb, visual inspection of the hardware shows an xr819, 32gb toshiba storage (which I am able to boot the OS from!). Mali T-720, 4gb ram.

I understand this is a random cheap amazon device, but it very nearly works perfectly out of the box.

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 6.1.5 (piotro@minimyth2-aarch64) (aarch64-minimyth-linux-gnu-gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.38) #1 SMP PREEMPT Thu Jan 12 18:28:43 CET 2023 [ 0.000000] Machine model: Tanix TX6 [ 0.000000] efi: UEFI not found. [ 0.000000] earlycon: uart0 at MMIO32 0x0000000005000000 (options '115200n8') [ 0.000000] printk: bootconsole [uart0] enabled [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000040000000-0x00000000ffffffff] [ 0.000000] DMA32 empty [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000040000000-0x00000000ffffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000ffffffff] [ 0.000000] cma: Reserved 384 MiB at 0x00000000e4800000 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.1 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] psci: SMC Calling Convention v1.2 [ 0.000000] percpu: Embedded 29 pages/cpu s80040 r8192 d30552 u118784 [ 0.000000] pcpu-alloc: s80040 r8192 d30552 u118784 alloc=29*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] alternatives: applying boot alternatives [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 774144 [ 0.000000] Kernel command line: root=PARTUUID=346d1a6a-02 rw rootwait earlycon console=ttyS0,115200n8 logo.nologo vt.cur_default=1 cma=384M deferred_probe_timeout=0 [ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear) [ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 2651604K/3145728K available (14272K kernel code, 3514K rwdata, 5972K rodata, 6592K init, 641K bss, 100908K reserved, 393216K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 50439 entries in 198 pages [ 0.000000] ftrace: allocated 198 pages with 4 groups [ 0.000000] trace event string verifier disabled [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4. [ 0.000000] Trampoline variant of Tasks RCU enabled. [ 0.000000] Rude variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] Root IRQ handler: gic_handle_irq [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 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.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000170] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000809] Console: colour dummy device 80x25 [ 0.000858] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000) [ 0.000873] pid_max: default: 32768 minimum: 301 [ 0.001252] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.001287] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.002693] cacheinfo: Unable to detect cache hierarchy for CPU 0 [ 0.003650] cblist_init_generic: Setting adjustable number of callback queues. [ 0.003664] cblist_init_generic: Setting shift to 2 and lim to 1. [ 0.003778] cblist_init_generic: Setting shift to 2 and lim to 1. [ 0.003891] cblist_init_generic: Setting shift to 2 and lim to 1. [ 0.004169] rcu: Hierarchical SRCU implementation. [ 0.004175] rcu: Max phase no-delay instances is 1000. [ 0.006530] EFI services will not be available. [ 0.007193] smp: Bringing up secondary CPUs ... [ 0.008432] Detected VIPT I-cache on CPU1 [ 0.008541] cacheinfo: Unable to detect cache hierarchy for CPU 1 [ 0.008588] CPU1: Booted secondary processor 0x0000000001 [0x410fd034] [ 0.009647] Detected VIPT I-cache on CPU2 [ 0.009739] cacheinfo: Unable to detect cache hierarchy for CPU 2 [ 0.009766] CPU2: Booted secondary processor 0x0000000002 [0x410fd034] [ 0.010819] Detected VIPT I-cache on CPU3 [ 0.010909] cacheinfo: Unable to detect cache hierarchy for CPU 3 [ 0.010936] CPU3: Booted secondary processor 0x0000000003 [0x410fd034] [ 0.011049] smp: Brought up 1 node, 4 CPUs [ 0.011065] SMP: Total of 4 processors activated. [ 0.011072] CPU features: detected: 32-bit EL0 Support [ 0.011077] CPU features: detected: 32-bit EL1 Support [ 0.011085] CPU features: detected: CRC32 instructions [ 0.011165] CPU: All CPU(s) started at EL2 [ 0.011181] alternatives: applying system-wide alternatives [ 0.013289] devtmpfs: initialized [ 0.021770] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns [ 0.021803] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.034356] pinctrl core: initialized pinctrl subsystem [ 0.035235] DMI not present or invalid. [ 0.035878] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.038133] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations [ 0.038346] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.038701] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.038841] audit: initializing netlink subsys (disabled) [ 0.039132] audit: type=2000 audit(0.036:1): state=initialized audit_enabled=0 res=1 [ 0.040288] thermal_sys: Registered thermal governor 'fair_share' [ 0.040296] thermal_sys: Registered thermal governor 'bang_bang' [ 0.040302] thermal_sys: Registered thermal governor 'step_wise' [ 0.040307] thermal_sys: Registered thermal governor 'user_space' [ 0.040365] cpuidle: using governor ladder [ 0.040397] cpuidle: using governor menu [ 0.040570] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.040703] ASID allocator initialised with 65536 entries [ 0.041266] Serial: AMBA PL011 UART driver [ 0.077184] cryptd: max_cpu_qlen set to 1000 [ 0.078645] ACPI: Interpreter disabled. [ 0.080712] iommu: Default domain type: Translated [ 0.080724] iommu: DMA domain TLB invalidation policy: strict mode [ 0.081507] SCSI subsystem initialized [ 0.081835] usbcore: registered new interface driver usbfs [ 0.081903] usbcore: registered new interface driver hub [ 0.081952] usbcore: registered new device driver usb [ 0.082519] pps_core: LinuxPPS API ver. 1 registered [ 0.082526] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 0.082544] PTP clock support registered [ 0.083418] Advanced Linux Sound Architecture Driver Initialized. [ 0.084400] vgaarb: loaded [ 0.084788] clocksource: Switched to clocksource arch_sys_counter [ 0.085444] pnp: PnP ACPI: disabled [ 0.096682] NET: Registered PF_INET protocol family [ 0.097137] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear) [ 0.101146] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear) [ 0.101202] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.101291] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 0.101597] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear) [ 0.102643] TCP: Hash tables configured (established 32768 bind 32768) [ 0.102886] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear) [ 0.103007] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear) [ 0.103314] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.103994] RPC: Registered named UNIX socket transport module. [ 0.104003] RPC: Registered udp transport module. [ 0.104009] RPC: Registered tcp transport module. [ 0.104014] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.104021] NET: Registered PF_XDP protocol family [ 0.104039] PCI: CLS 0 bytes, default 64 [ 0.104534] Trying to unpack rootfs image as initramfs... [ 0.114845] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available [ 0.115637] kvm [1]: IPA Size Limit: 40 bits [ 0.117459] kvm [1]: vgic interrupt IRQ9 [ 0.117602] kvm [1]: Hyp mode initialized successfully [ 0.517174] Freeing initrd memory: 7612K [ 1.367117] Initialise system trusted keyrings [ 1.367507] workingset: timestamp_bits=46 max_order=20 bucket_order=0 [ 1.376116] zbud: loaded [ 1.378747] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.379739] NFS: Registering the id_resolver key type [ 1.379786] Key type id_resolver registered [ 1.379793] Key type id_legacy registered [ 1.379922] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.379931] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 1.431017] NET: Registered PF_ALG protocol family [ 1.431031] Key type asymmetric registered [ 1.431038] Asymmetric key parser 'x509' registered [ 1.431044] Asymmetric key parser 'pkcs8' registered [ 1.431049] Key type pkcs7_test registered [ 1.451576] alg: self-tests for CTR-KDF (hmac(sha256)) passed [ 1.451714] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247) [ 1.451875] io scheduler mq-deadline registered [ 1.451883] io scheduler kyber registered [ 1.452201] io scheduler bfq registered [ 1.455299] sun4i-usb-phy 5100400.phy: failed to get clock usb0_phy [ 1.468256] EINJ: ACPI disabled. [ 1.490000] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 1.492880] Serial: AMBA driver [ 1.503402] display-connector connector: Couldn't get ddc-en gpio [ 1.503891] cacheinfo: Unable to detect cache hierarchy for CPU 0 [ 1.511848] usbcore: registered new interface driver usb-storage [ 1.511925] usbcore: registered new interface driver ums-realtek [ 1.512077] usbcore: registered new interface driver usbserial_generic [ 1.512107] usbserial: USB Serial support registered for generic [ 1.514389] mousedev: PS/2 mouse device common for all mice [ 1.515901] sun6i-rtc 7000000.rtc: registered as rtc0 [ 1.515937] sun6i-rtc 7000000.rtc: setting system clock to 1970-01-01T21:19:39 UTC (76779) [ 1.516072] sun6i-rtc 7000000.rtc: RTC enabled [ 1.520566] sdhci: Secure Digital Host Controller Interface driver [ 1.520576] sdhci: Copyright(c) Pierre Ossman [ 1.520903] Synopsys Designware Multimedia Card Interface Driver [ 1.523050] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.524641] ledtrig-cpu: registered to indicate activity on CPUs [ 1.525844] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping .... [ 1.525903] hid: raw HID events driver (C) Jiri Kosina [ 1.526084] usbcore: registered new interface driver usbhid [ 1.526092] usbhid: USB HID core driver [ 1.535332] NET: Registered PF_PACKET protocol family [ 1.535666] Key type dns_resolver registered [ 1.536773] registered taskstats version 1 [ 1.536818] Loading compiled-in X.509 certificates [ 1.537513] zswap: loaded using pool lzo/zbud [ 1.573751] sun8i-mixer 1100000.mixer: Adding to iommu group 0 [ 1.583063] sun50i-h6-pinctrl 300b000.pinctrl: initialized sunXi PIO driver [ 1.587063] sun50i-h6-r-pinctrl 7022000.pinctrl: initialized sunXi PIO driver [ 1.587696] sun50i-h6-pinctrl 300b000.pinctrl: supply vcc-pb not found, using dummy regulator [ 1.589544] sun50i-h6-pinctrl 300b000.pinctrl: supply vcc-ph not found, using dummy regulator [ 1.590364] printk: console [ttyS0] disabled [ 1.590458] 5000000.serial: ttyS0 at MMIO 0x5000000 (irq = 225, base_baud = 1500000) is a 16550A [ 1.590538] printk: console [ttyS0] enabled [ 1.590547] printk: bootconsole [uart0] disabled [ 1.592625] 5000400.serial: ttyS1 at MMIO 0x5000400 (irq = 226, base_baud = 1500000) is a 16550A [ 1.592830] serial serial0: tty port ttyS1 registered [ 1.594363] sun4i-drm display-engine: Adding to iommu group 0 [ 1.615558] sun4i-drm display-engine: bound 1100000.mixer (ops sun8i_mixer_ops) [ 1.615866] sun4i-drm display-engine: bound 6510000.tcon-top (ops sun8i_tcon_top_ops) [ 1.616399] sun4i-drm display-engine: bound 6515000.lcd-controller (ops sun4i_tcon_ops) [ 1.616504] sun8i-dw-hdmi 6000000.hdmi: supply hvcc not found, using dummy regulator [ 1.617051] sun8i-dw-hdmi 6000000.hdmi: Detected HDMI TX controller v2.12a with HDCP (DWC HDMI 2.0 TX PHY) [ 1.617653] sun8i-dw-hdmi 6000000.hdmi: registered DesignWare HDMI I2C bus driver [ 1.619597] sun4i-drm display-engine: bound 6000000.hdmi (ops sun8i_dw_hdmi_ops) [ 1.620262] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0 [ 1.620374] sun4i-drm display-engine: [drm] Cannot find any crtc or sizes [ 1.621949] display-connector connector: Couldn't get ddc-en gpio [ 1.621961] display-connector: probe of connector failed with error -16 [ 1.624441] ehci-platform 5311000.usb: EHCI Host Controller [ 1.624475] ehci-platform 5311000.usb: new USB bus registered, assigned bus number 1 [ 1.624687] ehci-platform 5311000.usb: irq 22, io mem 0x05311000 [ 1.625393] ehci-platform 5101000.usb: EHCI Host Controller [ 1.625426] ehci-platform 5101000.usb: new USB bus registered, assigned bus number 2 [ 1.625594] ehci-platform 5101000.usb: irq 21, io mem 0x05101000 [ 1.627546] usb_phy_generic usb_phy_generic.4.auto: supply vcc not found, using dummy regulator [ 1.627673] ohci-platform 5311400.usb: Generic Platform OHCI controller [ 1.627699] ohci-platform 5311400.usb: new USB bus registered, assigned bus number 3 [ 1.627752] usb_phy_generic usb_phy_generic.4.auto: dummy supplies not allowed for exclusive requests [ 1.627863] ohci-platform 5311400.usb: irq 24, io mem 0x05311400 [ 1.634806] ehci-platform 5311000.usb: USB 2.0 started, EHCI 1.00 [ 1.635218] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01 [ 1.635232] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.635243] usb usb1: Product: EHCI Host Controller [ 1.635251] usb usb1: Manufacturer: Linux 6.1.5 ehci_hcd [ 1.635258] usb usb1: SerialNumber: 5311000.usb [ 1.635970] hub 1-0:1.0: USB hub found [ 1.636029] hub 1-0:1.0: 1 port detected [ 1.648140] ehci-platform 5101000.usb: USB 2.0 started, EHCI 1.00 [ 1.648583] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01 [ 1.648597] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.648607] usb usb2: Product: EHCI Host Controller [ 1.648615] usb usb2: Manufacturer: Linux 6.1.5 ehci_hcd [ 1.648623] usb usb2: SerialNumber: 5101000.usb [ 1.649240] hub 2-0:1.0: USB hub found [ 1.649297] hub 2-0:1.0: 1 port detected [ 1.685698] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01 [ 1.685716] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.685726] usb usb3: Product: Generic Platform OHCI controller [ 1.685734] usb usb3: Manufacturer: Linux 6.1.5 ohci_hcd [ 1.685742] usb usb3: SerialNumber: 5311400.usb [ 1.686334] hub 3-0:1.0: USB hub found [ 1.686375] hub 3-0:1.0: 1 port detected [ 1.831521] ohci-platform 5101400.usb: Generic Platform OHCI controller [ 1.831548] ohci-platform 5101400.usb: new USB bus registered, assigned bus number 4 [ 1.831712] ohci-platform 5101400.usb: irq 23, io mem 0x05101400 [ 1.892354] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01 [ 1.892367] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.892377] usb usb4: Product: Generic Platform OHCI controller [ 1.892385] usb usb4: Manufacturer: Linux 6.1.5 ohci_hcd [ 1.892393] usb usb4: SerialNumber: 5101400.usb [ 1.892975] hub 4-0:1.0: USB hub found [ 1.893014] hub 4-0:1.0: 1 port detected [ 2.038439] musb-hdrc musb-hdrc.5.auto: MUSB HDRC host driver [ 2.038469] musb-hdrc musb-hdrc.5.auto: new USB bus registered, assigned bus number 5 [ 2.038812] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01 [ 2.038826] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.038837] usb usb5: Product: MUSB HDRC host driver [ 2.038845] usb usb5: Manufacturer: Linux 6.1.5 musb-hcd [ 2.038854] usb usb5: SerialNumber: musb-hdrc.5.auto [ 2.039477] hub 5-0:1.0: USB hub found [ 2.039549] hub 5-0:1.0: 1 port detected [ 2.041500] sun50i-h6-pinctrl 300b000.pinctrl: supply vcc-pb not found, using dummy regulator [ 2.042625] ac200 1-0010: Can't obtain the clock: -517 [ 2.043983] sun50i-h6-r-pinctrl 7022000.pinctrl: supply vcc-pm not found, using dummy regulator [ 2.046711] sun50i-h6-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator [ 2.050085] sunxi-mmc 4020000.mmc: Got CD GPIO [ 2.059095] ac200 1-0010: Can't obtain the clock: -517 [ 2.063590] sunxi-mmc 4021000.mmc: allocated mmc-pwrseq [ 2.065620] ac200 1-0010: Can't obtain the clock: -517 [ 2.067902] ac200 1-0010: Can't obtain the clock: -517 [ 2.069653] ALSA device list: [ 2.069670] #0: HDMI [ 2.069677] #1: sun50i-h6-spdif [ 2.074096] sunxi-mmc 4022000.mmc: initialized, max. request size: 2048 KB, uses new timings mode [ 2.074350] sunxi-mmc 4020000.mmc: initialized, max. request size: 16384 KB, uses new timings mode [ 2.075939] ac200 1-0010: Can't obtain the clock: -517 [ 2.087410] sunxi-mmc 4021000.mmc: initialized, max. request size: 16384 KB, uses new timings mode [ 2.089147] ac200 1-0010: Can't obtain the clock: -517 [ 2.096695] Freeing unused kernel memory: 6592K [ 2.096833] Run /init as init process [ 2.096841] with arguments: [ 2.096848] /init [ 2.096854] with environment: [ 2.096859] HOME=/ [ 2.096864] TERM=linux [ 2.152044] mmc2: new HS200 MMC card at address 0001 [ 2.153649] mmcblk2: mmc2:0001 032G94 29.1 GiB [ 2.157375] mmcblk2: p1 p2 [ 2.158860] mmcblk2boot0: mmc2:0001 032G94 4.00 MiB [ 2.161900] mmcblk2boot1: mmc2:0001 032G94 4.00 MiB [ 2.165939] ac200 1-0010: Can't obtain the clock: -517 [ 2.368158] usb 4-1: new full-speed USB device number 2 using ohci-platform [ 2.603214] usb 4-1: New USB device found, idVendor=045e, idProduct=0768, bcdDevice= 1.50 [ 2.603242] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2.603253] usb 4-1: Product: Microsoft\xc2\xae SiderWinderTM X4 Keyboard [ 2.603261] usb 4-1: Manufacturer: Microsoft [ 2.612794] input: Microsoft Microsoft\xc2\xae SiderWinderTM X4 Keyboard as /devices/platform/soc/5101400.usb/usb4/4-1/4-1:1.0/0003:045E:0768.0001/input/input0 [ 2.669245] hid-generic 0003:045E:0768.0001: input,hidraw0: USB HID v1.11 Keyboard [Microsoft Microsoft\xc2\xae SiderWinderTM X4 Keyboard] on usb-5101400.usb-1/input0 [ 2.670885] ac200 1-0010: Can't obtain the clock: -517 [ 2.682131] input: Microsoft Microsoft\xc2\xae SiderWinderTM X4 Keyboard Consumer Control as /devices/platform/soc/5101400.usb/usb4/4-1/4-1:1.1/0003:045E:0768.0002/input/input1 [ 2.738746] input: Microsoft Microsoft\xc2\xae SiderWinderTM X4 Keyboard as /devices/platform/soc/5101400.usb/usb4/4-1/4-1:1.1/0003:045E:0768.0002/input/input2 [ 2.739167] hid-generic 0003:045E:0768.0002: input,hidraw1: USB HID v1.11 Keyboard [Microsoft Microsoft\xc2\xae SiderWinderTM X4 Keyboard] on usb-5101400.usb-1/input1 [ 2.740712] ac200 1-0010: Can't obtain the clock: -517 [ 2.835839] panfrost 1800000.gpu: clock rate = 432000000 [ 2.835886] panfrost 1800000.gpu: bus_clock rate = 200000000 [ 2.837973] panfrost 1800000.gpu: mali-t720 id 0x720 major 0x1 minor 0x1 status 0x0 [ 2.837999] panfrost 1800000.gpu: features: 00000000,00000408, issues: 00000000,21054400 [ 2.838012] panfrost 1800000.gpu: Features: L2:0x07110206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002821 AS:0xf JS:0x7 [ 2.838025] panfrost 1800000.gpu: shader_present=0x3 l2_present=0x1 [ 2.845853] [drm] Initialized panfrost 1.2.0 20180908 for 1800000.gpu on minor 1 [ 2.848254] ac200 1-0010: Can't obtain the clock: -517 [ 3.162226] EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Quota mode: disabled. [ 3.433741] systemd[1]: System time before build time, advancing clock. [ 3.454450] systemd[1]: Failed to find module 'autofs4' [ 3.474307] NET: Registered PF_INET6 protocol family [ 3.475668] Segment Routing with IPv6 [ 3.475719] In-situ OAM (IOAM) with IPv6 [ 3.510527] systemd[1]: systemd 252.4-2-arch running in system mode (+PAM +AUDIT -SELINUX -APPARMOR -IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +XKBCOMMON +UTMP -SYSVINIT default-hierarchy=unified) [ 3.510586] systemd[1]: Detected architecture arm64. [ 3.529636] systemd[1]: No hostname configured, using default hostname. [ 3.529972] systemd[1]: Hostname set to . [ 3.854990] systemd[1]: bpf-lsm: BPF LSM hook not enabled in the kernel, BPF LSM not supported [ 4.353870] systemd[1]: Queued start job for default target Graphical Interface. [ 4.381253] systemd[1]: Created slice Slice /system/getty. [ 4.400395] systemd[1]: Created slice Slice /system/modprobe. [ 4.420345] systemd[1]: Created slice Slice /system/serial-getty. [ 4.439861] systemd[1]: Created slice User and Session Slice. [ 4.458712] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. [ 4.478581] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 4.498402] systemd[1]: Starting of Arbitrary Executable File Formats File System Automount Point unsupported. [ 4.518420] systemd[1]: Reached target Local Encrypted Volumes. [ 4.535009] systemd[1]: Reached target Local Integrity Protected Volumes. [ 4.555049] systemd[1]: Reached target Path Units. [ 4.571628] systemd[1]: Reached target Remote File Systems. [ 4.588269] systemd[1]: Reached target Slice Units. [ 4.604989] systemd[1]: Reached target Swaps. [ 4.621661] systemd[1]: Reached target Local Verity Protected Volumes. [ 4.642086] systemd[1]: Listening on Device-mapper event daemon FIFOs. [ 4.669109] systemd[1]: Listening on Process Core Dump Socket. [ 4.689210] systemd[1]: Listening on Journal Audit Socket. [ 4.709006] systemd[1]: Listening on Journal Socket (/dev/log). [ 4.725721] systemd[1]: Listening on Journal Socket. [ 4.742493] systemd[1]: Listening on Network Service Netlink Socket. [ 4.763132] systemd[1]: Listening on udev Control Socket. [ 4.782203] systemd[1]: Listening on udev Kernel Socket. [ 4.799040] systemd[1]: Huge Pages File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/mm/hugepages). [ 4.825224] systemd[1]: Mounting POSIX Message Queue File System... [ 4.847122] systemd[1]: Mounting Kernel Debug File System... [ 4.870594] systemd[1]: Mounting Kernel Trace File System... [ 4.894390] systemd[1]: Mounting Temporary Directory /tmp... [ 4.917911] systemd[1]: Starting Create List of Static Device Nodes... [ 4.941105] systemd[1]: Starting Load Kernel Module configfs... [ 4.964463] systemd[1]: Starting Load Kernel Module drm... [ 4.987864] systemd[1]: Starting Load Kernel Module fuse... [ 5.014355] systemd[1]: Starting Journal Service... [ 5.036890] systemd[1]: Load Kernel Modules was skipped because no trigger condition checks were met. [ 5.043401] systemd[1]: Starting Generate network units from Kernel command line... [ 5.071811] systemd[1]: Starting Remount Root and Kernel File Systems... [ 5.088992] systemd[1]: Repartition Root Disk was skipped because no trigger condition checks were met. [ 5.095602] systemd[1]: Starting Apply Kernel Variables... [ 5.118045] systemd[1]: Starting Coldplug All udev Devices... [ 5.151406] systemd[1]: Mounted POSIX Message Queue File System. [ 5.172584] systemd[1]: Mounted Kernel Debug File System. [ 5.192424] systemd[1]: Mounted Kernel Trace File System. [ 5.212450] systemd[1]: Mounted Temporary Directory /tmp. [ 5.233253] systemd[1]: Finished Create List of Static Device Nodes. [ 5.252472] audit: type=1130 audit(1671676649.816:2): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=kmod-static-nodes comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' [ 5.254137] systemd[1]: modprobe@configfs.service: Deactivated successfully. [ 5.255220] systemd[1]: Finished Load Kernel Module configfs. [ 5.275123] audit: type=1130 audit(1671676649.840:3): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=modprobe@configfs comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' [ 5.275163] audit: type=1131 audit(1671676649.840:4): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=modprobe@configfs comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' [ 5.276178] systemd[1]: Started Journal Service. [ 5.295444] audit: type=1130 audit(1671676649.860:5): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-journald comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' [ 5.318442] audit: type=1130 audit(1671676649.883:6): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=modprobe@drm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' [ 5.318486] audit: type=1131 audit(1671676649.883:7): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=modprobe@drm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' [ 5.338489] audit: type=1130 audit(1671676649.903:8): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=modprobe@fuse comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' [ 5.338531] audit: type=1131 audit(1671676649.903:9): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=modprobe@fuse comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' [ 5.358443] audit: type=1130 audit(1671676649.923:10): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-network-generator comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' [ 5.381833] audit: type=1130 audit(1671676649.946:11): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-remount-fs comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' [ 5.502687] systemd-journald[262]: Received client request to flush runtime journal. [ 5.511019] systemd-journald[262]: File /var/log/journal/a20f346ca7114c18808af150ca23caa1/system.journal corrupted or uncleanly shut down, renaming and replacing. [ 6.742462] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 6.768493] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 6.771604] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 6.771631] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db [ 6.853112] FAT-fs (mmcblk2p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 7.291499] random: crng init done [ 7.304152] mc: Linux media interface: v0.10 [ 7.308885] ac200 1-0010: Can't obtain the clock: -517 [ 7.323037] scpi_protocol scpi: SCP Protocol 1.2 Firmware 0.5.10000 version [ 7.337799] ac200-codec: Failed to locate of_node [id: -1] [ 7.340872] videodev: Linux video capture interface: v2.00 [ 7.361665] ac200-efuse: Failed to locate of_node [id: -1] [ 7.437919] ac200-ephy ac200-ephy: DMA mask not set [ 7.463220] ac200-rtc: Failed to locate of_node [id: -1] [ 7.492896] ac200-tve: Failed to locate of_node [id: -1] [ 7.527732] sun50i-h6-pinctrl 300b000.pinctrl: supply vcc-pa not found, using dummy regulator [ 7.536732] dwmac-sun8i 5020000.ethernet: IRQ eth_wake_irq not found [ 7.536758] dwmac-sun8i 5020000.ethernet: IRQ eth_lpi not found [ 7.536860] dwmac-sun8i 5020000.ethernet: supply phy not found, using dummy regulator [ 7.537232] dwmac-sun8i 5020000.ethernet: supply phy-io not found, using dummy regulator [ 7.537466] dwmac-sun8i 5020000.ethernet: PTP uses main clock [ 7.537503] dwmac-sun8i 5020000.ethernet: Current syscon value is not the default 58000 (expect 50000) [ 7.537848] dwmac-sun8i 5020000.ethernet: No HW DMA feature register supported [ 7.537863] dwmac-sun8i 5020000.ethernet: RX Checksum Offload Engine supported [ 7.537870] dwmac-sun8i 5020000.ethernet: COE Type 2 [ 7.537879] dwmac-sun8i 5020000.ethernet: TX Checksum insertion supported [ 7.537887] dwmac-sun8i 5020000.ethernet: Normal descriptors [ 7.537894] dwmac-sun8i 5020000.ethernet: Chain mode enabled [ 7.572080] sunxi_cedrus: module is from the staging directory, the quality is unknown, you have been warned. [ 7.574414] cedrus 1c0e000.video-codec: Adding to iommu group 0 [ 7.585610] sun50i-di 1420000.deinterlace: Adding to iommu group 0 [ 7.586273] sun50i-di 1420000.deinterlace: Device registered as /dev/video1 [ 7.588458] cedrus 1c0e000.video-codec: Device registered as /dev/video0 [ 7.590094] xhci-hcd xhci-hcd.6.auto: xHCI Host Controller [ 7.590150] xhci-hcd xhci-hcd.6.auto: new USB bus registered, assigned bus number 6 [ 7.590344] xhci-hcd xhci-hcd.6.auto: hcc params 0x0220f064 hci version 0x100 quirks 0x0000000002010010 [ 7.590472] xhci-hcd xhci-hcd.6.auto: irq 242, io mem 0x05200000 [ 7.590851] xhci-hcd xhci-hcd.6.auto: xHCI Host Controller [ 7.590872] xhci-hcd xhci-hcd.6.auto: new USB bus registered, assigned bus number 7 [ 7.590900] xhci-hcd xhci-hcd.6.auto: Host supports USB 3.0 SuperSpeed [ 7.591154] usb usb6: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01 [ 7.591169] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 7.591180] usb usb6: Product: xHCI Host Controller [ 7.591188] usb usb6: Manufacturer: Linux 6.1.5 xhci-hcd [ 7.591196] usb usb6: SerialNumber: xhci-hcd.6.auto [ 7.618899] hub 6-0:1.0: USB hub found [ 7.619005] hub 6-0:1.0: 1 port detected [ 7.631607] usb usb7: We don't know the algorithms for LPM for this host, disabling LPM. [ 7.631805] usb usb7: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01 [ 7.631820] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 7.631831] usb usb7: Product: xHCI Host Controller [ 7.631839] usb usb7: Manufacturer: Linux 6.1.5 xhci-hcd [ 7.631847] usb usb7: SerialNumber: xhci-hcd.6.auto [ 7.641210] hantro-vpu 1c00000.video-codec-g2: Adding to iommu group 0 [ 7.657702] hub 7-0:1.0: USB hub found [ 7.657788] hub 7-0:1.0: 1 port detected [ 7.658537] sunxi-wdt 7020400.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0) [ 7.679337] hantro-vpu 1c00000.video-codec-g2: registered allwinner,sun50i-h6-vpu-g2-dec as /dev/video2 [ 7.685040] sun50i-h6-r-pinctrl 7022000.pinctrl: supply vcc-pl not found, using dummy regulator [ 7.818274] Registered IR keymap rc-tanix-tx3mini [ 7.841119] IR NEC protocol handler initialized [ 7.868439] rc rc0: sunxi-ir as /devices/platform/soc/7040000.ir/rc/rc0 [ 7.868712] rc rc0: lirc_dev: driver sunxi-ir registered at minor = 0, raw IR receiver, no transmitter [ 7.868923] input: sunxi-ir as /devices/platform/soc/7040000.ir/rc/rc0/input3 [ 7.870080] sunxi-ir 7040000.ir: initialized sunXi IR driver [ 7.874578] dwmac-sun8i 5020000.ethernet end0: renamed from eth0 [ 8.079649] dwmac-sun8i 5020000.ethernet end0: Register MEM_TYPE_PAGE_POOL RxQ-0 [ 8.143626] dwmac-sun8i 5020000.ethernet end0: PHY [stmmac-0:01] driver [AC200 EPHY] (irq=POLL) [ 8.143675] dwmac-sun8i 5020000.ethernet end0: No Safety Features support found [ 8.143688] dwmac-sun8i 5020000.ethernet end0: No MAC Management Counters available [ 8.143699] dwmac-sun8i 5020000.ethernet end0: PTP not supported by HW [ 8.144434] dwmac-sun8i 5020000.ethernet end0: configuring for phy/rmii link mode [ 8.621889] usb 7-1: new SuperSpeed USB device number 2 using xhci-hcd [ 8.648153] usb 7-1: New USB device found, idVendor=13fe, idProduct=6400, bcdDevice= 1.00 [ 8.648181] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 8.648192] usb 7-1: Product: USB DISK 3.0 [ 8.648201] usb 7-1: Manufacturer: [ 8.648209] usb 7-1: SerialNumber: 071C16C048F4E954 [ 8.650233] usb-storage 7-1:1.0: USB Mass Storage device detected [ 8.650928] scsi host0: usb-storage 7-1:1.0 [ 8.693859] usbcore: registered new interface driver uas [ 9.654700] scsi 0:0:0:0: Direct-Access USB DISK 3.0 PMAP PQ: 0 ANSI: 6 [ 9.655691] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 9.657432] sd 0:0:0:0: [sda] 60623680 512-byte logical blocks: (31.0 GB/28.9 GiB) [ 9.658627] sd 0:0:0:0: [sda] Write Protect is off [ 9.658647] sd 0:0:0:0: [sda] Mode Sense: 2b 00 00 08 [ 9.659765] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 9.915505] sda: sda1 [ 9.916021] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 10.185323] dwmac-sun8i 5020000.ethernet end0: Link is Up - 100Mbps/Full - flow control rx/tx [ 10.185379] IPv6: ADDRCONF(NETDEV_CHANGE): end0: link becomes ready [ 10.257048] kauditd_printk_skb: 30 callbacks suppressed [ 10.257066] audit: type=1334 audit(1674152200.668:42): prog-id=27 op=LOAD [ 10.257955] audit: type=1334 audit(1674152200.668:43): prog-id=28 op=LOAD [ 10.258173] audit: type=1334 audit(1674152200.668:44): prog-id=29 op=LOAD [ 10.541243] audit: type=1130 audit(1674152218.882:45): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' [ 11.917015] audit: type=1100 audit(1674152220.258:46): pid=349 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:authentication grantors=pam_shells,pam_faillock,pam_permit,pam_faillock acct="derek" exe="/usr/bin/sshd" hostname=192.168.10.1 addr=192.168.10.1 terminal=ssh res=success' [ 11.924488] audit: type=1101 audit(1674152220.265:47): pid=349 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:accounting grantors=pam_access,pam_unix,pam_permit,pam_time acct="derek" exe="/usr/bin/sshd" hostname=192.168.10.1 addr=192.168.10.1 terminal=ssh res=success' [ 11.934915] audit: type=1103 audit(1674152220.278:48): pid=349 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=pam_shells,pam_faillock,pam_permit,pam_faillock acct="derek" exe="/usr/bin/sshd" hostname=192.168.10.1 addr=192.168.10.1 terminal=ssh res=success' [ 11.935654] audit: type=1006 audit(1674152220.278:49): pid=349 uid=0 old-auid=4294967295 auid=1001 tty=(none) old-ses=4294967295 ses=1 res=1 [ 11.935698] audit: type=1300 audit(1674152220.278:49): arch=c00000b7 syscall=64 success=yes exit=4 a0=3 a1=fffff5e70be0 a2=4 a3=ffff9648f9c0 items=0 ppid=342 pid=349 auid=1001 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="sshd" exe="/usr/bin/sshd" key=(null) [ 11.935721] audit: type=1327 audit(1674152220.278:49): proctitle=737368643A20646572656B205B707269765D [ 12.051779] dwmac-sun8i 5020000.ethernet end0: Too many address, switching to promiscuous [ 12.688821] systemd-journald[262]: Failed to set ACL on /var/log/journal/a20f346ca7114c18808af150ca23caa1/user-1001.journal, ignoring: Operation not supported [derek@archlinux ~]$

warpme commented 1 year ago

Hmm, I just flashed SD card for TanixTX6s, inserted into my box i see wlan0 is present. in dmesg i have:

[   13.826915] Firmware download completed.
[   13.831433] CW1200 WSM init done.
                  Input buffers: 30 x 1632 bytes
                  Hardware: 7.9
                  WSM firmware [XR_C01.08.52.65 Jul 16 2019 11:09:57], ver: 8, build: 5264,   api: 1060, cap: 0x0003
[   13.884821] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   13.893122] Registered as 'phy0'

You have t95 box so most probable reasons of no wifi:

  1. different power-on/reset seq is needed (probable)
  2. different reset/power_on gpio wiring (image i published is for tanix-tx6s, you have t95)

To test - i prepared dtb with different approach to p.1 pls copy it to /boot part named as h616_dtb

If this will not help: is it possible to get android gpio info from running android on your's device? (boot android, install terminal, cat sysfs related to gpio) sun50i-h616-t95.dtb.zip

dchauran commented 1 year ago

This is an h6 based t95, not h616. I haven't been able to get this on my h616 based t95 at all (it doesn't want to boot from SD). I can reload android if necesary but wanted to clarify this first.

warpme commented 1 year ago

Ah - so you have h6 based t95? It is surprise for me that there are t95 devices with h6 soc... When you are saying "it doesn't want to boot from SD"- is this mean:

  1. not even start to boot from SD or
  2. it starts to boot but fails?

Have you capability to use uart and see output telling us at what stage boot fails?

It is probable that you have case 1 and i.e sd card is not recognised due wrong cd-gpios declared in dt vs. wiring you have on your board.

If you still want to play with this box - best will be to boot android and see on terminal what gpio are used for peripherals. You may try do this in android terminal:

mount -t debugfs debugfs /sys/kernel/debug
cat /sys/kernel/debug/gpio

Ideally: retrieve android dt by adb

If you be able to determine correct gpio for sd card detection - you can sue tx6 dt and modify accordingly https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi?h=v6.1.7#n126

btw: don't be surprised by this issues: supporting cheap chinese tvboxes is pure hell: we have 10 variants of the same named tvbox with different soc, dram, wifi, gpio wiring etc.

btw2: for h6 tvbox with xr819 - you may try tx6-mini dtb (as this is known to me h6 box with xr819 wifi)

dchauran commented 1 year ago

Hey, the tx6-mini dtb worked to get wi-fi on the h6! I learned a lot in this process, and I greatly appreciate your patience.

Re: the 616, it fails to even start to boot. If I cannot figure that one out I will open another issue. Closing this issue as it is resolved.