Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V38 Sweet Potato (v2) only one USB port works #10925

Closed
knightpp opened this issue Jan 27, 2024 · 22 comments
Closed

V38 Sweet Potato (v2) only one USB port works #10925

knightpp opened this issue Jan 27, 2024 · 22 comments

Comments

@knightpp
Copy link

knightpp commented Jan 27, 2024

Batocera build version

38c 2023/10/15 01:11

Your architecture

Sweet Potato (Le Potato)

Your Graphic Processor Unit (GPU)

Integrated

Graphical brand

None

Issue description

After booting into Batocera, only top left USB port can exchange data, other ports are charge only.

Expected result

I can plug devices into any port.

Reproduction steps

  1. Power on
  2. It's not working

Logs and data

I use Sweet Potato, it's like a second generation of Le Potato, but should remain compatible. Let me know if you need more info!

Model: Libre_Computer_AML_S905X_CC
System: Linux 6.1.55
Architecture: lepotato
CPU Model: ARMv8 Processor rev 4 (v8l)
CPU Cores: 4
CPU Max Frequency: 1416 MHz
Temperature: 53°C
Available Memory: 1577/1931 MB
Data Partition Format: ext4
Data Partition Available Space: 51G
Network IP Address: <redacted>
OS version: 38c 2023/10/15 01:11

