**** BEGIN LOGGING AT Tue Jul 25 03:00:02 2017 Jul 25 07:24:22 Hello, just joined here. Anybody here? Jul 25 07:32:53 aaaand gone Jul 25 07:34:41 I'm really started to get tempted to make an irssi plugin that sends some basic Do/Don't list to people matching the pattern { join, say "hi / hello / anyone here", remain silent } Jul 25 07:35:40 zmatt: which would make look us even more arrogant, like "why don't you give me super custom service, but just RTFM" Jul 25 07:37:24 LetoThe2nd: I don't see how giving tips on how this place "works" is arrogance Jul 25 07:37:52 zmatt: i'm not saying it *is* i'm saying that most newbies interpret it as such Jul 25 07:38:20 I'm pretty sure whenever I've gives the tips manually I never got a reaction of that kind Jul 25 07:39:14 regardless, it would probably greatly improve the probability that they can get help with whatever it was they needed help with Jul 25 07:39:58 sometimes. but you're right, if it is manual or at least looks suffiently manual, then it is usually respected more. if its an automated thing, people tend to just not listen to it. if they were inclined to do so, they could already look at the topic. Jul 25 07:40:58 I don't think it's strange to ask people to hang around for a while, given that the channel is populated by people who are often doing other stuff or who are in different timezones.... I suspect some people just don't realize the nature of this channel and might have been expecting a real-time support chat or something Jul 25 07:41:42 the problem with topic is that the essential info isn't there Jul 25 07:42:15 just some links to long documents Jul 25 07:42:30 never ask to ask, just ask | be patient Jul 25 07:42:49 oh wow, it's actually in topic Jul 25 07:43:02 then I think they, like me, don't notice it buried there Jul 25 07:43:21 just what i said. if something is automatically presented text, nobody cares. Jul 25 07:45:59 I think there's still a big difference between some vague statements buried in the crap everyone gets on join, and a targeted message in response to auto-detected behaviour... yes it could be perceived as annoying, and it'll probably mis-trigger every now and then.... but I see soooooo many people coming in here and leaving without ever having giving themselves a chance to get help Jul 25 07:46:12 *having given Jul 25 07:46:48 I've also seen a youtube vid referring to the beaglebone community as "a desolate wasteland" Jul 25 07:46:53 :/ Jul 25 07:46:56 don't let me stop you. i'm just sharing what i've seen in a number of channels, and i think that you could use your time and energy for more rewarding tasks. Jul 25 07:47:09 I was just contemplating it Jul 25 07:47:30 probably a vid by someone who wondered why it just doesn't work like an arduino Jul 25 07:48:08 it's a vid by someone who went from arduino to rpi to bbb (because he needed more i/o and adc) Jul 25 07:48:54 I think this was the one... https://www.youtube.com/watch?v=xg3i1o5aQRY Jul 25 07:49:50 or, I guess not "went from/to", but he's used them all three evidently Jul 25 07:51:25 my personal opinion is that you can generally ignore about all of those so-called reviews, introduction, comparisons, whatevers - especially those on youtube. Jul 25 07:52:37 sure Jul 25 07:52:54 but it did struck me a bit, because I can easily see how one might get that impression Jul 25 07:53:50 and it would be really nice if the bbb were more welcoming for newbies Jul 25 07:55:26 of course the constant backwards-incompatible changes and lack of a good set of docs and examples that are kept *uptodate* also really doesn't help Jul 25 07:55:33 of course its always good to be nice to newbies. but there's a difference between "being nice" and "offering a free entertainment and education programme". if somebody expects the latter, he or she better pay someone for it. Jul 25 07:56:00 how exactly did we get here? Jul 25 07:56:24 zmatt: "constant backwards-incompatible changes and lack of a good set of docs" sounds like the real life instead of a school project to me ;-) Jul 25 07:57:14 that's a bit silly Jul 25 07:57:43 * LetoThe2nd puts on jester cap Jul 25 07:59:11 I don't think it's too much to ask to have some central place where you can find some notes on what happened *this time* and how to get your stuff that used to work working again Jul 25 07:59:54 ditto for some basic examples of how to do things (that changed frequently) like using an spi device Jul 25 08:01:05 I mean, I'm probably an "expert", yet even I from time to time don't really know what to say to people asking for help since I also have no idea how newcomers are expected to get stuff working Jul 25 08:02:29 or where to find a tutorial that's not horribly out of date Jul 25 08:02:55 mind, i did not say that the current state is pefect, or even good. i'm just doing the discussion counterpart. Jul 25 09:18:17 Hi All.. I need the following tasks to be done by the BBB... btw am using the Debian 8.7 2017-03-19 4GB SD IoT image... 1. When the BBB boots for the first time (While installing the image for the first time:), >> Install few python modules (ex: flask, ifnet...etc) Once the board is ready, >> check for the proxy...if there is...set the proxy settings for apt-get, wget....etc >> Go to the specified url (a git URL) Jul 25 09:18:52 Hi All.. I need the following tasks to be done by the BBB... btw am using the Debian 8.7 2017-03-19 4GB SD IoT image... 1. When the BBB boots for the first time (While installing the image for the first time:), >> Install few python modules (ex: flask, ifnet...etc) Once the board is ready, >> check for the proxy...if there is...set the proxy settings for apt-get, wget....etc >> Go to the specified url (a git URL) a Jul 25 09:19:11 2. When board reboots: >> Go to the specified url (a git URL) and download the specified file. >> check for the proxy...if there is...set the proxy settings for apt-get, wget....etc 3. Define a cron job for: >>Go to the specified url (a git URL) and download the specified file..if there is any new software...restart the board.. Jul 25 09:19:53 dsdd: so what is your actual question? Jul 25 09:21:19 Hi All.. I need the following tasks to be done by the BBB... btw am using the Debian 8.7 2017-03-19 4GB SD IoT image... 1. When the BBB boots for the first time (While installing the image for the first time:), >> Install few python modules (ex: flask, ifnet...etc) Once the board is ready, >> check for the proxy...if there is...set the proxy settings for apt-get, wget....etc >> Go to the specified url (a git URL) and Jul 25 09:21:35 (a git URL) and download the specified file and install it.. >> I have a small python application in that pirticular link. Finlly run that file Jul 25 09:21:47 fa: again, so what is your actual question? Jul 25 09:21:48 2. When board reboots: >> Go to the specified url (a git URL) and download the specified file. >> check for the proxy...if there is...set the proxy settings for apt-get, wget....etc Jul 25 09:22:09 3. Define a cron job for: >>Go to the specified url (a git URL) and download the specified file..if there is any new software...restart the board.. I almost got the info for Pi and aware of how to do it.. but i's bit tricky for me to do the same with BBB. And , I need to install the same OS in some other 30 BBBs.. Jul 25 09:22:27 3. Define a cron job for: >>Go to the specified url (a git URL) and download the specified file..if there is any new software...restart the board.. I almost got the info for Pi and aware of how to do it.. but i's bit tricky for me to do the same with BBB. And , I need to install the same OS in some other 30 BBBs.. Jul 25 09:22:48 now please top repeating. Jul 25 09:22:50 stop Jul 25 09:22:51 Can someone help me? Jul 25 09:23:05 well what is your question? Jul 25 09:23:23 how and where to write the necessary scripts Jul 25 09:24:09 write the script on one bbb and manually debug it until it works, then take care of multiplicating it. Jul 25 09:24:27 and if its about running it only once until it finihes, i think systemd can help you with that. Jul 25 09:24:54 like: https://unix.stackexchange.com/questions/233300/running-a-systemd-service-unit-at-next-boot-but-not-subsequent-boots Jul 25 10:28:01 holy shit what is that vomit of text and punctuation Jul 25 10:29:06 also, why is your first step after installation of the image.... installing python modules Jul 25 10:29:28 why don't you just include those on the image Jul 25 10:29:41 ditto for most of the other stuff you say Jul 25 10:30:15 prepare one bbb that's configured the way you want it and then create a flasher from it Jul 25 10:52:34 . . Jul 25 10:52:43 O O Jul 25 10:52:48 _ Jul 25 11:03:49 Prepare your BBB, set up a repo, make an image that contains all the little things you need. Jul 25 11:04:26 To automatically run services at boot, you install a scrip in /usr/local/bin , create a unit file in /etc/systemd/system and use systemctl enable on it. Check the systemd homepage for example units. Jul 25 14:14:26 hi, i'd like to know if is possible to use the usb client port to create an ethernet connection between the BBB Black and a tablet Jul 25 14:15:18 i've tested succesfully the connection on 192.168.6.2 between the BBB and my laptop running Ubuntu, connecting the mini usb on BBB and the usb on laptop Jul 25 14:16:01 but, is possible to connect mini USB on BBB side and micro USB on tablet side? Jul 25 18:47:43 hi, anyone knows how to apply dinuxbg patch Jul 25 18:47:53 for remoteproc driver Jul 25 18:47:54 ? Jul 25 18:48:04 thanks in advance Jul 25 19:41:26 dinuxbg? Jul 25 19:42:15 oh that Jul 25 19:43:24 that patch looks really ancient, I'm pretty sure it has been integrated already Jul 25 19:43:47 yeah it has Jul 25 19:49:46 carbon-cabron: looks like rcn merged that patch nearly a year ago Jul 25 19:52:01 i guess i shoukd recompile the remoteproc driver Jul 25 19:52:07 should Jul 25 19:52:28 uhh? Jul 25 19:52:51 the remoteproc driver itself is included with the kernel as a module Jul 25 19:53:39 and I'm fairly sure it's even enabled by default on current images (and has been for a while) Jul 25 19:53:41 i am not able though to configure a gpio pin as a pruout Jul 25 19:54:04 that's not related to the remoteproc driver at all Jul 25 19:55:01 if you're using a sufficiently recent image, you can select pinmux using the "config-pin" tool Jul 25 19:55:04 ok, what should i do next when i compile the ledblink example Jul 25 19:55:08 found here Jul 25 19:55:32 https://github.com/dinuxbg/pru-gcc-examples/tree/master/blinking-led Jul 25 19:55:55 or is there a new example of how i can get use of the PRUs Jul 25 19:55:58 pinmux has no impact on compilation... if the pinmux is setup wrong the program should still work, except you just won't see a blinking led Jul 25 19:56:54 there are several ways to use pru actually, and I think all of them have their supporters Jul 25 19:57:46 for now id love to see one of the user led blink Jul 25 19:57:57 on the beagleboone blue Jul 25 19:58:04 bone* Jul 25 19:58:18 the pru gcc stuff is kinda obscure so definitely not the best thing to try Jul 25 19:58:58 ok, so how do i setup the pinmux then Jul 25 19:59:00 the two main popular ways are pasm + uio_pruss or TI's C compiler for pru (clpru) + remoteproc-pru Jul 25 19:59:10 21:55 < zmatt> if you're using a sufficiently recent image, you can select pinmux using the "config-pin" tool Jul 25 20:00:05 ok Jul 25 20:00:09 i have this tool Jul 25 20:00:21 image on my bbblue is the latest Jul 25 20:01:37 sudo sh -c "echo 'pruout' > /sys/devices/platform/ocp/ocp:P9_27_pinmux/state" Jul 25 20:01:43 what about this Jul 25 20:02:11 that's the low-level interface around which config-pin is a more friendly wrapper Jul 25 20:02:57 ok, but i cannot write pruout to the state file Jul 25 20:12:24 tip: if you want to improve the chance of getting useful help, you really need to present your problem better. show what you've tried to get things to work, and what issues/errors you hit. "I cannot write to the file" is very uninformative, show the actual error (use a site like pastebin for anything that's more than one line) Jul 25 20:12:52 why were you trying to do that anyhow instead of using config-pin ? Jul 25 20:24:33 now that u said the remoteproc driver is updated and tha latest version is already built in the latest kernel I first have to bi familiar with its usage Jul 25 20:24:35 i tried that because i found instructions to do so in this repo Jul 25 20:26:12 https://github.com/dinuxbg/pru-gcc-examples Jul 25 20:26:13 as far as i know i only have to copy the compiled firmware to /lib/firmware/am335x-pru0-fw /lib/firmware/am335x-pru1-fw Jul 25 20:26:13 and that should the trick Jul 25 20:28:26 so, keep in mind that dinuxbg is working on pru gcc, which is not what most people are using, and I think still in early development. that doesn't mean it won't work, but it is relevant to be aware of the nature of those repositories Jul 25 20:29:26 and yeah the remoteproc driver will (try to) load compiled binaries from those locations Jul 25 20:35:06 I think the official tree with examples and such for use with remoteproc-pru is the "pru software support package" from TI. and it looks like rcn made a debian package for it Jul 25 20:36:47 thx zmatt for your replies, i really appreciate it, i also heard uio_host driver is more commonly used Jul 25 20:37:21 if you're using a very new image then you can very easily switch between the two Jul 25 20:37:34 there are two lines in /boot/uEnv.txt that control which of the two drivers is enabled Jul 25 20:38:44 i already did that Jul 26 01:18:04 hey zmatt im back to annoy you Jul 26 01:18:44 so ive looked at the sgx module source you sent to me last we talked Jul 26 01:19:33 is the difference between https://github.com/rcn-ee/ti-omap5-sgx-ddk-linux and https://github.com/rcn-ee/ti-omap5-sgx-ddk-um-linux is that the first one is a kernel module and the second one lives in userland? Jul 26 01:19:44 if so, dont i just need the kernel module? Jul 26 01:21:25 you need both Jul 26 01:21:39 gotcha - i can build both Jul 26 01:21:50 looked through the makefiles - they seem simple! Jul 26 01:22:08 the kernel module basically just acts like a bridge between userspace and the sgx, and deals with mmu stuff Jul 26 01:22:17 oooooo gotcha Jul 26 01:22:40 that's the Direct in Direct Rendering Manager :) Jul 26 01:23:08 *gasp* but I'm used to X11! Jul 26 01:23:23 so, in the -um you find the GLES and GLES2 libraries, and EGL Jul 26 01:23:50 appears simple enough Jul 26 01:24:39 the documentation says "cd into directory, set variables, run make" Jul 26 01:25:04 is there somthing im overlooking??? this seems actually pretty simple to integrate into my existing build tree Jul 26 01:25:28 if you check my version of the repo, I even made a tiny script that builds a debian package -> https://github.com/mvduin/omap5-sgx-ddk-linux Jul 26 01:25:49 but yeah it is pretty simple Jul 26 01:26:08 Yeah I was reading through that - I was thinking it might be better to explore the originals to get a better understanding of whats happening Jul 26 01:26:15 the tricky part is that it does rely on a few patches which might not be mainline Jul 26 01:26:23 hmmmmm Jul 26 01:26:26 but they are in rcn's kernels nowadays of course Jul 26 01:26:31 (I dug them up, he merged them) Jul 26 01:26:59 so all i need to do is grab rcns branch of mainline for ease of integration? Jul 26 01:27:20 (BTW WHO IS THAT GUY - his name is EVERYWHERE!) Jul 26 01:27:30 (is he a TI employee?) Jul 26 01:27:51 nope Jul 26 01:27:57 I think he works for digikey ? Jul 26 01:28:02 holy crap - what a badass Jul 26 01:28:03 https://github.com/RobertCNelson/bb-kernel/tree/am33x-v4.9/patches/drivers/ti/sgx <-- the patches btw Jul 26 01:28:47 Hello! Jul 26 01:28:49 BBB! Jul 26 01:29:10 t_brah: if you're not familiar with his bb-kernel or ti-linux-kernel-devel repositories, that's how you can rebuild a -bone or -ti kernel respectively Jul 26 01:29:13 thanks for digging those up btw Jul 26 01:29:33 t_brah: check out the branch for the kernel series of interest, and then just ./build_deb.sh :-) Jul 26 01:29:49 actually, fix system.sh first Jul 26 01:30:00 zmatt: ive been building strictly off mainline - is this a bad idea? Jul 26 01:31:29 dunno. I can understand the appeal, but it can sometimes take aaaaages for stuff to finally get accepted in mainline Jul 26 01:32:16 rcn does a pretty good job at maintaining a kernel with relevant patches included Jul 26 01:32:34 got it - ill work of rcn Jul 26 01:32:52 we use a customized 4.9-bone kernel ourselves Jul 26 01:34:41 ...does anyone here mess with UPM and MRAA? Jul 26 01:43:25 sorry Set_, IDK Jul 26 01:44:25 zmatt - cloned rcns bb-kernel, im grabbing his newest 4.9 bone tag (are there any tags you like working with?) Jul 26 01:45:44 zmatt: grabbing 4.9.x-bone# Jul 26 01:46:39 (specifically 4.9.38-bone6) Jul 26 01:47:07 (i was working off the 4.9 kernel before... is why i chose 4.9) Jul 26 01:47:27 (also b/c youre using it!) Jul 26 01:52:28 Hey everyone...none of my old software is working with the new kernel. Did we update to Python 3? Jul 26 01:54:15 my build machine is running python 2.7 - but i only have experience building android for bbb (i dont build a python binary, to my knowledge, for my android deployment) Jul 26 01:54:34 Okay. Jul 26 01:54:47 i dont know if i helped :S Jul 26 01:54:49 I just thought, since things were not working, we had updated. Jul 26 01:55:01 try running python Jul 26 01:55:04 I could be wrong. I am off to check some software. Jul 26 01:55:06 what version comes up Jul 26 01:55:13 2.7 Jul 26 01:55:39 so you have a python2.7 bin Jul 26 01:55:43 Yep. Jul 26 01:56:01 and your programs are written for py2.7? Jul 26 01:56:04 Yep. Jul 26 01:56:28 I will have to review this software and adjust it. Jul 26 01:56:33 Dang things. Jul 26 01:56:55 t_brah: 4.9 is the current long-term support kernel Jul 26 01:57:16 debian definitely hasn't switched to python 3 by default Jul 26 01:57:38 Okay. Good news. Then, it is something I have done that I forgot about. Jul 26 01:57:50 wooo Jul 26 01:58:35 iirc ubuntu *did* switch to python 3, to their credit :) Jul 26 01:59:09 (but 'python' would still refer to python 2, if installed) Jul 26 01:59:14 My software is working again. I goofed up. Jul 26 01:59:33 I had no .com after my e-mail program for the account. Jul 26 01:59:35 Oops. Jul 26 02:00:06 Actually, everything had changed. Jul 26 02:00:59 I think when I updated the NP++, things on my end changed on my hard drive. Jul 26 02:01:19 cloned bb-kernel, checked out 4.9.37-bone6, edited system.sh (and copied it), running build_kernel.sh now... this seems too easy Jul 26 02:02:02 it even sets up my linux source for me Jul 26 02:02:10 darn! Jul 26 02:03:12 btw if you make some small change and want to recompile, be sure to use tools/rebuild.sh instead of ./build_kernel.sh Jul 26 02:03:21 (e.g. when testing a patch) Jul 26 02:03:30 Oh...I know. We do not have Flask on our builds. Jul 26 02:04:48 I just typed env and a bunch of things showed up? What gives? Jul 26 02:06:48 doesnt that normally happen? Jul 26 02:06:55 I guess. Jul 26 02:06:59 I just found that out. Jul 26 02:07:03 env dumps your environment vars Jul 26 02:07:08 Oh. Jul 26 02:07:15 Now, I know. Jul 26 02:07:16 if you want to find where a bin is, use which Jul 26 02:07:26 like "which python3" Jul 26 02:08:28 what info are you looking for? Jul 26 02:08:45 Nothing. I tried to install Flask with pip but I came up empty. Jul 26 02:08:54 I got all kinds of error codes. Jul 26 02:09:03 pastebin? Jul 26 02:09:04 Let me pastebin this thing. Jul 26 02:09:07 yeee! Jul 26 02:09:09 Please hold. Jul 26 02:09:12 NP Jul 26 02:09:49 https://pastebin.com/s3z0X6kc Jul 26 02:09:59 This should show all issues pertaining to my Flask build. Jul 26 02:11:44 Forget it. I think I may have just not used sudo when installing via pip. Jul 26 02:11:49 Dang. I am forgetful today. Jul 26 02:12:22 its also possible to install with pip using non-superuser permissions Jul 26 02:12:29 sometimes its a better idea to do that... Jul 26 02:13:08 pip install --user Jul 26 02:13:37 Oh. Jul 26 02:13:41 you can even use the user flag to install under other users Jul 26 02:14:15 Okay. Hey...I got all sorts of exceptions in Flask when running my software. I will be right back. I want to make sure I can run this software. Jul 26 02:14:24 good luck Jul 26 02:14:58 Thank you. Jul 26 02:58:41 Oh, I am off. Enjoy. I have been too wrong tonight again. **** ENDING LOGGING AT Wed Jul 26 03:00:02 2017