vagrantc has quit [Quit: leaving]
<set_> Okay. Wrong board.
vagrantc has joined #beagle
<set_> brb. I am setting up something to compare, if you will, b/t two, separate boards and the kernels on the boards.
ikarso has quit [Quit: Connection closed for inactivity]
<set_> And...let me take off the Cape too to show you the output of the BBBW: https://pastebin.com/C29imq8b
<zmatt> either the pin is in use by the cape or cape-universal isn't working with that particular kernel and u-boot.
<zmatt> also, this isn't a permission error like you claimed earlier
<set_> I know. I had the Cape off on the BBBW when altering the pwm instances. I am trying to peform low level c programming on the /sys/class/pwmchipN/pwm/pwm-n:N.
<set_> Is that still possible?
<zmatt> nothing about that has changed as far as I know
<set_> Oh.
<set_> Hmm. Let me take the Cape off real quickly and get right back.
<zmatt> also, I'd recommend using the symlinks in /dev/pwm/ instead of hardcoding /sys/class/pwmchipN/ paths since the numbering of pwm devices is not stable, the kernel just assigns numbers sequentially in whatever order it encounters them
<zmatt> (which also means the numbering depends on which pwm devices are enabled in DT)
<set_> Oh. Okay. Hmm.
<set_> Aw!
<set_> Let me boot this image real quickly.
<set_> It is the same one w/ the MotorCape from before but w/ the Cape off.
<set_> BBBW!
<set_> ERROR: open() for /sys/devices/platform/ocp/ocp:P9_14_pinmux/state failed, No such file or directory
<set_> This is not the error I was receiving w/ config-pin b/c I was not using config-pin. I was directly accessing the pwmchipN at pwmchipN/pwm/pwmN.
<set_> But okay about the accessing of it, this pwm instance on the BBBW, at /dev/pwm/
<zmatt> those two things are unrelated... config-pin is to configure the pin
<set_> -bash: cd: /dev/pwm: No such file or directory
<zmatt> what image are you using?
<set_> Wait.
<set_> I got the darn .dtbo installed right now.
<set_> Let me reboot this thing. I will get the image before I reboot.
<set_> BeagleBoard.org Debian Bullseye IoT Image 2021-12-23
<zmatt> if there's no /dev/pwm/ out of the box (before you manage to break stuff), then these images are clearly not ready for use yet
<set_> Okay. No issue. I just wanted to make sure that if things done got mangled, I could then demangle it.
<zmatt> I have little confidence in you demangling anything, heh
<zmatt> mangling? sure. demangling? nah
<set_> Okay. So, p9.14 is again working w/ pwm after the .dtbo is gone and the Cape is off on this BBBW.
<set_> I know.
<set_> I know.
<set_> Let me check /dev/pwm/
<set_> -bash: cd: /dev/pwm: No such file or directory
<set_> What happened to all the low level c programming for the pwm instances on the BBB,W,lue,G,GW,GG,AI?
<set_> I can finally do a little and I am stuck w/ config-pin and not knowing squat.
<zmatt> the pwm interface has not changed... like, ever.
<zmatt> config-pin has nothing to do with the pwm interface
<set_> Hmm.
<zmatt> config-pin is used to configure pins
<zmatt> as the name implies
<set_> I see in the current kernel, they are doing things a bit differently. At least, I thought.
<set_> Oh.
<zmatt> sounds unlikely
<set_> It was a beagleboard.org thing w/ the pwm instances on the boards?
<set_> I am trying to understand the gap.
<zmatt> dunno what you mean by that
<set_> There was a gap I missed in you all, whomever really, doing things.
<zmatt> ??
<set_> Programming pwm w/ slots, using DT, and config-pin, and then, .dtbo files is a thing.
<zmatt> none of those things "program pwm"
<set_> What exactly programs a PWM chip on the BBBW?
<set_> I thought I could do it w/ pwm.h and a set of .c file(s).
<zmatt> controlling pwm interfaces is done via the sysfs interface, on all linux systems (not BBB-specific).
<set_> Fine. Fine.
<set_> I will keep trying.
<zmatt> the convenience symlinks in /dev/pwm/ are beaglebone-specific, created using an udev rule
<set_> Aw.
<set_> Okay.
<set_> I was unaware of that fact.
<zmatt> (they're just symlinks into sysfs with a stable name, to avoid relying on unstable pwm device numbering)
<set_> I thought that was a normalcy that I could not find elsewhere.
<set_> Okay.
<set_> Understood.
<set_> So, the symlink static/dynamic/whatever is done by some local ideas from the .org. Okay.
<set_> This is good to know.
<zmatt> e.g. on a fresh buster image: https://pastebin.com/4FLay0re
<set_> The only reason I say that is b/c I could not find how in the %&$^ to program a pwmchip on the BBBW these days (anywhere).
<zmatt> "these days" => nothing has changed.
<set_> Now, I know.
<set_> I thought this gap I was speaking of earlier was my lack of seeing/reading the change. It is just a lapse in my judgement.
nparafe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
nparafe has joined #beagle
<set_> So, me reading the pwm.h and pwm in the kernel is nothing to me...this is hard for me to say.
nparafe has quit [Client Quit]
<set_> Done. I said it.
<zmatt> there's no header file for pwm relevant to userspace use of pwm
<zmatt> you just write numbers to sysfs attributes
<set_> Hmm. Okay.
nparafe has joined #beagle
<set_> Well anyway, I was mistaken as usual.
<zmatt> not sure what header you're even talking about, there is no pwm.h anywhere in /usr/include/ as far as I can tell
<set_> How can we describe or find the relevant info. in my system w/ the /dev/pwm/ instance not being there currently?
<set_> I will show you.
<zmatt> use a system that's not broken?
<set_> ha.
<set_> I just installed this system.
<set_> It updates, upgrades, and works. I can even use the beaglecfg command.
<set_> And beagle-version to help w/ buggering.
<zmatt> well if /dev/pwm/ doesn't show up then evidently not everything works as it's supposed to
<set_> Right. But...aw.
<zmatt> anyway, afk
<set_> There is no way I have screwed up the /dev/pwm/ instances on my board by trying to write to pwm, right?
<set_> Okay.
<set_> w/ the cape attached and the .dtbo?
<set_> Oops.
<set_> Maybe it was me again.
<set_> Okay. I was trying to write to the LED on the Cape via /sys/class/pwm/pwmchipN/pwmN.
<set_> I most likely done it in good.
ikarso has joined #beagle
xet7 has quit [Ping timeout: 268 seconds]
russell-- has quit [Ping timeout: 268 seconds]
russell-- has joined #beagle
xet7 has joined #beagle
PhotoJim has quit [Ping timeout: 250 seconds]
PhotoJim has joined #beagle
thinkfat_ has joined #beagle
thinkfat has quit [Ping timeout: 260 seconds]
PhotoJim has quit [Ping timeout: 250 seconds]
PhotoJim has joined #beagle
starblue1 has quit [Read error: Connection reset by peer]
starblue1 has joined #beagle
kremlin1 is now known as kremlin
vagrantc has quit [Quit: leaving]
ikarso has quit [Quit: Connection closed for inactivity]
buzzmarshall has quit [Quit: Konversation terminated!]
Morshing has joined #beagle
set_ has quit [Ping timeout: 256 seconds]
waldo323 has quit [Remote host closed the connection]
waldo323 has joined #beagle
rob_w has joined #beagle
ikarso has joined #beagle
florian has joined #beagle
Guest75 has joined #beagle
Guest75 has quit [Client Quit]
Guest75 has joined #beagle
Guest75 has quit [Client Quit]
Shadyman has quit [Quit: Leaving.]
Guest58 has joined #beagle
Guest58 has quit [Client Quit]
_whitelogger has joined #beagle
kveremitz has joined #beagle
rob_w has quit [Ping timeout: 256 seconds]
russ has quit [Ping timeout: 256 seconds]
PhotoJim has joined #beagle
GenTooMan has joined #beagle
rob_w has joined #beagle
russ has joined #beagle
shoragan has quit [Ping timeout: 250 seconds]
rob_w has quit [Ping timeout: 256 seconds]
russ has quit [Ping timeout: 256 seconds]
russ has joined #beagle
shoragan has joined #beagle
rob_w has joined #beagle
starblue1 has quit [Ping timeout: 268 seconds]
starblue1 has joined #beagle
shoragan[m] has joined #beagle
jduchniewicz has joined #beagle
mvaittin has joined #beagle
suy|m has joined #beagle
shoragan[m] has quit [Read error: Connection reset by peer]
mvaittin has quit [Remote host closed the connection]
suy|m has quit [Remote host closed the connection]
jduchniewicz has quit [Remote host closed the connection]
shoragan[m] has joined #beagle
mvaittin has joined #beagle
jduchniewicz has joined #beagle
mvaittin has quit [Remote host closed the connection]
jduchniewicz has quit [Remote host closed the connection]
shoragan[m] has quit [Remote host closed the connection]
shoragan[m] has joined #beagle
mvaittin has joined #beagle
jduchniewicz has joined #beagle
suy|m has joined #beagle
shoragan[m] has quit [Quit: Client limit exceeded: 20000]
mvaittin has quit [Quit: Client limit exceeded: 20000]
jduchniewicz has quit [Quit: Client limit exceeded: 20000]
suy|m has quit [Quit: Client limit exceeded: 20000]
buzzmarshall has joined #beagle
rob_w has quit [Remote host closed the connection]
florian has quit [Quit: Ex-Chat]
Posterdati has quit [Ping timeout: 268 seconds]
hnv has quit [Quit: Client closed]
ikarso has quit [Quit: Connection closed for inactivity]
Posterdati has joined #beagle
hnv has joined #beagle
otisolsen70 has joined #beagle
otisolsen70_ has joined #beagle
otisolsen70 has quit [Ping timeout: 250 seconds]
otisolsen70_ has quit [Quit: Leaving]
hnv has quit [Quit: Client closed]
hnv has joined #beagle
otisolsen70 has joined #beagle
waldo323__ has joined #beagle
waldo323_ has quit [Ping timeout: 256 seconds]
otisolsen70_ has joined #beagle
otisolsen70 has quit [Ping timeout: 256 seconds]
otisolsen70__ has joined #beagle
otisolsen70_ has quit [Ping timeout: 252 seconds]
otisolsen70 has joined #beagle
otisolsen70__ has quit [Ping timeout: 256 seconds]
otisolsen70_ has joined #beagle
otisolsen70 has quit [Ping timeout: 250 seconds]
otisolsen70 has joined #beagle
otisolsen70_ has quit [Ping timeout: 256 seconds]
vagrantc has joined #beagle
vagrantc has quit [Client Quit]
otisolsen70_ has joined #beagle
otisolsen70 has quit [Ping timeout: 245 seconds]
otisolsen70__ has joined #beagle
otisolsen70_ has quit [Ping timeout: 256 seconds]
otisolsen70__ has quit [Remote host closed the connection]
zjason``` has joined #beagle
Morshing has quit [Ping timeout: 268 seconds]
zjason`` has quit [Ping timeout: 268 seconds]
otisolsen70 has joined #beagle
otisolsen70 has quit [Quit: Leaving]
Posterdati has quit [Ping timeout: 256 seconds]
Posterdati has joined #beagle
set_ has joined #beagle
jfsimon1981 has quit [Read error: Connection reset by peer]
jfsimon1981 has joined #beagle