[beagleboard] Re: [RESEND] Ethernet phy ID u-boot fix

2020-09-04 Thread Bob Ham
*ping* ?


On 10/08/2020 17:29, Bob Ham wrote:
> *ping*?
> 
> To be clear, the critical information I need is: what were you referring
> to as 'old "board" file path'?
> 
> 
> On 18/07/2020 17:07, Bob Ham wrote:
>>
>>
>> On 03/07/2020 17:40, Robert Nelson wrote:
>>> On Fri, Jul 3, 2020 at 3:28 AM Bob Ham  wrote:

 On 02/07/2020 15:25, Robert Nelson wrote:
> On Thu, Jul 2, 2020 at 9:17 AM Bob Ham  wrote:

>> What can I change in order to get this to work?
>
> Step 1, configure your image for extlinux.conf booting..

 Thanks for your instructions, they're useful for one instance.  However,
 what I meant was: what can I change in order to get this to work for
 everyone? :-)  What needs to be patched?  I have no idea what the
 "device-tree path" is you mentioned before so I've no idea where it
 resides and hence what I can fix and send a patch for.
>>>
>>> https://github.com/u-boot/u-boot/blob/master/board/ti/am335x/board.c#L938-L957
>>
>> Thanks for your answer.  However, I'm a bit confused by this.  As I
>> mentioned, I'm using a BeagleBone Green which seems to be accounted for
>> in this function.
>>
>> You previously said:
>>
>>> The fix has been in u-boot for a few years.
>>>
>>> It relies on the device-tree path, we are still shipping the old
>>> "board" file path in u-boot.
>>
>> which implies this 'old "board" file path' is what needs to be updated
>> for the fix to work but I still don't understand what the '"board" file
>> path' is.  Could you possibly say what you meant by that?
>>
>> Thanks again,
>>
>> Bob
>>
> 
> 
> 

-- 
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/ea313ecf-89f0-8e71-0124-e5894bee3f2f%40settrans.net.


signature.asc
Description: OpenPGP digital signature


[beagleboard] Increase the width of serial terminal

2020-09-04 Thread Pavel Yermolenko
Hello,

I use *gtkterm* to connect to external board.
When path on prompt becomes quite long I can't no more type commands: 
cursor return to the origin:

debian@beaglebone:/sys/devices/system/cpu/cpufreq/ondemand$ sudo sh -c 
"echo 90 

In this example cursor is on 'd' character (i.e. on debian).
Where can I setup the "width" of serial terminal ?

Thanks. 

-- 
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/6e02c35b-dc7e-45cb-a0cd-63cae358aa36o%40googlegroups.com.


Re: [beagleboard] Increase the width of serial terminal

2020-09-04 Thread Robert Nelson
On Fri, Sep 4, 2020, 7:21 AM Pavel Yermolenko  wrote:

> Hello,
>
> I use *gtkterm* to connect to external board.
> When path on prompt becomes quite long I can't no more type commands:
> cursor return to the origin:
>
> debian@beaglebone:/sys/devices/system/cpu/cpufreq/ondemand$ sudo sh -c
> "echo 90
>
> In this example cursor is on 'd' character (i.e. on debian).
> Where can I setup the "width" of serial terminal ?
>

Here's a good write up, description of the issue.

https://wiki.archlinux.org/index.php/Working_with_the_serial_console#Resizing_a_terminal


Regards,

-- 
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/CAOCHtYiGOmVfum4xdMHEc8B5Bwh4kafTG%3DADjp0%3DmsH5PYGRNw%40mail.gmail.com.


[beagleboard] Install java on BBB

2020-09-04 Thread Pavel Yermolenko
Hello,

Upon executing this instruction:
curl -LOb "oraclelicense=a" 
https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u261-b13/a4634525489241b9a9e1aa73d9e118e6/jdk-8u261-linux-arm32-vfp-hflt.tar.gz

I get this archive file:
an@beaglebone:~$ ls -l *.gz
-rw-r--r-- 1 debian debian 4567 Sep  4 12:16 
jdk-8u261-linux-arm32-vfp-hflt.tar.gz

The size doesn't correspond to that, announced on this java download page, 
which is about 73Mb. 


Where I went wrong ?

Thanks.

-- 
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/6e078177-9fcd-4247-b343-fc8889c1b7f1o%40googlegroups.com.


Re: [beagleboard] Install java on BBB

2020-09-04 Thread Robert Nelson
On Fri, Sep 4, 2020, 7:30 AM Pavel Yermolenko  wrote:

> Hello,
>
> Upon executing this instruction:
> curl -LOb "oraclelicense=a"
> https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u261-b13/a4634525489241b9a9e1aa73d9e118e6/jdk-8u261-linux-arm32-vfp-hflt.tar.gz
>
> I get this archive file:
> an@beaglebone:~$ ls -l *.gz
> -rw-r--r-- 1 debian debian 4567 Sep  4 12:16
> jdk-8u261-linux-arm32-vfp-hflt.tar.gz
>
> The size doesn't correspond to that, announced on this java download page,
> which is about 73Mb.
> 
>
> Where I went wrong ?
>


You tried to use oracle's server..

Use a mirror...

https://oraclemirror.np.gy/jdk8/

-- 
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/CAOCHtYhA4Ojrws6D4tkUtGhjqNvZTsOETQD52%3DbcvtwKLPHh0Q%40mail.gmail.com.


Re: [beagleboard] Increase the width of serial terminal

2020-09-04 Thread Pavel Yermolenko

stty rows 40 cols 160

Works well !
Thanks.

On Friday, September 4, 2020 at 2:28:48 PM UTC+2, RobertCNelson wrote:
>
>
>
> On Fri, Sep 4, 2020, 7:21 AM Pavel Yermolenko  > wrote:
>
>> Hello,
>>
>> I use *gtkterm* to connect to external board.
>> When path on prompt becomes quite long I can't no more type commands: 
>> cursor return to the origin:
>>
>> debian@beaglebone:/sys/devices/system/cpu/cpufreq/ondemand$ sudo sh -c 
>> "echo 90 
>>
>> In this example cursor is on 'd' character (i.e. on debian).
>> Where can I setup the "width" of serial terminal ?
>>
>
> Here's a good write up, description of the issue.
>
>
> https://wiki.archlinux.org/index.php/Working_with_the_serial_console#Resizing_a_terminal
>
>
> Regards,
>

