brook_ has quit [Ping timeout: 246 seconds]
brook has joined #beagle
akaWolf has quit [Ping timeout: 260 seconds]
akaWolf has joined #beagle
nparafe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
nparafe has joined #beagle
brook has quit [Read error: Connection reset by peer]
brook_ has joined #beagle
GenTooMan has joined #beagle
nparafe has quit [Ping timeout: 260 seconds]
nparafe_ has joined #beagle
starblue has quit [Ping timeout: 248 seconds]
starblue has joined #beagle
pbrobinson has quit [*.net *.split]
pbrobinson has joined #beagle
Shadyman has quit [Remote host closed the connection]
veltas has quit [*.net *.split]
Patater has quit [*.net *.split]
veltas has joined #beagle
Patater has joined #beagle
LetoThe2nd has quit [*.net *.split]
LetoThe2nd has joined #beagle
vagrantc has quit [Quit: leaving]
x56_ has quit [*.net *.split]
NishanthMenon has quit [*.net *.split]
CygniX has quit [*.net *.split]
NishanthMenon has joined #beagle
CygniX has joined #beagle
x56_ has joined #beagle
Stanto has quit [*.net *.split]
samnob has quit [*.net *.split]
Epakai has quit [*.net *.split]
shodan45 has quit [*.net *.split]
marcheu has quit [*.net *.split]
Stanto has joined #beagle
samnob has joined #beagle
Epakai has joined #beagle
shodan45 has joined #beagle
samnob has joined #beagle
samnob has quit [Changing host]
marcheu has joined #beagle
buzzmarshall has quit [Quit: Konversation terminated!]
AKN has joined #beagle
Guest42 has joined #beagle
<Guest42> Hi, I'm trying to set up PRU system to toggle a 12 MHz clock, and am really struggling to get anything to work. The closest I've gotten was using libpruio for their examples, but I can't get them to run correctly. I get an error when running the pruss_toggle example: "initialisation failed (parsing kernel claims)." How would I troubleshoot this to
<Guest42> figure out how to get the example working, what is meant by an error when "parsing kernel claims"?
shodan45 has quit [Ping timeout: 260 seconds]
shodan45 has joined #beagle
<Guest42> In the long run, I would like to setup something that can output and read from 20 or so I/O pins, and then there is a clock that needs to run at 12 MHz. The purpose of this is to interface with this chip: http://www.holtic.com/products/2981-hi-1575.aspx to control the inputs and process the output, my thinking is that the pru is the best option for
<Guest42> this, but I am open to any suggestions from a more experienced user
<zmatt> note that if you want to use pru for a custom purpose then libpruio isn't of any particular use
<zmatt> it's just some generic I/O library that uses PRU for some stuff
<zmatt> (I don't know much about how libpruio works so I have no idea what it could possibly mean by "initialisation failed (parsing kernel claims).")
<zmatt> the beaglebone has pins that can output a configurable clock (e.g. pwm pins) so you don't really need PRU for that, but let me check the datasheet of this chip to have an idea what you're trying to do
<Guest42> Yea, I was thinking I could just use it to control the pins, and according to others it is easy to use, but I've been struggling with it anyway
<Guest42> Can the pwm pins output at 12 mhz?
<zmatt> I've never used libpruio myself. I do know PRU pretty well, I've actually written a python library that can load code onto PRU and interact with it via shared memory and/or interrupts: https://github.com/mvduin/py-uio
<Guest42> I can definitely try that. I am interested in how you say about using the pwm, if that is any easier to use than the pru I would be more inclined to go that route
<zmatt> depends on the pwm pin... the eCAP/eHRPWM pins can't produce an exact 12 MHz (the closest for them would be 12.5 MHz) but the timer pins do have that ability, and there's also a configurable clock output pin that I *think* can produce 12 MHz though I'd need to check
<zmatt> for some reason the timer pins aren't setup for pwm by default so a bit of fiddling is needed regardless
<zmatt> it looks like the communication with the chip you linked isn't very time-sensitive, depending a bit on how fast you want to be able to perform transfers on this bus
<zmatt> so there's a bunch of options on how to approach that, with different trade-offs for performance vs complexity
<zmatt> (with pru obviously being the highest performance option)
<Guest42> Yes, the time is fairly ok as far as I see, the bus is limited to 1 Mbps and it takes in 16 bit data, so I only need 60 kHz of "speed" as far as I know. As far as complexity, what is the simplest way I might be able to achieve that for the purpose of getting something working?
<zmatt> the simplest, and lowest performance, option is to just use gpio for the entire bus interface, controlled from linux userspace via sysfs (or via gpiod if that's your thing)
<zmatt> that just leaves the 12 MHz clock question, let me see if I can figure that one out
<zmatt> another interesting option would be to use lcdc via py-uio as bus interface controller... it can directly perform the bus interface protocol
<zmatt> though that wouldn't allow the SYNC pin to be captured during reads, but I can't tell if that's a problem or not
<Guest42> The sync pin is necessary to read
<Guest42> well, I suppose it could be worked around by reading RSYNCA from the status and mode register after every read
<zmatt> (I'm still checking stuff)
<Guest42> All good, I appreciate you taking your time!
Guest746 has joined #beagle
Guest42 has quit [Quit: Client closed]
<zmatt> Guest746: to illustrate the benefit of the lcdc approach, after the appropriate setup is done it would be this simple to do bus access: https://pastebin.com/ggy6FEAu (two variants given depending on the wiring used)
Guest7100 has joined #beagle
<zmatt> (for transmit it would be possible to control the sync pin as a gpio, drive it low/high before writing the transmit word and set it back to high-Z before doing a read)
<zmatt> (or as you said, use SAM)
Guest746 has quit [Ping timeout: 260 seconds]
<zmatt> so even with the overhead of reading SAM after every read it might be worth it
<zmatt> I don't think you'd manage to read 60 kwords/s using sysfs gpio
<zmatt> anyway, let me finish writing an overlay for enabling a timer pin as pwm output... I'm not sure why I've never made an example for that yet, it has certainly come up before
<jfsimon1981_b> Good morning
Guest7100 has quit [Client Quit]
<zmatt> oh he left, I guess he'll be back eventually
Guest793 has joined #beagle
Guest793 has quit [Client Quit]
<zmatt> oh, standard overlays for the timer pwm outputs do exist... it's just not part of cape-universal for some reaosn
shodan45 has quit [Ping timeout: 260 seconds]
shodan45 has joined #beagle
AKN has quit [Read error: Connection reset by peer]
shodan45 has quit [Ping timeout: 260 seconds]
shodan45 has joined #beagle
shodan45 has quit [Read error: Connection reset by peer]
shodan45 has joined #beagle
akaWolf has quit [Ping timeout: 272 seconds]
akaWolf has joined #beagle
akaWolf has quit [Ping timeout: 260 seconds]
akaWolf has joined #beagle
akaWolf has quit [Ping timeout: 260 seconds]
akaWolf has joined #beagle
Guest765 has joined #beagle
shodan45 has quit [Ping timeout: 260 seconds]
shodan45 has joined #beagle
SJFriedl has quit [Quit: Leaving]
Guest765 has quit [Ping timeout: 260 seconds]
SJFriedl has joined #beagle
akaWolf has quit [Ping timeout: 260 seconds]
akaWolf has joined #beagle
lucascastro has joined #beagle
shodan45 has quit [Ping timeout: 260 seconds]
shodan45_ has joined #beagle
Guest42 has joined #beagle
lucascastro has quit [Quit: Leaving]
akaWolf has quit [Ping timeout: 260 seconds]
akaWolf has joined #beagle
shodan45_ has quit [Ping timeout: 260 seconds]
shodan45 has joined #beagle
m-atoms has joined #beagle
m-atoms has quit [Client Quit]
Guest42 has quit [Ping timeout: 260 seconds]
shodan45 has quit [Ping timeout: 260 seconds]
shodan45_ has joined #beagle
akaWolf has quit [Ping timeout: 252 seconds]
akaWolf has joined #beagle
zjason`` has joined #beagle
<set_> What is the "org" on line 16 at this page online: https://docs.beagleboard.org/latest/books/pru-cookbook/03details/details.html#id31 ?
zjason` has quit [Ping timeout: 276 seconds]
<set_> I see the "org" on many lines but I have no clue on how to look up the def.
vagrantc has joined #beagle
<set_> I mean...is it just a object to put addresses in via assignment?
<set_> So, could "org" be any assigned text?
<set_> Anyway, the docs. are nice. I will keep learning from them!
vagrantc has quit [Quit: leaving]
<jfsimon1981_b> hi set_
<jfsimon1981_b> seems like a position index
<jfsimon1981_b> Either register position or ROM positions, something similar.
<jfsimon1981_b> Apparently an address.
<set_> Right. I see the address gets assigned to the "org" place holder.
<set_> But...I guess I am just unfamiliar w/ how assigning so many addresses to the same place holder can be useful.
* set_ needs to learn more I guess?
<set_> or...is it assembly since it is a linker file?
<zmatt> it's a linker script... arcane stuff you generally don't need to mess with
Guest66 has joined #beagle
<zmatt> anyway, zZ
<Guest66> Hello, I have got a problem, I changed Uenv.txt in basic embedded BeagleBone ai kernel, so now I have 4 Leds flashed and my PC does not see the board. I tried to boot via SD with debian image and I have only  D2 Led flashed. Do you know how to reset embedded kernel
<Guest66> Or to fix it
<zmatt> bbai or bbai64 ?
<Guest66> ai
<zmatt> if you insert a bootable sd card it should boot from sd card
<zmatt> what image did you flash onto the sd card?
<Guest66> D2 is flashing
<Guest66> And how check embedded debian
<Guest66> without SD card 4 leds flashes
<Guest66> fix
<Guest66> I meant fix embedded debian
<Guest66> fix Uenv.txt there
<Guest66> Or reset
<zmatt> 00:02 <@zmatt> what image did you flash onto the sd card?
<zmatt> ok, not answering is fine too, I was heading to bed anyway. afk, zZ
<Guest66> am57xx-debian-10.3-iot-tidl-armhf-2020-04-06-6gb
shodan45_ has quit [Ping timeout: 260 seconds]
shodan45 has joined #beagle
<set_> Okay. No issue.
<Guest66> Yes, but I can not boot basic embedded images, because I changed Uenv.txt there
<Guest66> And I am thinking of to to change it again
<Guest66> But I can not connect via ssh
<Guest66> and 4 leds flasheds without sd card
<Guest66> With sd card one led flashes
<Guest66> D2
<Guest66> So does anyone knows how to fix it?
<Guest66> Don't want to turn beaglebone into a rick
<Guest66> brick
<Guest66> How to repair basic kernel
<Guest66> if Uenv.txt changed
<Guest66> I unncomented the line that is used t unlock eMMC
akaWolf has quit [Ping timeout: 260 seconds]
<set_> Guest66: Do you have a Linux computer?
<zmatt> pff, sleep failed
<zmatt> Guest66: you mean the line that turns a system into a flasher? yeah doing that on your eMMC will certainly make it not boot. however on the bbai this shouldn't have any effect on being able to boot from sd card
<zmatt> did you use Etcher to flash the image to sd card?
zjason``` has joined #beagle
<zmatt> wait, "With sd card one led flashes" ... you mean in a heartbeat-pattern? because that sounds to me like you booted successfully from sd card
zjason`` has quit [Ping timeout: 260 seconds]
<set_> @zmatt cannot sleep!
<zmatt> Guest66: once booted from sd card you could mount the emmc and fix /boot/uEnv.txt on it to make it bootable from eMMC again.... or you could just reflash eMMC by either turning your sd card into an eMMC-flasher by uncommenting one line in /boot/uEnv.txt on the sd card (the cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh line at the bottom of the file), or you could download a pre-made ...
<zmatt> ...emmc flasher image and flash ...
<zmatt> ... that onto sd card and boot the beaglebone from that
* zmatt . o O ( huh, why did my chatline get broken into three pieces like that, that's weird )
<set_> bugged?
<zmatt> more like there's two separate mechanisms splitting my chat line with different thresholds
<set_> hmm
<set_> beats me
<zmatt> Guest66: anyway, regardless your beaglebone is not bricked, it's just currently failing to boot from emmc (because you mucked up its /boot/uEnv.txt file)
<zmatt> but that's always fixable
<set_> fix it!
<zmatt> k, gonna give sleep another try
<zmatt> afk
<set_> no!