USB Hub issues with Audio and Usb

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
Post Reply
User avatar
akstein
Posts: 14
Joined: Sun Jul 16, 2017 2:29 pm
Has thanked: 4 times
Been thanked: 2 times

USB Hub issues with Audio and Usb

Post by akstein » Sun Jul 16, 2017 4:30 pm

First of all congrats for creating such a great community. I wouldn't be able to make it this far without looking at the videos, guides, recommendations, suggestions etc... I decided to post my issue because I haven't been able to make it work just by reading other people posts. I feel I am close to completion but I don't know why the sound and the USB don't work. I am trying to keep it as simple as possible so I only need the sound to come out into an speaker. I don't need the audio jack (taking this out of the equation).

I believe the problems is with the USB Hub. The extra USB is not working either. Whenever I try to connect anything to it... it's not recognising it like a USB keyboard or mouse+keyboard dongle.

If anyone has experience with something similar and can put me in the right direction please do so. I am going to try to give as much information as possible by showing pictures and logs

The picture below shows the current situation of the build (a bit chaotic sorry!) hope you can see the wires and the components I am using.
overall two.jpg
overall two.jpg (3.6 MiB) Viewed 11972 times
overall two.jpg
overall two.jpg (3.6 MiB) Viewed 11972 times
The USB sound card wiring just below. It's coming from the USB Hub
buildExplained.jpg
buildExplained.jpg (946.43 KiB) Viewed 11972 times
When I run lsusb

Code: Select all

pi@raspberrypi:~ $ lsusb
Bus 001 Device 002: ID 214b:7000  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
The output for dmseg

Code: Select all

pi@raspberrypi:~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.35+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1014 Fri Jun 30 14:34:49 BST 2017
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] OF: fdt:Machine model: Raspberry Pi Zero W Rev 1.1
[    0.000000] cma: Reserved 8 MiB at 0x0f400000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c0914874, node_mem_map cfdabe00
[    0.000000]   Normal zone: 576 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:40:E8:4F vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 dwc_otg.speed=1 console=ttyS0,115200 console=tty1 root=PARTUUID=264d4c22-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait plymouth.enable=0
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 241256K/262144K available (5946K kernel code, 489K rwdata, 1948K rodata, 400K init, 734K bss, 12696K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc05d6bbc   (5947 kB)
      .init : 0xc0840000 - 0xc08a4000   ( 400 kB)
      .data : 0xc08a4000 - 0xc091e728   ( 490 kB)
       .bss : 0xc091e728 - 0xc09d5f28   ( 734 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000029] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000072] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000173] bcm2835: system timer (irq = 27)