-- 
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/64f92d40-4e44-419d-b619-21697fe7bf7do%40googlegroups.com.


Re: [beagleboard] Install java on BBB

2020-09-04 Thread Pavel Yermolenko
Works.
Thanks !

On Friday, September 4, 2020 at 2:35:44 PM UTC+2, RobertCNelson wrote:
>
>
>
> On Fri, Sep 4, 2020, 7:30 AM Pavel Yermolenko  > wrote:
>
>> Hello,
>>
>> Upon executing this instruction:
>> curl -LOb "oraclelicense=a" 
>> https://www.oracle.com/webapps/redirect/signon?nexturl=https://download.oracle.com/otn/java/jdk/8u261-b13/a4634525489241b9a9e1aa73d9e118e6/jdk-8u261-linux-arm32-vfp-hflt.tar.gz
>>
>> I get this archive file:
>> an@beaglebone:~$ ls -l *.gz
>> -rw-r--r-- 1 debian debian 4567 Sep  4 12:16 
>> jdk-8u261-linux-arm32-vfp-hflt.tar.gz
>>
>> The size doesn't correspond to that, announced on this java download page, 
>> which is about 73Mb. 
>> 
>>
>> Where I went wrong ?
>>
>
>
> You tried to use oracle's server..
>
> Use a mirror...
>
> https://oraclemirror.np.gy/jdk8/
>

-- 
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/45293674-acf3-490b-a421-a1515aef5eceo%40googlegroups.com.


[beagleboard] Install Java on BBB - another issue

2020-09-04 Thread Pavel Yermolenko
Hello,

According to the book Exploring BeagleBone (Derek Molloy), the instructions 
to install java on BBB are as follows:

debian@beaglebone:~$ sudo update-alternatives --install /usr/bin/java java 
/opt/java-jdk/jdk1.8.0_261/bin/java 1
debian@beaglebone:~$ sudo update-alternatives --install /usr/bin/javac 
javac /opt/java-jdk/jdk1.8.0_261/bin/javac 1

Unless there was a typo, these commands don't work: java has not been 
installed.

Thanks.

P.S. downloaded archive is unarchived in /opt/java-jdk

-- 
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/72bbaad6-220e-415f-a1dd-2c58ef720bdao%40googlegroups.com.


Re: [beagleboard] Beaglebone black wireless and wl18xx ...

2020-09-04 Thread Philippe Frossard

Hi,
With diode D2 the shutdown process works,
And wifi is available on battery ...
A+

Le 02/09/2020 à 09:22, Philippe Frossard a écrit :

Hi,
Yes, I saw ...
D2 is not present on the board, I will do the test with D2 ...
The BBBW doesn't shutdown correctly without wifi, some process block ...
I have also a problem with ADC power,
The ADC power (P9.32) doesn't fall to 0v and I use this signal (With 
BBB) to disconnect my LiPo ...

I try to find another way,
Thanks.

Le 01/09/2020 à 23:18, Alexander Zangerl a écrit :

On Tue, 01 Sep 2020 11:17:47 +0200, Philippe Frossard writes:

The wl1835 doesn't work on LiPo battery when DC 5v is disconnected,
I read about diode D2 on the board ...
I would like to know if this diode is the solution ?

it is, at least according to the bbbw schematic
at 
https://github.com/beagleboard/beaglebone-black-wireless/blob/master/BeagleBone_Black_Wireless_SCH.pdf

(top left corner of the 'wifi module' section).

for unknown reasons the bbbw designers have marked it 'dnp' (do not 
populate)

on the schematic.

regards
az






--
-
Philippe Frossard

--
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/60f7a295-b57e-45a0-76eb-9135d1fa1894%40free.fr.


[beagleboard] Enable "one-shot" for can0/can1

2020-09-04 Thread seanhsu
Hi,

I try to enable one-shot for can0 on my BeableBone 
Black(image:bone-debian-10.3-iot-armhf-2020-04-06-4gb.img.xz):

sean@BBB:~$ sudo ip link set can1 type can one-shot on
RTNETLINK answers: Operation not supported

I need send the CAN message just once, whether the device exist on the bus. 
Had any way to get supported "one-shot" in can0/can1?

-- 
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/70198d86-6a5c-45d1-8b1c-2128d4cad393o%40googlegroups.com.


Re: [beagleboard] Install Java on BBB - another issue

2020-09-04 Thread Robert Nelson
On Fri, Sep 4, 2020 at 7:59 AM Pavel Yermolenko  wrote:
>
> Hello,
>
> According to the book Exploring BeagleBone (Derek Molloy), the instructions 
> to install java on BBB are as follows:

Revision 1 or Revision 2 of the book?

>
> debian@beaglebone:~$ sudo update-alternatives --install /usr/bin/java java 
> /opt/java-jdk/jdk1.8.0_261/bin/java 1
> debian@beaglebone:~$ sudo update-alternatives --install /usr/bin/javac javac 
> /opt/java-jdk/jdk1.8.0_261/bin/javac 1
>
> Unless there was a typo, these commands don't work: java has not been 
> installed.
>
> Thanks.
>
> P.S. downloaded archive is unarchived in /opt/java-jdk

sudo apt install java-common ?

Ignoring "java 8", as that pre-dates Oracle merging their arm-32
branch directly into open-jdk.. So after java-8, openjdk is Oracle's
java..

So unless you absolutely need Java 8, just look at openjdk..

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/CAOCHtYjRdAVUBxiitehH8pdHZy_zTQ%2BhS4em-wXkMPtfDj8v_Q%40mail.gmail.com.


Re: [beagleboard] Install Java on BBB - another issue

2020-09-04 Thread Pavel Yermolenko
*Revision 1 or Revision 2 of the book? *
2nd

*sudo apt install java-common*
Works ! Thanks.
BTW it installs "openjdk" ?