dmesg

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.1.55 (batocera@adbbf52ee02c) (aarch64-buildroot-linux-gnu-gcc.br_real (Buildroot 2023.02.2-2869-g55a0d20ae2) 13.2.0, GNU ld (GNU Binutils) 2.40) #1 SMP PREEMPT Sun Oct 15 00:51:01 Europe 2023
[    0.000000] Machine model: Libre Computer AML-S905X-CC
[    0.000000] efi: UEFI not found.
[    0.000000] Reserved memory: created CMA memory pool at 0x000000003cc00000, size 896 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000007fe5afff]
[    0.000000] NUMA: NODE_DATA [mem 0x7fa41000-0x7fa42fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x000000007fe5afff]
[    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 0x0000000000000000-0x0000000000ffffff]
[    0.000000]   node   0: [mem 0x0000000001000000-0x0000000004ffffff]
[    0.000000]   node   0: [mem 0x0000000005000000-0x00000000072fffff]
[    0.000000]   node   0: [mem 0x0000000007300000-0x000000000fffffff]
[    0.000000]   node   0: [mem 0x0000000010000000-0x00000000101fffff]
[    0.000000]   node   0: [mem 0x0000000010200000-0x000000007fe5afff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fe5afff]
[    0.000000] On node 0, zone DMA: 421 pages in unavailable ranges
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 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.1
[    0.000000] percpu: Embedded 21 pages/cpu s45416 r8192 d32408 u86016
[    0.000000] pcpu-alloc: s45416 r8192 d32408 u86016 alloc=21*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 515681
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: initrd=/boot/initrd.lz4 label=BATOCERA rootwait quiet loglevel=0 console=ttyAML0,115200n8 console=tty3 video=Composite-1:d
[    0.000000] Unknown kernel command line parameters "label=BATOCERA", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 1055900K/2095468K available (15232K kernel code, 1694K rwdata, 5564K rodata, 3264K init, 587K bss, 122064K reserved, 917504K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    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: 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.000277] Console: colour dummy device 80x25
[    0.000319] printk: console [tty3] enabled
[    0.000396] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000408] pid_max: default: 32768 minimum: 301
[    0.000467] LSM: Security Framework initializing
[    0.000494] Yama: becoming mindful.
[    0.000586] AppArmor: AppArmor initialized
[    0.000668] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000683] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.002263] cblist_init_generic: Setting adjustable number of callback queues.
[    0.002279] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.002349] cblist_init_generic: Setting adjustable number of callback queues.
[    0.002354] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.002526] rcu: Hierarchical SRCU implementation.
[    0.002531] rcu:     Max phase no-delay instances is 1000.
[    0.003762] EFI services will not be available.
[    0.004219] smp: Bringing up secondary CPUs ...
[    0.005023] Detected VIPT I-cache on CPU1
[    0.005152] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.006049] Detected VIPT I-cache on CPU2
[    0.006170] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.007052] Detected VIPT I-cache on CPU3
[    0.007175] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.007268] smp: Brought up 1 node, 4 CPUs
[    0.007282] SMP: Total of 4 processors activated.
[    0.007287] CPU features: detected: 32-bit EL0 Support
[    0.007291] CPU features: detected: 32-bit EL1 Support
[    0.007296] CPU features: detected: CRC32 instructions
[    0.007365] CPU: All CPU(s) started at EL2
[    0.007376] alternatives: applying system-wide alternatives
[    0.009326] devtmpfs: initialized
[    0.014722] Registered cp15_barrier emulation handler
[    0.014742] Registered setend emulation handler
[    0.014950] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.014987] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.039868] pinctrl core: initialized pinctrl subsystem
[    0.040447] DMI not present or invalid.
[    0.041014] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.042579] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.042946] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.043203] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.043264] audit: initializing netlink subsys (disabled)
[    0.043484] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.043948] thermal_sys: Registered thermal governor 'fair_share'
[    0.043955] thermal_sys: Registered thermal governor 'bang_bang'
[    0.043959] thermal_sys: Registered thermal governor 'step_wise'
[    0.043963] thermal_sys: Registered thermal governor 'user_space'
[    0.044017] cpuidle: using governor menu
[    0.044280] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.044402] ASID allocator initialised with 65536 entries
[    0.045099] Serial: AMBA PL011 UART driver
[    0.054487] platform c883a000.hdmi-tx: Fixed dependency cycle(s) with /soc/vpu@d0100000/port@1/endpoint
[    0.055367] platform cvbs-connector: Fixed dependency cycle(s) with /soc/vpu@d0100000/port@0/endpoint
[    0.055563] platform hdmi-connector: Fixed dependency cycle(s) with /soc/hdmi-tx@c883a000/port@1/endpoint
[    0.064206] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.064223] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.064229] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.064232] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.064237] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.064241] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.064246] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.064250] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.065093] cryptd: max_cpu_qlen set to 1000
[    0.132626] raid6: neonx8   gen()  2287 MB/s
[    0.200698] raid6: neonx4   gen()  2265 MB/s
[    0.268778] raid6: neonx2   gen()  2210 MB/s
[    0.336856] raid6: neonx1   gen()  1860 MB/s
[    0.404925] raid6: int64x8  gen()  1379 MB/s
[    0.472999] raid6: int64x4  gen()  1608 MB/s
[    0.541089] raid6: int64x2  gen()  1400 MB/s
[    0.609153] raid6: int64x1  gen()  1189 MB/s
[    0.609158] raid6: using algorithm neonx8 gen() 2287 MB/s
[    0.677216] raid6: .... xor() 1638 MB/s, rmw enabled
[    0.677222] raid6: using neon recovery algorithm
[    0.677760] ACPI: Interpreter disabled.
[    0.678975] iommu: Default domain type: Translated 
[    0.678991] iommu: DMA domain TLB invalidation policy: strict mode 
[    0.679672] SCSI subsystem initialized
[    0.679909] usbcore: registered new interface driver usbfs
[    0.679943] usbcore: registered new interface driver hub
[    0.679974] usbcore: registered new device driver usb
[    0.680246] pps_core: LinuxPPS API ver. 1 registered
[    0.680251] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.680264] PTP clock support registered
[    0.680403] EDAC MC: Ver: 3.0.0
[    0.681925] NetLabel: Initializing
[    0.681940] NetLabel:  domain hash size = 128
[    0.681945] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.681999] NetLabel:  unlabeled traffic allowed by default
[    0.682225] vgaarb: loaded
[    0.682701] clocksource: Switched to clocksource arch_sys_counter
[    0.682983] VFS: Disk quotas dquot_6.6.0
[    0.683025] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.683563] AppArmor: AppArmor Filesystem Enabled
[    0.683638] pnp: PnP ACPI: disabled
[    0.689959] NET: Registered PF_INET protocol family
[    0.690176] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.691965] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.692116] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.692163] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.692380] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[    0.692768] TCP: Hash tables configured (established 16384 bind 16384)
[    0.693031] MPTCP token hash table entries: 2048 (order: 3, 49152 bytes, linear)
[    0.693118] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.693169] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.693365] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.693403] PCI: CLS 0 bytes, default 64
[    0.693700] Trying to unpack rootfs image as initramfs...
[    0.703465] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.704039] kvm [1]: IPA Size Limit: 40 bits
[    0.705438] kvm [1]: vgic interrupt IRQ9
[    0.705560] kvm [1]: Hyp mode initialized successfully
[    0.705666] Freeing initrd memory: 872K
[    0.707911] Initialise system trusted keyrings
[    0.707994] Key type blacklist registered
[    0.708228] workingset: timestamp_bits=44 max_order=19 bucket_order=0
[    0.713273] zbud: loaded
[    0.714614] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.715308] fuse: init (API version 7.37)
[    0.716573] integrity: Platform Keyring initialized
[    0.752732] xor: measuring software checksum speed
[    0.756782]    8regs           :  2442 MB/sec
[    0.760702]    32regs          :  2522 MB/sec
[    0.764992]    arm64_neon      :  2297 MB/sec
[    0.764997] xor: using function: 32regs (2522 MB/sec)
[    0.765006] Key type asymmetric registered
[    0.765011] Asymmetric key parser 'x509' registered
[    0.766252] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[    0.766377] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.766492] io scheduler mq-deadline registered
[    0.766502] io scheduler kyber registered
[    0.766731] io scheduler bfq registered
[    0.767920] irq_meson_gpio: 110 to 8 gpio interrupt mux initialized
[    0.778946] EINJ: ACPI disabled.
[    0.787197] soc soc0: Amlogic Meson GXL (S905X) Revision 21:d (84:2) Detected
[    0.789633] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.795064] Serial: AMBA driver
[    0.795608] c81004c0.serial: ttyAML0 at MMIO 0xc81004c0 (irq = 18, base_baud = 1500000) is a meson_uart
[    0.795816] printk: console [ttyAML0] enabled
[    0.804413] loop: module loaded
[    0.811618] tun: Universal TUN/TAP device driver, 1.6
[    0.812973] thunder_xcv, ver 1.0
[    0.813059] thunder_bgx, ver 1.0
[    0.813205] nicpf, ver 1.0
[    0.814155] e1000e: Intel(R) PRO/1000 Network Driver
[    0.814171] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.814266] igb: Intel(R) Gigabit Ethernet Network Driver
[    0.814277] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.814359] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[    0.814369] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.814840] sky2: driver version 1.30
[    0.816809] VFIO - User Level meta-driver version: 0.3
[    0.820147] usbcore: registered new interface driver usb-storage
[    0.822345] mousedev: PS/2 mouse device common for all mice
[    0.823285] i2c_dev: i2c /dev entries driver
[    0.827376] sdhci: Secure Digital Host Controller Interface driver
[    0.827393] sdhci: Copyright(c) Pierre Ossman
[    0.828132] Synopsys Designware Multimedia Card Interface Driver
[    0.830495] meson-gx-mmc d0074000.mmc: allocated mmc-pwrseq
[    0.831301] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.834496] ledtrig-cpu: registered to indicate activity on CPUs
[    0.835339] meson-sm: secure-monitor enabled
[    0.836528] gxl-crypto c883e000.crypto: will run requests pump with realtime priority
[    0.836647] gxl-crypto c883e000.crypto: will run requests pump with realtime priority
[    0.836966] hid: raw HID events driver (C) Jiri Kosina
[    0.837367] usbcore: registered new interface driver usbhid
[    0.837386] usbhid: USB HID core driver
[    0.837889] platform-mhu c883c404.mailbox: Platform MHU Mailbox registered
[    0.840133] NET: Registered PF_INET6 protocol family
[    0.841372] Segment Routing with IPv6
[    0.841424] In-situ OAM (IOAM) with IPv6
[    0.841487] NET: Registered PF_PACKET protocol family
[    0.841649] 8021q: 802.1Q VLAN Support v1.8
[    0.841715] Key type dns_resolver registered
[    0.842581] registered taskstats version 1
[    0.842620] Loading compiled-in X.509 certificates
[    0.845895] Loaded X.509 cert 'Build time autogenerated kernel key: bbf645e6f32ca1b9587f733b529afd3ba0088aa3'
[    0.846624] zswap: loaded using pool lzo/zbud
[    0.847379] Key type .fscrypt registered
[    0.847397] Key type fscrypt-provisioning registered
[    0.849391] Btrfs loaded, crc32c=crc32c-generic, zoned=yes, fsverity=yes
[    0.849796] Key type encrypted registered
[    0.849834] AppArmor: AppArmor sha1 policy hashing enabled
[    0.874654] meson8b-dwmac c9410000.ethernet: IRQ eth_wake_irq not found
[    0.874676] meson8b-dwmac c9410000.ethernet: IRQ eth_lpi not found
[    0.874811] meson8b-dwmac c9410000.ethernet: PTP uses main clock
[    0.875659] meson8b-dwmac c9410000.ethernet: User ID: 0x11, Synopsys ID: 0x37
[    0.875684] meson8b-dwmac c9410000.ethernet:         DWMAC1000
[    0.875692] meson8b-dwmac c9410000.ethernet: DMA HW capability register supported
[    0.875698] meson8b-dwmac c9410000.ethernet: RX Checksum Offload Engine supported
[    0.875704] meson8b-dwmac c9410000.ethernet: COE Type 2
[    0.875711] meson8b-dwmac c9410000.ethernet: TX Checksum insertion supported
[    0.875716] meson8b-dwmac c9410000.ethernet: Wake-Up On Lan supported
[    0.875804] meson8b-dwmac c9410000.ethernet: Normal descriptors
[    0.875810] meson8b-dwmac c9410000.ethernet: Ring mode enabled
[    0.875816] meson8b-dwmac c9410000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    0.879575] dwc3-meson-g12a d0078080.usb: USB2 ports: 2
[    0.879595] dwc3-meson-g12a d0078080.usb: USB3 ports: 0
[    1.407710] dwc2 c9100000.usb: supply vusb_d not found, using dummy regulator
[    1.407892] dwc2 c9100000.usb: supply vusb_a not found, using dummy regulator
[    1.408175] dwc2 c9100000.usb: EPs: 7, dedicated fifos, 712 entries in SPRAM
[    1.410066] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    1.410105] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    1.410249] xhci-hcd xhci-hcd.0.auto: USB3 root hub has no ports
[    1.410260] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f664 hci version 0x100 quirks 0x0000000002010010
[    1.410323] xhci-hcd xhci-hcd.0.auto: irq 27, io mem 0xc9000000
[    1.410607] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.410619] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.410627] usb usb1: Product: xHCI Host Controller
[    1.410633] usb usb1: Manufacturer: Linux 6.1.55 xhci-hcd
[    1.410640] usb usb1: SerialNumber: xhci-hcd.0.auto
[    1.411240] hub 1-0:1.0: USB hub found
[    1.411291] hub 1-0:1.0: 2 ports detected
[    1.413576] scpi_protocol scpi: SCP Protocol legacy pre-1.0 firmware
[    1.414172] meson-gx-mmc d0072000.mmc: Got CD GPIO
[    1.440621] Freeing unused kernel memory: 3264K
[    1.458983] Run /init as init process
[    1.459036]   with arguments:
[    1.459060]     /init
[    1.459081]   with environment:
[    1.459100]     HOME=/
[    1.459121]     TERM=linux
[    1.459141]     label=BATOCERA
[    1.487180] LABEL=BATOCERA: Can't open blockdev
[    1.487280] LABEL=BATOCERA: Can't open blockdev
[    1.487354] LABEL=BATOCERA: Can't open blockdev
[    1.487453] LABEL=BATOCERA: Can't open blockdev
[    1.493958] mmc0: new high speed SDXC card at address b36b
[    1.495560] mmcblk0: mmc0:b36b SDABC 58.2 GiB 
[    1.498888]  mmcblk0: p1 p2
[    1.675070] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    1.825586] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=61.60
[    1.825722] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.825813] usb 1-1: Product: USB2.0 Hub
[    1.892286] hub 1-1:1.0: USB hub found
[    1.892807] hub 1-1:1.0: 4 ports detected
[    2.091081] usb 1-2: new full-speed USB device number 3 using xhci-hcd
[    2.258506] usb 1-2: New USB device found, idVendor=0a12, idProduct=0001, bcdDevice=88.91
[    2.258650] usb 1-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[    2.258878] usb 1-2: Product: CSR8510 A10
[    2.738348] loop0: detected capacity change from 0 to 3066200
[    2.756947] /dev/loop0: Can't open blockdev
[    2.761658] /dev/loop0: Can't open blockdev
[    2.762482] /dev/loop0: Can't open blockdev
[    2.813912] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[    4.374702] random: crng init done
[    5.607132] udevd[828]: starting version 3.2.11
[    5.715317] udevd[830]: starting eudev-3.2.11
[    6.048159] meson-vrtc c81000a8.rtc: registered as rtc0
[    6.048206] meson-vrtc c81000a8.rtc: setting system clock to 1980-01-01T00:00:02 UTC (315532802)
[    6.107837] Registered IR keymap rc-empty
[    6.107940] rc rc0: meson-ir as /devices/platform/soc/c8100000.bus/c8100580.ir/rc/rc0
[    6.122880] rc rc0: lirc_dev: driver meson-ir registered at minor = 0, raw IR receiver, no transmitter
[    6.123043] input: meson-ir as /devices/platform/soc/c8100000.bus/c8100580.ir/rc/rc0/input0
[    6.127998] meson-ir c8100580.ir: receiver initialized
[    6.142647] mc: Linux media interface: v0.10
[    6.159866] usb 1-1: USB disconnect, device number 2
[    6.162294] Registered IR keymap rc-cec
[    6.162458] rc rc1: meson_ao_cec as /devices/platform/soc/c8100000.bus/c8100100.cec/rc/rc1
[    6.162636] input: meson_ao_cec as /devices/platform/soc/c8100000.bus/c8100100.cec/rc/rc1/input1
[    6.194656] videodev: Linux video capture interface: v2.00
[    6.236997] meson-drm d0100000.vpu: Queued 2 outputs on vpu
[    6.239737] [drm] forcing Composite-1 connector off
[    6.264692] meson_vdec: module is from the staging directory, the quality is unknown, you have been warned.
[    6.266880] meson-dw-hdmi c883a000.hdmi-tx: Detected HDMI TX controller v2.01a with HDCP (meson_dw_hdmi_phy)
[    6.275214] meson-dw-hdmi c883a000.hdmi-tx: registered DesignWare HDMI I2C bus driver
[    6.275597] meson-drm d0100000.vpu: bound c883a000.hdmi-tx (ops meson_dw_hdmi_ops [meson_dw_hdmi])
[    6.276527] [drm] Initialized meson 1.0.0 20161109 for d0100000.vpu on minor 0
[    6.362204] lima d00c0000.gpu: gp - mali450 version major 0 minor 0
[    6.362291] lima d00c0000.gpu: pp0 - mali450 version major 0 minor 0
[    6.362356] lima d00c0000.gpu: pp1 - mali450 version major 0 minor 0
[    6.362417] lima d00c0000.gpu: pp2 - mali450 version major 0 minor 0
[    6.362471] lima d00c0000.gpu: l2 cache 8K, 4-way, 64byte cache line, 128bit external bus
[    6.362485] lima d00c0000.gpu: l2 cache 64K, 4-way, 64byte cache line, 128bit external bus
[    6.363977] lima d00c0000.gpu: bus rate = 166666667
[    6.364003] lima d00c0000.gpu: mod rate = 24000000
[    6.364100] lima d00c0000.gpu: error -ENODEV: _opp_set_regulators: no regulator (mali) found
[    6.429599] [drm] Initialized lima 1.1.0 20191231 for d00c0000.gpu on minor 1
[    6.497146] gx-sound-card sound: workaround active: internal PCM chmap controls mapped to device 0
[    6.518370] Bluetooth: Core ver 2.22
[    6.518513] NET: Registered PF_BLUETOOTH protocol family
[    6.518519] Bluetooth: HCI device and connection manager initialized
[    6.518535] Bluetooth: HCI socket layer initialized
[    6.518542] Bluetooth: L2CAP socket layer initialized
[    6.518558] Bluetooth: SCO socket layer initialized
[    6.648354] usbcore: registered new interface driver btusb
[    6.650643] Bluetooth: hci0: CSR: Setting up dongle with HCI ver=6 rev=22bb; LMP ver=6 subver=22bb; manufacturer=10
[    6.943588] Console: switching to colour frame buffer device 240x67
[    7.014772] meson-drm d0100000.vpu: [drm] fb0: mesondrmfb frame buffer device
[    9.387702] meson8b-dwmac c9410000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[    9.454327] meson8b-dwmac c9410000.ethernet eth0: PHY [mdio_mux-0.e40908ff:08] driver [Meson GXL Internal PHY] (irq=29)
[    9.466770] meson8b-dwmac c9410000.ethernet eth0: No Safety Features support found
[    9.466804] meson8b-dwmac c9410000.ethernet eth0: PTP not supported by HW
[    9.468507] meson8b-dwmac c9410000.ethernet eth0: configuring for phy/rmii link mode
[    9.500795] hdmi-audio-codec hdmi-audio-codec.3.auto: Not able to map channels to speakers (-22)
[    9.500828] hdmi-audio-codec hdmi-audio-codec.3.auto: ASoC: error at snd_soc_dai_hw_params on i2s-hifi: -22
[    9.500838] gx-sound-card sound: ASoC: PRE_PMU: be.dai-link-2-playback event failed: -22
[   11.129492] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none.
[   13.194768] meson8b-dwmac c9410000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   13.194835] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   30.538508] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   30.538536] Bluetooth: BNEP filters: protocol multicast
[   30.538557] Bluetooth: BNEP socket layer initialized
[   30.548694] Bluetooth: MGMT ver 1.22
[   30.569321] NET: Registered PF_ALG protocol family
[   30.875827] Bluetooth: hci0: Bad flag given (0x1) vs supported (0x0)
[   32.719330] RPC: Registered named UNIX socket transport module.
[   32.719353] RPC: Registered udp transport module.
[   32.719357] RPC: Registered tcp transport module.
[   32.719361] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   33.945952] NFSD: Using UMH upcall client tracking operations.
[   33.945975] NFSD: starting 90-second grace period (net f0000000)
@knightpp
Copy link
Author