[    0.000644] Console: colour dummy device 80x30
[    0.001408] console [tty1] enabled
[    0.001463] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.060351] pid_max: default: 32768 minimum: 301
[    0.060810] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060880] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.061981] Disabling cpuset control group subsystem
[    0.062255] CPU: Testing write buffer coherency: ok
[    0.062362] ftrace: allocating 21712 entries in 64 pages
[    0.177090] Setting up static identity map for 0x8200 - 0x8238
[    0.179127] devtmpfs: initialized
[    0.188361] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.188850] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.188948] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.190268] pinctrl core: initialized pinctrl subsystem
[    0.191778] NET: Registered protocol family 16
[    0.194335] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.204129] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.204221] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.204360] Serial: AMBA PL011 UART driver
[    0.207270] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[    0.208060] uart-pl011 20201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.256200] bcm2835-dma 20007000.dma: DMA legacy API manager at d080d000, dmachans=0x1
[    0.259041] SCSI subsystem initialized
[    0.259370] usbcore: registered new interface driver usbfs
[    0.259540] usbcore: registered new interface driver hub
[    0.259781] usbcore: registered new device driver usb
[    0.267158] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-07-03 14:16
[    0.269191] clocksource: Switched to clocksource timer
[    0.325522] VFS: Disk quotas dquot_6.6.0
[    0.325718] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.326065] FS-Cache: Loaded
[    0.326469] CacheFiles: Loaded
[    0.345816] NET: Registered protocol family 2
[    0.347238] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.347358] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.347446] TCP: Hash tables configured (established 2048 bind 2048)
[    0.347576] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.347642] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.348005] NET: Registered protocol family 1
[    0.348819] RPC: Registered named UNIX socket transport module.
[    0.348895] RPC: Registered udp transport module.
[    0.348933] RPC: Registered tcp transport module.
[    0.348968] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.350314] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[    0.352808] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.372794] FS-Cache: Netfs 'nfs' registered for caching
[    0.374602] NFS: Registering the id_resolver key type
[    0.374713] Key type id_resolver registered
[    0.374755] Key type id_legacy registered
[    0.379332] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.379815] io scheduler noop registered
[    0.379880] io scheduler deadline registered (default)
[    0.380388] io scheduler cfq registered
[    0.386255] BCM2708FB: allocated DMA memory 4f500000
[    0.386389] BCM2708FB: allocated DMA channel 0 @ d080d000
[    0.394682] Console: switching to colour frame buffer device 82x26
[    0.405108] bcm2835-rng 20104000.rng: hwrng registered
[    0.407923] vc-cma: Videocore CMA driver
[    0.410551] vc-cma: vc_cma_base      = 0x00000000
[    0.413118] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    0.415689] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    0.418709] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    0.448926] brd: module loaded
[    0.463883] loop: module loaded
[    0.466312] Loading iSCSI transport class v2.0-870.
[    0.469718] usbcore: registered new interface driver smsc95xx
[    0.472204] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.702898] Core Release: 2.80a
[    0.705365] Setting default values for core params
[    0.707695] Finished setting default values for core params
[    0.910443] Using Buffer DMA mode
[    0.912849] Periodic Transfer Interrupt Enhancement - disabled
[    0.915295] Multiprocessor Interrupt Enhancement - disabled
[    0.917747] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.920340] Dedicated Tx FIFOs mode
[    0.923419] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xcf514000 dma = 0x4f514000 len=9024
[    0.928433] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[    0.941194] dwc_otg: Microframe scheduler enabled
[    0.941344] WARN::hcd_init_fiq:459: FIQ on core 0 at 0xc04512ec
[    0.943952] WARN::hcd_init_fiq:460: FIQ ASM at 0xc04515c8 length 36
[    0.946580] WARN::hcd_init_fiq:486: MPHI regs_base at 0xd08a5000
[    0.949342] dwc_otg 20980000.usb: DWC OTG Controller
[    0.952034] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[    0.954798] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[    0.957445] Init: Port Power? op_state=1
[    0.960027] Init: Power Port (0)
[    0.962877] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.965522] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.968124] usb usb1: Product: DWC OTG Controller
[    0.970738] usb usb1: Manufacturer: Linux 4.9.35+ dwc_otg_hcd
[    0.973312] usb usb1: SerialNumber: 20980000.usb
[    0.976959] hub 1-0:1.0: USB hub found
[    0.979659] hub 1-0:1.0: 1 port detected
[    0.982997] dwc_otg: FIQ enabled
[    0.983007] dwc_otg: NAK holdoff enabled
[    0.983014] dwc_otg: FIQ split-transaction FSM enabled
[    0.983034] Module dwc_common_port init
[    0.983562] usbcore: registered new interface driver usb-storage
[    0.986550] mousedev: PS/2 mouse device common for all mice
[    0.990839] bcm2835-wdt 20100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.993945] bcm2835-cpufreq: min=700000 max=1000000
[    0.997175] sdhci: Secure Digital Host Controller Interface driver
[    0.999921] sdhci: Copyright(c) Pierre Ossman
[    1.002976] sdhost-bcm2835 20202000.sdhost: could not get clk, deferring probe
[    1.008222] mmc-bcm2835 20300000.mmc: could not get clk, deferring probe
[    1.011405] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.014733] ledtrig-cpu: registered to indicate activity on CPUs
[    1.017707] hidraw: raw HID events driver (C) Jiri Kosina
[    1.020848] usbcore: registered new interface driver usbhid
[    1.023654] usbhid: USB HID core driver
[    1.027585] vchiq: vchiq_init_state: slot_zero = 0xcf580000, is_master = 0
[    1.033015] Initializing XFRM netlink socket
[    1.036363] NET: Registered protocol family 17
[    1.039731] Key type dns_resolver registered
[    1.044884] registered taskstats version 1
[    1.048220] vc-sm: Videocore shared memory driver
[    1.051150] [vc_sm_connected_init]: start
[    1.055045] [vc_sm_connected_init]: end - returning 0
[    1.066831] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[    1.075038] sdhost: log_buf @ cf513000 (4f513000)
[    1.149266] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.154737] mmc-bcm2835 20300000.mmc: mmc_debug:0 mmc_debug2:0
[    1.157630] mmc-bcm2835 20300000.mmc: DMA channel allocated
[    1.189857] random: fast init done
[    1.200014] Indeed it is in host mode hprt0 = 00021501
[    1.289474] of_cfs_init
[    1.292306] of_cfs_init: OK
[    1.295643] Waiting for root device PARTUUID=264d4c22-02...
[    1.316485] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.321077] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.325299] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.331939] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.334343] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.342022] mmc0: new high speed SDHC card at address aaaa
[    1.345941] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
[    1.355012]  mmcblk0: p1 p2
[    1.399281] usb 1-1: new full-speed USB device number 2 using dwc_otg
[    1.402214] Indeed it is in host mode hprt0 = 00021501
[    1.470341] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    1.472989] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    1.521968] mmc1: new high speed SDIO card at address 0001
[    1.576546] EXT4-fs (mmcblk0p2): recovery complete
[    1.581937] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.587123] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.598733] devtmpfs: mounted
[    1.603225] Freeing unused kernel memory: 400K (c0840000 - c08a4000)
[    1.606136] This architecture does not have kernel memory protection.
[    1.629929] usb 1-1: not running at top speed; connect to a high speed hub
[    1.634682] usb 1-1: New USB device found, idVendor=214b, idProduct=7000
[    1.638018] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.641345] usb 1-1: Product: USB2.0 HUB
[    1.645889] hub 1-1:1.0: USB hub found
[    1.649607] hub 1-1:1.0: 4 ports detected
[    1.950906] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    1.957783] systemd[1]: Detected architecture 'arm'.
[    1.969364] usb 1-1.2: new low-speed USB device number 3 using dwc_otg
[    2.097793] NET: Registered protocol family 10
[    2.103034] systemd[1]: Inserted module 'ipv6'
[    2.111273] systemd[1]: Set hostname to <raspberrypi>.
[    2.114845] systemd[1]: Initializing machine ID from random generator.
[    2.118376] systemd[1]: Installed transient /etc/machine-id file.
[    2.509379] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[    2.905296] systemd[1]: Cannot add dependency job for unit regenerate_ssh_host_keys.service, ignoring: Unit regenerate_ssh_host_keys.service failed to load: No such file or directory.
[    2.920806] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    2.927695] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    2.934441] systemd[1]: Starting Remote File Systems (Pre).
[    3.049380] usb 1-1.2: new low-speed USB device number 5 using dwc_otg
[    3.589353] usb 1-1.2: new low-speed USB device number 6 using dwc_otg
[    3.751801] usbcore: registered new interface driver snd-usb-audio
[    5.118729] systemd-udevd[130]: starting version 215
[    7.416631] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[    8.149347] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    9.101994] usbcore: registered new interface driver brcmfmac
[    9.323415] brcmfmac: Firmware version = wl0: May 27 2016 00:13:38 version 7.45.41.26 (r640327) FWID 01-df77e4a7
[   10.254179] systemd-journald[128]: Received request to flush runtime journal from PID 1
[   12.595180] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   12.595218] brcmfmac: power management disabled
[   13.357100] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   14.737423] uart-pl011 20201000.serial: no DMA platform data
[   15.280437] Adding 102396k swap on /var/swap.  Priority:-1 extents:5 across:200700k SSFS
[   19.169381] Bluetooth: Core ver 2.22
[   19.169571] NET: Registered protocol family 31
[   19.169581] Bluetooth: HCI device and connection manager initialized
[   19.169612] Bluetooth: HCI socket layer initialized
[   19.169636] Bluetooth: L2CAP socket layer initialized
[   19.169693] Bluetooth: SCO socket layer initialized
[   19.181299] Bluetooth: HCI UART driver ver 2.3
[   19.181319] Bluetooth: HCI UART protocol H4 registered
[   19.181326] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   19.181526] Bluetooth: HCI UART protocol Broadcom registered
[   19.493142] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   19.493155] Bluetooth: BNEP filters: protocol multicast
[   19.493181] Bluetooth: BNEP socket layer initialized
[   21.388479] input: retrogame as /devices/virtual/input/input0
[   42.168330] random: crng init done
pi@raspberrypi:~ $ sudo dmesg -C
pi@raspberrypi:~ $ dmesg
[  428.134645] dwc_otg_handle_wakeup_detected_intr lxstate = 2
[  428.591170] usb 1-1.2: new low-speed USB device number 7 using dwc_otg
[  429.131147] usb 1-1.2: new low-speed USB device number 8 using dwc_otg
[  429.671202] usb 1-1.2: new low-speed USB device number 9 using dwc_otg
[  430.211190] usb 1-1.2: new low-speed USB device number 10 using dwc_otg
[  430.751163] usb 1-1.3: new low-speed USB device number 11 using dwc_otg
[  431.291182] usb 1-1.3: new low-speed USB device number 12 using dwc_otg
[  431.831258] usb 1-1.3: new low-speed USB device number 13 using dwc_otg
[  432.371156] usb 1-1.3: new low-speed USB device number 14 using dwc_otg
and the loaded sound module

