**** BEGIN LOGGING AT Sun Apr 18 03:00:04 2021 Apr 18 03:00:43 Only ubuntu is supported. Blah. Apr 18 03:25:19 does anyone know how to change the default distro to debian under the required setup.sh script? I am looking at the scripts and I do not see exactly where to change the default distro. Apr 18 03:32:23 Ut oh! Got it. Apr 18 03:32:25 Nice. Apr 18 04:08:12 MortyFell: "Only ubuntu is supported" by what? Apr 18 04:08:21 ubuntu is not officially supported on the BBB, only debian is Apr 18 04:08:48 No...sorry. I was trying to put the SDK for TIDL on the BBAI. Apr 18 04:09:08 It seems there is a hurdle or two to get debian working as the host system. Apr 18 04:09:12 But...I got that done so far. Apr 18 04:10:00 I am stuck on the board not being detected but the system fs file is written. Apr 18 04:10:08 TIDL on the BBAI is installed by default, it's part of the recommended IoT TIDL image Apr 18 04:10:24 Right but not to the extent that is 'needed.' Apr 18 04:10:49 But...okay. No issue. Apr 18 04:11:05 @zmatt: This is set_ by the way. Apr 18 04:11:20 I could not sign in via the set_ name on Debian. Apr 18 04:11:34 how can I stream data into a buffer over TCP Apr 18 04:11:55 i have working code for a single message but I am not sure how to extend it to a stream of data Apr 18 04:12:30 mattb0000ne: TCP doesn't transfer "messages", it transfers a stream of bytes (or rather two streams of bytes: one from client to server and one from server to client) Apr 18 04:13:11 there are no message-delineators in TCP, if those are required for an application then some protocol needs to be layered on top of it Apr 18 04:13:17 right I copied a tutorial so it does a defined message Apr 18 04:13:26 json header and the message after Apr 18 04:13:30 link to tutorial? Apr 18 04:14:01 https://realpython.com/python-sockets/ Apr 18 04:15:09 the very first example (the echo server) already operates on a continuous stream of data Apr 18 04:16:19 lol Apr 18 04:16:55 Detecting connection to board... dmesg: read kernel buffer failed: Operation not permitted dmesg: read kernel buffer failed: Operation not permitted Apr 18 04:16:59 what is confusing about this socket stuff is the event loops Apr 18 04:17:11 sudo? Apr 18 04:17:29 maybe run under sudo Apr 18 04:17:38 thanks zmatt Apr 18 04:17:40 MortyFell: sounds like you did weird things since the default BBAI image suppports dmesg without sudo Apr 18 04:17:47 OKay. Apr 18 04:17:49 Fine. Apr 18 04:17:56 why are you on the bbai set Apr 18 04:18:23 I do not know if you are familiar w/ the SDK or not but adding the TIDL stuff is not easy for some reason. Apr 18 04:18:25 Oh. Apr 18 04:18:41 dont they make an image without tidl Apr 18 04:18:47 Yes. Apr 18 04:18:48 Yes. Apr 18 04:18:55 BBB.io does. Apr 18 04:19:35 MortyFell: I'm pretty sure that if you use the IoT TIDL image you don't need to install anything on the BBB, you might just need some host tools on your computer Apr 18 04:19:50 Okay. Apr 18 04:20:11 otherwise I don't see what the point would be of the TIDL image Apr 18 04:20:17 if it doesn't have TIDL Apr 18 04:20:39 mattb0000ne: the message format that json example uses is definitely not the simplest they could have chosen Apr 18 04:20:42 I have the targetNFS built from the .bin file for the am5729 SDK. . Apr 18 04:21:00 I guess I can just use sftp but it is something I have not tried yet. Apr 18 04:24:50 mattb0000ne: and there are also much nicer ways to deal with event-driven code, this example uses rather low-level facilities Apr 18 04:25:25 do you have an link to an example? Apr 18 04:25:59 https://asyncio.readthedocs.io/en/latest/tcp_echo.html Apr 18 04:26:26 oh ew, that example isn't great Apr 18 04:26:35 I should have read it before linking Apr 18 04:27:41 I have seen this module a few times wasn't sure if it could do what I needed. Apr 18 04:28:11 but if you think this will make my life dealing with TCP stuff eaiser I will read up on it Apr 18 04:28:43 it's certainly better than writing your own main event loop like the example you found does Apr 18 04:28:54 ok cool Apr 18 04:29:00 yeah the event loop is confusing Apr 18 04:29:17 and the message class seemed like overkill Apr 18 04:29:29 like you said Apr 18 04:46:38 I'm trying to make a nicer echo server example Apr 18 04:48:27 ok Apr 18 05:00:24 mattb0000ne: maybe something like this? https://pastebin.com/vP9BpdJV Apr 18 05:00:51 I'm an asyncio novice too Apr 18 05:02:22 like, I initially tried to catch the KeyboardInterrupt inside main() but that didn't work... I guess there's properly a better way to catch signals Apr 18 05:03:15 I'm also not sure if there's an easy way to find all connected clients (e.g. to notify them that the server is quitting) or if you'd need to bookkeep that yourself Apr 18 05:04:06 its a start Apr 18 05:04:25 and presumably this will crash if handle_connection tries to write data to the client but the client has already closed its socket Apr 18 05:04:38 right Apr 18 05:05:11 though I'd _assume_ you would be able to catch that with a try-catch around the writing Apr 18 05:05:33 yup Apr 18 05:05:46 one thing i picked up was the try command in python Apr 18 05:27:58 mattb0000ne: this variant tries to cleanly exit when SIGINT is received, though currently it doesn't kill the client connections so it'll just stop accepting new connections and then waits until existing clients have disconnected: https://pastebin.com/KGxZ3wbk Apr 18 05:31:29 I don't know if this is the "right" way to do this Apr 18 06:36:30 Hi Apr 18 06:36:38 Hi Apr 18 06:37:02 I want to be beagle bone reseller Apr 18 09:28:00 Well...I booted the Arago Project on the BBAI. This is a start. Apr 18 09:31:36 How do you install things w/out apt? Apr 18 09:31:47 I am in the uboot console now. Apr 18 09:42:32 off to the tutorials on uboot. Apr 18 10:47:10 mattb0000ne:! Apr 18 10:47:33 Do you know anything about uboot and adding files via loadb? Apr 18 11:00:10 Forget it...I got git it seems. This may prove valuable. Apr 18 11:13:57 So yep...I can use git. This is good news. Apr 18 11:14:29 But...I need to set up things in a way to make the bb.org-overlays work and the BeagleBoard-DeviceTrees work too. Apr 18 11:15:03 So far, so good but initramfs needs to be in a particular place and I need dpkg-dev too w/ apt. Apr 18 11:15:20 familiarities! Apr 18 13:11:56 Aw! Apr 18 13:27:15 Okay. I panicked for no reason. Python3 is installed! Apr 18 13:31:28 but I have the opkg manager instead...boo. Apr 18 13:56:31 This is just like when I first started w/ the beaglebone black in '15. Yikes. Apr 18 13:56:41 opkg this and opkg that... Apr 18 13:57:45 well, ssh finally works. Sheesh. Apr 19 01:52:58 GenTooMan: Are you here and not busy? Apr 19 01:55:55 It is me, set_. I am undercover. Apr 19 01:58:24 Anyway, I am sure duty calls but if you catch this idea, I will echeck back later.d Apr 19 01:59:23 I have a ton of projects but this is one that I want to be fond of currently. I am sure people have already done it but I want to show evidence of it working in real time. Apr 19 02:00:06 Forget it. Apr 19 02:00:10 Everyone is busy. Apr 19 02:00:43 time for deep cover. Apr 19 02:01:46 I'm busy but not here Apr 19 02:01:53 Oh. Apr 19 02:01:59 :D Apr 19 02:02:28 Too bad for you, I got something in the mail coming my way. I am not sure if people are going to want to see what this BBB and C++ can do... Apr 19 02:02:57 I know it is an older board but it is sort of the flagship, right? Apr 19 02:03:19 Smiles! Apr 19 02:04:36 So anyway, I can use 5v supplies and sensors on this add on board for the BBB. My questions are this: 1) Would you want to look over the port and the source 2) or would you want to just see the finished product? Apr 19 02:05:11 Oh! Apr 19 02:05:23 GenTooMan: I got Arago Booted on the BBAI! Apr 19 02:05:41 I got me a Linux SDK on it! Neat, heh? Apr 19 02:06:50 i know...boring. But, it is not for me. I am super excited. Apr 19 02:06:53 Super. Apr 19 02:06:56 Ha. Apr 19 02:07:06 I presume set_ deincarnated is this. erstwhile good you got something working instead of unworking. Apr 19 02:12:36 I know! Apr 19 02:12:40 It is a miracle. Apr 19 02:12:58 But... Apr 19 02:13:53 The Arago project and the TIDL Linux SDK is hidden so far. I can list the files and see the locations. This is not an issue. I cannot get bb.org-overlays to work on Arago yet. Apr 19 02:14:02 I have been trying... Apr 19 02:14:38 GenTooMan: Do you know how to make bb.org-overlays work on Arago Project? Apr 19 02:15:43 Would I need to get the BeagleBoard-DeviceTrees first and then proceed from that point forward? Apr 19 02:16:31 Oh...and it is only my second time getting into the uboot console. Apr 19 02:18:23 Oh. dtc is not compiled on my install. Apr 19 02:24:21 Where is a good place to put the dtc on the /usr/ directory? Apr 19 02:25:14 perhaps where it is by default located? Apr 19 02:26:31 I just used git to retrieve it. Apr 19 02:26:40 I then used make to build it. Apr 19 02:27:15 I need to use make install /usr/local/lib or some dir. that the kernel looks to when searching for executables. Apr 19 02:27:39 @zmatt knows but I have not seen him all day. Apr 19 02:28:32 This: >>> /usr/local/include? Apr 19 02:28:52 Do not worry. i will go and research it. Apr 19 02:37:56 Im a bbb user...not programmer.   Have a problem with bbb.  Anyone available? Apr 19 02:39:25 I am a user too! I will be in and about down range. Send questions at will! Apr 19 02:40:56 I have BBB connected to K32 board.  All was working.  Then powered on K32...now...BBB wont power up or boot. Apr 19 02:41:21 Is a K32 a 5v board? Apr 19 02:41:33 12v Apr 19 02:41:35 I mean... Apr 19 02:41:37 Oh. Apr 19 02:41:44 How were you connecting it? Apr 19 02:42:08 To the P9 or P8 headers? Apr 19 02:42:46 2 sets of headers.  look like 40 pin Apr 19 02:43:07 both P9 and P8 Apr 19 02:43:59 Oh. I think those headers, the P9 and P8 expansion headers, only support a specific amount of mA as input/output and are only 3.3v tolerant. Well, most of them. The analog pins are 1.8v tolerant. Apr 19 02:45:08 it had been working fine since i got it a couple weeks ago Apr 19 02:45:15 And...if there was a way of the 12v feeding into the BBB expansion headers, it would destroy the board. Apr 19 02:46:17 Most likely, the chip (am335x) or another delicate part of the board was overpowered. But, there is no way to tell. What circuit are you using to connect to the BBB? Apr 19 02:47:39 I mean...do you have some type of circuit or are you just powering what by what or how? Send a photo of the contraption! Apr 19 02:47:50 it mounts directly to the K32 board via the p9 and p8 Apr 19 02:47:55 Oh. Apr 19 02:47:58 It is a cape? Apr 19 02:48:03 yes Apr 19 02:48:21 I need to research K32. Please hold. I am not affiliated w/ the BBB.io peoples but I like to pitch in. Apr 19 02:49:37 Are you sure that is meant to be placed on the BBB? Apr 19 02:49:43 Please send a link... Apr 19 02:50:56 This: https://www.nxp.com/docs/en/data-sheet/K32L2Ax.pdf? Apr 19 02:52:01 Just to say this...vi is superior in every form to nano. Apr 19 02:52:17 I should have never jumped on the nano bandwagon. Apr 19 02:52:22 https://kulplights.com/product/k32a-b/ Apr 19 02:53:58 My computer is not understanding kulplights.com for some reason. Let me try again. Apr 19 02:55:44 Okay. Apr 19 02:56:02 Okay...do you have a datasheet or something I can look at for your board? Apr 19 02:56:17 Just by the look of it, it handles LEDs? Apr 19 02:56:25 Or motors or whatever. Apr 19 02:59:05 i dont sorry.  It would be on the website i sent you Apr 19 02:59:15 Oh. Okay. Apr 19 02:59:44 Well, I should go and check again. **** ENDING LOGGING AT Mon Apr 19 02:59:56 2021