On Friday, September 4, 2020 at 3:42:26 PM UTC+2, RobertCNelson wrote:
>
> On Fri, Sep 4, 2020 at 7:59 AM Pavel Yermolenko  > wrote: 
> > 
> > Hello, 
> > 
> > According to the book Exploring BeagleBone (Derek Molloy), the 
> instructions to install java on BBB are as follows: 
>
> Revision 1 or Revision 2 of the book? 
>
> > 
> > debian@beaglebone:~$ sudo update-alternatives --install /usr/bin/java 
> java /opt/java-jdk/jdk1.8.0_261/bin/java 1 
> > debian@beaglebone:~$ sudo update-alternatives --install /usr/bin/javac 
> javac /opt/java-jdk/jdk1.8.0_261/bin/javac 1 
> > 
> > Unless there was a typo, these commands don't work: java has not been 
> installed. 
> > 
> > Thanks. 
> > 
> > P.S. downloaded archive is unarchived in /opt/java-jdk 
>
> sudo apt install java-common ? 
>
> Ignoring "java 8", as that pre-dates Oracle merging their arm-32 
> branch directly into open-jdk.. So after java-8, openjdk is Oracle's 
> java.. 
>
> So unless you absolutely need Java 8, just look at openjdk.. 
>
> 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/fc78f793-160b-481c-9918-a19937b06530o%40googlegroups.com.


Re: [beagleboard] Install Java on BBB - another issue

2020-09-04 Thread Robert Nelson
On Fri, Sep 4, 2020 at 8:51 AM Pavel Yermolenko  wrote:
>
> Revision 1 or Revision 2 of the book?
> 2nd

and as i asked that, i remembered, that book is sitting at work an hour away..

>
> sudo apt install java-common
> Works ! Thanks.
> BTW it installs "openjdk" ?

OpenJDK (Open Java Development Kit)

Oracle submitted their Java 9 port for arm to OpenJDK:

https://openjdk.java.net/jeps/297

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/CAOCHtYhvBaA-fXV2wEDvx8SUUzHK4FF7Wh4JkQyk5Syvt9Ubvw%40mail.gmail.com.


Re: [beagleboard] Install Java on BBB - another issue

2020-09-04 Thread Pavel Yermolenko
*OpenJDK (Open Java Development Kit) *
With *java-common *I can run java files, so probably I'll not need 
*OpenJDK *


*... that book is sitting at work an hour away.. *
Sorry, here I didn't understand what you mean.

On Friday, September 4, 2020 at 3:58:31 PM UTC+2, RobertCNelson wrote:
>
> On Fri, Sep 4, 2020 at 8:51 AM Pavel Yermolenko  > wrote: 
> > 
> > Revision 1 or Revision 2 of the book? 
> > 2nd 
>
> and as i asked that, i remembered, that book is sitting at work an hour 
> away.. 
>
> > 
> > sudo apt install java-common 
> > Works ! Thanks. 
> > BTW it installs "openjdk" ? 
>
> OpenJDK (Open Java Development Kit) 
>
> Oracle submitted their Java 9 port for arm to OpenJDK: 
>
> https://openjdk.java.net/jeps/297 
>
> 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/d0ab23df-be6a-45ce-a59f-4e1e577524bdo%40googlegroups.com.


Re: [beagleboard] Install Java on BBB - another issue

2020-09-04 Thread Robert Nelson
On Fri, Sep 4, 2020 at 9:09 AM Pavel Yermolenko  wrote:
>
> OpenJDK (Open Java Development Kit)
> With java-common I can run java files, so probably I'll not need OpenJDK

OpenJDK provides /usr/bin/java

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/CAOCHtYjkrSbrtUKcunM-jY7zx4T%2BBcXjCHGS4_bhD25Mg-6%2BLQ%40mail.gmail.com.


Re: [beagleboard] Install Java on BBB - another issue

2020-09-04 Thread Pavel Yermolenko
Well ... after executing instructions from "Exploring BeagleBone" and then 
*installing 
java-common*, java seems well installed:
debian@beaglebone:~$ ls /usr/bin/java* -l
lrwxrwxrwx 1 root root 22 Sep  4 12:46 /usr/bin/java -> 
/etc/alternatives/java
lrwxrwxrwx 1 root root 23 Sep  4 12:48 /usr/bin/javac -> 
/etc/alternatives/javac
debian@beaglebone:~$ java -version
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b13)
Java HotSpot(TM) Client VM (build 25.261-b13, mixed mode)
debian@beaglebone:~$ 

On Friday, September 4, 2020 at 4:18:32 PM UTC+2, RobertCNelson wrote:
>
> On Fri, Sep 4, 2020 at 9:09 AM Pavel Yermolenko  > wrote: 
> > 
> > OpenJDK (Open Java Development Kit) 
> > With java-common I can run java files, so probably I'll not need OpenJDK 
>
> OpenJDK provides /usr/bin/java 
>
> 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/ad0d9068-44ce-48f0-9cf1-93bd879b4452o%40googlegroups.com.


Re: [beagleboard] Install Java on BBB - another issue

2020-09-04 Thread Robert Nelson
On Fri, Sep 4, 2020 at 9:28 AM Pavel Yermolenko  wrote:
>
> Well ... after executing instructions from "Exploring BeagleBone" and then 
> installing java-common, java seems well installed:
> debian@beaglebone:~$ ls /usr/bin/java* -l
> lrwxrwxrwx 1 root root 22 Sep  4 12:46 /usr/bin/java -> /etc/alternatives/java
> lrwxrwxrwx 1 root root 23 Sep  4 12:48 /usr/bin/javac -> 
> /etc/alternatives/javac
> debian@beaglebone:~$ java -version
> java version "1.8.0_261"
> Java(TM) SE Runtime Environment (build 1.8.0_261-b13)
> Java HotSpot(TM) Client VM (build 25.261-b13, mixed mode)
> debian@beaglebone:~$

I "think" update-alternatives just needs /usr/bin/java to exist, which
was solved by java-common..

Then it just updated the symlink when you ran it..

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/CAOCHtYjeyahq0-nFqzRGkWX%2B-AnFKRvVX4RnEt%3DXhiw7Ki%3DOzw%40mail.gmail.com.


[beagleboard] Syntax highlight in nano

2020-09-04 Thread Pavel Yermolenko
Hello,

