**** BEGIN LOGGING AT Tue Dec 22 03:00:27 2020 Dec 22 03:00:27 mattb0000ne: Are you still wanting to learn more? I suggest we compare articles, no? Dec 22 03:01:40 https://ww1.microchip.com/downloads/en/DeviceDoc/AR1020-AR1021-LINUX-SPI-I2C-V102.pdf is what you need to know if you want your Cape to work, i.e. outside of the BBAI caveats. Dec 22 03:04:11 Okay, from what I am reading, this is where I can come in handy (I guess), we need to cross-compile this source "arch/arm/mach-s3c6410/mach-smdk6410.c" but we will most likely need to change it some. Dec 22 03:04:22 There is no way it is 100% acurate. Dec 22 03:05:00 Hello? Dec 22 03:05:27 I am staying patient now to wait for more communication. Dec 22 03:14:24 mattb0000ne I believe the driver is for multiple screens, does it use the I2C bus for identification and IO allocation? Dec 22 03:19:26 SPI or I2C and I think it can use UART too. Dec 22 03:19:46 Blah! Dec 22 03:19:55 I think he thinks we are mad at him. Dec 22 03:20:56 Hopefully, he looks at the https://ww1.microchip.com/downloads PDF for sake's sake. Dec 22 03:21:20 That was not supposed to be a hyperlink. Dec 22 03:22:36 Anyway, it would be a neat project to make work. I got the cape. I do not have the darn display though. Dec 22 03:23:15 Those tiny wires in ribbon format are beyond me. Neat package, well kept, and tidy! Dec 22 03:25:44 five wires? No way. Dec 22 03:26:11 For i2c, five wires is all it is saying so far for communication. Dec 22 03:28:27 no he probably is AFK Away From Keyboard Dec 22 03:28:35 What section is he on? Dec 22 03:28:43 Same page may work better. Dec 22 03:29:19 I see a bunch of ideas for SPI too. Dec 22 03:29:41 but...there was something about kconfig. Is that a thing w/ the BBB? Dec 22 03:31:04 The MicroChip link I sent in for the PDF is only pages. I think he has it covered. Dec 22 03:31:24 26 pages. Dec 22 03:31:32 Ubuntu hates my expanded keyboard. Dec 22 03:31:42 I have no idea but he's not here at this time Dec 22 03:32:07 GenTooMan: What the hell, man? Dec 22 03:32:27 Sir, I thought we were rallying for the Cape ideas? Dec 22 03:33:39 i2c is not visited on the AI like it is on the BBB. I do not think that the i2c peripherals are even located near one another. Dec 22 03:36:09 "HOLDING" Dec 22 03:36:11 Ha. Dec 22 03:37:00 GenTooMan: Do you really hate giving out flashcards as much as I think you do? Dec 22 03:37:10 for me, for me? Dec 22 03:41:41 the I2c bus is used to configure the BBB io to support the LCD likely shutting off the HDMI driver and setting up the other IO to operate. Dec 22 03:44:23 Oh. Dec 22 03:44:34 See. I was unaware of that factoid. Dec 22 03:45:05 I have no idea how to do that stuff. Dec 22 03:45:33 It is like a switch or source defined? Dec 22 03:45:57 normally you don't Dec 22 03:46:15 the BBB sets things up for you that's part of the use of the i2c devices on capes Dec 22 03:46:27 Right. Right. Dec 22 03:46:39 But, there is another i2c device. Dec 22 03:46:52 I think three actually. Dec 22 03:46:56 however I believe mattb0000ne removed the driver for all LCD connected to the bus. Dec 22 03:47:06 Hmm? Dec 22 03:47:13 What do you mean? Dec 22 03:47:20 when likely he needed to look for the hook to set the display output for the device connected. Dec 22 03:47:33 Barrg. Dec 22 03:47:41 he removed a driver, which is likely for a bus connected LCD (like he was using). Dec 22 03:47:51 Oh. Dec 22 03:47:57 That is stressful. Dec 22 03:48:10 no it's learning! you can't learn by making mistakes. Dec 22 03:48:17 So, one of the drivers onboard the Ha. Dec 22 03:48:24 err you can't learn without making mistakes Dec 22 03:48:28 :D Dec 22 03:48:28 Ha. Dec 22 03:48:43 Hey. So, one of the drivers onboard the actual Cape was removed? Dec 22 03:49:19 Smiles, smiles. Dec 22 03:49:22 I believe that's what he did, when what he likely needed was a way to make sure that the LCD information was being relayed to the driver for the LCD Dec 22 03:49:44 Oh. b/c it was looped to other drivers? Dec 22 03:50:07 that's when having console access is helpful dmsg is handy to see what is happening on startup. Dec 22 03:50:29 I just do not get it. What about that link I showed? Did the kconfig not work? Dec 22 03:50:51 and the cross-compile w/ changes for the board in question, AI? Dec 22 03:51:14 honestly we have no idea what it did because we don't have the dmsg information. that tells you what the kernel thinks it has and what it intends to do with it. Dec 22 03:51:27 I mean, there are enough peripherals onboard the AI to...oh. Dec 22 03:51:33 Okay. Dec 22 03:52:17 So, even w/ a TTL to USB cable, no go? Dec 22 03:52:28 Oh. AI. Cape. Got it. Dec 22 03:53:00 What about that TTL to USB cable for the three pin adapter? Dec 22 03:53:41 Would there still be no way to get info. from the Cape from the AI? Dec 22 03:54:50 Blindly in the dark or purchase a new one? Dec 22 03:55:01 Or add the driver back on? Dec 22 03:56:20 So, one driver becomes missing, the kernel now does not have a way to compute what is happening on the Cape, and the AI is held useless? Dec 22 03:56:50 I suspect it just can't configure the LCD. Dec 22 03:56:56 I guess. Dec 22 03:57:06 IE the driver starts by configuring the registers for driving the LCD Dec 22 03:57:29 He could always get a fanatic to attach the driver back on! Dec 22 03:57:55 it gets the information how to set up the data bus and signals from an I2C device, however if it didn't "just work" to start with ... Dec 22 03:58:05 Is the AI IO still a mess? Dec 22 03:58:16 I do not know that answer. Dec 22 03:58:23 Probably. Dec 22 03:58:57 I remember zmatt saying that things weren't great in that respect, so the issue may have nothing to do with the LCD but the basic stuff written for the AI is not complete. Dec 22 03:59:31 Why in the Sam Keniston did no one say, "No, do not do that right now. Hold out." Dec 22 04:00:28 "No, do not remove the driver from the Cape!" Dec 22 04:01:41 I mean, I understand a rig but how is one driver being removed supposed to clear up a device issue? Dec 22 04:02:00 It was a short in the dark? Dec 22 04:02:03 Ha! Dec 22 04:02:50 I really wanted to compile and do some diggin'. Dec 22 04:02:54 Oh well. Dec 22 04:03:55 "Probing will commence in five seconds." Dec 22 04:03:56 Ha. Dec 22 04:04:33 Oh well. 10:00 again, GenTooMan... Dec 22 04:04:41 Sheesh. Dec 22 04:05:02 That was stressful for me. I feel bad for mattb0000ne. Dec 22 04:05:43 Do it! Do not do it! Why did you do it? Dec 22 04:05:45 Argh! Dec 22 04:06:11 When someone told me to ruin my Cape, I said, "Nope!" Dec 22 04:06:31 After throwing one thing out, I realized the parts are all interconnected! Dec 22 04:06:49 Who knows? That part may come back to haunt me in my PJs. Dec 22 04:06:52 Over and out! Dec 22 04:15:30 * GenTooMan decides getting to bed on time is good. So LO that means you are 1 hour behind me. Dec 22 06:38:16 Hello Folks! Saketh here.(after a very long time) Dec 22 06:38:49 I would like to confirm if it's okay to travel with beagle boards in cabin baggage while on flights Dec 22 06:39:06 I do so all the time. Dec 22 06:39:33 no different than traveling with a powered down phone. Dec 22 06:40:26 Thank you. Dec 22 07:34:23 jkridner[m]: no, it's far less problematic than traveling with a phone, since a phone contains a li-ion battery :P Dec 22 08:15:27 Haha Dec 22 09:56:04 @zmatt: I compiled and installed kernel 4.19.94-4.14-rt+, but I am still getting the same error. I enabled the driver, and fixed the dtsi interrupts. Is this a supported kernel, as you were saying last week? Dec 22 09:57:17 uhh that's not a validly formatted version number, you probably copy-pasted that wrong Dec 22 09:57:50 that's what 'uname -r' gives me Dec 22 09:57:50 and I don't actually remember what your issue was :P Dec 22 09:58:08 that makes no sense, what on earth did you install? Dec 22 09:58:55 oh, it gives me "tps65217 0-0024: Failed to read IRQ status: -13" when I try to use the charger driver to tell me the USB was unplugged/plugged in when its asleep "echo mem > /sys/power/state". Dec 22 09:59:09 oh right, that weirdness Dec 22 09:59:35 what do you mean by "enabled the driver, and fixed the dtsi interrupts" ? Dec 22 09:59:50 and what kernel did you install? Dec 22 10:00:00 enabled the driver means, setting to "=m" in the kernel config Dec 22 10:00:05 which driver? Dec 22 10:00:23 tps65217-charger Dec 22 10:01:14 oh it's not compiled-in by default... weird, ok Dec 22 10:01:48 kernel is branch 4.19-rt from https://github.com/beagleboard/linux.git Dec 22 10:02:34 I have no idea what that will get you.. and why -rt ? and if you want to customize the kernel, use the kernel build repo which automates the whole process of building the .deb for you Dec 22 10:02:53 https://pastebin.com/eLhrp1Hg my notes on customizing a beaglebone kernel Dec 22 10:03:16 you'll want to use the repo for -ti kernel series and select branch ti-linux-4.19.y Dec 22 10:03:40 ah that is helpful Dec 22 10:03:46 what is -rt for? Dec 22 10:04:55 it's built with preempt_rt, see rt.wiki.kernel.org Dec 22 10:05:30 unless you explicitly need it I'd recommend against it Dec 22 10:06:20 since unless you're purposefully making use of it, it'll just be a less efficient and probably buggier kernel Dec 22 10:06:28 I'll have to check if we explicitly need it, not entirely sure Dec 22 10:08:03 are you already using realtime scheduling and performance analysis showed that peak latency is too high? Dec 22 10:11:59 no Dec 22 10:12:38 well then that answers your question ;P Dec 22 10:12:45 :) Dec 22 12:08:33 can anyone help me getting familiar to the platform Dec 22 15:20:12 m Dec 22 16:56:04 is the kernel using gpio driver for any essential function? Dec 22 16:56:07 in the base bbb image? Dec 22 16:56:24 or systemd Dec 22 21:57:35 GenTooMan: I think I got the source to account for stoppage times but it is backwards for now. So, it runs until the stop halts execution but then it starts the source from the beginning. Boo! Dec 22 21:58:37 So, if I am three inches to the left on the slide when the interrupt happens, it starts the source from that point forward in the while loop. Dec 22 21:59:30 Source runs >>> the interrupt happens b/c of the extent of the slide >>> the program starts from scratch Dec 22 21:59:51 So, I need to account for the transition from the interrupt. Dec 22 22:01:45 So, would it be a nested loop that accounts for this transition? Dec 22 22:03:28 So, through the script >>> interrupt >>> starts where it left off? That is not easy w/out some idea that I do not currently have now. Dec 22 22:37:44 So, I make a .py file w/ a function and call that function when I need to start from scratch after the interrupt. Okay. I think I am moving toward something. Dec 22 22:40:21 any docs on the current state of BBB GPU? Dec 22 22:52:13 ayjay_t: I did not find that section on the TRM. Is that an added component? Dec 22 22:54:56 I am looking through the SRM, too. Dec 22 22:56:36 Anyway, I will keep looking. For me and my knowledge as of now, I do not know anything about the GPU. Dec 22 22:56:39 Sorry. Dec 22 22:59:24 Is that the SGX? Dec 22 23:02:11 Man...the new SRM on github is nice. Dec 22 23:02:21 Way to go, fellows/ladies. Dec 23 00:05:39 alright so, GPU docs, can I safely turn off GPIO driver Dec 23 00:05:46 Qs on my stack Dec 23 00:06:15 also good luck to boinkers Dec 23 00:55:49 how do you get a script executed at start up Dec 23 01:07:37 mattB000ne: Would you like me to tell you or would you want to learn about .service files somewhere else? Dec 23 01:13:53 if you have a link to a good resource i will take it Dec 23 01:14:05 mattB0000ne: Okay. Please hold. I will get one. Dec 23 01:15:31 Hello...I usually use this one but it is not pleasing to the eyes. It is very useful. https://www.freedesktop.org/software/systemd/man/systemd.service.html#Examples Dec 23 01:16:09 Also, .service files can be placed in /etc/systemd/system/ for instance. You can look in that dir. to see what else is located in that specific dir. Dec 23 01:16:23 Some people put them in /lib/systemd/system/ though. Dec 23 01:16:27 It really depends. Dec 23 01:17:40 mattb0000ne: If you are looking for a short script to run a simple .py or .cpp file, I can show you one on pastebin.com. Dec 23 01:18:56 Six or seven lines and booting on boot! Also, you will need to use systemctl to start, stop, enable, disable your .service files. Dec 23 01:21:07 Please just let me know if you need an example w/ required commands for starting on boot. Dec 23 01:47:14 I will manage set_ Dec 23 01:47:45 Okay. Did you get it to boot w/ the file running at boot? Dec 23 01:48:16 Or...whatever you are making run on boot? Dec 23 01:48:57 https://www.tecmint.com/auto-execute-linux-scripts-during-reboot-or-startup/#:~:text=Executing%20Linux%20Scripts%20During%20Reboot%20or%20Startup%20There,cron%20scheduler%20also%20allows%20the%20use%20of%20%40reboot. Dec 23 01:52:11 Oh. Cron. Dec 23 01:52:58 I thought you wanted it to work on boot? Dec 23 01:53:23 I thought w/ Cron one would have to sign in. Dec 23 01:54:19 in the beginning, I also wondered why my scripts were not in working order during boot w/out sign in. I was using cron. This maybe why? I guess. Who knows? Dec 23 01:54:58 I do not think services would do what I needed Dec 23 01:55:33 Okay. Dec 23 02:00:45 thank you for the effort Dec 23 02:02:12 No isse. Dec 23 02:09:25 Sorry. no issue. Dec 23 02:20:10 mattb0000ne: https://pastebin.com/KXVdTNrL example of a startup service Dec 23 02:21:04 zmatt: thanks Dec 23 02:21:38 mattb0000ne: cron is for things that need to be executed periodically.. and it's also a kinda obsolete since systemd also supports running services periodically (via timer units) Dec 23 02:22:04 zmatt: what about the use of rc.local that no good? Dec 23 02:22:57 mattb0000ne: rc.local is a legacy thing, it's executed by rc-local.service (conditional on /etc/rc.local existing) Dec 23 02:23:29 so it's like a custom systemd service, except without the flexibility of being able to configure it to your needs :P Dec 23 02:23:36 ok Dec 23 02:24:28 but my service example should be straightforward enough I hope Dec 23 02:24:49 zmatt: I am trying to spare set_ feelings but yes Dec 23 02:27:14 an alternative to making a system service is making a user service: https://pastebin.com/uqY2DcGs Dec 23 02:28:32 mostly similar, except it has more restrictions (e.g. it will always run under the debian account), but it avoids having to put stuff in /etc/ and you can control the service without sudo Dec 23 02:30:56 zmatt do you ever fiddle with the usb3 Dec 23 02:30:58 port Dec 23 02:31:21 I haven't fiddled much with the bbai in general Dec 23 02:31:57 I have it plugged into a usb hub Dec 23 02:32:06 and it works fine since it is powered Dec 23 02:32:28 I was following this thread https://www.element14.com/community/thread/75059/l/usb-30-support-for-beagle-bone-ai Dec 23 02:32:49 when I run that script it disconnects rather than allow for the detection of more devices Dec 23 02:34:20 still have activity Dec 23 02:34:24 but I lose ssh Dec 23 02:36:18 what do you mean "more devices", you said it already worked? Dec 23 02:37:34 and having to do this manually is indicative of some kernel logic being missing/broken for the bbai's hardware setup, normally it should switch automatically Dec 23 02:38:22 I want it to see the camera Dec 23 02:38:28 which is also connected Dec 23 02:38:31 maybe it is Dec 23 02:38:44 you mean it sees the hub but not any downstream devices? Dec 23 02:38:44 let me check Dec 23 02:38:48 running the software now Dec 23 02:39:18 the different rXX of the kernels are those just bug fixes ? Dec 23 02:39:31 patches or config changes Dec 23 02:43:22 My feelings? Dec 23 02:43:27 Do not worry. Dec 23 02:44:47 I am watching the .org's way of doing EXPO! Dec 23 02:45:01 I think it is an older one since COVID-19 kicked in. Dec 23 02:47:16 Embedded World 2020! Dec 23 02:47:48 set_ you are the Beagle ambassodor but you confuse the hell out of me Dec 23 02:51:40 What do you mean? Dec 23 02:51:48 Oh. .service files? Dec 23 02:52:09 Do not worry. It is a southern charm I have. Dec 23 02:52:09 Ha. Dec 23 02:54:11 I have been looking over pwm instances and source from libs. I am not close to solving the project w/out help. I think I may bow out of helping. I am not gaining any ground right now on the pwm lib for BBB. Dec 23 02:55:06 I have found many but they are all older and require about five or six files outside of the PWM lib itself that needs to be in python. Dec 23 02:55:47 I keep finding file structure type libs. that do not make me understand what exactly is going on in their libs. Dec 23 02:57:09 what are you wokring on Dec 23 02:57:24 I can never understand what the hell you are doing becuase I have no context Dec 23 02:57:29 i take it this is not the drone Dec 23 02:59:38 ok so that is a big no on detecting the camera through the port Dec 23 02:59:41 boooooooooooooooooooooooo **** ENDING LOGGING AT Wed Dec 23 02:59:56 2020