Re: [beagleboard] HDMI audio with kernel 4.8

2019-06-26 Thread Robert Nelson
On Wed, Jun 26, 2019 at 7:48 PM  wrote:
>
> Hi all,
>
> Is it possible to configure HDMI audio on the BeagleBoneBlack using a v4.8 
> stock Linux kernel?
>
> I'm working with custom hardware that is based on the BBB schematic and stock 
> Linux v4.8. The HDMI circuit is intentionally similar - the DRM and McASP 
> pins from the Sitara are connected to a tda19988. We have HDMI video working, 
> actually, but I'm struggling to configure the audio. Still learning
>
> We're largely based on this dts with the McASP pins adjusted to use McASP1 
> instead of McASP0 per the custom hardware.
>
> I've noticed that the tda998x driver in kernel v4.8 doesn't support the 
> audio-ports setting. Is there another way to configure the audio?
>
> I've tried duplicating the above BBB overlay's settings but have found that 
> snd_soc_get_dai_name() fails because it can't find the tda19988 in the 
> component_list. Specifically, it defers the probe multiple times and 
> eventually gives up. Perhaps there is another setting the device tree that 
> will add the tda19988 to the DAI list?
>
> I've been experimenting with configuring a simple-audio-card with a dummy 
> audio codec using the snd-soc-dummy driver. It looks like the snd-soc-dummy 
> driver doesn't have any device tree bindings in kernel v4.8, but it seems 
> possible to patch them in. However, I'm not sure that this is the right way 
> to go.
>
> Perhaps there's a different approach entirely?

hdmi took for ever to get in mainline... sadly in 4.9.x

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/arm/boot/dts/am335x-boneblack.dts?h=v4.9.1=8506912b969b60aacc733315eeeb46b014d920a4

Here are some reference commits..

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/CAOCHtYgf_tDM_zaLePkhfP4yk4gSy%2Be6Yt46aKpKvZCQEx7yRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] My first BBB Cape...

2019-06-26 Thread Robert Nelson
On Wed, Jun 26, 2019 at 9:13 PM Robert Heller  wrote:
>
> At Wed, 26 Jun 2019 17:15:40 -0500 Robert Nelson  
> wrote:
>
> >
> > On Wed, Jun 26, 2019 at 1:27 PM Robert Heller  wrote:
> > >
> > > Is there *current* and *correct* documentation about uBoot, uEnv.txt, 
> > > capemgr,
> > > and CAN for the Beagle Bone Black?  All of the hits I am getting doing web
> > > searches are for older pages, most of which do not work (or don't seem to
> > > work) with a current kernel (4.14.108-ti-r106).  Or do I need a different
> > > kernel?
> >
> > Both implementations read the eeprom the same way and load the
> > approprate overlay..
> >
> > Your "written" eeprom is wrong..
> >
> > Look at the examples *.dump here:
> >
> > https://github.com/RobertCNelson/boot-scripts/tree/master/device/bone/capes
>
>
> OK, now I am throughly confused. I wrote the cape eeprom based on the
> documentation in the "BeagleBone Black System Reference Manual", Revision A4,
> January 2, 2013, Table 9 on page 62 and Table 10 on page 64.
>
> The cape EEProms in /opt/scripts/device/bone/capes/ don't appear to match the
> above documentation.  Is that documentation wrong?  Where is the correct
> documentation?

I doubt the documentation is wrong, we've been doing it the same way
since 3.8.x, that's been like 10 years ago now..

Here is another example for reference:

[2.34] bone_capemgr bone_capemgr: Baseboard:
'A335BNLT,000C,1713BBBG1255'
[2.343368] bone_capemgr bone_capemgr:
compatible-baseboard=ti,beaglebone-black - #slots=4
[2.382090] bone_capemgr bone_capemgr: slot #0:
'nh7cape,A0,Cembsoft,BB-BONE-NH7C-01'
[2.421993] bone_capemgr bone_capemgr: slot #1: No cape found
[2.461987] bone_capemgr bone_capemgr: slot #2: No cape found
[2.501988] bone_capemgr bone_capemgr: slot #3: No cape found
[2.502246] bone_capemgr bone_capemgr: initialized OK.
[3.514365] bone_capemgr bone_capemgr: loader: failed to load
slot-0 BB-BONE-NH7C-01:A0 (prio 0)

The eeprom had:

'nh7cape,A0,Cembsoft,BB-BONE-NH7C-01'

So it looks for the file: "BB-BONE-NH7C-01-A0.dtbo"  so by comma's: $4:$2

in memory the eeprom is:

struct am335x_cape_eeprom_id {
unsigned int header;
char eeprom_rev[2];
char board_name[32];
char version[4];
char manufacture[16];
char part_number[16];
char number_of_pins[2];
char serial_number[12];
char pin_usage[140];
char vdd_3v3exp[ 2];
char vdd_5v[ 2];
char sys_5v[2];
char dc_supplied[2];
};

