00:00
vagrantc has quit [Quit: leaving]
00:00
<
set_ >
Okay. Wrong board.
00:00
vagrantc has joined #beagle
00:01
<
set_ >
brb. I am setting up something to compare, if you will, b/t two, separate boards and the kernels on the boards.
00:04
ikarso has quit [Quit: Connection closed for inactivity]
00:10
<
zmatt >
either the pin is in use by the cape or cape-universal isn't working with that particular kernel and u-boot.
00:10
<
zmatt >
also, this isn't a permission error like you claimed earlier
00:12
<
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.
00:13
<
set_ >
Is that still possible?
00:13
<
zmatt >
nothing about that has changed as far as I know
00:13
<
set_ >
Hmm. Let me take the Cape off real quickly and get right back.
00:14
<
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
00:14
<
zmatt >
(which also means the numbering depends on which pwm devices are enabled in DT)
00:15
<
set_ >
Oh. Okay. Hmm.
00:16
<
set_ >
Let me boot this image real quickly.
00:16
<
set_ >
It is the same one w/ the MotorCape from before but w/ the Cape off.
00:18
<
set_ >
ERROR: open() for /sys/devices/platform/ocp/ocp:P9_14_pinmux/state failed, No such file or directory
00:18
<
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.
00:19
<
set_ >
But okay about the accessing of it, this pwm instance on the BBBW, at /dev/pwm/
00:19
<
zmatt >
those two things are unrelated... config-pin is to configure the pin
00:19
<
set_ >
-bash: cd: /dev/pwm: No such file or directory
00:20
<
zmatt >
what image are you using?
00:20
<
set_ >
I got the darn .dtbo installed right now.
00:20
<
set_ >
Let me reboot this thing. I will get the image before I reboot.
00:21
<
set_ >
BeagleBoard.org Debian Bullseye IoT Image 2021-12-23
00:22
<
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
00:23
<
set_ >
Okay. No issue. I just wanted to make sure that if things done got mangled, I could then demangle it.
00:24
<
zmatt >
I have little confidence in you demangling anything, heh
00:24
<
zmatt >
mangling? sure. demangling? nah
00:24
<
set_ >
Okay. So, p9.14 is again working w/ pwm after the .dtbo is gone and the Cape is off on this BBBW.
00:24
<
set_ >
Let me check /dev/pwm/
00:25
<
set_ >
-bash: cd: /dev/pwm: No such file or directory
00:26
<
set_ >
What happened to all the low level c programming for the pwm instances on the BBB,W,lue,G,GW,GG,AI?
00:27
<
set_ >
I can finally do a little and I am stuck w/ config-pin and not knowing squat.
00:27
<
zmatt >
the pwm interface has not changed... like, ever.
00:28
<
zmatt >
config-pin has nothing to do with the pwm interface
00:28
<
zmatt >
config-pin is used to configure pins
00:28
<
zmatt >
as the name implies
00:28
<
set_ >
I see in the current kernel, they are doing things a bit differently. At least, I thought.
00:29
<
zmatt >
sounds unlikely
00:29
<
set_ >
It was a beagleboard.org thing w/ the pwm instances on the boards?
00:29
<
set_ >
I am trying to understand the gap.
00:29
<
zmatt >
dunno what you mean by that
00:30
<
set_ >
There was a gap I missed in you all, whomever really, doing things.
00:30
<
set_ >
Programming pwm w/ slots, using DT, and config-pin, and then, .dtbo files is a thing.
00:30
<
zmatt >
none of those things "program pwm"
00:31
<
set_ >
What exactly programs a PWM chip on the BBBW?
00:31
<
set_ >
I thought I could do it w/ pwm.h and a set of .c file(s).
00:31
<
zmatt >
controlling pwm interfaces is done via the sysfs interface, on all linux systems (not BBB-specific).
00:32
<
set_ >
I will keep trying.
00:32
<
zmatt >
the convenience symlinks in /dev/pwm/ are beaglebone-specific, created using an udev rule
00:32
<
set_ >
I was unaware of that fact.
00:32
<
zmatt >
(they're just symlinks into sysfs with a stable name, to avoid relying on unstable pwm device numbering)
00:32
<
set_ >
I thought that was a normalcy that I could not find elsewhere.
00:33
<
set_ >
So, the symlink static/dynamic/whatever is done by some local ideas from the .org. Okay.
00:33
<
set_ >
This is good to know.
00:34
<
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).
00:34
<
zmatt >
"these days" => nothing has changed.
00:34
<
set_ >
Now, I know.
00:35
<
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.
00:36
nparafe has joined #beagle
00:36
<
set_ >
So, me reading the pwm.h and pwm in the kernel is nothing to me...this is hard for me to say.
00:37
nparafe has quit [Client Quit]
00:37
<
set_ >
Done. I said it.
00:37
<
zmatt >
there's no header file for pwm relevant to userspace use of pwm
00:37
<
zmatt >
you just write numbers to sysfs attributes
00:37
nparafe has joined #beagle
00:37
<
set_ >
Well anyway, I was mistaken as usual.
00:38
<
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
00:38
<
set_ >
How can we describe or find the relevant info. in my system w/ the /dev/pwm/ instance not being there currently?
00:38
<
set_ >
I will show you.
00:38
<
zmatt >
use a system that's not broken?
00:39
<
set_ >
I just installed this system.
00:39
<
set_ >
It updates, upgrades, and works. I can even use the beaglecfg command.
00:39
<
set_ >
And beagle-version to help w/ buggering.
00:40
<
zmatt >
well if /dev/pwm/ doesn't show up then evidently not everything works as it's supposed to
00:40
<
set_ >
Right. But...aw.
00:40
<
zmatt >
anyway, afk
00:40
<
set_ >
There is no way I have screwed up the /dev/pwm/ instances on my board by trying to write to pwm, right?
00:40
<
set_ >
w/ the cape attached and the .dtbo?
00:41
<
set_ >
Maybe it was me again.
00:49
<
set_ >
Okay. I was trying to write to the LED on the Cape via /sys/class/pwm/pwmchipN/pwmN.
00:49
<
set_ >
I most likely done it in good.
00:49
ikarso has joined #beagle
01:20
xet7 has quit [Ping timeout: 268 seconds]
01:20
russell-- has quit [Ping timeout: 268 seconds]
01:20
russell-- has joined #beagle
01:22
xet7 has joined #beagle
01:23
PhotoJim has quit [Ping timeout: 250 seconds]
01:23
PhotoJim has joined #beagle
02:27
thinkfat_ has joined #beagle
02:28
thinkfat has quit [Ping timeout: 260 seconds]
02:34
PhotoJim has quit [Ping timeout: 250 seconds]
02:35
PhotoJim has joined #beagle
02:47
starblue1 has quit [Read error: Connection reset by peer]
02:52
starblue1 has joined #beagle
02:56
kremlin1 is now known as kremlin
02:57
vagrantc has quit [Quit: leaving]
03:19
ikarso has quit [Quit: Connection closed for inactivity]
03:55
buzzmarshall has quit [Quit: Konversation terminated!]
06:24
Morshing has joined #beagle
06:25
set_ has quit [Ping timeout: 256 seconds]
06:35
waldo323 has quit [Remote host closed the connection]
06:36
waldo323 has joined #beagle
07:07
rob_w has joined #beagle
08:28
ikarso has joined #beagle
09:09
florian has joined #beagle
09:41
Guest75 has joined #beagle
09:43
Guest75 has quit [Client Quit]
09:48
Guest75 has joined #beagle
09:49
Guest75 has quit [Client Quit]
09:51
Shadyman has quit [Quit: Leaving.]
10:00
Guest58 has joined #beagle
10:02
Guest58 has quit [Client Quit]
10:13
_whitelogger has joined #beagle
10:16
kveremitz has joined #beagle
10:16
rob_w has quit [Ping timeout: 256 seconds]
10:16
russ has quit [Ping timeout: 256 seconds]
10:19
PhotoJim has joined #beagle
10:25
GenTooMan has joined #beagle
10:28
rob_w has joined #beagle
10:29
russ has joined #beagle
10:47
shoragan has quit [Ping timeout: 250 seconds]
10:51
rob_w has quit [Ping timeout: 256 seconds]
10:51
russ has quit [Ping timeout: 256 seconds]
10:51
russ has joined #beagle
10:51
shoragan has joined #beagle
10:53
rob_w has joined #beagle
11:07
starblue1 has quit [Ping timeout: 268 seconds]
11:09
starblue1 has joined #beagle
11:40
shoragan[m] has joined #beagle
11:42
jduchniewicz has joined #beagle
11:42
mvaittin has joined #beagle
11:43
suy|m has joined #beagle
11:47
shoragan[m] has quit [Read error: Connection reset by peer]
11:47
mvaittin has quit [Remote host closed the connection]
11:47
suy|m has quit [Remote host closed the connection]
11:47
jduchniewicz has quit [Remote host closed the connection]
11:59
shoragan[m] has joined #beagle
12:02
mvaittin has joined #beagle
12:02
jduchniewicz has joined #beagle
12:02
mvaittin has quit [Remote host closed the connection]
12:02
jduchniewicz has quit [Remote host closed the connection]
12:02
shoragan[m] has quit [Remote host closed the connection]
12:07
shoragan[m] has joined #beagle
12:10
mvaittin has joined #beagle
12:10
jduchniewicz has joined #beagle
12:10
suy|m has joined #beagle
12:33
shoragan[m] has quit [Quit: Client limit exceeded: 20000]
12:34
mvaittin has quit [Quit: Client limit exceeded: 20000]
12:34
jduchniewicz has quit [Quit: Client limit exceeded: 20000]
12:40
suy|m has quit [Quit: Client limit exceeded: 20000]
13:19
buzzmarshall has joined #beagle
15:18
rob_w has quit [Remote host closed the connection]
15:42
florian has quit [Quit: Ex-Chat]
15:42
Posterdati has quit [Ping timeout: 268 seconds]
15:45
hnv has quit [Quit: Client closed]
15:54
ikarso has quit [Quit: Connection closed for inactivity]
15:55
Posterdati has joined #beagle
16:16
hnv has joined #beagle
16:41
otisolsen70 has joined #beagle
16:43
otisolsen70_ has joined #beagle
16:47
otisolsen70 has quit [Ping timeout: 250 seconds]
16:49
otisolsen70_ has quit [Quit: Leaving]
17:00
hnv has quit [Quit: Client closed]
17:00
hnv has joined #beagle
17:01
otisolsen70 has joined #beagle
17:02
waldo323__ has joined #beagle
17:05
waldo323_ has quit [Ping timeout: 256 seconds]
17:34
otisolsen70_ has joined #beagle
17:39
otisolsen70 has quit [Ping timeout: 256 seconds]
18:30
otisolsen70__ has joined #beagle
18:35
otisolsen70_ has quit [Ping timeout: 252 seconds]
18:52
otisolsen70 has joined #beagle
18:55
otisolsen70__ has quit [Ping timeout: 256 seconds]
19:00
otisolsen70_ has joined #beagle
19:04
otisolsen70 has quit [Ping timeout: 250 seconds]
19:05
otisolsen70 has joined #beagle
19:09
otisolsen70_ has quit [Ping timeout: 256 seconds]
19:14
vagrantc has joined #beagle
19:14
vagrantc has quit [Client Quit]
19:16
otisolsen70_ has joined #beagle
19:19
otisolsen70 has quit [Ping timeout: 245 seconds]
20:02
otisolsen70__ has joined #beagle
20:06
otisolsen70_ has quit [Ping timeout: 256 seconds]
20:12
otisolsen70__ has quit [Remote host closed the connection]
20:39
zjason``` has joined #beagle
20:39
Morshing has quit [Ping timeout: 268 seconds]
20:41
zjason`` has quit [Ping timeout: 268 seconds]
21:13
otisolsen70 has joined #beagle
22:01
otisolsen70 has quit [Quit: Leaving]
22:10
Posterdati has quit [Ping timeout: 256 seconds]
22:23
Posterdati has joined #beagle
23:00
set_ has joined #beagle
23:14
jfsimon1981 has quit [Read error: Connection reset by peer]
23:14
jfsimon1981 has joined #beagle