How to add syntax highlighting in nano ?
I created file *.nanorc* and added there

include /usr/share/nano/java.nanorc

But it didn't work.
Thanks.

-- 
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/0ac54436-06df-48b9-b456-aad8a483b33ao%40googlegroups.com.


Re: [beagleboard] Install Java on BBB - another issue

2020-09-04 Thread Pavel Yermolenko
Probably.
Thanks.

On Friday, September 4, 2020 at 4:32:41 PM UTC+2, RobertCNelson wrote:
>
> On Fri, Sep 4, 2020 at 9:28 AM Pavel Yermolenko  > wrote: 
> > 
> > Well ... after executing instructions from "Exploring BeagleBone" and 
> then installing java-common, java seems well installed: 
> > debian@beaglebone:~$ ls /usr/bin/java* -l 
> > lrwxrwxrwx 1 root root 22 Sep  4 12:46 /usr/bin/java -> 
> /etc/alternatives/java 
> > lrwxrwxrwx 1 root root 23 Sep  4 12:48 /usr/bin/javac -> 
> /etc/alternatives/javac 
> > debian@beaglebone:~$ java -version 
> > java version "1.8.0_261" 
> > Java(TM) SE Runtime Environment (build 1.8.0_261-b13) 
> > Java HotSpot(TM) Client VM (build 25.261-b13, mixed mode) 
> > debian@beaglebone:~$ 
>
> I "think" update-alternatives just needs /usr/bin/java to exist, which 
> was solved by java-common.. 
>
> Then it just updated the symlink when you ran it.. 
>
> 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/2de2b939-ed5e-46a0-88bb-e074dae779c9o%40googlegroups.com.


Re: [beagleboard] How to automatically set system time of BBB by external DS3231

2020-09-04 Thread Steve Lentz
Tarmo:

I’ve been following this with some interest and finally got around to trying it 
on my BBB running the 2020-04-06 release.  

I have an external DS3231 connected to I2C2. I’ve got it working and mounted as 
RTC1, but the magic of swapping the DS3231 for the AM335x-s is not happening 
for me.

I have confirmed the DS3231 is RTC1 by the simple method of asking for the time 
with the I2C jumpers disconnected, which results in an error.  Reconnecting the 
jumpers restores operation of RTC1.  RTC0 works whether the jumpers are 
connected or not.  

I added the dtb_overlay command to /boot/uEnv.txt and restarted.  I don’t have 
an rc.local file, so I ran echo ds3231 0x68 > 
/sys/class/i2c-adapter/i2c-2/new_device from the command line after rebooting.  

What is needed so that the device tree swaps the two clocks, making the 
external DS3231 RTC0, as indicated in the thread below?  Is this something in 
the alpha image?

Thx,
-Steve


> On Sep 1, 2020, at 4:16 AM, Tarmo Kuuse  wrote:
> 
> Hi Niresh,
> 
> On 01.09.20 07:43, Niresh wrote:
>> I've tested BB-I2C2-RTC-DS3231.dtbo in the new image 4.19.94-ti-r42, they 
>> mount rtc1 in /dev but system time is not updated with rtc1.  Attached dmesg 
>> with and without DS3231 overlay in uEnv.txt .
>> Following message with DS3231 overlay enabled.
>> root@beaglebone:/dev# hwclock -r -f /dev/rtc1
>> 2000-01-01 00:49:21.771707+00:00
> 
> That's OK. The device tree swaps rtc0 and rtc1. Now your DS3231 is /dev/rtc0 
> - which is what you need.
> 
> The AM335x-s RTC is /dev/rtc1 - it goes back to year 2000 on every boot. You 
> don't need it.
> 
>> root@beaglebone:/dev# timedatectl
>> Local time: Tue 2020-09-01 04:34:29 UTC
>> Universal time: Tue 2020-09-01 04:34:29 UTC
>> RTC time: Tue 2020-09-01 04:34:29
>> Time zone: Etc/UTC (UTC, +)
>> System clock synchronized: no
>> NTP service: active
>> RTC in local TZ: no
> 
> Seems to be correct. "RTC time" is your DS3231.
> 
>> debian@beaglebone:/dev$ dmesg | grep rtc
>> [1.280996] rtc-ds1307 2-0068: registered as rtc0
>> [1.283636] omap_rtc 44e3e000.rtc: already running
>> [1.284312] omap_rtc 44e3e000.rtc: registered as rtc1
>> [1.574739] [drm] Cannot find any crtc or sizes
>> [1.604280] rtc-ds1307 2-0068: setting system clock to 2020-09-01 
>> 04:30:36 UTC (1598934636)
> 
> That's your DS3231 being assigned /dev/rtc0 by the kernel and the system time 
> correctly set from it. Looks good.
> 
> The last step is to enable NTP synchronization:
> 
> $ sudo timedatectl set-ntp true
> 
> Then you're done. When network comes online, systemd-timesyncd will 
> synchronize both your DS3231 and the system time from NTP. Feel free to 
> fine-tune ("man timedatectl" and man "timesyncd.conf").
> 
> --
> Kind regards,
> Tarmo
> 
> -- 
> 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/a8f8f997-41a5-8032-4c21-e8cc425b49ae%40gmail.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/53F92013-C18B-417D-B4D2-857583B1E9C6%40gmail.com.


Re: [beagleboard] How to automatically set system time of BBB by external DS3231

2020-09-04 Thread Robert Nelson
On Fri, Sep 4, 2020 at 9:59 AM Steve Lentz  wrote:
>
> Tarmo:
>
> I’ve been following this with some interest and finally got around to trying 
> it on my BBB running the 2020-04-06 release.
>
> I have an external DS3231 connected to I2C2. I’ve got it working and mounted 
> as RTC1, but the magic of swapping the DS3231 for the AM335x-s is not 
> happening for me.
>
> I have confirmed the DS3231 is RTC1 by the simple method of asking for the 
> time with the I2C jumpers disconnected, which results in an error.  
> Reconnecting the jumpers restores operation of RTC1.  RTC0 works whether the 
> jumpers are connected or not.
>
> I added the dtb_overlay command to /boot/uEnv.txt and restarted.  I don’t 
> have an rc.local file, so I ran echo ds3231 0x68 > 
> /sys/class/i2c-adapter/i2c-2/new_device from the command line after rebooting.
>
> What is needed so that the device tree swaps the two clocks, making the 
> external DS3231 RTC0, as indicated in the thread below?  Is this something in 
> the alpha image?

Let's check some things, please provide a dump of:

sudo /opt/scripts/tools/version.sh

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/CAOCHtYhBQX9yu6KUOSdw0tnkC0-%2Bu59RO86pvFex6Q1081UTjA%40mail.gmail.com.


Re: [beagleboard] How to automatically set system time of BBB by external DS3231

2020-09-04 Thread Steve Lentz
Robert:

Here you go; thanks for looking into this.

-Steve


debian@beaglebone:/dev$ sudo /opt/scripts/tools/version.sh
[sudo] password for debian:
git:/opt/scripts/:[7cdc270818b76d829d247cf05fe309c320a3929a]
eeprom:[A335BNLTEIA04218BBBK03D9]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-04-06]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 
2019.04-2-g07d5700e21]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]
UBOOT: Loaded Overlay:[BB-ADC-00A0]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0]
UBOOT: Loaded Overlay:[BBORG_PROTO-00A2]
kernel:[4.19.94-ti-r47]
nodejs:[v10.21.0]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
uboot_overlay_options:[dtb_overlay = /lib/firmware/BB-I2C2-RTC-DS3231.dtbo]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade ]
pkg:[bb-cape-overlays]:[4.14.20200814.0-0~buster+20200814]
pkg:[bb-wl18xx-firmware]:[1.20200813.1-0~buster+20200813]
pkg:[kmod]:[26-1]
pkg:[librobotcontrol]:[1.0.5-git20200715.0-0~buster+20200716]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev 
users systemd-journal bluetooth netdev i2c gpio pwm eqep remoteproc admin spi 
iio docker tisdk weston-launch xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 
root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait 
uboot_detected_capes=BBORG_PROTO, coherent_pool=1M net.ifnames=0 lpj=1990656 
rng_core.default_quality=100 quiet]
dmesg | grep remote
[   58.172688] remoteproc remoteproc0: wkup_m3 is available
[   58.383916] remoteproc remoteproc0: powering up wkup_m3
[   58.383945] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, 
size 217168
[   58.384202] remoteproc remoteproc0: remote processor wkup_m3 is now up
[   62.993005] remoteproc remoteproc1: 4a334000.pru is available
[   63.024061] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pru
[   62.993005] remoteproc remoteproc1: 4a334000.pru is available
[   62.993220] pru-rproc 4a334000.pru: PRU rproc node pru@4a334000 probed 
successfully
[   63.024061] remoteproc remoteproc2: 4a338000.pru is available
[   63.024270] pru-rproc 4a338000.pru: PRU rproc node pru@4a338000 probed 
successfully
dmesg | grep pinctrl-single
[0.952687] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[0.966071] gpio-of-helper ocp:cape-universal: ready
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

> On Sep 4, 2020, at 11:22 AM, Robert Nelson  wrote:
> 
> On Fri, Sep 4, 2020 at 9:59 AM Steve Lentz  wrote:
>> 
>> Tarmo:
>> 
>> I’ve been following this with some interest and finally got around to trying 
>> it on my BBB running the 2020-04-06 release.
>> 
>> I have an external DS3231 connected to I2C2. I’ve got it working and mounted 
>> as RTC1, but the magic of swapping the DS3231 for the AM335x-s is not 
>> happening for me.
>> 
>> I have confirmed the DS3231 is RTC1 by the simple method of asking for the 
>> time with the I2C jumpers disconnected, which results in an error.  
>> Reconnecting the jumpers restores operation of RTC1.  RTC0 works whether the 
>> jumpers are connected or not.
>> 
>> I added the dtb_overlay command to /boot/uEnv.txt and restarted.  I don’t 
>> have an rc.local file, so I ran echo ds3231 0x68 > 
>> /sys/class/i2c-adapter/i2c-2/new_device from the command line after 
>> rebooting.
>> 
>> What is needed so that the device tree swaps the two clocks, making the 
>> external DS3231 RTC0, as indicated in the thread below?  Is this something 
>> in the alpha image?
> 
> Let's check some things, please provide a dump of:
> 
> sudo /opt/scripts/tools/version.sh
> 
> 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/DB5C489D-88D6-4F1E-971E-23447AFFE0C4%40gmail.com.


Re: [beagleboard] How to automatically set system time of BBB by external DS3231

2020-09-04 Thread Robert Nelson
On Fri, Sep 4, 2020 at 10:28 AM Steve Lentz  wrote:
>
> Robert:
>
> Here you go; thanks for looking into this.
>
> -Steve
>
>
> debian@beaglebone:/dev$ sudo /opt/scripts/tools/version.sh
> [sudo] password for debian:
> git:/opt/scripts/:[7cdc270818b76d829d247cf05fe309c320a3929a]
> eeprom:[A335BNLTEIA04218BBBK03D9]
> model:[TI_AM335x_BeagleBone_Black]
> dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-04-06]
> bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 
> 2019.04-2-g07d5700e21]:[location: dd MBR]
> UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
> UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]
> UBOOT: Loaded Overlay:[BB-ADC-00A0]
> UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]
> UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0]
> UBOOT: Loaded Overlay:[BBORG_PROTO-00A2]
> kernel:[4.19.94-ti-r47]
> nodejs:[v10.21.0]
> /boot/uEnv.txt Settings:
> uboot_overlay_options:[enable_uboot_overlays=1]
> uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
> uboot_overlay_options:[enable_uboot_cape_universal=1]
> uboot_overlay_options:[dtb_overlay = /lib/firmware/BB-I2C2-RTC-DS3231.dtbo]

This is the second time i've seen this.. is there a wiki somewhere
showing the spaces??? We need to NUKE that asap..

dtb_overlay=/lib/firmware/BB-I2C2-RTC-DS3231.dtbo

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/CAOCHtYi7wO08-1DT2yesuPQBsJwMTxD3V1K_9WiKOgpF1Tc_xg%40mail.gmail.com.