Code: Select all

pi@raspberrypi:~ $ cat /proc/asound/modules
 0 snd_bcm2835
I believe there should be another audio module showing but it does not appear even though in the logs above it says "sbcore: registered new interface driver snd-usb-audio". :?

I hope you can help me with this issues. Let me know if you need further information

Thanks in advance
Attachments
overall build.jpg
overall build.jpg (2.83 MiB) Viewed 11972 times

User avatar
Lphillimore
Posts: 993
Joined: Sat Jan 07, 2017 7:03 pm
Location: Perth, WA
Has thanked: 796 times
Been thanked: 527 times

Re: USB Hub issues with Audio and Usb

Post by Lphillimore » Sun Jul 16, 2017 6:14 pm

A few things to check:

Is your USB hub getting power? Simple test is whether the blue LED comes on (i use the same hubs). You can also use a multimeter.

If not, start there.

If so, re check data lines as this is not showing up on your lsusb output check.

Are you powering your screen from the USB hub? I dont recommend doing that. Power from the powerboost / equivalent or use a power hub (like Helders).

Does your soundcard get power? Again i use the same ones and they have red LER power indicators.

Not 100 percent on your audio wiring either. You've not wired one of the pads on the USB card.

Regards

User avatar
akstein
Posts: 14
Joined: Sun Jul 16, 2017 2:29 pm
Has thanked: 4 times
Been thanked: 2 times