Note: I tried to switch to a beta channel, but it seems there are no builds for this particular architecture.

@knightpp knightpp changed the title Sweet Potato only one USB port works V38 Sweet Potato only one USB port works Jan 29, 2024
@dmanlfc
Copy link
Collaborator

dmanlfc commented Jan 30, 2024

@Ntemis sounds like a dts tweak is required, do you have the device?

@Ntemis
Copy link

Ntemis commented Jan 30, 2024

not the v2 but i can get it

@dmanlfc
Copy link
Collaborator

dmanlfc commented Feb 2, 2024

@knightpp ssh in & let me know the output of /sys/kernel/debug/usb/

@knightpp
Copy link
Author

knightpp commented Feb 2, 2024

@dmanlfc

[root@BATOCERA /userdata/system]# ls /sys/kernel/debug/usb/
c9000000.usb  c9100000.usb  devices  ehci  ohci  xhci

@dmanlfc
Copy link
Collaborator

dmanlfc commented Feb 2, 2024

do a cat /sys/kernel/debug/usb/c9000000.usb/mode & cat /sys/kernel/debug/usb/c9100000.usb/mode

@knightpp
Copy link
Author

knightpp commented Feb 2, 2024

[root@BATOCERA /userdata/system]# cat /sys/kernel/debug/usb/c9000000.usb/mode
host