Re: [beagleboard] How to automatically set system time of BBB by external DS3231

2020-09-04 Thread Steve Lentz
Good now.  It’s what comes from retyping commands from mailing lists while 
being spoiled by a lifetime of parsers that ignore whitespace.  I do not know 
the original source.  

Thanks,
-Steve


> On Sep 4, 2020, at 11:38 AM, Robert Nelson  wrote:
> 
> On Fri, Sep 4, 2020 at 10:28 AM Steve Lentz  wrote:
>> 
>> Robert:
>> 
>> Here you go; thanks for looking into this.
>> 
>> -Steve
>> 
>> 
>> debian@beaglebone:/dev$ sudo /opt/scripts/tools/version.sh
>> [sudo] password for debian:
>> git:/opt/scripts/:[7cdc270818b76d829d247cf05fe309c320a3929a]
>> eeprom:[A335BNLTEIA04218BBBK03D9]
>> model:[TI_AM335x_BeagleBone_Black]
>> dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-04-06]
>> bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 
>> 2019.04-2-g07d5700e21]:[location: dd MBR]
>> UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
>> UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]
>> UBOOT: Loaded Overlay:[BB-ADC-00A0]
>> UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]
>> UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0]
>> UBOOT: Loaded Overlay:[BBORG_PROTO-00A2]
>> kernel:[4.19.94-ti-r47]
>> nodejs:[v10.21.0]
>> /boot/uEnv.txt Settings:
>> uboot_overlay_options:[enable_uboot_overlays=1]
>> uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
>> uboot_overlay_options:[enable_uboot_cape_universal=1]
>> uboot_overlay_options:[dtb_overlay = /lib/firmware/BB-I2C2-RTC-DS3231.dtbo]
> 
> This is the second time i've seen this.. is there a wiki somewhere
> showing the spaces??? We need to NUKE that asap..
> 
> dtb_overlay=/lib/firmware/BB-I2C2-RTC-DS3231.dtbo
> 
> 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/A02B3375-B3D4-47AE-944D-5D6C13D223FD%40gmail.com.


Re: [beagleboard] How to automatically set system time of BBB by external DS3231

2020-09-04 Thread Steve Lentz
Robert:

Is there a way to make the external DS3231 the wakeup device?  Just like in 
this RaspPi thread, I want to set the alarm and use the INT pin on the clock 
chip to activate something.  

https://www.reddit.com/r/raspberry_pi/comments/bn2ht5/ds3231_rtc_using_the_alarm_function/
 


The RaspPi dtoverlay command seems to use a different format and I’m at a loss 
how to translate this.

I’ve already made the INT pin work using Adafruit's python libraries for the 
DS3231, but I’d like to use the linux tools if possible - then I can also use 
the clock to set the system time.  Of course if the device tree is using the 
clock, the python libraries can’t get to it.  

Thanks again,



> On Sep 4, 2020, at 11:38 AM, Robert Nelson  wrote:
> 
> On Fri, Sep 4, 2020 at 10:28 AM Steve Lentz  wrote:
>> 
>> Robert:
>> 
>> Here you go; thanks for looking into this.
>> 
>> -Steve
>> 
>> 
>> debian@beaglebone:/dev$ sudo /opt/scripts/tools/version.sh
>> [sudo] password for debian:
>> git:/opt/scripts/:[7cdc270818b76d829d247cf05fe309c320a3929a]
>> eeprom:[A335BNLTEIA04218BBBK03D9]
>> model:[TI_AM335x_BeagleBone_Black]
>> dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-04-06]
>> bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 
>> 2019.04-2-g07d5700e21]:[location: dd MBR]
>> UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
>> UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]
>> UBOOT: Loaded Overlay:[BB-ADC-00A0]
>> UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]
>> UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0]
>> UBOOT: Loaded Overlay:[BBORG_PROTO-00A2]
>> kernel:[4.19.94-ti-r47]
>> nodejs:[v10.21.0]
>> /boot/uEnv.txt Settings:
>> uboot_overlay_options:[enable_uboot_overlays=1]
>> uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
>> uboot_overlay_options:[enable_uboot_cape_universal=1]
>> uboot_overlay_options:[dtb_overlay = /lib/firmware/BB-I2C2-RTC-DS3231.dtbo]
> 
> This is the second time i've seen this.. is there a wiki somewhere
> showing the spaces??? We need to NUKE that asap..
> 
> dtb_overlay=/lib/firmware/BB-I2C2-RTC-DS3231.dtbo
> 
> 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/EDB15E56-5C7D-482F-AF1A-414FC7C443EA%40gmail.com.


[beagleboard] Re: Welcome the Fall 2020 Embedded Linux Class

2020-09-04 Thread Heda Wang
Hello Dr. Yoder

On Thursday, September 3, 2020 at 1:40:08 PM UTC-4 dyla...@gmail.com wrote:

> Excited for class this year!
>
> - Dylan
>
> On Tuesday, September 1, 2020 at 4:05:29 PM UTC-4 Mark A. Yoder wrote:
>
>> The purpose of this posting is to announce that I'm once again teaching 
>> an Embedded Linux class based on the BeagleBone[1]. This time I'm using
>> the  *BeagleBone Black.* 
>> I'm teaching as open-source as I can and have have posted many of course 
>> materials on eLinux.org [2] and github[3].
>>
>> I'm always open to ideas on what topics to include in the class and 
>> suggestions for interesting course projects.  For example we are starting
>> Python this week and hope to be writing simple kernel module 5 weeks from 
>> now.  That will be followed by a week of PRU programming.
>>
>> Class, please respond to this posting.  Others, please welcome my class.
>>
>> --Mark 
>>
>> --Prof. Mark A. Yoder 
>>   Rose-Hulman Institute of Technology [4] 
>>
>> [1] http://elinux.org/Embedded_Linux,_Rose-Hulman 
>> [2] http://elinux.org/index.php?title=Category:ECE497 
>> [3] https://github.com/MarkAYoder/BeagleBoard-exercises 
>> [4] http://www.rose-hulman.edu 
>>
>

-- 
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/549ff253-34e8-4406-851d-ca03b9767a68n%40googlegroups.com.


Re: [beagleboard] How to automatically set system time of BBB by external DS3231

2020-09-04 Thread robert.sty...@gmail.com
I do not know the AM3358 of the BBB, but from the schematic
P9.42 GPIO0_7 is XDMA_EVENT_INTR2

On Friday, 4 September 2020 at 20:38:05 UTC+1 stl...@gmail.com wrote:

> Robert:
>
> Is there a way to make the external DS3231 the wakeup device?  Just like 
> in this RaspPi thread, I want to set the alarm and use the INT pin on the 
> clock chip to activate something.  
>
>
> https://www.reddit.com/r/raspberry_pi/comments/bn2ht5/ds3231_rtc_using_the_alarm_function/
>
> The RaspPi dtoverlay command seems to use a different format and I’m at a 
> loss how to translate this.
>
> I’ve already made the INT pin work using Adafruit's python libraries for 
> the DS3231, but I’d like to use the linux tools if possible - then I can 
> also use the clock to set the system time.  Of course if the device tree is 
> using the clock, the python libraries can’t get to it.  
>
> Thanks again,
>
>
>
> On Sep 4, 2020, at 11:38 AM, Robert Nelson  wrote:
>
> On Fri, Sep 4, 2020 at 10:28 AM Steve Lentz  wrote:
>
>
> Robert:
>
> Here you go; thanks for looking into this.
>
> -Steve
>
>
> debian@beaglebone:/dev$ sudo /opt/scripts/tools/version.sh
> [sudo] password for debian:
> git:/opt/scripts/:[7cdc270818b76d829d247cf05fe309c320a3929a]
> eeprom:[A335BNLTEIA04218BBBK03D9]
> model:[TI_AM335x_BeagleBone_Black]
> dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-04-06]
> bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 
> 2019.04-2-g07d5700e21]:[location: dd MBR]
> UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
> UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]
> UBOOT: Loaded Overlay:[BB-ADC-00A0]
> UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]
> UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0]
> UBOOT: Loaded Overlay:[BBORG_PROTO-00A2]
> kernel:[4.19.94-ti-r47]
> nodejs:[v10.21.0]
> /boot/uEnv.txt Settings:
> uboot_overlay_options:[enable_uboot_overlays=1]
>
> uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
> uboot_overlay_options:[enable_uboot_cape_universal=1]
> uboot_overlay_options:[dtb_overlay = /lib/firmware/BB-I2C2-RTC-DS3231.dtbo]
>
>
> This is the second time i've seen this.. is there a wiki somewhere
> showing the spaces??? We need to NUKE that asap..
>
> dtb_overlay=/lib/firmware/BB-I2C2-RTC-DS3231.dtbo
>
> 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/635cfc0d-4e13-4c21-a42c-2a4b1f4a9a24n%40googlegroups.com.


Re: [beagleboard] How to automatically set system time of BBB by external DS3231

2020-09-04 Thread Robert Nelson
On Fri, Sep 4, 2020 at 3:13 PM robert.sty...@gmail.com
 wrote:
>
> I do not know the AM3358 of the BBB, but from the schematic
> P9.42 GPIO0_7 is XDMA_EVENT_INTR2

Really any GPIO_0 can be used for "wake-up" from "suspend"..

https://e2e.ti.com/support/processors/f/791/t/243392?How-to-wake-up-the-BeagleBone

https://processors.wiki.ti.com/index.php/AM335x_Power_Management_Standby_User%27s_Guide#GPIO_wakeup

It's not trivial..

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/CAOCHtYjBba%2Byja4ZMqXU4u68YLvxFvveycJM5CM%2BQSmkZJmsxA%40mail.gmail.com.


Re: [beagleboard] How to automatically set system time of BBB by external DS3231

2020-09-04 Thread Steve Lentz
That’s not quite what I am asking.  I want to set the alarm in the DS3231, shut 
down the BBB, completely, then have the Alarm / INT pin on the DS3231 initiate 
a series of events that eventually powers on the BBB.  Doing this, I can 
achieve a true zero power sleep state.  Nothing will draw power except the coin 
cell on the DS3231.  

I can set the alarm in the DS3231 using python libraries, is it possible to set 
that alarm using the device drivers?  I have a bunch of relay and delay 
circuits that area all working, this is the last link in the chain.  I will use 
the python if necessary but would prefer to use the kernel drivers.  

I need the BBB to power up for a couple hours every two weeks and last for a 
year on a stack of D cells; the normal sleep state draws too much power, I want 
to shut it off.  

The reddit page I linked describes the exact same problem and solution for 
RaspPi.  Is there a similar solution for BBB?

Thx,
Steve


https://www.reddit.com/r/raspberry_pi/comments/bn2ht5/ds3231_rtc_using_the_alarm_function/
 



> On Sep 4, 2020, at 5:40 PM, Robert Nelson  wrote:
> 
> On Fri, Sep 4, 2020 at 3:13 PM robert.sty...@gmail.com
>  wrote:
>> 
>> I do not know the AM3358 of the BBB, but from the schematic
>> P9.42 GPIO0_7 is XDMA_EVENT_INTR2
> 
> Really any GPIO_0 can be used for "wake-up" from "suspend"..
> 
> https://e2e.ti.com/support/processors/f/791/t/243392?How-to-wake-up-the-BeagleBone
> 
> https://processors.wiki.ti.com/index.php/AM335x_Power_Management_Standby_User%27s_Guide#GPIO_wakeup
> 
> It's not trivial..
> 
> 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/CAOCHtYjBba%2Byja4ZMqXU4u68YLvxFvveycJM5CM%2BQSmkZJmsxA%40mail.gmail.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/F24ABF59-2BDF-4106-AD35-23E5C2077BDE%40gmail.com.


Re: [beagleboard] How to automatically set system time of BBB by external DS3231

2020-09-04 Thread robert.sty...@gmail.com
The PWR_BUT P9.9 pulled down to DGND by the DS3231 INT/SQW pin might be the 
same as pressing the POWER BUTTON

On Friday, 4 September 2020 at 22:51:05 UTC+1 stl...@gmail.com wrote:

> That’s not quite what I am asking.  I want to set the alarm in the DS3231, 
> shut down the BBB, completely, then have the Alarm / INT pin on the DS3231 
> initiate a series of events that eventually powers on the BBB.  Doing this, 
> I can achieve a true zero power sleep state.  Nothing will draw power 
> except the coin cell on the DS3231.  
>
> I can set the alarm in the DS3231 using python libraries, is it possible 
> to set that alarm using the device drivers?  I have a bunch of relay and 
> delay circuits that area all working, this is the last link in the chain. 
>  I will use the python if necessary but would prefer to use the kernel 
> drivers.  
>
> I need the BBB to power up for a couple hours every two weeks and last for 
> a year on a stack of D cells; the normal sleep state draws too much power, 
> I want to shut it off.  
>
> The reddit page I linked describes the exact same problem and solution for 
> RaspPi.  Is there a similar solution for BBB?
>
> Thx,
> Steve
>
>
>
> https://www.reddit.com/r/raspberry_pi/comments/bn2ht5/ds3231_rtc_using_the_alarm_function/
>
>
> On Sep 4, 2020, at 5:40 PM, Robert Nelson  wrote:
>
> On Fri, Sep 4, 2020 at 3:13 PM robert.sty...@gmail.com
>  wrote:
>
>
> I do not know the AM3358 of the BBB, but from the schematic
> P9.42 GPIO0_7 is XDMA_EVENT_INTR2
>
>
> Really any GPIO_0 can be used for "wake-up" from "suspend"..
>
>
> https://e2e.ti.com/support/processors/f/791/t/243392?How-to-wake-up-the-BeagleBone
>
>
> https://processors.wiki.ti.com/index.php/AM335x_Power_Management_Standby_User%27s_Guide#GPIO_wakeup
>
> It's not trivial..
>
> 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...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beagleboard/CAOCHtYjBba%2Byja4ZMqXU4u68YLvxFvveycJM5CM%2BQSmkZJmsxA%40mail.gmail.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/93e424b3-0878-49e3-b19e-30adcb83b9d3n%40googlegroups.com.


Re: [beagleboard] How to automatically set system time of BBB by external DS3231

2020-09-04 Thread robert.sty...@gmail.com
The power chip TPS65217 needs PWR_BUT P9.9  pulled low (<0.4V) for more 
than 50ms, but less than 8sec.
It appears the DS3231 can hold its INT/SQW pin low for 1 second 

On Friday, 4 September 2020 at 23:14:19 UTC+1 robert.sty...@gmail.com wrote:

> The PWR_BUT P9.9 pulled down to DGND by the DS3231 INT/SQW pin might be 
> the same as pressing the POWER BUTTON
>
> On Friday, 4 September 2020 at 22:51:05 UTC+1 stl...@gmail.com wrote:
>
>> That’s not quite what I am asking.  I want to set the alarm in the 
>> DS3231, shut down the BBB, completely, then have the Alarm / INT pin on the 
>> DS3231 initiate a series of events that eventually powers on the BBB. 
>>  Doing this, I can achieve a true zero power sleep state.  Nothing will 
>> draw power except the coin cell on the DS3231.  
>>
>> I can set the alarm in the DS3231 using python libraries, is it possible 
>> to set that alarm using the device drivers?  I have a bunch of relay and 
>> delay circuits that area all working, this is the last link in the chain. 
>>  I will use the python if necessary but would prefer to use the kernel 
>> drivers.  
>>
>> I need the BBB to power up for a couple hours every two weeks and last 
>> for a year on a stack of D cells; the normal sleep state draws too much 
>> power, I want to shut it off.  
>>
>> The reddit page I linked describes the exact same problem and solution 
>> for RaspPi.  Is there a similar solution for BBB?
>>
>> Thx,
>> Steve
>>
>>
>>
>> https://www.reddit.com/r/raspberry_pi/comments/bn2ht5/ds3231_rtc_using_the_alarm_function/
>>
>>
>> On Sep 4, 2020, at 5:40 PM, Robert Nelson  wrote:
>>
>> On Fri, Sep 4, 2020 at 3:13 PM robert.sty...@gmail.com
>>  wrote:
>>
>>
>> I do not know the AM3358 of the BBB, but from the schematic
>> P9.42 GPIO0_7 is XDMA_EVENT_INTR2
>>
>>
>> Really any GPIO_0 can be used for "wake-up" from "suspend"..
>>
>>
>> https://e2e.ti.com/support/processors/f/791/t/243392?How-to-wake-up-the-BeagleBone
>>
>>
>> https://processors.wiki.ti.com/index.php/AM335x_Power_Management_Standby_User%27s_Guide#GPIO_wakeup
>>
>> It's not trivial..
>>
>> 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...@googlegroups.com.
>>
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beagleboard/CAOCHtYjBba%2Byja4ZMqXU4u68YLvxFvveycJM5CM%2BQSmkZJmsxA%40mail.gmail.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/4168928c-c516-466c-838f-9ff1a12804c1n%40googlegroups.com.


[beagleboard] Opencv4

2020-09-04 Thread Bill Barnett
Is there an opencv version 4.x package for the beaglebone black?  I do not
have enough room on my BBBlack to build opencv4 from source.

-- 

*Bill Barnett*

-- 
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/CAP4vyadEc8iPtwC_QWXXBvw%2BDbO5rTffUHvexZ5YLJq%2Bbczp2Q%40mail.gmail.com.


[beagleboard] Re: Opencv4

2020-09-04 Thread Dennis Lee Bieber
On Fri, 4 Sep 2020 18:20:02 -0500, in gmane.comp.hardware.beagleboard.user
Bill Barnett  wrote:

>Is there an opencv version 4.x package for the beaglebone black?  I do not
>have enough room on my BBBlack to build opencv4 from source.
>

By "enough room" do you mean RAM, or do you mean eMMC (file system)?

If the latter, then using a large uSD card is probably part of the
solution. If the former, a large uSD card with a swap file defined /might/
be part of the solution.

Other than that, setting up a cross-build environment on a Linux box
might be feasible.


-- 
Dennis L Bieber

-- 
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/8mq5lf981fhq6uc8166a0hsvu21l206fgs%404ax.com.