Re: USB Hub issues with Audio and Usb

Post by akstein » Mon Jul 17, 2017 4:19 pm

Hi @Lphillimore,

Thanks for the reply. Yes the USB Hub gets power and the blue LED flashes. I thought the USB Hub was one of the options listed in the lsusb output. In the dmsg output it identifies 4 USB ports after having changed /boot/cmdline.txt and adding the speed=1. Otherwise it was only identifying USB one port.

I am using the USB Hub to power up most of the components in my build. The powerboost powers the USB Hub and from there I power everything else (this might be the cause root of my problems). Is there any power hub you recommend using and that it can be delivered over to the UK?

The sound card works intermittently. It gets 5v from the USB Hub although the audio gets 1.4v and the mic 2.44v, not sure why the difference in the voltage. The weird thing is the way I have wired it up with the potentiometer wheel then the audio gets no voltage. I am not 100% sure how to rewire the USB sound card to the speaker and the potentiomenter wheel :? . Help is always appreciate it.

I have already ordered a new USB sound card because sometimes the red LED indicators comes up but right now it doesn't. Might be because of the power distribution, not sure.

Please find below some pictures to illustrate the above

The picture below shows monitor, powerboost and USB Hub getting power blue LEDs (the sound card's red LED is not appearing but I had it flashing yesterday)
leds on.jpg
leds on.jpg (2.66 MiB) Viewed 11938 times
The picture below is a close look of the powerboost. I have noticed that there are some pads not used. Could I use the available pads to power up the monitor from there. This way the power boost will be powering the monitor and the USB Hub - not sure if these will make any difference.
pwrboost.jpg
pwrboost.jpg (821.2 KiB) Viewed 11938 times
Thanks for helping

User avatar
Lphillimore
Posts: 993
Joined: Sat Jan 07, 2017 7:03 pm
Location: Perth, WA
Has thanked: 796 times
Been thanked: 527 times

Re: USB Hub issues with Audio and Usb

Post by Lphillimore » Tue Jul 18, 2017 2:41 am

Looks like your hub is fine yes and agree it's listed there. That's a good start!

I definitely would not power everything through the hub.

See additional pinouts on 1000c:
Capture.PNG
Capture.PNG (1.01 MiB) Viewed 11924 times
Or, you could use one of Helders breakout boards. :?:

http://market.sudomod.com/power-strip-pcb/

Ref your pics, you can indeed use those pins to power the screen.

What I do however is use the pins you've used for your hub to power the breakout board.

Everything else is then powered from this board.

For example:

- USB Hub
- USB Sound (if used)
- USB port (female)
- Teensy / Leonardo (if used) etc...

I have a fair few breakout boards spare. Happy to send you one if you'd like as ordering them can take some time to ship and they are also made per order.

Regards

User avatar
akstein
Posts: 14
Joined: Sun Jul 16, 2017 2:29 pm
Has thanked: 4 times
Been thanked: 2 times

Re: USB Hub issues with Audio and Usb

Post by akstein » Tue Jul 18, 2017 7:53 am

Yes it looks like using the breakout board is a more reliable solution. I am more than happy to use one if you don't mind sending it over.

Appreciate your help @Lphillimore

User avatar
Lphillimore
Posts: 993
Joined: Sat Jan 07, 2017 7:03 pm
Location: Perth, WA
Has thanked: 796 times
Been thanked: 527 times

Re: USB Hub issues with Audio and Usb

Post by Lphillimore » Wed Jul 19, 2017 12:33 am

akstein wrote:
Tue Jul 18, 2017 7:53 am
Yes it looks like using the breakout board is a more reliable solution. I am more than happy to use one if you don't mind sending it over.

Appreciate your help @Lphillimore
No problem, message me your address and ill send one tomorrow 👍🏼

Wolverine
Posts: 4
Joined: Mon Jun 19, 2017 12:49 pm
Has thanked: 3 times

Re: USB Hub issues with Audio and Usb

Post by Wolverine » Thu Jul 20, 2017 1:40 pm

Hello guys,

I have almost the same setup.
I see the USB hub and USB audio card in the lsusb output. But no sound.
Is there a parameter to change in any recalbox config files to activate the sound ?

Thx.

User avatar
akstein
Posts: 14
Joined: Sun Jul 16, 2017 2:29 pm
Has thanked: 4 times
Been thanked: 2 times

Re: USB Hub issues with Audio and Usb

Post by akstein » Sun Jul 30, 2017 6:55 am

Wired the breakthrough power hub to power up all the different components; screen, raspberry pi zero w, external USB and USB sound card. The original issue raised in the post is still persisting and I am not sure what to do to solve the issue.

The USB sound card displays the red LED consistently - that's progress from last time - although it is not recognised when doing lsusb or cat /proc/asound/modules.

see the outputs:

pi@raspberrypi:~ $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub[/code]

Code: Select all

pi@raspberrypi:~ $ cat /proc/asound/modules
 0 snd_bcm2835

Code: Select all

pi@raspberrypi:~ $ dmesg 
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.35+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1014 Fri Jun 30 14:34:49 BST 2017
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] OF: fdt:Machine model: Raspberry Pi Zero W Rev 1.1
[    0.000000] cma: Reserved 8 MiB at 0x0f400000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c0914874, node_mem_map cfdabe00
[    0.000000]   Normal zone: 576 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:40:E8:4F vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 dwc_otg.speed=1 console=ttyS0,115200 console=tty1 root=PARTUUID=264d4c22-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait plymouth.enable=0
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 241256K/262144K available (5946K kernel code, 489K rwdata, 1948K rodata, 400K init, 734K bss, 12696K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc05d6bbc   (5947 kB)
      .init : 0xc0840000 - 0xc08a4000   ( 400 kB)
      .data : 0xc08a4000 - 0xc091e728   ( 490 kB)
       .bss : 0xc091e728 - 0xc09d5f28   ( 734 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000027] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000070] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000171] bcm2835: system timer (irq = 27)
