Re: [beagleboard] Re: pygame displaying on /dev/fb0

2020-09-11 Thread jonnymo
In my config, BBAI running 4.14 kernel, I found two instances of fbcon:
$ sudo find / -name fbcon

* /sys/devices/virtual/graphics/fbcon*
* /sys/class/graphics/fbcon*


The framebuffer console seems to be attached to the console layer.

*$ cat /sys/class/vtconsole/vtcon1/bind*
*1*
*$ cat /sys/class/vtconsole/vtcon0/bind*
*0*


Info on fbcon:
https://www.kernel.org/doc/html/latest/fb/fbcon.html


Not sure if this helps at all.

Cheers,

Jon


On Fri, Sep 11, 2020 at 11:24 AM Robert Nelson 
wrote:

> On Fri, Sep 11, 2020 at 12:56 PM Dennis Lee Bieber
>  wrote:
> >
> > On Fri, 11 Sep 2020 04:56:42 -0700 (PDT), in
> > gmane.comp.hardware.beagleboard.user "Mark A. Yoder"
> >  wrote:
> >
> >
> > >
> > >Are you sure there is a fbcon module?
> >
> > https://www.kernel.org/doc/html/latest/fb/fbcon.html#a-configuration
> >
> > ... seems to imply it may not have been built for the standard release
> BBB
> > kernels.
>
> It's enabled:
>
> │
> ┌───┐ │
>   │ │[*] Framebuffer Console support
>  │ │
>   │ │-*-   Map the console to the primary display device
>  │ │
>   │ │[*]   Framebuffer Console Rotation
>  │ │
>   │ │[ ]   Framebuffer Console Deferred Takeover
>   │
>
> 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/CAOCHtYgkXSOoJQ%3D_iBLcYBuFc4Q0%3D%2B6y29EXzABPn5uK-Qbqdw%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/CAG99bkot-SENZ4uf231CdXpU4QqujKZ%2BLdHsS-cmUSv0o8Xc0g%40mail.gmail.com.


Re: [beagleboard] BBAI RTC

2020-09-11 Thread robert.sty...@gmail.com
AM57X RTC is not connected to anything useful 
On the schematic 
https://github.com/beagleboard/beaglebone-ai/blob/master/BeagleBone-AI_RevA2_sch.pdf
on sheet 5 location A3

On Friday, 11 September 2020 at 14:30:54 UTC+1 RobertCNelson wrote:

> Careful everyone, Chinmay asked about the BB-AI, which is am57xx based.
>
> Sorry, I haven't even looked up what the am57xx has for a RTC, we
> definitely don't have a backup battery.
>
> We will probably have to do something similar to the BBB, but rename
> the node alias in the overlay to work with both am3/am5 boards..
>
> Regarts,
>
> -- 
> 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/0141ce2f-e9f7-4341-9f3b-296814613f9dn%40googlegroups.com.


Re: [beagleboard] Re: pygame displaying on /dev/fb0

2020-09-11 Thread Robert Nelson
On Fri, Sep 11, 2020 at 12:56 PM Dennis Lee Bieber
 wrote:
>
> On Fri, 11 Sep 2020 04:56:42 -0700 (PDT), in
> gmane.comp.hardware.beagleboard.user "Mark A. Yoder"
>  wrote:
>
>
> >
> >Are you sure there is a fbcon module?
>
> https://www.kernel.org/doc/html/latest/fb/fbcon.html#a-configuration
>
> ... seems to imply it may not have been built for the standard release BBB
> kernels.

It's enabled:

│ ┌───┐ │
  │ │[*] Framebuffer Console support
 │ │
  │ │-*-   Map the console to the primary display device
 │ │
  │ │[*]   Framebuffer Console Rotation
 │ │
  │ │[ ]   Framebuffer Console Deferred Takeover│

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/CAOCHtYgkXSOoJQ%3D_iBLcYBuFc4Q0%3D%2B6y29EXzABPn5uK-Qbqdw%40mail.gmail.com.


Re: [beagleboard] Device Tree Overlay for BeagleBone-AI

2020-09-11 Thread Robert Nelson
On Fri, Sep 11, 2020 at 12:30 PM debian  wrote:
>
> Could i use overlay (Device Tree) in BeagleBone AI?
> Could i know how to use overlay (DT) in BeagleBone AI?
>
> First, I dont know to modify uEnv.txt ?
> I don't know what to edit in uEnv.txt.
>
> Can I know which part I need to fix?