[root@BATOCERA /userdata/system]# ls /sys/kernel/debug/usb/c9100000.usb/mode
ls: cannot access '/sys/kernel/debug/usb/c9100000.usb/mode': No such file or directory
[root@BATOCERA /userdata/system]# ls /sys/kernel/debug/usb/c9100000.usb/
dr_mode  ep1in   ep2in   ep3in   ep4in   ep5in   ep6in   fifo       params   state
ep0      ep1out  ep2out  ep3out  ep4out  ep5out  ep6out  hw_params  regdump  testmode

@dmanlfc
Copy link
Collaborator

dmanlfc commented Feb 2, 2024

i said cat not ls for both

@dmanlfc
Copy link
Collaborator

dmanlfc commented Feb 2, 2024

ah i see

@knightpp
Copy link
Author

knightpp commented Feb 2, 2024

Oops, sorry, but the folder does not exists.

[root@BATOCERA /userdata/system]# cat /sys/kernel/debug/usb/c9100000.usb/mode
cat: /sys/kernel/debug/usb/c9100000.usb/mode: No such file or directory

@dmanlfc
Copy link
Collaborator

dmanlfc commented Feb 2, 2024

cat /sys/kernel/debug/usb/c9100000.usb/dr_mode

@knightpp
Copy link
Author