[    0.000643] Console: colour dummy device 80x30
[    0.001410] console [tty1] enabled
[    0.001465] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.060348] pid_max: default: 32768 minimum: 301
[    0.060809] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060877] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.061978] Disabling cpuset control group subsystem
[    0.062254] CPU: Testing write buffer coherency: ok
[    0.062363] ftrace: allocating 21712 entries in 64 pages
[    0.177115] Setting up static identity map for 0x8200 - 0x8238
[    0.179155] devtmpfs: initialized
[    0.188378] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.188867] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.188966] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.190290] pinctrl core: initialized pinctrl subsystem
[    0.191805] NET: Registered protocol family 16
[    0.194364] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.204155] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.204247] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.204387] Serial: AMBA PL011 UART driver
[    0.207307] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[    0.208088] uart-pl011 20201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.256222] bcm2835-dma 20007000.dma: DMA legacy API manager at d080d000, dmachans=0x1
[    0.259059] SCSI subsystem initialized
[    0.259386] usbcore: registered new interface driver usbfs
[    0.259557] usbcore: registered new interface driver hub
[    0.259796] usbcore: registered new device driver usb
[    0.267191] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-07-03 14:16
[    0.269220] clocksource: Switched to clocksource timer
[    0.325541] VFS: Disk quotas dquot_6.6.0
[    0.325736] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.326082] FS-Cache: Loaded
[    0.326488] CacheFiles: Loaded
[    0.345822] NET: Registered protocol family 2
[    0.347249] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.347369] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.347459] TCP: Hash tables configured (established 2048 bind 2048)
[    0.347587] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.347653] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.348008] NET: Registered protocol family 1
[    0.348810] RPC: Registered named UNIX socket transport module.
[    0.348886] RPC: Registered udp transport module.
[    0.348924] RPC: Registered tcp transport module.
[    0.348960] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.350308] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[    0.352803] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.372811] FS-Cache: Netfs 'nfs' registered for caching
[    0.374616] NFS: Registering the id_resolver key type
[    0.374727] Key type id_resolver registered
[    0.374770] Key type id_legacy registered
[    0.379348] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.379837] io scheduler noop registered
[    0.379901] io scheduler deadline registered (default)
[    0.380408] io scheduler cfq registered
[    0.386290] BCM2708FB: allocated DMA memory 4f500000
[    0.386421] BCM2708FB: allocated DMA channel 0 @ d080d000
[    0.394688] Console: switching to colour frame buffer device 82x26
[    0.405012] bcm2835-rng 20104000.rng: hwrng registered
[    0.407848] vc-cma: Videocore CMA driver
[    0.410517] vc-cma: vc_cma_base      = 0x00000000
[    0.413059] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    0.415589] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    0.418603] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    0.448766] brd: module loaded
[    0.463748] loop: module loaded
[    0.466149] Loading iSCSI transport class v2.0-870.
[    0.469597] usbcore: registered new interface driver smsc95xx
[    0.472087] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.702800] Core Release: 2.80a
[    0.705268] Setting default values for core params
[    0.707611] Finished setting default values for core params
[    0.910412] Using Buffer DMA mode
[    0.912824] Periodic Transfer Interrupt Enhancement - disabled
[    0.915226] Multiprocessor Interrupt Enhancement - disabled
[    0.917664] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.920253] Dedicated Tx FIFOs mode
[    0.923328] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xcf514000 dma = 0x4f514000 len=9024
[    0.928403] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[    0.941118] dwc_otg: Microframe scheduler enabled
[    0.941268] WARN::hcd_init_fiq:459: FIQ on core 0 at 0xc04512ec
[    0.943925] WARN::hcd_init_fiq:460: FIQ ASM at 0xc04515c8 length 36
[    0.946540] WARN::hcd_init_fiq:486: MPHI regs_base at 0xd08a5000
[    0.949173] dwc_otg 20980000.usb: DWC OTG Controller
[    0.951915] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[    0.954708] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[    0.957360] Init: Port Power? op_state=1
[    0.959987] Init: Power Port (0)
[    0.962833] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.965438] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.968036] usb usb1: Product: DWC OTG Controller
[    0.970649] usb usb1: Manufacturer: Linux 4.9.35+ dwc_otg_hcd
[    0.973226] usb usb1: SerialNumber: 20980000.usb
[    0.976937] hub 1-0:1.0: USB hub found
[    0.979634] hub 1-0:1.0: 1 port detected
[    0.982867] dwc_otg: FIQ enabled
[    0.982876] dwc_otg: NAK holdoff enabled
[    0.982882] dwc_otg: FIQ split-transaction FSM enabled
[    0.982905] Module dwc_common_port init
[    0.983428] usbcore: registered new interface driver usb-storage
[    0.986422] mousedev: PS/2 mouse device common for all mice
[    0.990695] bcm2835-wdt 20100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.993838] bcm2835-cpufreq: min=700000 max=1000000
[    0.997046] sdhci: Secure Digital Host Controller Interface driver
[    0.999748] sdhci: Copyright(c) Pierre Ossman
[    1.002801] sdhost-bcm2835 20202000.sdhost: could not get clk, deferring probe
[    1.008057] mmc-bcm2835 20300000.mmc: could not get clk, deferring probe
[    1.011302] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.014604] ledtrig-cpu: registered to indicate activity on CPUs
[    1.017554] hidraw: raw HID events driver (C) Jiri Kosina
[    1.020706] usbcore: registered new interface driver usbhid
[    1.023516] usbhid: USB HID core driver
[    1.027521] vchiq: vchiq_init_state: slot_zero = 0xcf580000, is_master = 0
[    1.032874] Initializing XFRM netlink socket
[    1.036207] NET: Registered protocol family 17
[    1.039600] Key type dns_resolver registered
[    1.044825] registered taskstats version 1
[    1.048116] vc-sm: Videocore shared memory driver
[    1.051020] [vc_sm_connected_init]: start
[    1.054924] [vc_sm_connected_init]: end - returning 0
[    1.066694] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[    1.074929] sdhost: log_buf @ cf513000 (4f513000)
[    1.149286] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.154749] mmc-bcm2835 20300000.mmc: mmc_debug:0 mmc_debug2:0
[    1.157641] mmc-bcm2835 20300000.mmc: DMA channel allocated
[    1.190040] random: fast init done
[    1.239453] of_cfs_init
[    1.243421] of_cfs_init: OK
[    1.251312] Waiting for root device PARTUUID=264d4c22-02...
[    1.264146] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.268337] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.272570] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.277962] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.300731] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.308402] mmc0: new high speed SDHC card at address aaaa
[    1.312462] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
[    1.318616]  mmcblk0: p1 p2
[    1.388102] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.393310] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.408935] devtmpfs: mounted
[    1.413290] mmc1: new high speed SDIO card at address 0001
[    1.417766] Freeing unused kernel memory: 400K (c0840000 - c08a4000)
[    1.420458] This architecture does not have kernel memory protection.
[    1.758126] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    1.764411] systemd[1]: Detected architecture 'arm'.
[    1.899823] NET: Registered protocol family 10
[    1.904905] systemd[1]: Inserted module 'ipv6'
[    1.913443] systemd[1]: Set hostname to <raspberrypi>.
[    1.917052] systemd[1]: Initializing machine ID from random generator.
[    1.920776] systemd[1]: Installed transient /etc/machine-id file.
[    2.692474] systemd[1]: Cannot add dependency job for unit regenerate_ssh_host_keys.service, ignoring: Unit regenerate_ssh_host_keys.service failed to load: No such file or directory.
[    2.708029] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    2.715146] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    2.721700] systemd[1]: Starting Remote File Systems (Pre).
[    3.489072] usbcore: registered new interface driver snd-usb-audio
[    4.881454] systemd-udevd[129]: starting version 215
[    7.099398] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[    7.767348] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    9.053500] usbcore: registered new interface driver brcmfmac
[    9.253808] brcmfmac: Firmware version = wl0: May 27 2016 00:13:38 version 7.45.41.26 (r640327) FWID 01-df77e4a7
[   10.030427] systemd-journald[127]: Received request to flush runtime journal from PID 1
[   12.303482] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   12.303577] brcmfmac: power management disabled
[   13.100550] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   14.437778] uart-pl011 20201000.serial: no DMA platform data
[   15.030698] Adding 102396k swap on /var/swap.  Priority:-1 extents:5 across:200700k SSFS
[   18.864886] Bluetooth: Core ver 2.22
[   18.865046] NET: Registered protocol family 31
[   18.865055] Bluetooth: HCI device and connection manager initialized
[   18.865085] Bluetooth: HCI socket layer initialized
[   18.865105] Bluetooth: L2CAP socket layer initialized
[   18.865169] Bluetooth: SCO socket layer initialized
[   18.880459] Bluetooth: HCI UART driver ver 2.3
[   18.880479] Bluetooth: HCI UART protocol H4 registered
[   18.880485] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   18.880683] Bluetooth: HCI UART protocol Broadcom registered
[   19.196388] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   19.196400] Bluetooth: BNEP filters: protocol multicast
[   19.196427] Bluetooth: BNEP socket layer initialized
[   20.609065] input: retrogame as /devices/virtual/input/input0
[   41.945317] random: crng init done
I am also a bit concerned it is only identifying 1 USB port and audio sound cart is not being added I believe