Either start with this image (unless you need xorg)

https://rcn-ee.net/rootfs/bb.org/testing/2020-09-07/buster-iot/am57xx-debian-10.5-iot-armhf-2020-09-07-4gb.img.xz

Here is the list of overlays:

https://github.com/beagleboard/BeagleBoard-DeviceTrees/tree/v4.19.x-ti-overlays/src/arm/overlays

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/CAOCHtYi9NwNJNOQbkZLCJk_-LApGN-VRTVPQuuzTtuTX10sNew%40mail.gmail.com.


Re: [beagleboard] pygame displaying on /dev/fb0

2020-09-11 Thread jonnymo
There is a fbcon module as is referenced in the pygame script you listed
from Adafruit.  I would suspect that none of the drivers listed in the
script ('fbcon', 'directfb', 'svgalib') would be loadable on your system.
>From what I have gathered, fbcon is enabled by enabling the Framebuffer
console feature in the kernel as in the .config.  I'm not 100% sure how to
do this with the BB kernel.

When my BBBlue was still alive (R.I.P.), I did connect a ili9341 display to
it and had to run the following to get a QT app to run on the screen:
   #  -platform linuxfb:fb=/dev/fb0

This is the example I followed which was posted by Jason.
https://gist.github.com/jadonk/0e4a190fc01dc5723d1f183737af1d83

Perhaps something similar would work for the BB Black and pygame.


Cheers,

Jon

On Fri, Sep 11, 2020 at 4:56 AM Mark A. Yoder 
wrote:

> bone$ *lsmod*
> Module  Size  Used by
> fb_ili9341 16384  3
> fbtft_device   49152  0
> fbtft  45056  2 fbtft_device,fb_ili9341
> pru_rproc  28672  0
> irq_pruss_intc 20480  1 pru_rproc
> pruss  16384  1 pru_rproc
> pm33xx 16384  0
> wkup_m3_ipc16384  1 pm33xx
> wkup_m3_rproc  16384  1
> remoteproc 57344  3 pru_rproc,wkup_m3_rproc,wkup_m3_ipc
> virtio 16384  1 remoteproc
> virtio_ring28672  1 remoteproc
> pruss_soc_bus  16384  0
> usb_f_acm  16384  2
> u_serial   20480  3 usb_f_acm
> usb_f_ncm  28672  2
> uio_pdrv_genirq16384  0
> usb_f_mass_storage 53248  2
> uio20480  1 uio_pdrv_genirq
> usb_f_rndis32768  4
> u_ether20480  2 usb_f_ncm,usb_f_rndis
> libcomposite   65536  18
> usb_f_acm,usb_f_ncm,usb_f_mass_storage,usb_f_rndis
> spidev 20480  0
>
> bone$ *sudo modprobe fbcon*
> sudo: unable to resolve host ece434: No address associated with hostname
> modprobe: FATAL: Module fbcon not found in directory
> /lib/modules/4.19.94-ti-r50
>
> Are you sure there is a fbcon module?
> On Friday, September 11, 2020 at 1:09:11 AM UTC-4 jonn...@gmail.com wrote:
>
>> If you run 'lsmod" does the fbcon module show in the output?
>>
>> If not, try to load it manually:
>>   #* modprobe fbcon*
>>
>> Does this show an error?
>>
>> Check
>>
>> On Thu, Sep 10, 2020 at 5:52 PM Mark A. Yoder 
>> wrote:
>>
>>> Good idea, but I'm in group video.
>>>
>>> On Thursday, September 10, 2020 at 5:15:32 PM UTC-4 jonn...@gmail.com
>>> wrote:
>>>
 Just a thought, is your user part of the 'video' group?  I would
 suspect it is since you were able to run the fbi stuff but it wouldn't hurt
 to check.

 Cheer,

 Jon

 On Thu, Sep 10, 2020 at 11:59 AM jonnymo  wrote:

> Have you tried running it as root? Not 'sudo' but su to root and try
> it there.  It could still be a permission issue.
>
> Cheers,
>
> Jon
>
> On Thu, Sep 10, 2020 at 11:50 AM Mark A. Yoder 
> wrote:
>
>> I tried the 4.14 and 5.6 kernels, but no luck.
>>
>> --Mark
>>
>> On Thursday, September 10, 2020 at 2:38:08 PM UTC-4 RobertCNelson
>> wrote:
>>
>>> On Thu, Sep 10, 2020 at 12:00 PM Mark A. Yoder 
>>> wrote:
>>> >
>>> > Yup, I think before it would grap fbcon, but not now.
>>>
>>> Was it with v4.14.x before? i wonder if the new tinydrm driver in
>>> v4.19.x is causing a fun issue?
>>>
>>> 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/31150241-e86b-4a41-a7e8-769ec7cbc490n%40googlegroups.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/a965806b-842c-4443-9340-603d201538a3n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed t

[beagleboard] Re: pygame displaying on /dev/fb0

2020-09-11 Thread Dennis Lee Bieber
On Fri, 11 Sep 2020 04:56:42 -0700 (PDT), in
gmane.comp.hardware.beagleboard.user "Mark A. Yoder"
 wrote:


>
>Are you sure there is a fbcon module?

https://www.kernel.org/doc/html/latest/fb/fbcon.html#a-configuration

... seems to imply it may not have been built for the standard release BBB
kernels.



-- 
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/55enlftnjipekbeevief5lhiknakbrm2pt%404ax.com.


[beagleboard] Device Tree Overlay for BeagleBone-AI

2020-09-11 Thread debian
Could i use overlay (Device Tree) in BeagleBone AI?
Could i know how to use overlay (DT) in BeagleBone AI?

First, I dont know to modify uEnv.txt ?
I don't know what to edit in uEnv.txt.

Can I know which part I need to fix?

-- 
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/a940b223-2d3b-4e28-b7bc-2271c459572ao%40googlegroups.com.


[beagleboard] Re: External USB 2TB HD not spinning up.

2020-09-11 Thread Dan and Ann Barber
Thanks for the help! I really appreciate it! I'll check out a powered hub

On Thursday, September 10, 2020 at 10:55:10 AM UTC-7 
robert.sty...@gmail.com wrote:

> If it is drawing too much current, I suggest a powered hub between BBB and 
> HDD
>
> The HDD is USB 2.0 which means max 500mA, but BBB can only supply 100mA 
> https://github.com/beagleboard/beaglebone-black/wiki/System-Reference-Manual#usb1-host-port
>
> The format is Microsoft NTFS, which Linux cannot repair
>
> On Thursday, 10 September 2020 at 17:59:10 UTC+1 dan.ann...@gmail.com 
> wrote:
>
>> I have a WD 2TB external USB drive. It mounts fine on my linux laptop. 
>> When I plug it into the beagleboneblack, it times out.  Any help would be 
>> appreciated!
>>
>> lsusb finds the device:
>> Bus 001 Device 003: ID 1058:2626 Western Digital Technologies, Inc. 
>> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>>
>> dmesg:
>> [ 3965.568158] musb-hdrc musb-hdrc.1: VBUS_ERROR in a_wait_bcon (89, 
>> > [ 3966.776484] usb 1-1: new high-speed USB device number 3 using musb-hdrc
>> [ 3966.977419] usb 1-1: New USB device found, idVendor=1058, 
>> idProduct=2626, bcdDevice=10.28
>> [ 3966.977438] usb 1-1: New USB device strings: Mfr=1, Product=2, 
>> SerialNumber=3
>> [ 3966.977446] usb 1-1: Product: My Passport 2626
>> [ 3966.977454] usb 1-1: Manufacturer: Western Digital
>> [ 3966.977461] usb 1-1: SerialNumber: 5758573245313048344E394B
>> [ 3966.985267] usb-storage 1-1:1.0: USB Mass Storage device detected
>> [ 3967.008783] scsi host0: usb-storage 1-1:1.0
>> [ 3968.041574] scsi 0:0:0:0: Direct-Access WD   My Passport 2626 
>> 1028 PQ: 0 ANSI: 6
>> [ 3968.042213] scsi 0:0:0:1: Enclosure WD   SES Device   
>> 1028 PQ: 0 ANSI: 6
>> [ 3968.055140] sd 0:0:0:0: Attached scsi generic sg0 type 0
>> [ 3968.061239] scsi 0:0:0:1: Attached scsi generic sg1 type 13
>> [ 3968.063025] sd 0:0:0:0: [sda] Spinning up disk...
>> [ 3969.096578] ...not responding...
>>
>>
>> The BBB specs:
>>
>> System:Host: DataIntegrity-Secondary Kernel: 4.19.94-ti-r42 armv7l 
>> bits: 32 compiler: gcc v: 8.3.0 Console: tty 1 dm: N/A 
>>Distro: Debian GNU/Linux 10 (buster) 
>> Machine:   Type: ARM Device System: TI AM335x BeagleBone Black details: 
>> Generic AM33XX rev: N/A serial: 1516BBBK13E1 
>> Memory:RAM: total: 483.4 MiB used: 128.3 MiB (26.5%) 
>>RAM Report: unknown-error: dmidecode was unable to generate 
>> data 
>> PCI Slots: ARM: No ARM data found for this feature. 
>> CPU:   Topology: Single Core model: ARMv7 v7l variant: cortex-a8 
>> bits: 32 type: UP arch: v7l family: 7 model-id: 3 
>>stepping: 2 microcode: N/A bogomips: 995 
>>Speed: 1000 MHz min/max: 300/1000 MHz Core speed (MHz): 1: 
>> 1000 
>>Features: edsp fastmult half neon thumb thumbee tls vfp vfpd32 
>> vfpv3 
>>Vulnerabilities: No CPU vulnerability/bugs data available. 
>> Graphics:  Message: No ARM data found for this feature. 
>>Display: tty server: N/A driver: tty: 197x45 
>>Message: Advanced graphics data unavailable in console for 
>> root. 
>> Audio: Device-1: simple-audio-card driver: asoc_simple_card bus ID: 
>> N/A chip ID: simple-audio-card:sound 
>>Sound Server: ALSA v: k4.19.94-ti-r42 
>> Network:   Message: No ARM data found for this feature. 
>>IF-ID-1: can0 state: down mac: N/A 
>>IF-ID-2: can1 state: down mac: N/A 
>>IF-ID-3: eth0 state: up speed: 100 Mbps duplex: full mac: 
>> 80:30:dc:53:f6:f6 
>>IP v4: 192.168.1.212/24 scope: global broadcast: 
>> 192.168.1.255 
>>IP v6: 2600:1700:6d52:b1f0:8230:dcff:fe53:f6f6/64 type: 
>> dynamic mngtmpaddr scope: global 
>>IP v6: 2600:1700:6d52:b1f0::31/64 scope: global 
>>IP v6: fe80::8230:dcff:fe53:f6f6/64 scope: link 
>>IF-ID-4: usb0 state: up speed: N/A duplex: N/A mac: 
>> 80:30:dc:53:f6:f8 
>>IP v4: 192.168.7.2/24 scope: global broadcast: 192.168.7.255 
>>IP v6: fe80::8230:dcff:fe53:f6f8/64 scope: link 
>>IF-ID-5: usb1 state: up speed: N/A duplex: N/A mac: 
>> 80:30:dc:53:f6:fc 
>>IP v4: 192.168.6.2/24 scope: global broadcast: 192.168.6.255 
>>IP v6: fe80::8230:dcff:fe53:f6fc/64 scope: link 
>>WAN IP: No WAN IP data found. Connected to the web? SSL 
>> issues? 
>> Drives:Local Storage: total: 3.56 GiB used: 2.34 GiB (65.6%) 
>>ID-1: /dev/mmcblk1 model: S10004 size: 3.56 GiB block size: 
>> physical: 512 B logical: 512 B serial: 0x7ae2584c 
>>rev: 0x6 scheme: MBR 
>>Message: No Optical or Floppy data was found. 
>> RAID:  Message: No RAID data was found. 
>> Partition: ID-1: / raw size: 3.56 GiB size: 3.44 GiB (96.67%) used: 2.34 
>> GiB (67.9%) fs: ext4 block size: 4096 B 
>>dev: /dev/mmcblk1p1 label: rootfs uuid: 
>> 39168434-dd05-449f-aa8a-c455aec0e138 
>> Unmounted: M

[beagleboard] Pocketbeagle change USB1 from host to client mode

2020-09-11 Thread Ben Herman
Hello,

I've been looking around for some time now about how to switch host/client 
mode of the pocketbeagle, but have only found threads on how to switch the 
USB0 port settings on the BBB.  

I have successfully wired a USB port to USB1 and been able to access 
downstream devices, but am unable to use that port to connect to my 
computer.

Has anyone been able to change USB1 (the pins on header P1) from host mode 
to client mode? 

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/be5001f9-4610-4739-bec1-7e29391fc086n%40googlegroups.com.


Re: [beagleboard] BBAI RTC

2020-09-11 Thread Robert Nelson
Careful everyone, Chinmay asked about the BB-AI, which is am57xx based.

Sorry, I haven't even looked up what the am57xx has for a RTC, we
definitely don't have a backup battery.

We will probably have to do something similar to the BBB, but rename
the node alias in the overlay to work with both am3/am5 boards..

Regarts,

-- 
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/CAOCHtYi7QECWRXtJRDuxQTF%3DAg%2Bt1NPVMVJX6H8d5-bpavErgQ%40mail.gmail.com.


Re: [beagleboard] BBAI RTC

2020-09-11 Thread Steve Lentz
As I understand it, there is a hardware clock, but it is not backed up by 
battery.  If the BBB always has access to a network, that’s not a big deal, it 
can grab time from NTP and reset the clock.  

I’m planning to use the BBB in an underwater housing and power it off for days 
at a time to save battery, so I needed another solution for keeping time.  The 
DS3231 suits this purpose well.

After trying for a while with sleep modes, alarms, FETS, relays etc, I’ve 
decided I need a separate MCU to act as the timer to wake everything up when 
the BBB is powered down.  I just received some new parts from Adafruit, we’ll 
see how that goes.  

-Steve


> On Sep 11, 2020, at 8:51 AM, Chinmay Pendharkar  wrote:
> 
> Thanks Steve!
> 
> I have used external RTCs with BBB before. I was wondering if anything 
> changed with the new Beaglebone AI. I can see some mention in the AM5729 
> datasheet, but not much on the BBAI System Reference documentation 
> https://github.com/beagleboard/beaglebone-ai/wiki/System-Reference-Manual 
> 
> 
> -Chinmay
> 
> On Friday, September 11, 2020 at 8:14:24 PM UTC+8 stl...@gmail.com 
>  wrote:
> I just spent the last few weeks looking at the BBB RTC.
> 
> If you want a battery backed RTC, you will need to add one.  The Maxim DS3231 
> is one example.  Adafruit makes several breakout boards and modules so you 
> can pick your flavor of how you want to connect it.  The clock will be 
> connected to the I2C - 2 bus.
> 
> Then add this line to /boot/uEnv.txt:
> 
> dtb_overlay=/lib/firmware/BB-I2C2-RTC-DS3231.dtbo
> 
> 
> Restart, and that’s it.  Your BBB now has a battery backed RTC.  If it’s on a 
> network and can reach an NTP server, it will set the RTC automagically.
> 
> The BBB still does not have a good low power sleep mode.  The RTC will not 
> fix that, but it’s not the fault of the RTC, which otherwise works quite 
> nicely with the Linux drivers.
> 
> -Steve
> 
> 
> 
> 
>> On Sep 10, 2020, at 10:37 PM, Chinmay Pendharkar > > wrote:
>> 
> 
>> Hello,
>> 
>> Does the BeagleBone AI have an onboard RTC? If so is there any documentation 
>> about it and how it can work? If there is a mechanism to add 
>> battery/supercap to keep time.
>> 
>> -Chinmay
>> 
> 
>> -- 
>> 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/0cae3f1d-2f95-4128-8a81-440c770c05ben%40googlegroups.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/670727d8-acff-4b25-9ee5-231c5f8e05ecn%40googlegroups.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/71962CA2-88B9-4CB0-A88F-F4B866F3AD23%40gmail.com.


Re: [beagleboard] BBAI RTC

2020-09-11 Thread Chinmay Pendharkar
Thanks Steve!

I have used external RTCs with BBB before. I was wondering if anything 
changed with the new Beaglebone AI. I can see some mention in the AM5729 
datasheet, but not much on the BBAI System Reference 
documentation 
https://github.com/beagleboard/beaglebone-ai/wiki/System-Reference-Manual

-Chinmay

On Friday, September 11, 2020 at 8:14:24 PM UTC+8 stl...@gmail.com wrote:

> I just spent the last few weeks looking at the BBB RTC.
>
> If you want a battery backed RTC, you will need to add one.  The Maxim 
> DS3231 is one example.  Adafruit makes several breakout boards and modules 
> so you can pick your flavor of how you want to connect it.  The clock will 
> be connected to the I2C - 2 bus.
>
> Then add this line to /boot/uEnv.txt:
>
> *dtb_overlay=/lib/firmware/BB-I2C2-RTC-DS3231.dtbo*
>
> Restart, and that’s it.  Your BBB now has a battery backed RTC.  If it’s 
> on a network and can reach an NTP server, it will set the RTC automagically.
>
> The BBB still does not have a good low power sleep mode.  The RTC will not 
> fix that, but it’s not the fault of the RTC, which otherwise works quite 
> nicely with the Linux drivers.
>
> -Steve
>
>
>
> On Sep 10, 2020, at 10:37 PM, Chinmay Pendharkar  
> wrote:
>
> Hello,
>
> Does the BeagleBone AI have an onboard RTC? If so is there any 
> documentation about it and how it can work? If there is a mechanism to add 
> battery/supercap to keep time.
>
> -Chinmay
>
> -- 
> 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/0cae3f1d-2f95-4128-8a81-440c770c05ben%40googlegroups.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/670727d8-acff-4b25-9ee5-231c5f8e05ecn%40googlegroups.com.


Re: [beagleboard] BBAI RTC

2020-09-11 Thread Steve Lentz
I just spent the last few weeks looking at the BBB RTC.

If you want a battery backed RTC, you will need to add one.  The Maxim DS3231 
is one example.  Adafruit makes several breakout boards and modules so you can 
pick your flavor of how you want to connect it.  The clock will be connected to 
the I2C - 2 bus.

Then add this line to /boot/uEnv.txt:

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


Restart, and that’s it.  Your BBB now has a battery backed RTC.  If it’s on a 
network and can reach an NTP server, it will set the RTC automagically.

The BBB still does not have a good low power sleep mode.  The RTC will not fix 
that, but it’s not the fault of the RTC, which otherwise works quite nicely 
with the Linux drivers.

-Steve



> On Sep 10, 2020, at 10:37 PM, Chinmay Pendharkar  wrote:
> 
> Hello,
> 
> Does the BeagleBone AI have an onboard RTC? If so is there any documentation 
> about it and how it can work? If there is a mechanism to add battery/supercap 
> to keep time.
> 
> -Chinmay
> 
> -- 
> 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/0cae3f1d-2f95-4128-8a81-440c770c05ben%40googlegroups.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/D7148BB2-27F7-4134-ADD4-C07979641561%40gmail.com.


Re: [beagleboard] config-pin tool doesn't work.

2020-09-11 Thread Pavel Yermolenko
After flashing bone-eMMC-flasher-debian-10.5-iot-armhf-2020-08-25-4gb.img 
the tool *config-pin* works.
Thanks !
Before I had this image in eMMC:
bone-debian-10.3-iot-armhf-2020-04-06-4gb.img
that I've got from: BeagleBoard.org Latest Firmware Images 


Why on BBB-dedicated page they put "mainline kernel default device tree" 
image ?

Sincerely.

Pavel.

-- 
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/f4dcd349-3e27-4e53-8ca2-1cd92910e2e0o%40googlegroups.com.


Re: [beagleboard] pygame displaying on /dev/fb0

2020-09-11 Thread Mark A. Yoder
bone$ *lsmod*
Module  Size  Used by
fb_ili9341 16384  3
fbtft_device   49152  0
fbtft  45056  2 fbtft_device,fb_ili9341
pru_rproc  28672  0
irq_pruss_intc 20480  1 pru_rproc
pruss  16384  1 pru_rproc
pm33xx 16384  0
wkup_m3_ipc16384  1 pm33xx
wkup_m3_rproc  16384  1
remoteproc 57344  3 pru_rproc,wkup_m3_rproc,wkup_m3_ipc
virtio 16384  1 remoteproc
virtio_ring28672  1 remoteproc
pruss_soc_bus  16384  0
usb_f_acm  16384  2
u_serial   20480  3 usb_f_acm
usb_f_ncm  28672  2
uio_pdrv_genirq16384  0
usb_f_mass_storage 53248  2
uio20480  1 uio_pdrv_genirq
usb_f_rndis32768  4
u_ether20480  2 usb_f_ncm,usb_f_rndis
libcomposite   65536  18 
usb_f_acm,usb_f_ncm,usb_f_mass_storage,usb_f_rndis
spidev 20480  0

bone$ *sudo modprobe fbcon*
sudo: unable to resolve host ece434: No address associated with hostname
modprobe: FATAL: Module fbcon not found in directory 
/lib/modules/4.19.94-ti-r50

Are you sure there is a fbcon module?
On Friday, September 11, 2020 at 1:09:11 AM UTC-4 jonn...@gmail.com wrote:

> If you run 'lsmod" does the fbcon module show in the output?
>
> If not, try to load it manually:
>   #* modprobe fbcon*
>
> Does this show an error?
>
> Check  
>
> On Thu, Sep 10, 2020 at 5:52 PM Mark A. Yoder  wrote:
>
>> Good idea, but I'm in group video.
>>
>> On Thursday, September 10, 2020 at 5:15:32 PM UTC-4 jonn...@gmail.com 
>> wrote:
>>
>>> Just a thought, is your user part of the 'video' group?  I would suspect 
>>> it is since you were able to run the fbi stuff but it wouldn't hurt to 
>>> check.
>>>
>>> Cheer,
>>>
>>> Jon
>>>
>>> On Thu, Sep 10, 2020 at 11:59 AM jonnymo  wrote:
>>>
 Have you tried running it as root? Not 'sudo' but su to root and try it 
 there.  It could still be a permission issue.

 Cheers,

 Jon

 On Thu, Sep 10, 2020 at 11:50 AM Mark A. Yoder  
 wrote:

> I tried the 4.14 and 5.6 kernels, but no luck.
>
> --Mark
>
> On Thursday, September 10, 2020 at 2:38:08 PM UTC-4 RobertCNelson 
> wrote:
>
>> On Thu, Sep 10, 2020 at 12:00 PM Mark A. Yoder  
>> wrote: 
>> > 
>> > Yup, I think before it would grap fbcon, but not now. 
>>
>> Was it with v4.14.x before? i wonder if the new tinydrm driver in 
>> v4.19.x is causing a fun issue? 
>>
>> 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/31150241-e86b-4a41-a7e8-769ec7cbc490n%40googlegroups.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/a965806b-842c-4443-9340-603d201538a3n%40googlegroups.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/8f4f1762-ea77-4a4a-b955-351aaa43fb56n%40googlegroups.com.


Re: [beagleboard] How to check exact model of CPU on BBB

2020-09-11 Thread Pavel Yermolenko

>
> You said it works above on sdk now it appears you are running the command 
> on Debian. It won't  work until you follow Robert's update command.
>

As I previously mentioned, I've two version of Linux:

   - debian in eMMC
   - yocto-based in SD card

On yocto *omapconf* worked, on debian - not.
I installed it on debian using Robert's suggestion and now it also works on 
debian.
What confuses you ?
Sincerely,
Pavel.

-- 
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/d028a473-82b3-4a46-8fba-0861ba6141c3o%40googlegroups.com.


[beagleboard] Re: libpruio (fast and easy D/A - I/O)

2020-09-11 Thread TJF
Sorry, I forgot the second part of the command:

*ExecStartPre=/bin/dash -c 'until [ -e /dev/uio5 ] ; do sleep 1 ; done ; 
> /bin/chown root:pruio /dev/uio5'*
>

-- 
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/aa43f8ac-e3ae-4071-8497-c3a3f7f695f9o%40googlegroups.com.


[beagleboard] Re: libpruio (fast and easy D/A - I/O)

2020-09-11 Thread TJF
Hi Andrew!

It seems that you're making good progress with your project. Congrats!

This works in my projects

[Unit]
> After=generic-board-startup.service libpruio-lkm.service
> StartLimitIntervalSec=0
>
> [Service]
> Type=simple
> Restart=always
> User=debian
> WorkingDirectory=/opt/rad/virtual_sensor 
>

> *ExecStartPre=/bin/dash -c 'until [ -e /dev/uio5 ] ; do sleep 1 ; done*
>
ExecStart=/opt/rad/virtual_sensor/virtual_sensor
>
> [Install]
> WantedBy=multi-user.target
>

Since I always execute compiled programs, I start them as root. Perhaps for 
User=debian you'll have to implement that line in 
/etc/systemd/system/lippruio-lkm.service.

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/c303aa65-f3c7-4871-a772-c8d8a9572636o%40googlegroups.com.