nothing beyond using part_number,version was "ever" utilized in the
original 3.8 kernel..

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/CAOCHtYi%3DPU_bVH%3DOBrizBmoWp6c%3DQ82nBKUS7784uDp6BZJsHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] My first BBB Cape...

2019-06-26 Thread Robert Heller
At Wed, 26 Jun 2019 17:15:40 -0500 Robert Nelson  
wrote:

> 
> On Wed, Jun 26, 2019 at 1:27 PM Robert Heller  wrote:
> >
> > Is there *current* and *correct* documentation about uBoot, uEnv.txt, 
> > capemgr,
> > and CAN for the Beagle Bone Black?  All of the hits I am getting doing web
> > searches are for older pages, most of which do not work (or don't seem to
> > work) with a current kernel (4.14.108-ti-r106).  Or do I need a different
> > kernel?
> 
> Both implementations read the eeprom the same way and load the
> approprate overlay..
> 
> Your "written" eeprom is wrong..
> 
> Look at the examples *.dump here:
> 
> https://github.com/RobertCNelson/boot-scripts/tree/master/device/bone/capes


OK, now I am throughly confused. I wrote the cape eeprom based on the
documentation in the "BeagleBone Black System Reference Manual", Revision A4,
January 2, 2013, Table 9 on page 62 and Table 10 on page 64.

The cape EEProms in /opt/scripts/device/bone/capes/ don't appear to match the 
above documentation.  Is that documentation wrong?  Where is the correct 
documentation?
  


> 
> For debugging connect a usb-serial adapter and look at what u-boot is
> reading from your eeprom and trying to load:
> 
> Grab the latest stretch-console, as it has the latest version of
> u-boot and the eeprom read/debug information..
> 
> https://rcn-ee.net/rootfs/bb.org/testing/2019-06-23/stretch-console/
> 
> Regards,
> 

-- 
Robert Heller -- 978-544-6933
Deepwoods Software-- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
hel...@deepsoft.com   -- Webhosting Services
  

-- 
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/20190627021249.502A126C014F%40sharky3.deepsoft.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: problem with writting os image on micro SD

2019-06-26 Thread z . momeneh5731
Thanks for your answer! I'm trying to install an image on the uSD and i 
want to run from that uSD card. i downloaded "Debian 9.5 2018-10-07 4GB SD 
LXQT" and i tried to write that on uSD with "Win32DiskImager". I formated 
my SD with "SD card formatter" such as  Dennis Lee Bieber said but it 
failed  and i tried with a new SD this process, but it's failed again.I 
don't know what to do,really!! please help me!

On Wednesday, June 26, 2019 at 11:43:00 PM UTC+4:30, gra...@flex-radio.com 
wrote:
>
> The message "You need to format the disk in drive E: before you can use 
> it" means that Windows can not read the file system on the uSD card.
> Well, Windows can not read Linux file systems, so this is OK, and you 
> should ignore the message.
>
> The ".img" file and Etcher will install a Linux file system on the card.
>
> Are you trying to install an image on the uSD card, so that you run from 
> the uSD card?
> Or, are you trying to install a flasher on the uSD card so that the uSD 
> card will install the image in the Flash memory on the BBB?
>
> Make sure you are using the correct image file to do what you are trying 
> to do.
>
> Is Etcher providing any errors?  If so, what does it say?
> If Etcher does not report any errors, do not reformat the card like 
> Windows says, and just put the Etcher programmed card in the BBB and run it.
>
> --- Graham
>
> ==
>
> On Wednesday, June 26, 2019 at 7:53:43 AM UTC-5, z.mome...@gmail.com 
> wrote:
>>
>> Hello, i have a beaglebone black board. i want to use "Debian 9.5 
>> 2018-10-07 4GB SD LXQT" os image for it, i downloaded it from 
>> http://beagleboard.org/latest-images/ and i try to write it on micro SD 
>> with "balena etcher" but it cann't write correctly, i repeat this process 
>> over and over and i deal with "You need to format the disk in drive E: 
>> before you can use it" any time.
>> 14 daya ago, i did this process successfully, but my micro SD damaged and 
>> i have to change it, after that i have above problem.
>> i did this process with other os images, too but i had this problem, 
>> again. 
>> please help me! give me a solution!
>>
>

-- 
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/94deb7eb-d06a-429d-ac30-bb153b98f748%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] HDMI audio with kernel 4.8

2019-06-26 Thread kevinwmatthews
Hi all,

Is it possible to configure HDMI audio on the BeagleBoneBlack using a v4.8 
stock Linux kernel?

