**** BEGIN LOGGING AT Mon Mar 21 02:59:57 2022 Mar 21 08:57:17 I got it! Mar 21 08:57:35 No overlay and pure C w/ the RelayCape! Mar 21 08:57:47 Phew and I was thinking it could not be done! Mar 21 09:05:36 * set_ finally can write a first driver! Mar 21 09:06:07 It is just gpio but it is a start... Mar 21 09:08:36 This poor switch never had it so good. Mar 21 09:35:15 Does anyone know how to write driver for libgpiod w/ the RelayCape and BBBW? Mar 21 09:35:50 Here are my thoughts, https://pastebin.com/8VZqTmcp, but it is not catching the GPIO line for flashing the LED. Mar 21 09:37:11 See, my LEDs/GPIOs are listed as relay-jp3 under /dev/gpio/relay-jp3 but work w/ gpioinfo. Mar 21 09:37:24 So, there is hope. Mar 21 09:50:25 Maybe b/c I am using cmake instead of native gcc? Mar 21 09:54:11 So, it seems cmake does not catch my errors w/ ld. See: https://pastebin.com/YavbTMn2 Mar 21 10:24:52 I am trying to link the lib. w/ my source. This is where the lib. is located for libgpiod.* /usr/bin/lib . Mar 21 10:25:11 It is not easy being sleezy! Mar 21 10:48:51 Whoooo! Mar 21 10:49:04 Forget my issues. I figured it out. Mar 21 10:53:10 Early mornin' BBBW and RelayCape! Mar 21 11:07:48 Whelp. I broke it already. Blah. Mar 21 11:22:29 I am back! Mar 21 21:37:34 @zmatt: I replied. Thank you, that is nifty and neat. I like the way it does not show in the main screen. Like we are cohorts! Mar 21 21:37:37 ha. Mar 21 21:38:39 I even received a thing in my box. Mar 21 21:44:50 Anyway, I really, b/c this is just chat, know nothing about you and it is nice for now. Do not cross that line. Brother! Mar 21 21:44:51 Ha. Mar 21 21:45:19 All jokes aside, did you look yet? Mar 21 22:33:22 @zmatt: Wake up! Mar 21 23:55:10 set_: just reply here, I rarely pay attention to the forum, I'm always here Mar 21 23:55:22 Oh. Okay, Mar 21 23:55:26 comma. Mar 21 23:55:28 Ha. Mar 21 23:56:05 Here are some ideas: https://github.com/silver2row/BBBW_RELAYCAPE Mar 21 23:56:40 I did a little research and found some ideas and incorporated them into the bbb.io realm of am335x and beagleboard.org board(s). Mar 21 23:56:41 why are you using libgpiod? Mar 21 23:56:52 To test things. The more, the merrier. Mar 21 23:57:16 and why on earth are you building it from source? Mar 21 23:57:22 I think it is plastered to the new kernels already. Mar 21 23:57:23 Ha. Mar 21 23:57:24 Oh. Mar 21 23:57:31 and using a 5.x kernel Mar 21 23:57:42 and a bullseye image Mar 21 23:57:56 That...yes sir-re-bob is me trying to promote findings. Mar 21 23:58:04 like, this is four mistakes to make on a single page :P Mar 21 23:58:09 Ha. Mar 21 23:58:26 I know what you think. You think I cannot handle being smart. Mar 21 23:58:27 Ha. Mar 21 23:58:36 You are right. Mar 21 23:58:49 I cannot handle it but I am stuck b/c I am me. Mar 21 23:59:21 So, most likely in any case, I will be promoting findings via research and other tools. Mar 21 23:59:22 I think gpiod is a mistake and sysfs gpio should be considered preferable under almost all circumstanves Mar 21 23:59:49 You know more of both the different types of filesystems within the kernel. Mar 21 23:59:51 I know. Mar 22 00:00:01 But... Mar 22 00:00:34 I like to try to keep up w/ old traditional ways and new, "fascinating" trends that may in turn circumvent itself. Mar 22 00:00:53 Cyclic! Like loops. Mar 22 00:01:14 ??? Mar 22 00:01:27 I want to stick around and with the least friction possible. Mar 22 00:01:48 set_: you keep doing weird shit, and then end up complaining/asking here because unsurprisingly stuff isn't working because you keep doing weird shit Mar 22 00:01:55 So, if beagleboard.org does not want to have me boasting and bragging about random findings. This is okay. Mar 22 00:01:56 and in doing so, waste other people's time Mar 22 00:02:38 It is not so weird to try new ventures so I am told. Mar 22 00:02:59 why does your even readme mention gpiod? your code doesn't actually use it (obviously, since it doesn't work) Mar 22 00:03:14 Oh. Mar 22 00:03:19 Is it broken already? Mar 22 00:03:22 Dang it. Mar 22 00:03:27 it's incompatible with declaring gpios in DT Mar 22 00:03:50 I am seeing the LED light up and the BBBW and RelayCape work in tandem. Mar 22 00:04:13 On/Off. Mar 22 00:04:21 Until I quit the program. Mar 22 00:04:37 Were you sent by NY city to make me quit? Mar 22 00:04:57 The entire city wants set_ to quit. I knew it. Mar 22 00:05:34 Everyone, everywhere. This is not fair. If I need to dumb things down to not tarheel people, so be it. Mar 22 00:05:56 I can slow things into a fashion. Mar 22 00:06:43 actually, I misspoke... gpiod *shouldn't* work, but rcn hacked the kernel to make gpiod ignore the fact that the gpio is already in use, which means that using gpiod will end up stealing the gpio from the sysfs interface Mar 22 00:08:15 (and upon release also leaves the gpio in high-impedance mode even if DT configured it to be output-only) Mar 22 00:08:53 gpiod just sucks, it's worse than sysfs-gpio in almost every way possible Mar 22 00:09:57 Oh. Mar 22 00:10:13 I knew you knew of ideas relating to GPIO more than I. Mar 22 00:10:42 I am not discussing your knowledge of embedded systems and the am335x over my knowledge here. Mar 22 00:12:14 I just like trying "weird shit" here and trying to better my knowledge surrounding embedded systems in general. I picked you guys and gals b/c of the TI relationship. Mar 22 00:12:28 I always wanted to learn more. Mar 22 00:12:45 People are in my way. I have to break. brb! Mar 22 00:13:40 I will research the difficulties of high-impedance since my notes due to the blog are dead. Mar 22 00:15:11 Gone pecan! Mar 22 00:19:22 I made a long post about impedance and MOSFETs but it got shafted and beat. I had to erase everything over anger towards the blogger site. They should allow for specific math entries to be made willy-nilly. Mar 22 00:22:04 Good != anger && blogging != math entries < peace of mind Mar 22 00:22:20 But...the show must go on. Mar 22 00:22:44 @zmatt: Why are you scolding me over this libgpiod and sysfs stuff? Did I make an error? Mar 22 00:27:13 Did I try something confounded? Mar 22 01:40:57 @zmatt: Are we done w/ this altercation or do I have to dread doing "well?" Mar 22 01:42:08 I can make things more complicated if necessary and do other things to avoid pitfalls in Eye Sight. Mar 22 01:43:11 Like, for instance, I can run things by you so you can say nay. Understudy type hoopla. And then, I will just give! Mar 22 01:43:55 The pathlib thing was a bit silly. Okay. Mar 22 01:44:37 I can update things with tons of ideas and add other, harder-to-decipher source if necessary. Mar 22 01:44:41 I am sorry! Sheesh. Mar 22 01:44:53 I got excited. Mar 22 01:44:59 It blew me away. Mar 22 01:46:05 The idea that I, set_, could finally fix things where things would work "blew me away." Mar 22 01:47:18 I was overwhelmed and exacerbating things by vidily giving away simple source to run am335x w/ RelayCape and dually noted, w/out a guiding hand or overseer. Mar 22 01:47:30 There. Mar 22 01:48:11 Orders, orders. I know what is right. Orders, orders. Mar 22 01:49:01 Fine. Mar 22 01:49:20 i will try something out-of-the-ordinary and see how far things go w/ a working system. Mar 22 01:53:21 I am cowering here and trying to be kind to get viewpoints on my actions. So? Mar 22 02:00:11 Forget it. Blah. Mar 22 02:16:33 Okay. WIP on the pathlib source. enjoy. Mar 22 02:16:45 anything else? Mar 22 02:53:50 Okay, I understand now. Please forgive me. **** ENDING LOGGING AT Tue Mar 22 02:59:56 2022