**** BEGIN LOGGING AT Thu Jan 07 03:00:55 2021 Jan 07 09:08:14 Anyone here? Jan 07 09:08:23 I have questions Jan 07 09:09:10 I found the list that says I'm not alone, so here comes the questions: Jan 07 09:10:33 I'm a Raspberry Pi guy so far, mostly amateur hour, can't code myself out of a wet paper bag, but I'm really good at copy and paste. Anyway, what's the difference Jan 07 09:10:48 Between Raspberry Pi and Beagle? Jan 07 09:13:30 Also, I'm in the process of building out a Raspberry Pi based ADS-B data reciever with an RTL/SDR dongle. Any advantages to basing these sensors off of the Beagle kit even compared to Raspberry Pi kit? Jan 07 09:14:27 I'm getting the feeling that I've missed a step somewhere, like I'm in a waiting room or something... Jan 07 10:57:41 aw Jan 07 15:08:01 random linux question of the day: is there a way to quickly "sudo echo "foo" > bar" Jan 07 15:24:41 echo foo | sudo tee bar Jan 07 15:24:45 is one option Jan 07 15:26:00 simple, i like it. makes sense. thank you. Jan 07 15:28:48 so here's the stupid thing... if you do: sudo -s 'echo foo >bar' then sudo will actually spawn a shell and pass your command via -c, so that _ought_ to work Jan 07 15:28:58 instead you get "/bin/bash: echo foo >bar: command not found" Jan 07 15:29:30 turns out, sudo "helpfully" excapes the spaces and > in that argument Jan 07 15:32:27 this does work: sudo sh -c 'echo foo >bar' Jan 07 15:33:18 the escaping sudo -s does on its argument is really bizarre, since it pretty much restricts you to simple commands, for which you don't need a shell in the first place Jan 07 15:36:45 there is probably an esoteric reason for that. Jan 07 15:39:19 I'd love to know it... it just looks to me like they made "sudo -s COMMAND" pointless and made echoing into a file (or sysfs attribute) needlessly hard Jan 07 16:30:19 sudo wasn't intended for such use Jan 07 16:40:39 mru: so what *was* the intended use-case for "sudo -s COMMAND" ? like, it's explicitly documented as invoking the shell like $SHELL -c COMMAND which really sounds like it was intended for exactly this sort of use... except the (undocumented) escaping breaks it Jan 07 16:42:33 the real benefit of sudo is that it lets the admin grant certain users permission to run a restricted set of commands as certain other users Jan 07 16:42:43 the -s thing seems pretty pointless Jan 07 16:43:21 well no it seems very useful... if it weren't broken :P Jan 07 16:43:22 if you're going to be running arbitrary commands, you might as well just start a shell as the desired user Jan 07 16:44:03 shell redirections are never going to play nicely with that kind of thing Jan 07 16:44:15 sure you can spawn a shell and enter the command there, but that's more cumbersome than sudo sh -c 'echo foo >bar' Jan 07 16:44:33 which itself is more cumbersome than sudo -s 'echo foo >bar' if that had worked Jan 07 16:44:43 elaborate? I don't see any problem Jan 07 16:44:56 the shell redirection doesn't work because sudo willfully breaks it Jan 07 16:45:02 (when using -s) Jan 07 16:45:13 people tend to write "sudo foo >bar" and expect it to work Jan 07 16:45:29 well yes but that just means you don't understand how the shell works Jan 07 16:45:34 as soon as you're passing shell commands as arguments to shells, things get nasty quickly Jan 07 16:46:23 that's a really vague statement, and seems to be advocating for the non-existence of the -c option of sh :P Jan 07 16:46:46 ever messed up using it? Jan 07 16:47:52 not that I recall... if you're going to use it for really complicated things with variable substitutions or whatever then it's probably time to look for a saner solution :P Jan 07 16:47:59 that doesn't mean there's a problem with simple uses Jan 07 16:48:21 and none of this seems relevant to the original question Jan 07 16:48:57 which is... why did they implement "sudo -s COMMAND" only to subsequently render it useless by escaping shell metachars in COMMAND Jan 07 18:11:54 Is the beaglebone AI board's Rev A2 in production? Jan 07 18:13:35 it's in EMI review Jan 07 18:17:25 Around when will the revA2 be released for Beagle bone AI Jan 07 18:18:13 "No set date." according to jkridner Jan 07 18:32:08 can you echo to /sys/module/blah/moduleparameter and have it take effect right away? Jan 07 18:32:27 i seem to have gotten the debug flag set in one run, but cant repeat that. Jan 07 18:33:45 when else would it take effect if not right away? sysfs is not a config file, it's a live representation of stuff in the kernel Jan 07 18:34:10 alright, good Jan 07 18:34:23 if you write to a modifiable module parameter in sysfs, you're directly modifying the corresponding variable in the kernel module Jan 07 18:34:46 so the only question might be when the module consults that variable Jan 07 18:36:44 excellent. just not sure why the : pr_info(args); when i cat the _show named file Jan 07 18:37:04 ... doesn't work Jan 07 18:38:56 ? Jan 07 18:39:29 __ATTR(charge_info, 0664, bq257xx_charge_info_show, NULL), is supposed to pr_info a bunch of times. Jan 07 18:39:51 but when i cat charge_info, it logs nothing Jan 07 18:42:53 btw generally to log stuff in a driver it's better to use the dev_ variants (dev_dbg, dev_info, dev_notice, etc) Jan 07 18:44:03 yup, all the instrumenting i am doing uses dev_dbg. Jan 07 18:44:11 long live dynamic debug Jan 07 18:44:53 the instrumenting i am doing doesn't seem to show up in the control file though. It does work so i'm not complaining Jan 07 18:46:12 uhh, weird, dev_dbg should be subject to dynamic debug Jan 07 18:46:51 (likewise pr_debug) Jan 07 18:47:20 welp, now it shows up, I think earlier i was updating the module file but not the kernel Jan 07 18:47:47 as for your messages not bring printed at all, my first intuition would be... yep, accidently using old files instead of the modified one Jan 07 18:48:39 problem with that theory is that literally last run it was working, and seemed to stop after adding a couple more dev_dbgs.. Jan 07 18:49:03 maybe it's ghosts Jan 07 18:49:09 probably Jan 07 18:49:18 could be gremlins too Jan 07 18:50:12 pr_info prints to journallog right? Jan 07 18:51:33 pr_info is just printk at log level "info" (6) Jan 07 18:51:52 all kernel logging that's emitted ends up in journal Jan 07 23:40:13 Need HELP please. BBGW v1.0 Boot off SD. WiFi not working. Jan 07 23:45:00 connmanctl! Jan 07 23:45:15 I get error Jan 07 23:45:32 If you are far away from the source, get closer to the wifi source. Jan 07 23:45:51 I had an issue a while back. I was not close enough. Jan 07 23:46:20 Did you ever get the antennas for the BBGW or are you using the built in antenna? Jan 07 23:46:35 Not the problem. Wifi works when boot off emmc not sd Jan 07 23:46:40 see this error Jan 07 23:46:42 Oh and jbro: What error? Jan 07 23:46:44 connmanctl> enable wifi Jan 07 23:46:50 Okay. Jan 07 23:47:07 Type services and see what happens... Jan 07 23:47:10 if I do Technologies, wifi does not show up Jan 07 23:47:13 pk Jan 07 23:47:34 Forget tech, please try services. Jan 07 23:47:38 Hello/ Jan 07 23:48:04 sorry _Set Jan 07 23:48:07 No issue. Jan 07 23:48:08 you there Jan 07 23:48:17 I am here. Jan 07 23:48:17 Yep. Jan 07 23:48:20 ok thanks. Jan 07 23:48:23 So, type services. Jan 07 23:48:25 Only. Jan 07 23:48:30 connmanctl> services*AO Wired ethernet_04a316aedff7_cable Jan 07 23:48:50 Do you have a Ethernet Cable in it or is it a BBGG? Jan 07 23:48:55 I am using usb and cluod9 for terminal Jan 07 23:48:59 Okay. Jan 07 23:49:20 What is the dev. desktop, i.e. Win. or Linux? Jan 07 23:49:29 Win Jan 07 23:49:31 if Win, use PuTTY. Jan 07 23:49:36 ok Jan 07 23:49:45 PuTTY first and then try Chrome and not Edge. Jan 07 23:49:54 Were you using Edge? Jan 07 23:50:18 Im on chrome, yes Jan 07 23:50:28 So, 192.168.7.2 on PuTTY under Win. 10? Jan 07 23:50:51 I am in Jan 07 23:51:04 You signed in? Okay. Are you using Win 10? Jan 07 23:51:10 yes Jan 07 23:51:23 Okay. connmantctl >>> services >>> Jan 07 23:51:28 and then... Jan 07 23:51:59 I se my wifi router Jan 07 23:52:07 connect >>> wifi_asdfad;kfnadkf_;asd;dahdf; or whatever your wifi credentials are... >>> passcode! Jan 07 23:52:41 Now, when you go to cloud9, first update and upgrade your machine. Jan 07 23:52:48 Sorry. Jan 07 23:52:58 connmanctl> connect wifi_e0e5cf7fb94f_4a42_managed_psk Jan 07 23:53:09 Yes. Jan 07 23:53:12 And? Jan 07 23:53:20 it should ask for your passcode? Jan 07 23:53:21 Right? Jan 07 23:53:43 no, the first line is me, the second machine response Jan 07 23:54:01 then it kicks me out of connmanctl Jan 07 23:54:06 Hmm. Jan 07 23:54:20 I think the wifi is not enabled in hardware Jan 07 23:54:23 so, connect wifi_Xxxxxxx_xxxx_managed_psk kicks you out? Jan 07 23:54:30 maybe the image is wrong Jan 07 23:54:32 ? Jan 07 23:54:36 What image are you using? Jan 07 23:54:41 uname -a? Jan 07 23:54:45 cat /etc/dogtag? Jan 07 23:54:52 the latest from beagleboard.org debian 10_iot Jan 07 23:55:09 Oh. OKay. Did you get it from beaglboard.org/latest-images? Jan 07 23:55:37 sorry, here is answer Jan 07 23:55:48 debian@beaglebone:~$ uname -a Jan 07 23:56:14 See here: https://debian.beagleboard.org/images/bone-debian-10.3-iot-armhf-2020-04-06-4gb.img.xz <<< This is the latest for now. Jan 07 23:56:33 Did you use balenaEtcher? Jan 07 23:56:56 yeh, that's it and I used balenaEtcher Jan 07 23:57:07 I tried different cards Jan 07 23:57:13 Okay. SO what does uname -a and cat /et/dogtag state? Jan 07 23:57:21 sorry. cat /etc/dogtag? Jan 07 23:57:49 debian@beaglebone:~$ cat /etc/dogtag Jan 07 23:57:57 Yea. Type that... Jan 07 23:58:14 type in your console cat /etc/dogtag Jan 07 23:58:24 again, first line is me, second is machine Jan 07 23:59:16 are you in root right now? Jan 07 23:59:24 no Jan 07 23:59:26 or /home/debian? pwd? Jan 07 23:59:45 or /home/debian Jan 07 23:59:54 should i ry sudo Jan 07 23:59:58 Okay. So, let me try this again b/c...no. Jan 08 00:00:11 Do not use root. Jan 08 00:00:14 Not right now. Jan 08 00:01:22 so. These are my commands for the BBGW and not the BBGG: connmanctl >>> services >>> agent on >>> connect wifi_xwsfef_managed_psk >>> passcode. Jan 08 00:01:32 I think I forgot to tell you about agent on. Jan 08 00:01:49 agent on trying hold (its a BBGW) Jan 08 00:01:59 Okay. Jan 08 00:02:04 BBGW, got it. Jan 08 00:02:52 My mistake was thinking you knew. I am sorry. I figured you might have known about services >>> agent on >>> connect >>> passcode Jan 08 00:02:56 My bad, matey! Jan 08 00:03:25 Did it work? Jan 08 00:03:32 It usually always works. Jan 08 00:03:53 Unless, I am too far away from my access point or my Wifi is overburdened. Jan 08 00:04:08 anyone have experience flashing ubuntu to beagles? Jan 08 00:04:09 yes. thanks, let me check my signal on my phone Jan 08 00:04:57 yup, it works, thank you Jan 08 00:05:56 I tried agent on, but must not have done it right i guess Jan 08 00:07:05 Also, How can I get it to boot from sd card every time? seems to be hit or miss Jan 08 00:16:58 Nice. Jan 08 00:17:09 Yes. Jan 08 00:17:51 I appreciate Jan 08 00:25:55 jbro: If you put in the SD Card in the slot holder, it boots from SD. Jan 08 00:26:02 brb Jan 08 00:57:42 troy: Look here >>> https://www.digikey.com/eewiki/display/linuxonarm/BeagleBone+Black Jan 08 00:58:01 One of those distros indeed is Ubuntu. Jan 08 01:01:38 Jan 08 01:06:13 Very cool set_ I'll check it out. Do you happen to know, typically how long are you holding the S2 "Boot" button before the lights come on? Jan 08 01:07:10 Nope. But...the buttons light up and the S2 button can be release. I know one in particular led needs to light up. I am just not sure exactly which one. I just wait for all of them to light up. Jan 08 01:07:51 I mean... Jan 08 01:07:57 It depends. Jan 08 01:08:31 Have you updated? Have you been changing things and adding services or boot scripts? Things like these ideas can interfere w/ boot time. Jan 08 01:12:46 DigiKey looks good... No I'm trying to get a Ubuntu 16.04 (but at this rate I'll take anything Ubuntu) to work with some high end Servo controls. But I couldn't even get it to respond to the SD card... it MAY be flashing it now... I read it can take 40 - 50 minutes after the lights come on? Jan 08 01:13:34 Some times but highly unlikely these days. I saw w/ the images that are already compiled, it takes 15 minutes max. Jan 08 01:14:03 MachineKit.io has a debian image for using servos. Jan 08 01:14:21 I'm hopeful because right now I can't connect through cloud9 192.168... over usb for the first time Jan 08 01:14:39 Oh. Jan 08 01:14:48 You can or cannot connect so far? Jan 08 01:15:29 Yeah... the company I got the motors from 'supports Ubuntu 16.04'... I've been connecting fine with the stock Debian... but now its not... so I'm hoping its loading Ubuntu Jan 08 01:16:03 Oh. Jan 08 01:16:15 I found a co. that is like that online from NY. Jan 08 01:16:23 Um... Jan 08 01:16:27 Teknic? Jan 08 01:16:32 YES! Jan 08 01:17:01 You can cross compile w/ Debian on a Debian distro to the BBB or whatever. Jan 08 01:17:30 the motors are top notch... and they assure me they are 'bringing their documentation and software up to date' Jan 08 01:17:48 The one thing I came across that I could not understand until a fellow told me was that libstdc++.so.x.xx needs to be the same. Jan 08 01:17:53 I hope so. Jan 08 01:18:30 So, w/ a Debian Distro on the BBB and cross-compilation from a Debian Buster distro from a dev. desktop, you are sure to make headway much quicker. Jan 08 01:19:14 wait set set_ are you saying you've used their motors with Debian? Jan 08 01:19:24 Yes and no! Jan 08 01:19:28 I have one. Jan 08 01:19:37 I have everything needed to make it work but... Jan 08 01:19:55 I do not have the power supply yet. Jan 08 01:20:38 I already cross-compiled the source and libstdc++.so.1.2x is done. Their examples cross-compiled like stated from their instructions too. Jan 08 01:20:59 I originally thought I would use Arduino... but that didn't give access to dynamic torque limits... so this is my first working with BBB Jan 08 01:21:18 Oh. You are going to like the board. The people are helpful at times too. Jan 08 01:21:33 NOt me really but other people know a lot. Jan 08 01:21:51 I'm actually encouraged that SOMEONE responded here... it's been a long frustrating day Jan 08 01:21:58 ha. Jan 08 01:21:59 so thank you Jan 08 01:22:29 were you using Eclipse as they recommend? Jan 08 01:22:34 I was going ape-$%#@ the first time I tried to cross-compile. Jan 08 01:22:35 Yes. Jan 08 01:23:12 The instructions are mostly correct but you will need to find out how to use sftp yourself, i.e. as the Eclipse does not carry it any longer from what I found. Jan 08 01:23:16 I hear you... were you running Eclipse in a linux environment and then cross compiling for BBB? Jan 08 01:24:04 Yes. But it was for a Debian Distro. I chose that distro b/c the the main linux distro for the BBB.io boards are debian now. Jan 08 01:24:21 At least, they are coming preshipped w/ Debian. Jan 08 01:24:49 sftp for like ssh'ing into BBB? Jan 08 01:25:07 transferring the .so file and compiled files of examples. Jan 08 01:25:16 yes... that's what I have... Debian on the eMMC Jan 08 01:26:07 I have debian on my BBB, too. Jan 08 01:26:15 yeah I was reading about the .so... that's new to me too. So the directions aren't good for that either? Jan 08 01:26:53 Yes. It is but you will need to follow it in a debian distro. It is similar but just not done w/ ubuntu. Jan 08 01:27:48 I had to reread the instructions a bunch of times. For one, Eclipse has changed since Ubuntu 16.04. Jan 08 01:29:15 YES I've noticed Eclipse was different... I'm self taught and have been using VisualStudio, even got it working with Arduino and Controllino. Jan 08 01:29:30 And another thing, I did not need to figure out how to debug from Eclipse yet. The info. and source files are done and completed on my end. So, I am thinking at some point when I type up my own source to transfer to the BBB, this debugging may prove useful. Jan 08 01:29:34 Oh. Jan 08 01:29:34 ? Jan 08 01:29:42 You got the motors to run from Arduino already? Jan 08 01:29:53 no Jan 08 01:29:59 oh. Jan 08 01:30:23 i've don't other projects with Controllino programmed in VStudio environment Jan 08 01:30:33 Updating old instructions is not so difficult at times. Jan 08 01:30:36 I got you. Jan 08 01:31:33 I will say the ClearView software is VERY nice and user friendly with their hubs. Jan 08 01:31:47 I am waiting on my income to suddenly skyrocket so I can get a power supply. Nice! I hope so. Jan 08 01:32:45 I have not jumped into it a lot. I have been reading the instructions and manuals first. Jan 08 01:33:09 I have a lot to learn still... will need to also figure out how to source a 4-20ma control signal for an i/p transducer at some point... I like BBB, but the milliamp max per pin is really low Jan 08 01:33:25 are you looking for a specific PS? Jan 08 01:33:34 As usual, sort of. Jan 08 01:33:58 I was going to get to that beast of a power supply at Teknic. Jan 08 01:34:29 oh, you don't mean the 24v supply Jan 08 01:35:12 yeah I got the NEMA 56 for my project and the power supply is included internally i guess Jan 08 01:35:20 No. If the 24v supplies drop below ...no. Jan 08 01:35:24 I do not think so. Jan 08 01:35:43 Wait, you got the merridian? Jan 08 01:36:06 no, I got the SC NEMA 56 Jan 08 01:36:10 Oh. Jan 08 01:36:12 software controlled Jan 08 01:36:19 Okay. Right. That is the one I got. Jan 08 01:36:32 It is the smaller one that I got this time. Jan 08 01:36:54 I got lucky. Jan 08 01:37:02 It fits my slide real well. Jan 08 01:37:16 One issue. The damn tap ripped the metal. Boo! Jan 08 01:37:19 I will say, after I spoke with them several times... they may try to add some of the software controlled features through Arduino Jan 08 01:37:30 Oh. NIce. Jan 08 01:37:45 I do not use them much. I learned some stuff about ARduino. Jan 08 01:38:21 I'm much more comfortable with Arduino, but I'm learning why linux guys... like linux i guess Jan 08 01:38:35 Yea man. It is an entire os. Jan 08 01:38:40 Super filesystems! Jan 08 01:38:47 Set are you on here often? Jan 08 01:38:51 DEFINITELY Jan 08 01:39:03 Everyone wished the answer was no. Jan 08 01:39:06 But...I try. Jan 08 01:39:09 LOL Jan 08 01:39:28 I am just glad that no one is up for kicking me constantly. Jan 08 01:39:54 I appreciate chatting with you. I'm gonna need to bolt for now... hope to catch you here again Jan 08 01:39:57 One time, the entire system crashed and there were only like two people in here. One was me! Jan 08 01:40:04 Okay. Later. Jan 08 01:40:05 thanks again Jan 08 01:40:08 hehe Jan 08 01:40:10 NO issue at all. Jan 08 01:40:13 seriously thank you Jan 08 01:40:22 Yep! Jan 08 01:43:44 Oh and troy: ONe thing about those motors... Jan 08 01:44:23 Take for instance mine, if it drops below 24v, the motor shuts down. And...if it drives high above 75v, the motor shuts down. Jan 08 01:45:15 So, a dedicated power supply about 50v should cover it. But, i am guessing b/c I feel new to power supply ideas. Jan 08 01:52:20 Oh and I think that ubuntu image 16.04 was a machinekit.io image from rcn-ee. It must have been geared towards the BBB and Teknic. Cahoots? Jan 08 02:14:06 troy: I did not have the eclipse version if you ever come back. I just got what you were saying. **** ENDING LOGGING AT Fri Jan 08 02:59:57 2021