Tone Board not detected on reboot (Armbian)

I have strange problem. Any advice?
OS - balbes150’s Armbian (debian, server, kernel 3.14.29)

When Tone Board is connected to the VIM trough USB cable, everything works normal. But when trough GPIO, it is not detected after reboot (shutdown -r now) or even after power on if was executed shutdown command first. If i remove power cable and put it again - the Tone Board appears again.

Hi, Stefan:
Here we will confirm first then update you.

@Ben007 Maybe it’s power on/off logic cause this?

Any new information?

on my home built (using fenix scripts) ubuntu xenial w/ kernel 4.9.40 :
I plug the toneboard (generic model) on the gpio 40 pins socket,
then I connect the usb-c cable from the VIM1 pro to my laptops’ usb-A port,
I use minicom and a console serial USB cable to see the boot message,
I log in , then…

aplay -D plughw:CARD=x20,DEV=0 police_s.wav
Playing WAVE 'police_s.wav' : Unsigned 8 bit, Rate 22000 Hz, Mono

and music gets out of the RCA socket of the toneboard
then, I do
sync; sudo reboot

and again, the toneboard just works once ubuntu is rebooted

If this can help balbes150 to diagnose what happens with his Armbian+kernel 3.14

When you connect Tone Board with 40 PIN GPIO,it didnot need connect USB-C power cable.
Actually,if you plug USB-C with PC and the same time connect tone Board with VIMs,and tone board will swtich to PC sound card.

Seriously? Where you see PC in my original post?

@Ben007b check again and do response.

Hi Stefan, can you confirm GPIO and power cable(USB-C?)connect tone board at the same time?

It is only GPIO connected or only USB-c. Never both together!

Guys is this problem exist only with my Tone Board (sample one)?
No meter of the OS and how it is connected (USB or pinout), Tone Board despairing on reboot. And to get it back, i need to disconnect it, boot the device without it, shutdown the device, connect it again and voila … until next reboot.
We had the same issue with our own XMOS and the problem was to do power cycle inside the xmos firmware to clear the previous state and to be able to report himself on reboot again.

Checked the Generic version of the sound card (connect the USB cable to the VIM), the last version Armbian kernel 4.18, it works without problems. When you turn off \ restart VIM sound card automatically activated and works without manual manipulation.

Perhaps the reason is that you have, when connected to the 40-pin connector on the USB contacts (through which the Board is connected to VIM) remains powered. If I’m when I connected the fan to the contacts 5V 40-pin, there is always power after the primary power.

Thanks balbes150, but my issue exist even I connect the TB to nanopi trough usb cable for example or to my Nvidia shield as well. I have order new Tone Board and will test with it because my existing is a preproduction sample.
I hope everything will be okay, so finally I will able to push TB to BG market :slight_smile:

1 Like

Hi Stefan:
Did you mean that you have a similar problem on other XMOS device right?

No. We had in the beginning only. And the problem was similar but not exactly the same. I suppose the problem is related to my particular tone board and I expect not to have it with the new one :slight_smile:

Just confirmed with @Ben007, your TB should be same with final revision.

Can you specify more details on this:

  • VIM1 or VIM2?
  • Power Adapter Spec
  • OS ROM

And if possiable, take a simple video on this, we will confirm here and update you.

Good day!

It happens with VIM1 and VIM2 no meter is connected trough GPIO or USB cable. PSU is Khadas original. OS I have tested is Volumio, Libreelec, Coreelec, Armbian

I have tested with NanoPI (armbian and Volumio) and Shield (Android TV).

Video will show you nothing more but if connected first time everything is normal. On reboot TB disappear.

Thanks for your support but don’t worry. I will check the situation when my new TB arrive and will update you :slight_smile:

1 Like

Just for info: my (long due) tests with a Khadas VIM board (using balbes150’s 3.14.79 kernel).
At first I was very disappointed, but quickly found out why and was able to use a workaround as shown below.
There are some issues with the VIM image/kernel and usb ports you need to be aware of.
At startup the Tone board will not be recognised/ initialised properly, therefore only show as a 12M (USB 1.1) device.
Hence audio support only reaches up to 96kHz, see /proc/asound/card/stream0
It does not make a difference whether the board is connected as a HAT or connected via usb-c.

When connected to a usb-c port, disconnect and re-connect, then the board will reach its full potential as a UAC2 device.

When connected as a HAT, you can do the same. After startup, shortly connect the Toneboard via usb-c (which will cause the board to switch) and disconnect (switches the board back to the GPIO usb port)…
This also resets the usb connection to the proper speed.

Thanks for the info! This is exactly what i do actually meny month till now. USB must be reset in reboot or by unplug/plug the TB :slight_smile:
I found that the guys on Volumio forum discovered the problem as well and work around is exactly the same steps to get it working properly. … but this is annoying :frowning:
I still use 3 tone boards in my own setup but not with VIM anymore.

I am the one from the Volumio forum :wink:

This is how I added the Khadas Tone Board to a case, so I can use it for many different sbc’s