Re: [beagleboard] Re: Beaglebone Black can't get USB audio to work

2016-11-27 Thread Jim S
I got the kernel recompiled with disabled DMA and installed it.  Sound now 
works fine.  

For anyone else wanting to do this I followed Roberts notes and used a 
couple other pages to help with figuring out some details such as 
installing things needed for the cross compile on a Ubuntu PC:
http://elinux.org/Building_BBB_Kernel
http://wiki.beyondlogic.org/index.php/BeagleBoneBlack_Building_Kernel

I didn't mess with TFTP as both those pages show.  After the cross compile 
I  transferred the new kernel file to the BBB with Filezilla (after I 
backed up the system in case of trouble) and installed with dpkg -i ... as 
Robert suggested.  



On Wednesday, November 23, 2016 at 10:26:43 AM UTC-6, RobertCNelson wrote:
>
> On Wed, Nov 23, 2016 at 10:00 AM, Jim S <jimski...@gmail.com > 
> wrote: 
> > Thanks!  I take it that is done on the BBB itself?  (rather than cross 
> > compiled)  Any issue with doing this over ssh?  (particularly the 
> selecting 
> > of kernel configuration boxes) 
>
> Depends, run it on x86, it'll be pretty quick.. 
>
> Run on beagle, wait a few hours.. 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/3fa9b2bc-8689-4dfa-ac71-5dab3afadb9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Beaglebone Black can't get USB audio to work

2016-11-23 Thread Jim S
Thanks!  I take it that is done on the BBB itself?  (rather than cross 
compiled)  Any issue with doing this over ssh?  (particularly the selecting 
of kernel configuration boxes)

I saw in another thread

https://groups.google.com/forum/embed/?place=forum/beagleboard=true=true=false=true=http%3A%2F%2Fbeagleboard.org%2Fdiscuss#!category-topic/beagleboard/usb/HQnLSvyYISI
 that it might be possible to achieve the same thing by adding *musb_hdrc*.
*use_dma*=n to the kernel cmdline.  I have only fiddled a bit with this on 
desktops and the BBB is a little different.  Can I add this as to uEnv.txt 
as an addition to the optargs=... line?  That would be a lot simpler, at 
least to test and verify that this is the issue, than recompiling the 
kernel.  If not there, where do I place that? 

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/af6583cb-66ec-412e-940c-325b079afd9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Beaglebone Black can't get USB audio to work

2016-11-23 Thread Jim S
Apparently, from a little searching and reading others are having similar 
trouble and the issue is DMA for the USB audio - it needs to be disabled (I 
think...).  This requires recompiling the kernel with this disabled.  
Haven't compiled a kernel before so am looking for some detailed 
instructions on this and replacing the existing kernel (would like to keep 
the rest of the configured system if possible).  Anyone have any good links 
on doing this?  I have found several places that give the line setting the 
option of disabling DMA and I think I could add that to detailed kernel 
cross compiling instructions...

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/b52dce74-7d6a-4c05-ae3b-98f5d2881028%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Beaglebone Black can't get USB audio to work

2016-11-21 Thread Jim S

Trying to add USB audio device to BBB.  I am running this headless - no 
HDMI display, no direct keyboard or mouse.  USB audio device is C-Media.  
Have a powered USB hub.  Have an Arduino board connected by USB but don't 
think it affects this issue.  USB audio device is seen by aplay -l and 
aplay -L but trying to use it doesn't work and usually hangs the system 
requiring a power cycle.  System is for Asterisk VOIP and from here:
http://beaglebone-asterisk.raspbx.org/


root@raspbx:~# uname -a
Linux raspbx 3.14.37-ti-r57 #1 SMP PREEMPT Sat Apr 4 06:18:14 UTC 2015 
armv7l armv7l armv7l GNU/Linux

root@raspbx:~# aplay -l
 List of PLAYBACK Hardware Devices 
card 0: Black [TI BeagleBone Black], device 0: HDMI hdmi-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Device [C-Media USB Audio Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@raspbx:~#

root@raspbx:~# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=Black
TI BeagleBone Black,
Default Audio Device
sysdefault:CARD=Black
TI BeagleBone Black,
Default Audio Device
dmix:CARD=Black,DEV=0
TI BeagleBone Black,
Direct sample mixing device
dsnoop:CARD=Black,DEV=0
TI BeagleBone Black,
Direct sample snooping device
hw:CARD=Black,DEV=0
TI BeagleBone Black,
Direct hardware device without any conversions
plughw:CARD=Black,DEV=0
TI BeagleBone Black,
Hardware device with all software conversions
default:CARD=Device
C-Media USB Audio Device, USB Audio
Default Audio Device
sysdefault:CARD=Device
C-Media USB Audio Device, USB Audio
Default Audio Device
front:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Front speakers
surround40:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Direct sample mixing device
dsnoop:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Direct sample snooping device
hw:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Direct hardware device without any conversions
plughw:CARD=Device,DEV=0
C-Media USB Audio Device, USB Audio
Hardware device with all software conversions
root@raspbx:~#

As an attempt to test I ran:
root@raspbx:/opt/jimscripts# speaker-test -D default:Device

speaker-test 1.0.27.2

Playback device is default:Device
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
 0 - Front Left

At this point the system hung and I had to power cycle.

I edited /boot/uboot/eEnv.txt to disable HDMI audio so USB is default audio 
but this didn't seem to help.  Current line in that file is:

optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

What should I be looking at/doing?  Any help is appreciated.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/e677854e-521c-40ef-abb1-b5c1c8fc4709%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] How to troubleshoot crash?