knightpp commented Feb 2, 2024

[root@BATOCERA /userdata/system]# cat /sys/kernel/debug/usb/c9100000.usb/dr_mode
peripheral

@dmanlfc
Copy link
Collaborator

dmanlfc commented Feb 2, 2024

what happens if you echo host > /sys/kernel/debug/usb/c9100000.usb/mode ?

@knightpp
Copy link
Author

knightpp commented Feb 2, 2024

[root@BATOCERA /userdata/system]# echo host > /sys/kernel/debug/usb/c9100000.usb/mode
-bash: /sys/kernel/debug/usb/c9100000.usb/mode: Permission denied

@Ntemis
Copy link

Ntemis commented Feb 2, 2024

Its Chinese new years so they cant send me the boards over right now, you have to show some patience. We will fix this

@dmanlfc
Copy link
Collaborator

dmanlfc commented Feb 2, 2024

is it the v2 board ? - https://www.libre.computer/products/aml-s905x-cc-v2/

@knightpp
Copy link
Author

knightpp commented Feb 2, 2024

@dmanlfc yes, it is

@dmanlfc
Copy link
Collaborator

dmanlfc commented Feb 2, 2024

ok hence the issue, you're running the v1 device tree.
@Ntemis is awaiting a board.

@n2qz n2qz changed the title V38 Sweet Potato only one USB port works V38 Sweet Potato (v2) only one USB port works Feb 2, 2024
@dmanlfc
Copy link
Collaborator

dmanlfc commented Feb 3, 2024

@knightpp
Copy link
Author

knightpp commented Feb 3, 2024

@dmanlfc It works! Thanks. All 4 USB ports work.

@dmanlfc dmanlfc closed this as completed Feb 10, 2024
@themayogamer
Copy link

Am I able to have that build too? I have the same issue.

@dmanlfc
Copy link
Collaborator

dmanlfc commented May 12, 2024

v39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants