--
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.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/tdt1TTix7aE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
I use uio_pruss; I am not at all familiar with remoteproc + rpmsg for the pru (have never even seen any doc on it). I strongly prefer systemd to init. My largest concern is the device trees overlays (for uio_pruss and pinmux); if they work, then I think I can get SPIs going. I just got a BBB running on 8.2 (had a problem with the leds going out rather than all on when flashing finished). Am able to talk through USB. Can't run scite yet; probably need to work on x-windows.
SPI works great on v4.1.x now, just pay attention this this little
spi-dma-disable hack:
https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-SPIDEV0-00A0.dts#L54
"ti,pio-mode;"
Otherwise, the spidev interface will lock up on the 160'th bit...
(3.8 never used dma on spi, so this isn't a regression in speed..)
SPI works great on v4.1.x now, just pay attention this this little
spi-dma-disable hack:
https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-SPIDEV0-00A0.dts#L54
"ti,pio-mode;"
Otherwise, the spidev interface will lock up on the 160'th bit...
(3.8 never used dma on spi, so this isn't a regression in speed..)Is it possible to control the SPI hardware through the PRU, and if so, would that hack still matter Robert ? No idea if spidev is used in such a case or not . . .
--
On Dec 16, 2015, at 7:41 AM, Robert Nelson <robert...@gmail.com> wrote:On Wed, Dec 16, 2015 at 9:31 AM, William Hermans <yyr...@gmail.com> wrote:SPI works great on v4.1.x now, just pay attention this this little
spi-dma-disable hack:
https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-SPIDEV0-00A0.dts#L54
"ti,pio-mode;"
Otherwise, the spidev interface will lock up on the 160'th bit...
(3.8 never used dma on spi, so this isn't a regression in speed..)Is it possible to control the SPI hardware through the PRU, and if so, would that hack still matter Robert ? No idea if spidev is used in such a case or not . . .
I didn't investage that side.. It's just when used as an overlay, that's needed..If you setup a *.dtb with spi enabled in the dtb-rebuilder you don't need that workaround..Regards,--Robert Nelson
https://rcn-ee.com/
On Dec 16, 2015, at 10:13 AM, John Syne <john...@gmail.com> wrote:Yes, you can control the SPI with the PRU. Take the SPI driver from Starterware and adapt it to work on the PRU and then build with the PRU C compiler. SPIDEV is a Linux feature and has nothing to do with the PRU. Starterware is barebone programming where you manipulate the peripheral, bus and clock registers directly using the CortexA8 ARM processor. The PRU can manipulate these same registers. From what I remember, there is a github project that has already ported some of the Starterware drivers to work on the PRU.On Dec 16, 2015, at 7:41 AM, Robert Nelson <robert...@gmail.com> wrote:On Wed, Dec 16, 2015 at 9:31 AM, William Hermans <yyr...@gmail.com> wrote:SPI works great on v4.1.x now, just pay attention this this little
spi-dma-disable hack:
https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-SPIDEV0-00A0.dts#L54
"ti,pio-mode;"
Otherwise, the spidev interface will lock up on the 160'th bit...
(3.8 never used dma on spi, so this isn't a regression in speed..)Is it possible to control the SPI hardware through the PRU, and if so, would that hack still matter Robert ? No idea if spidev is used in such a case or not . . .
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/tdt1TTix7aE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Kenneth Martin Granite SemiCom Inc. 555 Richmond St. W, BX1200/Suite 905 Toronto ON 416 640-2626, www.granitesemi.com
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/tdt1TTix7aE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Normally SPI's are good up to 100MHz, but this is seldom needed. I normally set them up at 1MHz for initial debug (allows for cheaper instruments) and then usually go to 10MHz which normally makes speed a non-issue and allows for longer wires. 16MHz should be fine as well. I2C's often run around 1MHz and are very dependent on length (i.e. capacitance). One needs to keep I2Cs high when not used to minimize power due to pull-ups. SPI's, once you get them going, are generally a better choice.
--
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.
No need to bitbang unless you want additional SPI ports available. Simply use the McSPI port controlled from the PRU.
That doesn’t make sense to me. I know a few months ago I was working on a SPI driver and I had the same issue when my buffer exceeded 160 bytes. When I used a DMA-coherent buffer, my driver worked fine. I was using an overlay to load my driver during testing. My driver did not use SPIDEV.
On Dec 16, 2015, at 3:07 PM, William Hermans <yyr...@gmail.com> wrote:If the module is true hardware SPI, you do not even need a PRU involved. Except perhaps to move the data into LInux through some form of shared memory.No need to bitbang unless you want additional SPI ports available. Simply use the McSPI port controlled from the PRU.
That doesn’t make sense to me. I know a few months ago I was working on a SPI driver and I had the same issue when my buffer exceeded 160 bytes. When I used a DMA-coherent buffer, my driver worked fine. I was using an overlay to load my driver during testing. My driver did not use SPIDEV.It makes perfect sense. One way it using the hardware through it's registers directly, while the other way is essentially bit banged master mode only SPI.
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/tdt1TTix7aE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
On Dec 16, 2015, at 3:13 PM, Kenneth Martin <mar...@granitesemi.com> wrote:John, I haven't heard of McSPI, but I'm running the SPI from a python program on the Arm side based on some Pyside Qt controllers, I'm using the PRU for a logic analyzer and the logic analyzer pins are not available for the SPI, so this could be the reason. I may also use the PRU IEP timer in the future for some fine timing but I don't think this is relevant.
--
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.
Yes, I am starting to see that Jessie has issues:
[blabla...]
I don't know how to use it with unknown devices and unknown subnet without using DHCP which doesn't allow for fixed IPs - which I need). Note: without a network manager, you need to enable wpa_supplicant.service.
On Dec 20, 2015 12:56 PM, "Kenneth Martin" <mar...@granitesemi.com> wrote:
>
> Thanks Robert; do you also recommend using sudo systemctl reboot over sudo reboot?
I think sudo reboot is fine... But one of my bbb's in my test farm, (7 boards running 24/7 uptime testing with different kernel branches) needs a little per nudge to properly reboot. I wonder if systemctl works better..
>
> On 15-12-19 02:18 PM, Robert Nelson wrote:
>>
>> use:
>> sudo systemctl poweroff
>
>
> --
> 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.
--