2016-09-04 Thread Jim S
Running 3.14 ubuntu with  asterisk image latest from 
http://beaglebone-asterisk.raspbx.org/ but support seems to be going away.  
Have added some simple scripts to talking to an Arduino board but think the 
problem is more basic.  Latest image ran ok for about a month but now is 
crashing almost daily.  This is headless and when it crashes I can't access 
it although it may still be running - I'm not sure...  Hardly any 
experience looking at logs, etc.  How do I figure out what is going on and 
how to fix - i.e. where to start?

If the fix is too involved I may just abandon asterisk for now and go with 
a maintained version of ubuntu (which one?) if that's what's needed for a 
stable system.  The other scripts are more important now and I could run 
asterisk on a real PC box.


-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/58698703-e570-498e-bd2a-43fdf9635f80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Automatic shutdown options for loss of power?

2016-05-16 Thread Jim S
I already have a big battery in the UPS so I don't need another one.  What 
I need is control.  I have an Arduino connected to the BBB for I/O that 
could help with this.  If the Arduino could interrupt the power to the BBB 
(or trigger the boot process some other way) that would handle power up.  
It could also handle delay for power down.  Something like this:

BBB and Arduino powered from UPS.
Another wall wart power supply from AC line to Arduino to sense state of AC 
line

Upon loss of AC line the arduino would delay an amount of time and send a 
signal to the BBB to trigger shutdown.  Time delay would prevent shutdown 
for short line drops.  After time to shut down it would drop power to the 
BBB.
Upon regaining AC line it would close switch to apply power to BBB.  A 
small delay would probably be a good idea to eliminate possibility of very 
short off times.

The switch could be a relay or solid state switch.  And the Arduino could 
be any microprocessor.  

On Monday, May 16, 2016 at 11:44:59 AM UTC-5, Harvey White wrote:
>
> On Mon, 16 May 2016 09:14:13 -0700 (PDT), you wrote: 
>
> >That is pretty limited.  Sounds like just punting the software and going 
> >with a mostly hardware solution would be just as easy but then I am a 
> >hardware guy.  I think a UPS with auto shutdown AND restart capability 
> >would be something a lot of people would want but I could be wrong. 
>
>
> How about an inexpensive microprocessor (of whatever variety), an 
> on-board backup battery, and enough smarts to shut down a BBB 
> intelligently?  Perhaps a pin on the BBB might be dedicated to a 
> shutdown option.  It's a combination of both hardware and software. 
> How much you pay for it, how much you decide to build into it depends 
> on your own desires. 
>
> Harvey 
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/f3a5549c-4bda-4629-a042-49b5c8d3d64f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Automatic shutdown options for loss of power?

2016-05-16 Thread Jim S
That is pretty limited.  Sounds like just punting the software and going 
with a mostly hardware solution would be just as easy but then I am a 
hardware guy.  I think a UPS with auto shutdown AND restart capability 
would be something a lot of people would want but I could be wrong.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/1d40616f-9270-449b-86fb-e3cac2823375%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Automatic shutdown options for loss of power?

2016-05-16 Thread Jim S
Recently lost power and corrupted my sd card badly and had to start over.  
I have seen the battery "UPS" for BBB type but don't need another battery.  
I have a small APC UPS for the BBB, DSL modem, a VOIP box, and a router but 
the UPS does not have a comm port to report status to the BBB.  Would like 
to set up so that when the AC power drops the BBB will shutdown in 5 
minutes (most outages are shorter but this is still much before the UPS 
runs out of power).  If the power is restored before that continue to run.  
When power is restored start up.  With an additional wall wart power supply 
I could generate a logic level signal for when the AC line is ok (input to 
UPS).  Does anything like this exist?  If not, anything similar enough that 
I could hack up the scripts a bit and get there?  Would rather not have to 
start from scratch.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/ed9d6695-08ab-48b6-a3dc-8e645b8f4e4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.