I'm working with custom hardware that is based on the BBB schematic and 
stock Linux v4.8. The HDMI circuit is intentionally similar - the DRM and 
McASP pins from the Sitara are connected to a tda19988. We have HDMI video 
working, actually, but I'm struggling to configure the audio. Still 
learning

We're largely based on this dts 

 
with the McASP pins adjusted to use McASP1 instead of McASP0 per the custom 
hardware.

I've noticed that the tda998x driver in kernel v4.8 doesn't support the 
audio-ports 

 
setting. Is there another way to configure the audio?

I've tried duplicating the above BBB overlay's settings but have found that 
snd_soc_get_dai_name() 

 
fails because it can't find the tda19988 in the component_list 
.
 
Specifically, it defers the probe multiple times and eventually gives up. 
Perhaps there is another setting the device tree that will add the tda19988 
to the DAI list?

I've been experimenting with configuring a simple-audio-card with a dummy 
audio codec using the snd-soc-dummy driver. It looks like the snd-soc-dummy 
driver doesn't have any device tree bindings 

 
in kernel v4.8, but it seems possible to patch them in 
.
 
However, I'm not sure that this is the right way to go.

Perhaps there's a different approach entirely?

Thanks for your help,

-Kevin

-- 
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/047963d6-f73d-4194-a361-711122abfd12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] My first BBB Cape...

2019-06-26 Thread Robert Nelson
On Wed, Jun 26, 2019 at 1:27 PM Robert Heller  wrote:
>
> Is there *current* and *correct* documentation about uBoot, uEnv.txt, capemgr,
> and CAN for the Beagle Bone Black?  All of the hits I am getting doing web
> searches are for older pages, most of which do not work (or don't seem to
> work) with a current kernel (4.14.108-ti-r106).  Or do I need a different
> kernel?

Both implementations read the eeprom the same way and load the
approprate overlay..

Your "written" eeprom is wrong..

Look at the examples *.dump here:

https://github.com/RobertCNelson/boot-scripts/tree/master/device/bone/capes

For debugging connect a usb-serial adapter and look at what u-boot is
reading from your eeprom and trying to load:

Grab the latest stretch-console, as it has the latest version of
u-boot and the eeprom read/debug information..

https://rcn-ee.net/rootfs/bb.org/testing/2019-06-23/stretch-console/

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/CAOCHtYg8ErM-gM5Kp%2B1B9ALmyPDUJ5CAyEReszNbGGCwPvUwKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: problem with writting os image on micro SD

2019-06-26 Thread graham
The message "You need to format the disk in drive E: before you can use it" 
means that Windows can not read the file system on the uSD card.
Well, Windows can not read Linux file systems, so this is OK, and you 
should ignore the message.

The ".img" file and Etcher will install a Linux file system on the card.

Are you trying to install an image on the uSD card, so that you run from 
the uSD card?
Or, are you trying to install a flasher on the uSD card so that the uSD 
card will install the image in the Flash memory on the BBB?

Make sure you are using the correct image file to do what you are trying to 
do.

Is Etcher providing any errors?  If so, what does it say?
If Etcher does not report any errors, do not reformat the card like Windows 
says, and just put the Etcher programmed card in the BBB and run it.

--- Graham

==

On Wednesday, June 26, 2019 at 7:53:43 AM UTC-5, z.mome...@gmail.com wrote:
>
> Hello, i have a beaglebone black board. i want to use "Debian 9.5 
> 2018-10-07 4GB SD LXQT" os image for it, i downloaded it from 
> http://beagleboard.org/latest-images/ and i try to write it on micro SD 
> with "balena etcher" but it cann't write correctly, i repeat this process 
> over and over and i deal with "You need to format the disk in drive E: 
> before you can use it" any time.
> 14 daya ago, i did this process successfully, but my micro SD damaged and 
> i have to change it, after that i have above problem.
> i did this process with other os images, too but i had this problem, 
> again. 
> please help me! give me a solution!
>

-- 
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/45d269a1-0be0-439d-8f4a-408babf41ced%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] My first BBB Cape...

2019-06-26 Thread Robert Heller
Is there *current* and *correct* documentation about uBoot, uEnv.txt, capemgr, 
and CAN for the Beagle Bone Black?  All of the hits I am getting doing web 
searches are for older pages, most of which do not work (or don't seem to 
work) with a current kernel (4.14.108-ti-r106).  Or do I need a different 
kernel?


At Mon, 24 Jun 2019 20:24:33 -0400 (EDT) beagleboard@googlegroups.com wrote:

> 
> OK, my PCBs arrived today (from PCBWAY) and I assembled one (See: 
> https://github.com/RobertPHeller/RPi-RRCircuits/tree/master/LCCCANCape).
> 
> I plugged the cape board on and bone_capemgr sees it: (dmesg output)
> 
> [1.352490] bone_capemgr bone_capemgr: slot #0: No cape found
> [1.381015] bone_capemgr bone_capemgr: slot #1: No cape found
> [1.407867] bone_capemgr bone_capemgr: slot #2: No cape found
> [1.431906] bone_capemgr bone_capemgr: slot #3: 'LCCCANCape
>   ,0001,DeepwoodsSoftwar,0003'
> [1.432279] bone_capemgr bone_capemgr: initialized OK.
> [1.437192] bone_capemgr bone_capemgr: loader: failed to load slot-3 0003  
>   :0001 (prio 0)
> 
> I guess now I need to configure something somewhere so that bone_capemgr can 
> load the proper overlay file(s).
> 
> All this cape does is connect P9-24 (CAN1-RX) and P9-26 (CAN1-TX) to a 
> TCAN332DR CAN Tranceiver and then on to a pair of RJ45 jacks.
> 
> I *think* I can just use BB-CAN1-00A0.dtbo, but I am guessing that somehow I 
> need to let bone_capemgr know that it should load this overlay for this cape.
> 
> And then I need to get dcan1's socket device brought up.
> 
> I'm assuming the driver is compiled into the kernel: 4.14.108-ti-r106:
> 
> from /boot/config-4.14.108-ti-r106:
> 
> CONFIG_CAN_C_CAN=y
> CONFIG_CAN_C_CAN_PLATFORM=y
> 
> 

-- 
Robert Heller -- 978-544-6933
Deepwoods Software-- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
hel...@deepsoft.com   -- Webhosting Services


-- 
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/20190626182700.3E5F826C014F%40sharky3.deepsoft.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: cpufreq-info only 800MHz but I need 1GHz

2019-06-26 Thread activewholefoods
Dennis, thanks for explaining how mount won't work. No 2nd BBB. 
Can I do cat of eMMC to read the contents of some of the files? The 
important files I need are c/cpp source text files. From the mSD, how do I 
specify the eMMC directory? 
Or somehow copy a block of the eMMC. Then search it to extract the text 
content. 
Blair

On Tuesday, June 25, 2019 at 12:49:41 PM UTC-4, Dennis Lee Bieber wrote:
>
> On Mon, 24 Jun 2019 19:23:54 -0700 (PDT), 
> activewh...@gmail.com  declaimed the 
> following: 
>
> >Dennis, thanks for explaining an option. I have the original image on 
> mSD. 
> >Can that be used to recreate (copy or build) the proper partition table 
> on 
> >the eMMC? How is that done? Maybe the data will not be overwritten. If it 
> >does not work, I will lose all data anyway when reflash all. 
> > 
>
> I don't know enough about what gets done when running the normal 
> flasher (eg: does it create partitions or rely on the eMMC already having 
> a 
> partition table; if it creates a partition table then only running that 
> part without formatting the partitions might give access). 
>
> Copying the start of the SD card likely won't work either as a 
> true SD 
> card has a reserved section (for the "secure" functions that nobody 
> actually uses), so is likely in a different layout. 
>
> >Based on the above dd command (I ran by mistake), maybe from mSD run: 
> >sudo mount /dev/mmcblk1 
> > 
> >Then remove mSD and reboot. 
> > 
>
> Won't work -- part of the reboot sequence is to dismount "disk" 
> file 
> systems. 
>
>
> >But I don't know if I have all the correct parameters such as block size 
> or 
> >count or destination. Thanks for any help. 
> > 
>
> If you had a second BBB maybe a dd command to copy the start from 
> ITs 
> eMMC, put that (as a file) on the SD card, and dd command to write that 
> file to the bad system eMMC 
>
>  
> I suspect short of being able to manually examine everything on 
> the 
> eMMC there may not be any way to recover. 
>
>
> -- 
> Wulfraed Dennis Lee Bieber AF6VN 
> wlf...@ix.netcom.com 
> http://wlfraed.microdiversity.freeddns.org/ 
>
>

-- 
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/d9acdfc3-9e36-4727-9f27-7af1ef888760%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] problem with writting os image on micro SD

2019-06-26 Thread z . momeneh5731
Hello, i have a beaglebone black board. i want to use "Debian 9.5 
2018-10-07 4GB SD LXQT" os image for it, i downloaded it from 
http://beagleboard.org/latest-images/ and i try to write it on micro SD 
with "balena etcher" but it cann't write correctly, i repeat this process 
over and over and i deal with "You need to format the disk in drive E: 
before you can use it" any time.
14 daya ago, i did this process successfully, but my micro SD damaged and i 
have to change it, after that i have above problem.
i did this process with other os images, too but i had this problem, again. 
please help me! give me a solution!

-- 
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/72c73a3a-8227-4205-9e2a-e831e0513388%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.