Code: Select all

    0.976937] hub 1-0:1.0: USB hub found
[    0.979634] hub 1-0:1.0: 1 port detected

snoek09
Posts: 145
Joined: Sat May 20, 2017 3:06 am
Location: Amsterdam, The Netherlands
Has thanked: 48 times
Been thanked: 43 times

Re: USB Hub issues with Audio and Usb

Post by snoek09 » Sun Jul 30, 2017 10:34 am

I have a very similar build I'm currently working on.
I'm using the same USB hub and want to connect a teensy lc and usb audio to it.
For powering the USB hub I'm using a power strip as mentioned here already.

I had the teensy connected which was working but I'm afraid I destroyed the USB hub recently as I can't get it to power on.
I'm now waiting for my new USB hub (same type).
Will keep you updated here.

User avatar
Lphillimore
Posts: 993
Joined: Sat Jan 07, 2017 7:03 pm
Location: Perth, WA
Has thanked: 796 times
Been thanked: 527 times

Re: USB Hub issues with Audio and Usb

Post by Lphillimore » Sun Jul 30, 2017 6:26 pm

Recheck your data wires on the pi. Make sure they are not bridged. This also goes for the small circular recesses to either side. This is your source / gateway of all data.

From there, again check the input to your USB hub. Ensure data wires are soldered without shorting on anything.

USB Soundcard can be wired directly to the USB hub. No need for breakout board on this one.

Any new pics?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest