**** BEGIN LOGGING AT Fri Apr 03 02:59:56 2020 Apr 03 03:01:37 Got to run for tonight Apr 03 03:01:42 Okay. Apr 03 03:01:44 Have fun. Apr 03 03:01:59 Relay cape tomorrow Apr 03 14:14:18 m Apr 03 15:13:41 m2 Apr 03 16:06:23 lol, just found this beauty in some old code... https://pastebin.com/57Q3Uaff Apr 03 16:20:20 good lord, i don't get how people can make any sense of that Apr 03 16:20:48 pretty much how i feel whenever i see c++ :-) Apr 03 16:21:01 C is a beautiful language :D (yes this is C++, but the C++ part isn't what's making this declaration awful) Apr 03 16:22:28 C is my favorite language by far and the only one I understand... but this code looks confusing to me. Granted, any time I actually read C I am pretty confused too, LOL. So I'm not sure what's wrong with me Apr 03 16:22:32 I can instantiate this for T=float and n=2 to get plain C, it doesn't make things nicer: https://pastebin.com/16AnTV1m Apr 03 16:23:14 Yea I'm still completely lost Lol Apr 03 16:23:29 so no blaming C++ here, this is just the beauty of C declarations Apr 03 16:23:47 Surely, I did not mean to trash C++ :-) Apr 03 16:23:51 :D Apr 03 16:24:09 I love C but I have a hard time understanding actual, "real" C code Apr 03 16:24:13 like this :p Apr 03 16:24:24 I mean, although it's the main language I write in, C++ is a language I really don't wish onto anyone Apr 03 16:24:52 it's an awful language, but this snippet isn't an example of it being awful ;) Apr 03 16:26:18 Haha ok Apr 03 16:26:40 but yeah, this declaration gave me a moment of pause too... like, flatten() was easy enough, but I had to ponder a bit how to declare unflatten() Apr 03 16:27:30 Tell me, what does the '2' mean in this code ? Apr 03 16:27:40 Any of the 2's Apr 03 16:27:58 the minor dimension of the array type Apr 03 16:28:20 Why is there no 'major' dimension Apr 03 16:29:29 because when you pass an array as argument it's actually just a pointer to the first element. declaring a parameter as float x[] is equivalent to declaring it as float *x Apr 03 16:29:38 Hi Apr 03 16:29:40 * ski7777 sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/ElMgKNqgMSgbVrICWhftGhHB > Apr 03 16:30:14 Right, so why do you need the '2' then haha Apr 03 16:30:24 why can't you just say x[][] Apr 03 16:32:51 omar_trisquel: if you have an array float x[3][2]; then the address of x[i][j] is the address of x plus (i*2+j)*sizeof(float) ... note how the 3 is not relevant in this calculation, but the 2 very much is Apr 03 16:33:38 the first dimension is the only one you don't need to know to be able to access elements, it doesn't affect the layout of the array in memory, just how long it is Apr 03 16:34:23 ahhh yes i see, very good explanation thank you Apr 03 16:35:07 in other words, each 'i' element is 'j' elements long basically? so you need to know how long each 'j' element is to know the offset between each 'i' element Apr 03 16:35:32 that way you can index into any 'i' element Apr 03 16:35:33 yep Apr 03 16:35:37 hell yes Apr 03 16:35:38 finally Apr 03 16:35:41 i learned something Apr 03 16:35:42 ilu Apr 03 16:36:31 i am quite discouraged that i don't understand things very quickly like others seem to experience Apr 03 16:36:50 very insecure Apr 03 16:37:00 pls help ;-( Apr 03 16:37:09 so you can treat float x[3][2] simply as an array of 6 floats, but you'd need to cast the type, which is what my flatten() does.... int *y = flatten( x ); Apr 03 16:40:32 of course you may wonder, if declaring a float x[] parameter is equivalent to float *x, then what's the equivalent of float x[][2] ? and that's where C declarations start to get yucky, because float *x[2] would not be a pointer to (an array of) float[2], and float[2] *x is not valid syntax but just wishful thinking Apr 03 16:40:50 float *x[2] is an array of two float-pointers Apr 03 16:41:08 the needed syntax would be float (*x)[2] Apr 03 16:41:46 holy crap Apr 03 16:42:30 are you the author of Expert C Programming: Deep C Secrets? srs lol Apr 03 16:43:14 you are inspiring me to go next level on this sh*t Apr 03 16:44:01 basically C declarations are read from right to left and inside out... https://pastebin.com/uVKzaQLe Apr 03 16:45:05 and then unflatten needed to *return* this, and that's how you get a real abomination ;) Apr 03 16:48:24 hmm Apr 03 16:48:46 now i'm not sure if i should double down on C or just sell out and switch to Go Apr 03 16:49:08 I tried Go a tiny bit but I didn't like it Apr 03 16:49:16 I still want to do more with Rust though Apr 03 16:49:29 My you Rust in peace. Apr 03 16:49:34 may even Apr 03 16:49:43 lol Apr 03 16:50:03 GenTooMan: did you see thie beauty? https://pastebin.com/57Q3Uaff :D Apr 03 16:50:21 is Rust less complicated than C++? or at least better designed? Apr 03 16:50:53 ie does Rust have similar issues as your example zmatt Apr 03 16:51:21 Rust is a lot nicer Apr 03 16:51:31 it's just not very mature yet Apr 03 16:54:45 in terms of best practices or the development of the language itself ? Apr 03 16:54:47 or all of the above Apr 03 16:57:42 you know, I shouldn't opine on it since I haven't yet tried to write any real project in it, and in fact haven't done anything with it at all for months Apr 03 17:00:12 word Apr 03 17:00:52 i've got a sifive board i might play with this weekend. saw a few rust packages/libraries/whatever rust calls them on github for that board Apr 03 17:04:02 significant parts of firefox are actually written in rust nowadays, including its CSS engine (stylo) and rendering engine (WebRender) Apr 03 17:11:30 zmatt someone is working on their sintax I mean syntax. Apr 03 17:11:37 lol Apr 03 17:13:22 rust is a bit more difficult because you have to understand the errors instead of wacking at your code tell it works. Apr 03 17:13:33 haha Apr 03 17:13:44 which seems the normal for most C/C++ programmers. Apr 03 17:14:37 my last boss thought I was an idiot because I asked what he was trying to do with using numbers for cases in a switch statement instead of enumerated types. Apr 03 17:15:07 ? Apr 03 17:15:27 he was just speed coding wacked something together that I had to later fix. Apr 03 17:17:05 anyhow sloppy programming practices lead to disasters. Apr 03 17:17:25 Hi zmat, how are you? Working with PRU - really-really Love it. Somebody did a great job inventing this beauty :) Apr 03 17:17:36 Hi zmat, how are you? Working with PRU - really-really Love it. Somebody did a great job inventing this beauty :) Apr 03 17:18:18 pru is pretty neat Apr 03 17:19:37 Back to my question: when trying to do Apr 03 17:19:39 config-pin p8.29 pruin+ Apr 03 17:19:53 I get Invalid mode. Apr 03 17:20:08 what's with the "+" ? Apr 03 17:20:50 Is there a way to do this, or I need to violate the curfew and to ask my electronics guys to create a pullup thing? Apr 03 17:21:36 in+ is teh same as in_pu Apr 03 17:21:53 it is? didnt know that (I don't use config-pin) Apr 03 17:23:05 anyway, cape-universal doesn't declare separate pruin modes for pull-up vs pull-down. I'd recommend using an external one anyway, since the internal one is very weak (100K ±50%) Apr 03 17:23:22 Thanks! Apr 03 17:23:41 but you could get pruin with pull-up if you use an overlay instead of cape-universal Apr 03 17:24:05 ??? Apr 03 17:25:08 cape-universal (aka the universal overlay) is the overlay that declares the runtime-selectable pin modes (which you fiddle with config-pin) Apr 03 17:25:56 Is it related to the device trees (which I still did not have a chance to learn)? Apr 03 17:25:57 even though it doesn't declare a pinmux state for pru input with pullup, you could declare that in an overlay if you wanted to Apr 03 17:28:03 BTW, thanks again for your help with PRU! I am quite comfortable programming it in assembly. I also like prudebug. Though that nice guy who wrote it probably was drunk Apr 03 17:28:17 lol Apr 03 17:28:23 how so Apr 03 17:28:24 ? Apr 03 17:28:53 his commands: ss for singlestep, etc. Apr 03 17:29:57 when dumping memory showing 32-bit addresses (0, 1 ,2) instead of byte-addresses (0, 4, 8) Apr 03 17:30:17 :D Apr 03 17:30:41 But again, that Anderson guy is a nice guy - and I would personally thank him for his prudebug Apr 03 17:32:03 Do people use DSP on beaglebone? Apr 03 17:32:23 define "use DSP" Apr 03 17:33:00 we do some amount of signal processing on the beaglebone (synchronous and asynchronous sample rate conversion) Apr 03 17:34:57 zmatt off topic question if you don't mind... i'm really early into my career as a dev and it's freaking miserable so far, any suggestions on other jobs to transitions to from dev? ie do you know any devs that hated it and moved to something else tech related Apr 03 17:35:02 btw to illustrate the overlay option, the uio-pruss.dtsi example from my https://github.com/mvduin/overlay-utils (which produces a dtbo that can configured into uboot_overlay_pru instead of AM335X-PRU-UIO-00A0.dtbo) could set up P8.29 for you like this: https://pastebin.com/wu0RgyJC Apr 03 17:35:41 it turns out dev is only something i can do on my own time, in a vacuum Apr 03 17:35:58 not for others and not to produce anything of value Apr 03 17:36:02 omar_trisquel: I'm really the wrong person to ask, I ended up having my first job by complete accident while not even looking for one, and I'm still there and quite content Apr 03 17:36:22 oh god pls somebody help me lol Apr 03 17:36:31 I am totally illiterate on this :) Our smart alexes who are pushing em away from beaglebone to STM (for no good reasons) may use the excuse of processing the analogue signal to move to STM Apr 03 17:38:25 dreamhiker: if you need to do signal processing and can't do it on the a8 due to real-time constraints then it's quite possible the STM may be better at that, it depends on how much processing and at what sample rate obviously Apr 03 17:39:09 (we do most of our signal processing on a dedicated DSP, which obviously is even better at that) Apr 03 17:39:11 But DSP is not for that? Apr 03 17:39:19 ?? Apr 03 17:39:37 to process the analogue signals Apr 03 17:39:48 I don't understand your question Apr 03 17:40:28 sorry if my questions are stupid :) Can people use DSP to process the analogues signals? Apr 03 17:41:15 But at the end quite often they are not stupid :) Apr 03 17:41:16 DSP means digital signal processing (or digital signal processor, i.e. a cpu designed for digital signal processing) Apr 03 17:41:33 so your question sounds like "Can I use signal processing to process signals?" Apr 03 17:41:45 Yes, convert analog to digital signal and to use DSP for processing Apr 03 17:42:07 I mean any signal processing you do on a cpu is inherently digital signal processing Apr 03 17:42:19 I just don't understand what you're asking Apr 03 17:43:32 OK, if beaglebone has a separate DSP unit, why would anyone want to switch to something else to process the signals? Apr 03 17:43:41 the beaglebone has no DSP unit Apr 03 17:44:13 oops :) Apr 03 17:45:00 but obviously you don't need a digital signal processor to do digital signal processing... they're just more optimized for the task Apr 03 17:45:24 Can numbers be divided on PRU? Apr 03 17:46:03 no, but I've never encountered any signal processing that needs real-time division Apr 03 17:46:38 Finding an average is not a part of DSP? Apr 03 17:47:35 over a variable number of samples? not really no. and if you mean the average of a fixed number of samples (e.g. a sliding window) then you don't need division, you can just multiply by 1/n Apr 03 17:47:48 (or shift right if n is a power of two) Apr 03 17:48:55 of course if you really need division you can always implement it, but it'll take quite a few cycles Apr 03 17:50:25 Yes, I was think (obviosly) about shifting. Just to make sure: PRU is not handling doubles/floats Apr 03 17:51:10 but PRU is definitely not great at signal processing... it can add and subtract 32-bit integers (and use carry to add/subtract 64-bit integers or larger) and it has a 32x32 -> 64-bit unsigned multiplier, but that's it Apr 03 17:51:18 definitely no floating-point, or even a signed multiply Apr 03 17:53:07 Thanks! Apr 03 17:53:16 the cortex-a8 can do a decent amount of single-precision floating point arithmetic (using its Neon unit), but that's obviously of no use if your latency constraints are tight Apr 03 18:08:17 Thank you! Apr 03 18:10:25 Let me learn about your overlays Apr 03 20:08:14 MattB0ne has arrived Apr 03 20:08:18 with more questions Apr 03 20:11:28 does the bbb need anything altered to connect to internet Apr 03 20:11:33 over ethernet cable Apr 03 20:11:37 hmm no Apr 03 20:12:09 how do I check to see if it sees my computer, ping 192.168.7.1 Apr 03 20:12:10 ? Apr 03 20:12:17 however you do need to have a DHCP server setup to get an IP address. Otherwise your ISP will say "you have too many devices.." Apr 03 20:12:35 you could fire up the cloud9 IDE or login via SSH using putty. Apr 03 20:13:40 either one would tell you if it's their or not. nmap is handy finding what's attached to the network you are in I generally scan 192.168.1.* Apr 03 20:15:05 nmap on the board? Apr 03 20:16:47 also a cape should not mess up anything right ? Apr 03 20:16:53 i just got an HDMI cape Apr 03 20:19:56 you have a beaglebone or beaglebone black because the black has a built in HDMI controller. Apr 03 20:20:08 its a green Apr 03 20:20:15 so a Black knock off Apr 03 20:21:24 ah BBG not BBB Ok hmm seeed studios or GHI can't remember (don't want to remember?) Ok the only thing it might do is take over SPI1 to use for HDMI audio output. Apr 03 20:22:06 the LCD pins will be pirated. As for nmap on your PC that will scan your network for all devices connected to it. Apr 03 20:23:06 ok Apr 03 20:23:11 I had this working on my last distro Apr 03 20:23:24 but I could not find the packages I needed in unbuntu Apr 03 20:23:34 so i was bouncing around first i tried the LMDE 4 Apr 03 20:23:37 but was having problems Apr 03 20:23:50 switched to raw debian had the same problems Apr 03 20:23:56 now got LMDE 4 to work Apr 03 20:24:01 trying to get back to where I was Apr 03 20:24:10 the good news is debian has the packages I needed Apr 03 20:25:28 package deal huh? Apr 03 20:25:38 qemu-utils Apr 03 20:25:48 all for qemu-utils Apr 03 20:26:02 ubuntu is overrated Apr 03 20:26:20 if I do nmap on 192.168.7.1 Apr 03 20:26:30 i get two ports Apr 03 20:26:32 ubuntu is actually a debian copy... Apr 03 20:26:47 with comercial support for games and a different interface :D Apr 03 20:27:11 i had steam running on Mint 19 Apr 03 20:27:20 havent tried it on this lappy yet Apr 03 20:27:23 hopefully it will run Apr 03 20:27:44 you did that on the BBG or your PC you are using to test debug and blow things up with? Apr 03 20:50:51 i did all that on my PC Apr 03 20:51:23 man i need to understand networking better Apr 03 20:51:29 always has been a black box for me Apr 03 20:51:35 argggh Apr 03 20:53:10 where is zmatt when you need him Apr 03 20:55:53 you need to have explained e=mc^2 or the binding energy of a hydrogen atom? the fact you can get information like that indicates your PC is connected to your BBG Apr 03 21:01:21 as for actual physical network that is a different issue. If you can use putty to login into your BBG (whatever user account you have) then at the putty prompt type ping yahoo.com or something like that should tell you have you have inet access for the BBG Apr 03 21:04:47 yeah Apr 03 21:04:53 I ssh'ed to the board Apr 03 21:04:56 but no internet Apr 03 21:05:17 it used to work, I am trying to figure out what I did on the PC side Apr 03 21:05:45 I went in on my network connections and switch ip4 to shared on my wireless Apr 03 21:05:59 I forget if I had to do it on the ethernet as well Apr 03 21:06:34 su root Apr 03 21:06:39 type in root password Apr 03 21:07:05 then type ifconfig to see "who" the BBG is attached to? Apr 03 21:07:19 * GenTooMan has done this a "few" times :D Apr 03 21:08:12 lol https://pastebin.com/e8inNvpX Apr 03 21:12:27 ah ouch... it seems to have taken your network node address 169.254.184.196 <-- that's not a router controlled IP likely your routers IP Apr 03 21:12:56 so what do I do Apr 03 21:13:00 assign a static Apr 03 21:13:29 get up look toward washington DC and blame the US congress for inventing the internet Apr 03 21:14:09 are you powering it via the USB bus? Apr 03 21:14:33 yes Apr 03 21:14:42 i can switch to outlet Apr 03 21:14:50 just felt it was easier Apr 03 21:18:06 I suggest first doing a shutdown -h now (that will power it off) then try using the outlet adapter so it will "have to" get an IP address again and hope it does something reasonable Apr 03 21:19:00 the shutdown is on your BBG by the way :D Apr 03 21:19:33 after you restart it use nmap to see what IP address it has and what ports are open. I doubt it has cloud9 IDE installed on the BBG. Apr 03 21:20:06 ok let me give that a go Apr 03 21:29:33 hmm plugged in but just the ethernet does not give me a connection Apr 03 21:29:49 i guess i was running through the usb port the entire time Apr 03 21:32:04 nm Apr 03 21:32:11 power cord was loose Apr 03 21:38:11 yup cannot connect Apr 03 21:42:00 I am not seeing any lights on the port on my PC Apr 03 21:42:36 but I do see it on beaglebone Apr 03 22:05:39 hmm your ethernet isn't connecting you have the flipped wire cable I presume? Apr 03 22:06:26 i mean the tab is set right Apr 03 22:08:10 let me get another Apr 03 22:11:41 nope Apr 03 22:15:56 hmmm what could it be Apr 03 22:43:27 ok Apr 03 22:43:39 so it says I am connected Apr 03 22:43:44 and my beagle has an IP Apr 03 22:43:48 but it is a wierd IP Apr 03 22:43:59 10.42.0.1 Apr 03 22:44:25 if I try to ssh it gets refused Apr 03 23:07:54 zmat, I am looking at your PIN_IN_PULLUP( P8_29, 6 ) Apr 03 23:08:41 sorry, what do I need to do to install it? DO I need to recompile something or reinstall something Apr 03 23:10:19 if you are using a beaglebone black P8_29 is the serial audio for the HDMI device. So you have to do something on boot to disable it. Apr 03 23:10:52 10.42.0.1 sounds like a server Apr 03 23:10:53 Yes, my video/audio is disabled Apr 03 23:12:00 you can test setting the pullup etc. perhaps through config-pin (to see if you can set it) Apr 04 00:31:32 zmat, if you have a chance, can you ping me at borisa@gmail.com ? I have some questions for you Apr 04 00:33:26 zmatt 2 Ts Apr 04 00:47:14 Django! Apr 04 00:55:52 ok ok Apr 04 00:56:04 who here sets a static ip for their BBB Apr 04 01:13:03 Hello, is anyone using Django on their BBB for blog use? Apr 04 01:13:13 nope Apr 04 01:14:14 I got my issue working but I am trying to find the section that states 127.0.0.1:8000 on their source. I have come up empty. I can run the server and see errors but I need to change the source to 0.0.0.0:xxxx to suit my needs. Apr 04 01:14:21 if you get a chance, let a brother know. Apr 04 01:16:30 MattB0ne: I never bother with IP addresses Apr 04 01:16:33 lol way beyond me set Apr 04 01:16:39 zmatt! Apr 04 01:16:42 my savior Apr 04 01:16:46 you saved the day last time Apr 04 01:16:57 I need to bottle your lighting one more time Apr 04 01:20:28 zmatt: can you examine my ifconfig output? I do not understand why my IP is weird. https://pastebin.com/80m7uhex Apr 04 01:21:04 please use "ip addr" instead of the ancient ifconfig utility Apr 04 01:21:56 also there's no way anyone can look at the output of either of those and tell you *why* it has that ip :P Apr 04 01:22:40 though wasn't that the ip selected by network sharing? Apr 04 01:23:15 nothing weird Apr 04 01:23:23 prefectly valid IP's Apr 04 01:23:29 I vaguely remember it from last time Apr 04 01:24:36 yeah it seems fine Apr 04 01:27:28 if the ip is valid why is the board refusing my ssh Apr 04 01:28:22 https://pastebin.com/2pw5ggeJ Apr 04 01:31:18 why are you trying to ssh via the ethernet connection you setup for internet sharing? just use its usb interface for that like you've been doing previously Apr 04 01:32:38 also you said you tried ssh;ing to 10.42.0.1 ? but that's your computer's IP, not the beaglebone's Apr 04 01:34:06 isnt enp3s0f1 my beagle Apr 04 01:34:11 I think ssh'ing to the IP the beaglebone acquired on ethernet *ought* to work, but it depends a bit on what the netfilter rules look like that have been set up by gnome network manager to support internet sharing Apr 04 01:34:28 so just plug in usb Apr 04 01:34:36 enp3s0f1 is presumably your ethernet? Apr 04 01:34:55 i only have wireless Apr 04 01:35:05 so my internet comes in on wlo1 Apr 04 01:35:37 i did have my usb plugged in let me do that Apr 04 01:36:22 I assumed it was ethernet since it's listed before your wireless, i.e. it was detected during early boot of your computer Apr 04 01:37:09 (and because a beaglebone's usb networking usually shows up as _two_ interfaces on linux) Apr 04 01:37:58 weren't you using internet sharing via ethernet to your bbb earlier or am I just confusing you with someone else? I might be, my memory isn't great Apr 04 01:39:22 if 10.42.0.1 _does_ show up on a usb networking interface then you just horribly broke your network configuration (on your pc and/or on the beaglebone) Apr 04 01:40:34 I had both the ethernet and usb before when I was running Mint 19.3 Apr 04 01:42:12 i just switched to LMDE 4, i did not change anything about internet settings to avoid messing it up. This is ip addr from the board Apr 04 01:42:13 https://pastebin.com/6h3RuyC7 Apr 04 01:42:59 looks like ethernet isn't working Apr 04 01:43:41 (i.e. network sharing on your pc to ethernet isn't working, either because it's not configured correctly or because dnsmasq hasn't been installed) Apr 04 01:44:00 What do get if you try and ping 192.168.7.1 from BBB? Apr 04 01:44:02 i have 3 connections wired 2 are probably the usb and I have a third which is the Gigabyte Ethernet Apr 04 01:44:19 gigabit probably Apr 04 01:44:46 the board can see that Apr 04 01:44:49 Man, they forget to comment out all their source at times. Aw! Apr 04 01:45:01 Now, they have documented it well. Apr 04 01:45:02 if I ping 192.168.7.1 from the BBB Apr 04 01:45:08 what is the routing table like? i.e. output of netstat -rn Apr 04 01:45:19 ds2: the output of "ip route" you mean Apr 04 01:45:19 :P Apr 04 01:45:22 or route Apr 04 01:45:31 route -n Apr 04 01:45:40 zmatt: does ip route attempt to resolve things? Apr 04 01:45:44 no Apr 04 01:46:01 ip route just rubs me the wrong way Apr 04 01:46:04 <--- used to IOS Apr 04 01:46:09 show ip rou Apr 04 01:46:10 :) Apr 04 01:46:14 depends what your default gw is Apr 04 01:46:21 this is netstat from my BBB Apr 04 01:46:22 https://pastebin.com/jvupWxSH Apr 04 01:46:46 what is the IP of the machine you are sshing FROM? Apr 04 01:46:48 oh I've only briefly used some cisco device once.. it's amazing how one can get such an intense hatred for a device in such a short time Apr 04 01:47:10 IOS is just fine...you need to spend a few years to get it fully hammered in ;) Apr 04 01:47:14 that looks like garbage btw Apr 04 01:47:24 I can ping the board from my PC using 192.168.7.2 Apr 04 01:47:25 but I'd rather see "ip route" to confirm it's true Apr 04 01:47:48 MattB0ne: one more check - netstat -antp Apr 04 01:48:04 ds2: bash: netstat: command not found Apr 04 01:48:05 :D Apr 04 01:48:49 route will give tou a basic output Apr 04 01:49:00 ds2:https://pastebin.com/j39H9GfY Apr 04 01:49:01 @#$!#!@!@$!$#@$ Apr 04 01:49:02 bash: route: command not found Apr 04 01:49:12 I don't have those ancient legacy tools installed ;) Apr 04 01:49:40 I have latest image on BBB and rpute is there Apr 04 01:49:55 I have latest image on BBB and route is there Apr 04 01:50:09 MattB0ne: so you have PC - - BBB and you want to connect to BBB from anotehr machine w/ssh? Apr 04 01:50:18 trying to understand your topology Apr 04 01:50:25 KenUnix: yeah I'm sure it is, it's easier for rcn to keep legacy tools installed than to get people to use their modern replacements Apr 04 01:50:42 L4 looks potentially ok... L3 looks potentially OK Apr 04 01:50:51 ds2: I was trying to ssh through the ethernet cable but I can live with usb for that. Now I am just trying to get to the internet Apr 04 01:51:04 PC can see the BBB and BBB can see the PC via ping Apr 04 01:51:05 MattB0ne: internet will not work as configured. Apr 04 01:51:12 you do not have a gateway of last resort. Apr 04 01:51:17 but the BBB cannot get to the internet Apr 04 01:51:21 ok so what do I do Apr 04 01:51:27 ds2: he was sharing (NAT) hie pc's internet (via wifi) to the beaglebone (via ethernet) Apr 04 01:51:32 you need to provide it with an appropriate gateway of last resource Apr 04 01:51:35 and that setup worked on previously Apr 04 01:51:44 MattBone on Windows? Apr 04 01:51:55 zmatt: the lack of a gateway of last resort will break internet. Apr 04 01:52:17 ds2: which means his internet sharing is broken, otherwise it would be filled in Apr 04 01:52:19 look at the output of route -n Apr 04 01:52:21 so I have my wireless set to share on my IPv4 Apr 04 01:52:33 zmatt: no... it could be a side effect of plugging in the ethernet Apr 04 01:52:39 some dhcp clients are downright nasty Apr 04 01:52:43 KenUnix: LMDE 4 Apr 04 01:52:43 ds2: no your wireless is how you obtained wireless Apr 04 01:52:58 ds2: I mean, it would be set to the gateway obtained via dhcp after plugging in ethernet Apr 04 01:53:15 sorry I meant MattB0ne: no your wireless is how you obtained internet Apr 04 01:53:24 zatt: yes, but if it got unplugged and dhcp goes away... it'd flush the eth0 dev routes Apr 04 01:53:30 s/zatt/zmatt/ Apr 04 01:53:36 ds2: yes... and? Apr 04 01:53:46 that's exactly how it should work Apr 04 01:53:49 zmatt: then it'd leave no default route Apr 04 01:54:01 which is correct since it wouldn't have internet since you unplugged that Apr 04 01:54:08 if he wants to fall back to USB... Apr 04 01:54:14 he doesn't, he shouldn't Apr 04 01:54:39 ds2: I was trying to ssh through the ethernet cable but I can live with usb for that. Now I Apr 04 01:54:40 +am just trying to get to the internet Apr 04 01:54:41 the whole reason behind using ethernet is to avoid messing with usb network settings and risk losing the ability to ssh into the bbb Apr 04 01:54:42 suggests otherwise Apr 04 01:54:49 ds2: yes he's using usb to ssh *into* the bbb Apr 04 01:55:02 On PC did you ckeck network configuration? Apr 04 01:55:11 ethernet is for providing the bbb with internet access Apr 04 01:55:13 I think we have 2 different troubeshooting methodologies conflicting Apr 04 01:55:18 let me drop out to not confuse things Apr 04 01:55:52 so I set my wireless to automatic for IPv4 and IPv6 Apr 04 01:55:55 I have to commnet out all their source for Django b/c they choose not to. Noo! Apr 04 01:56:10 PC must allow internet sharing Apr 04 01:56:28 and on my ethernet Set to shared computer and now the gui says ethernet is established Apr 04 01:56:34 but I still cannot ping 8.8.8.8 Apr 04 01:56:45 MattB0ne: is dnsmasq installed on your pc ? Apr 04 01:57:01 yes Apr 04 01:57:09 also, after changing the network configuration of ethernet on your PC it might be necessary to unplug ethernet and plug it back in Apr 04 01:57:14 did you configure PC to allow internet? Apr 04 01:57:25 ok unpluggin Apr 04 01:57:26 KenUnix: he just said how he set it up Apr 04 01:57:42 MattB0ne: after that, share output of "ip addr" and "ip route" on the BBB please Apr 04 01:58:10 KenUnix: note that he's not using windows Apr 04 01:58:10 ok now it is working YAY Apr 04 01:58:21 the unplug did it Apr 04 01:58:26 there we go Apr 04 01:58:36 wat version of windows? Apr 04 01:58:38 thank you all zmatt you are lord of the beagles Apr 04 01:58:50 Now, can we discuss django now? Apr 04 01:58:53 no Apr 04 01:58:57 Dang! Apr 04 01:58:57 lol Apr 04 01:59:00 KenUnix: he's not using windows Apr 04 01:59:01 Ha. Apr 04 01:59:04 '=D Apr 04 01:59:20 I am on the new Debian buster Mint Apr 04 01:59:20 set_: not really no, but I'm fairly confident that whatever problem you have, you caused it and not the django devs Apr 04 01:59:22 I like it Apr 04 01:59:31 hahahahahaha Apr 04 01:59:37 LMDE4 Apr 04 01:59:38 zmatt smack down Apr 04 01:59:40 yeah Apr 04 01:59:44 LMDE4 Apr 04 01:59:57 Nope. Not me. I am using python3 and they have a pip3 install w/ ''' comments in their source. Apr 04 01:59:57 it is pain to install if you only have nvidia for graphics Apr 04 02:00:07 but I recommend Apr 04 02:00:08 set_: okay, and? Apr 04 02:00:11 I have to go behind them and # it out. Apr 04 02:00:22 you're speaking nonsense Apr 04 02:00:26 Okay. Apr 04 02:00:28 Okay. Apr 04 02:00:33 '''-comments are docstrings typically Apr 04 02:00:49 I know but not in python3 any longer. Apr 04 02:00:59 ?? Apr 04 02:01:00 # is the commnet now. Apr 04 02:01:08 what are you even talking about Apr 04 02:01:09 The green works only sometimes. Apr 04 02:01:33 the pineapple is in the house Apr 04 02:01:33 # is red and ''' is green in python3 for comments. Apr 04 02:01:52 @zmatt: Forget it, pineapple people. Apr 04 02:01:55 ok you're talking about syntax highlighting in whatever editor you're using, check Apr 04 02:02:01 ... and? Apr 04 02:02:04 Bash Apr 04 02:02:14 What countries does everyone hail from Apr 04 02:02:15 bash can't execute python code Apr 04 02:02:25 Hmm. Apr 04 02:02:30 What are you asking? Apr 04 02:02:33 bash executes bash script Apr 04 02:02:39 python executes python code Apr 04 02:02:41 PuTTY. Apr 04 02:02:46 There. Apr 04 02:02:52 set_ , try this to remove # lines cat file | sed '/^\#/d' Apr 04 02:02:58 KenUnix: please stop Apr 04 02:02:58 Nice. Apr 04 02:03:08 before more damage is caused Apr 04 02:03:11 Ha. Apr 04 02:03:11 lol Apr 04 02:03:17 ha Apr 04 02:03:23 set_: what is the _actual_ problem you're trying to "fix" by breaking other people's code? Apr 04 02:03:27 Damage plan at 100%. Apr 04 02:03:37 because I assure you, breaking other people's code will not fix your problem Apr 04 02:03:37 I am fixing their comments. Apr 04 02:03:48 their comments are perfectly fine, the problem is you Apr 04 02:03:52 Fine. Apr 04 02:03:53 Fine. Apr 04 02:03:54 Okay. Apr 04 02:04:02 set do you have daily images of your system taken Apr 04 02:04:07 set_ , try this to remove # lines cat file | sed '/^\#/d' > outputfile Apr 04 02:04:08 I got uwsgi and gunicorn to work too. Apr 04 02:04:18 KenUnix: why are you trying to make things even worse? Apr 04 02:04:30 what do ya mean Apr 04 02:04:43 If you all want to discuss something else, fine. Apr 04 02:04:45 That is okay. Apr 04 02:05:02 I can revert back to what I was doing. Apr 04 02:05:16 set_: no the entire last screen has been about you Apr 04 02:05:28 I know, me, me, me. Apr 04 02:05:38 set_ I saw your posting on GHI Ekectronics today Apr 04 02:05:47 please just assume that a major package like django has no problems that involve having to comment their code out Apr 04 02:05:58 Fine. Okay. Apr 04 02:05:58 their code works fine for thousands of people Apr 04 02:06:23 if it's not working for you, you can be 99.99% sure it's because you did something wrong, not because there's something wrong with their code Apr 04 02:06:30 why dont you just get a template Apr 04 02:06:37 that is what I would do Apr 04 02:06:42 why reinvent the wheel Apr 04 02:07:07 set_ zmatt remember I told you about BBB not shutting down? Apr 04 02:07:10 set_: so if you want help with a problem, please state clearly 1. what you're doing 2. what error you got Apr 04 02:07:16 KenUnix: nope Apr 04 02:07:46 Hey zmat, welcome back! Apr 04 02:07:46 Okay. Apr 04 02:08:04 python3 manage.py runserver 0:8080 Apr 04 02:08:11 With 5V to barrel jack and USB cable both attached BBB won't shutdown it re-boots Apr 04 02:08:47 KenUnix: lol Apr 04 02:08:58 why lol? Apr 04 02:09:18 it's just an "oh yeah, the pmic kinda sucks" moment Apr 04 02:10:51 I would love to use you https://pastebin.com/wu0RgyJC snippet. But I do not know how to deal with those things. What are the steps? Apr 04 02:11:34 RCN & I exchanged email & I looked at BBB drawings & TI 65217 power mgmt chip. When input is applied to both power output from 65217 keeps voltage to 335 chip Apr 04 02:11:55 dreamhiker: like I said, it's just a modified version of the uio-pruss.dtsi example in my overlay-utils project. you can save this as my-pru-overlay.dtsi or whatever and then do "make my-pru-overlay.dtbo" Apr 04 02:12:22 KenUnix: sounds like a chip bug... it's definitely not the only one the pmic has Apr 04 02:12:46 manually disabling one of the two inputs of the pmic (via i2c) may fix the problem Apr 04 02:13:05 if you're using the barrel jack then you probably don't care about usb power Apr 04 02:13:19 It's the one on the BBB and verifying TI notes and block diagram that's how it works Apr 04 02:13:37 it's not how it's supposed to work or documented to work Apr 04 02:13:55 but like I said, that pmic has a bunch of bugs and misdesigns anyway Apr 04 02:14:24 lemme see if I can dig up the i2c command to disable the usb power input Apr 04 02:14:32 oh crap tha won't help Apr 04 02:14:50 since it resets its registers after shutdown (seriously what moron designed this) Apr 04 02:14:52 Yes, removing USB alllows BBB to shutdown. But, that kills my access via ethernet (COM). Apr 04 02:15:12 no it kills your access via usb, ethernet has nothing to do with it Apr 04 02:15:29 but I was talking about disabling usb power in the pmic, not physically disconnecting usb Apr 04 02:16:00 but like I just said, I realized that isn't going to work since when the pmic powers off the system it also resets its own registers, so that would turn usb power back on Apr 04 02:16:20 which is just.... stunningly brilliant design Apr 04 02:16:28 *sigh* Apr 04 02:16:41 zmatt Ethernet ia 192.16.7.2 over USB port Apr 04 02:17:00 no Apr 04 02:17:28 https://upload.wikimedia.org/wikipedia/commons/thumb/4/4e/Ethernet_port.jpg/220px-Ethernet_port.jpg that's ethernet Apr 04 02:17:55 usb networking is not ethernet, usb networking is usb networking Apr 04 02:18:44 Can't stop power over USB it's hardwired to 65217 Apr 04 02:19:07 you can stop it _in_ the tps65217 via its configuration registers Apr 04 02:19:23 but I just explained several times why that can't be used to solve your problem Apr 04 02:20:03 (I'm _very_ familiar with the tps65217 and the beaglebone's power management infrastructure, I have analyzed it in great detail, you don't need to try to explain me how it works) Apr 04 02:20:57 I wasn't aware of this particular bug (since I've never had a reason to attach both power connections) but it doesn't surprise me Apr 04 02:23:17 KenUnix: just to confirm, what's the output of the following command when both usb and the barrel jack are connected? sudo i2cget -f -y 0 0x24 0x01 Apr 04 02:24:20 0x3f Apr 04 02:24:36 okay so it's not due to the driver configuring it weirdly, ok Apr 04 02:25:05 yeah then it's probably just a hardware bug in the tps65217 Apr 04 02:25:17 I think the chip is doing what it's supposed to do Apr 04 02:25:21 it's not Apr 04 02:25:57 TI notes specifically mention power on both inputs Apr 04 02:26:08 where, more specifically? Apr 04 02:26:43 Can I upload a PDF via pasebinit? Apr 04 02:27:19 no, but the tps docs are public so just tell me which document id (e.g. SLVSB64I) and page Apr 04 02:28:50 the document is presumably the datasheet (SLVSB64I) since that's the only authoritive documentation on how the pmic is supposed to work, so which page? Apr 04 02:29:51 SLVU551 Apr 04 02:30:24 Ken and zmatt do you guys do this for a living or something Apr 04 02:30:24 SLVU551I you mean? Apr 04 02:30:50 ConnectionDiagramfor TPS65217Aand AM335 page 2 Apr 04 02:30:56 (the october 2011 version of "Powering the AM335x with the TPS65217x) Apr 04 02:31:13 KenUnix: what about it? Apr 04 02:31:43 there's nothing there saying that the power path control doesn't work properly if you use both inputs simultaneously Apr 04 02:31:52 Look at the 5V & USB inputs. Either one will power 335 Apr 04 02:32:01 yes, and? Apr 04 02:32:12 and no Apr 04 02:32:19 either one will power the tps65217 Apr 04 02:32:30 That's my point. with both powered it won't shut down. Apr 04 02:32:32 which will power the am335x _if the system is powered on_ Apr 04 02:32:43 no that conclusion doesn't follow in any way or sense from this diagram Apr 04 02:33:28 that reasoning would suggest the am335x remains powered if _either_ of them is present, which clearly isn't the case since you can shut down just fine if only one of the two is present Apr 04 02:34:05 What do you mean either one or both send output to system load Apr 04 02:34:08 when you shut down, the power path is normally disconnected from both power inputs (it is connected to BAT instead) Apr 04 02:36:07 I see the battery but don't see the power off path. shutdown causes Jtag to show power message then it restrts Apr 04 02:37:23 this is a super-simplified diagram that just draws "power path and charger" as a single opaque block, because this diagram (and this document in general) is just meant to show how the pmic is connected to the am335x, not how the pmic works Apr 04 02:37:35 Removing either USB or 5V then shutdown works. Apr 04 02:37:55 this discussion is esoteric Apr 04 02:38:02 KenUnix: yes, which shows exactly my point Apr 04 02:38:03 way way way over my head Apr 04 02:38:15 esoteric? Apr 04 02:38:16 do you guys work with this stuff professionally Apr 04 02:38:20 I do Apr 04 02:38:20 or just really into it Apr 04 02:38:45 KenUnix: anyway, it's probably just a chip bug Apr 04 02:38:53 the tps6217 has a bunch of them Apr 04 02:38:57 tps65217 Apr 04 02:39:18 Used to be into computers much deeper years ago. Retired now Apr 04 02:39:54 it's most definitely not intended/correct behaviour for it to power the system back on when both inputs are present Apr 04 02:40:09 I just have the usb plugged in Apr 04 02:40:12 it will restart Apr 04 02:40:16 after 10 seconds Apr 04 02:40:31 i always yank it out after shutdown Apr 04 02:40:38 that sounds bizarre Apr 04 02:40:46 Initially learned reading disgrams and logic back at Bell Telehone in the 70's Apr 04 02:40:51 damn Apr 04 02:40:59 real old timers Apr 04 02:41:14 I like this stuff sort of wish i had formal training in it Apr 04 02:41:31 I don't have any formal training in it Apr 04 02:42:23 My first reading of schematics was in late 60's Apr 04 02:43:12 At the Thwing Albert Instrument Co. Apr 04 02:44:06 Then I worked for GE for a time in military projects Apr 04 02:44:14 KenUnix: the plot thickens, I just tested... with both usb power and the 5V barrel jack connected, my beaglebone powers off just fine Apr 04 02:44:37 Humm Apr 04 02:45:28 My laptop is dinging up and down. Wish I knew what is causing i Apr 04 02:46:19 I mean, it'll ding any time the beaglebone connects/disconnects on usb obviously (including when it boots or shuts down) Apr 04 02:46:27 OK only other test is to disconnect USB hub Apr 04 02:46:51 There's a log for that? Apr 04 02:47:17 I'm sure it's logged somewhere but I'm not hugely familiar with windows Apr 04 02:47:56 I have looked at logs but nothing shows connects & disconnects Apr 04 02:49:48 I worked for GE Apr 04 02:49:59 in the nuclear division Apr 04 02:50:01 [ OK ] Reached target Power-Off.[22581.669959] reboot: Power down2U-Boot SPL 2019.04-00002-gbb4af0f50f (Jul 08 2019 - 11:44:39 -0500)Trying to boot from MMC2 Apr 04 02:50:03 for a bit Apr 04 02:50:18 Doing wht? Apr 04 02:50:33 so anyway, it seems I've shit on the pmic unnecessarily, shutting down while powered on both inputs works fine for me Apr 04 02:50:39 so it's probably something specific to your setup Apr 04 02:50:46 then got out of dodge after the nuclear Renaissance imploded Apr 04 02:51:03 i worked in thermo-hydraulics on the ESBWR design Apr 04 02:51:41 I worked a Springarden & Broad in Philla. Apr 04 02:51:56 or maybe it's caused by the voltage fault that happens on most beaglebones during shutdown (which probably doesn't happen on the beaglebone I just tested because I don't have the hdmi framer enabled nor anything connected that draws substantial power) Apr 04 02:53:04 ok maybe my usb cable is suspect Apr 04 02:53:12 just tried to reproduce the self turn back on Apr 04 02:53:15 didnt happen Apr 04 02:53:17 I want to add relay cape. but not till this is settled one way or the other Apr 04 02:53:40 (that fault happens because the pmic brilliantly disconnects the SYS output at the _start_ of the powerdown sequence rather than at the end, so while the pmic is leasurely turning the LDOs and DCDCs off in proper sequence, the whole system is just running on capacitors) Apr 04 02:53:41 how compatible are the capes with different images Apr 04 02:54:01 the image you're using should not be relevant Apr 04 02:54:08 ea where I was at that GE site they had armed guards Apr 04 02:54:27 except that ancient images obviously won't have the overlays for recent capes Apr 04 02:55:27 Is there a way to use to PC without power? Apr 04 02:55:46 Is there a way to use USB to PC without power? Apr 04 02:56:22 set_ relay cape came in Apr 04 02:57:09 zmatt is there a way to use nmap to scan whole subnet? Apr 04 02:57:37 you can run with usb power input disabled ( sudo i2cset -f -y 0 0x24 0x01 0x37 ) but like I said it probably won't help since after poweroff it'll reset its own registers and as a result turn usb power back on Apr 04 02:57:54 if you're using usb only for networking, you could consider using ethernet for that instead Apr 04 02:58:21 probably, nmap can do a lot, but I'm not really familiar with it Apr 04 03:00:17 That didn't work. I was trying to avoid ethernet cause my laptop ethernet port is in bad shape **** ENDING LOGGING AT Sat Apr 04 03:00:20 2020