**** BEGIN LOGGING AT Mon May 29 03:00:05 2017 May 29 03:06:15 also perhaps a nice illustration of async is how you could implement promise.then using it: https://hastebin.com/ifogabikik.js May 29 03:06:49 probably not the easiest example to follow though :) May 29 03:34:15 Yay! Finally got a kernel up and running on the beaglebone x) May 29 03:39:41 zmatt have you seen the v8 developers talk on speeding up javascript? May 29 03:40:02 uh, they do so all the time afaik? May 29 03:40:34 yeah you're right, i just realize dthat May 29 03:40:35 (and a year or two later nodejs gets it too) May 29 03:40:50 the one i was refering to was from google i/o 2012 May 29 03:40:56 where basically he says "pretend you're programming in c" May 29 03:41:01 that sounds really ancient May 29 03:41:48 1 year ago is old news, 2 years ago is ancient news May 29 03:41:55 2012 is the far prehistory May 29 03:41:58 well, regardless, i'm under the impression its still relevant May 29 03:42:20 if I wanted to pretend I was programming in C, I'd program in C May 29 03:42:23 the basic idea being that if you don't utilize the dynamic typing features of javascript, v8 won't generate it's complicated object structure that it uses to store each variable May 29 03:42:29 well, actually, I often do May 29 03:42:47 ehm, yes, obviously? May 29 03:42:57 v8 makes "hidden classes" May 29 03:43:30 mhm May 29 03:43:42 they benchmarked 1/2 the speed of C May 29 03:43:51 they're funny people May 29 03:44:29 are you sure you're talking about javascript and not webassembly? May 29 03:44:38 yup May 29 03:44:39 it was a good talk May 29 03:44:47 I'm sure it was May 29 03:44:54 i'm gettin link May 29 03:45:21 now if only that meant node didn't take seconds to even start up on a beaglebone May 29 03:45:22 www.youtube.com/watch?v=UJPdhx5zTaw May 29 03:46:01 any optimization advice from 2012 is useless, the engine is constantly being overhauled May 29 03:46:36 and unless you enable deopt tracing you have no idea when or why your code is becoming terribly slow May 29 03:47:12 e.g. something like using x += EXPR; instead of x = x + EXPR; where x is a let-variable is for some V8 versions enough to completely deopt the function in which that statement appears May 29 03:48:48 see also https://github.com/vhf/v8-bailout-reasons May 29 03:50:03 note that most of the advice there no longer matters with TurboFan, but even the latest nodejs has a sufficiently old V8 that enabling TurboFan there results in crappy performance overall May 29 03:50:48 so my advice is simpler: try to write clean, readable javascript code. if you actually care about performance, don't use javascript lol May 29 03:51:15 that's a pretty good list May 29 03:51:36 i'll be starting a v8 vivesection probably at the end of this week but May 29 03:51:53 but nothing, i gues May 29 03:51:55 it's a good list, if you're working on a web framework or something like that May 29 03:52:00 i don't disagree with you about javascript and c May 29 03:52:07 or rather May 29 03:52:09 javascript and not May 29 03:52:51 writing javascript while keeping track of what will or won't cause v8 to deopt your code looks like a chasm of madness to me May 29 03:54:51 ah, that's why the sky outside is looking so dark.... https://www.buienradar.nl/ May 29 03:55:46 i think that keeping javascript simple is the best advice May 29 03:56:01 i like javascript because it uses a c like syntax May 29 03:56:37 but i'm not a fan of its advanced features May 29 03:57:19 but a lot of people seems to love it.... May 29 03:57:36 async/await ftw May 29 03:57:43 brb, gonna stare at the sky for a bit May 29 04:08:48 damn, those were some epic skies just now May 29 11:15:16 have anyone worked with Uniflash for BBB? May 29 11:38:07 Hi. After apt-get upgrade the beaglebone blue kills the network. i can't connect to it. May 29 12:32:59 hi sorry, to everyone, I'm just starting with my new beaglebone black wireless May 29 12:33:46 I was wondering once I connect to it, through wifi, and I get inside the board from another device, can i run app, through wifi without connecting through usb channel? May 29 14:43:37 Cristina_ you can ssh over wifi May 29 16:31:53 I need tsc_adc module take sample at rate 10kHz. I don't see tsc_adc sample_rate considered in wiki. Should I modify driver ? But I don't know how. Could you give me an advices? May 29 17:53:51 hmm, they hardcoded the samplerate in the driver? that sounds odd May 29 17:56:59 the various delay parameters seem to be DT-configurable May 29 18:01:36 it seems the driver configures the adc clock at 3 MHz May 29 18:03:59 one step takes (opendelay + (15 + sampledelay) * avg) adc cycles, so 3 MHz adc clock implies max 200 ksps May 29 18:05:27 folks, i've been trying to ping my beaglebone ip and it wouldn't respond. Connected it to usb so I can check if I am pinging the correct ip. I had the right ip. I tried it again with my power supply, no good. Switched to usb then shut it down. Then on the 5th time, I was able to ping it. What could have happened? May 29 18:07:37 is it because no monitor is connected? May 29 18:07:50 hieu: for some reason the driver seems to have strange defaults (opendelay == 0x98, sampledelay == 0, avg == 16) but you can override those in DT May 29 18:08:00 zumba_ad_: how would a monitor affect networking? May 29 18:08:30 I was thinking that beaglebone wasn't booting up properly when there was no monitor connected but it was just a guess May 29 18:09:01 it really doesn't care May 29 18:09:07 I waited for like 5 mins and my laptop was pinging it but no response. The 5th time I tried it, I was able to ping it within 20 seconds after bootup May 29 18:09:09 ok May 29 18:09:14 hmm May 29 18:09:25 I'm not really sure why it happened May 29 18:09:27 what image are you running? May 29 18:09:37 oh, this is very old for sure May 29 18:09:45 i've forgotten. How do I check? May 29 18:09:49 cat /etc/dogtag May 29 18:09:53 ok, one sec May 29 18:10:06 BeagleBoard.org BeagleBone Debian Image 2014-04-23 :D May 29 18:10:24 maybe frame it and hang it in a museum? May 29 18:10:29 hahaha May 29 18:10:54 if it ain't broke, don't fix it May 29 18:11:04 but now, it's showing some May 29 18:11:19 if it ain't broke, fix it until it is May 29 18:12:21 i'm on this page, https://beagleboard.org/latest-images, however, I'm not using microsd May 29 18:13:01 http://elinux.org/Beagleboard:BeagleBoneBlack_Debian May 29 18:13:06 ok May 29 18:13:10 there you can find all flavors of images May 29 18:13:48 both standalone (i.e. boot from μSD) and flasher (to reflash the eMMC - be sure to first make a backup of anything important!) May 29 18:14:24 lxqt (with gui), iot (no gui, still lot of other stuff), and console (no gui, minimalistic) May 29 18:14:26 will do May 29 18:15:45 and you can pick between jessie (very old) and stretch (somewhat less old) May 29 18:15:48 :D May 29 18:18:43 Thanks. But Is it easier if I use external ADC ? May 29 18:20:21 uh, no? why would that be easier than using the internal ADC already available? May 29 18:21:34 If 200 ksps, It will a huge burden to ARM, I need process it in real-time May 29 18:21:56 200ksps is not much data May 29 18:22:35 and if you use an external adc, but still need to process the data on the ARM core, then you wouldn't be reducing its burden May 29 18:23:18 plus then there'd be the issue of how to interface it May 29 18:24:13 I will try at that rate. May 29 18:26:00 of course if you only need 10 kHz then you can just configure it at that rate May 29 18:26:48 200 kHz is the max rate for single channel sampling if the adc clock is configured at 3 kHz (which is not its max, but it is what the linux driver configures it at) May 29 18:26:58 the instruction here for flashing the eMMC say you need to modify a file called /boot/uEnv.txt (http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Flashing_eMMC). Where do I find this file and how do I modify it? May 29 18:27:20 spuz: you can also just download a flasher image May 29 18:27:45 zmatt: I couldn't find any links to that image May 29 18:28:09 they're all over that wiki page May 29 18:28:37 search "flasher" May 29 18:28:39 I'll need the flasher image if I want to put it on the built-in eMMC. correct? May 29 18:28:49 what's what a flasher does yes May 29 18:28:52 zmatt: can you send me a link? May 29 18:28:52 *that May 29 18:28:59 ok May 29 18:29:18 go to that wiki page, search "flasher", the first 4 hits in the table of contents are links May 29 18:29:23 yup May 29 18:35:19 I'm reading the "getting started". So looks like the flasher iot image I downloaded is the one I'll burn into a microsd. I won't need to edit /boot/uEnv.txt file. However, this is a bit confusing "*Note, img files with the words "eMMC-flasher" already had this enabled...*" May 29 18:35:46 The filename i downloaded is BBB-blank-debian-8.8-iot-armhf-2017-05-21-4gb.img May 29 18:36:06 I got that inside the Flasher IoT section May 29 18:36:36 yeah I have no idea why the image is named like that, but afaik it is the correct one May 29 18:36:42 cool May 29 18:36:45 I got it from - http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Flasher:_.28iot.29_.28All_BeagleBone_Variants.29 May 29 18:37:09 multiple devs updating single wiki :) May 29 18:37:53 more like zero devs updating it ;) or, well, stuff gets updated but outdated info slips through the net all the time May 29 18:38:02 yeah May 29 18:38:12 aight, I'm going to work on it later. Brb, friends are calling me to play basketball :) May 29 18:38:21 thanks a lot! :) May 29 18:42:42 how do you get rid of that stupid default ssh login banner on the Beagle Debian-Jessie image? May 29 18:42:52 I tried editing /etc/motd but that only took care of half of it May 29 18:43:19 still showing image date & default login May 29 18:44:17 check /etc/ssh/sshd_config May 29 18:44:34 things like the Banner option, or PrintMotd May 29 18:45:06 also /etc/issue May 29 18:45:47 also why do I have an /etc/cruft/ ... lol May 29 18:49:08 nothing jumps out https://pastebin.com/sgMaGb9j May 29 18:50:05 bingo --- /etc/issue May 29 18:50:17 so can I just delete/wipe it? May 29 18:50:35 you pasted the content of /etc/ssh/ssh_config, not sshd_config May 29 18:50:46 uhh May 29 18:51:00 I'm pretty sure sshd_config is where /etc/issue is being references May 29 18:51:02 *referenced May 29 18:51:12 I have a non-empty /etc/issue, but it's not printed at login May 29 18:51:23 lemme check that May 29 18:54:43 okay, this is seriously awesome -> https://www.youtube.com/watch?v=Ixu8tn__91E May 29 18:54:53 :D May 29 18:55:03 that did it :) cheers zmatt May 29 18:55:51 where will it stop May 29 19:23:19 hey May 29 19:23:38 I am having some trouble with my beaglebone black and I was wondering if anyone can help May 29 19:24:36 I am trying to connect to it with my macbook pro running el capitan, but it does not seem to see it as more than a disk May 29 19:24:45 I have installed the drivers May 29 19:31:57 We're really struggling to get 4 cameras running over USB. Who would be the goto person for this? May 29 19:47:25 mjn: it may be a power issue.. usb cams are pretty power hungry too many on the same usb hub (internal hub not external) may draw too much power and start acting flakey.. usually 1 cam/hub is about the max May 29 19:47:39 lsusb --tree to see how they are connected May 29 20:10:15 Yes we are using a separate powered Hub. Can connect to each cam independently but not more than one at a time. May 29 20:11:40 k HD cams? May 29 20:11:55 Recompiled for Raspi and everything looks ok. I see https://forum.openrov.com/t/difficulties-streaming-multiple-webcams-on-bbb/4192/2 so others have had this issue May 29 20:12:10 1MP May 29 20:13:03 ok thats not a lot.. may still be a power issue if the powered hub is only putting 500ma over its 4+ ports May 29 20:13:17 Board Cams https://www.amazon.com/gp/product/B00VFQK1Q6/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1 May 29 20:13:32 have you tried with i cam in powered hub 1 cam not .. see if you can see both May 29 20:14:33 are you doing thi on a RPi? May 29 20:15:02 Yes. RPi functions properly May 29 20:15:07 error we are getting is "Error: CAMERA ERROR [VIDIOC_STREAMON] 28 No space left on device" May 29 20:15:33 RPi have issues with too much Bandwidth on USB May 29 20:16:47 something to do with the way the SoC handles the interrupts.. I had to give up Trying to get mumble to work with a USB audio headset May 29 20:18:21 both rpi and bbb have the less-than-spectacular 'musbmhdrc' usb controller (usually just known as 'musb') May 29 20:18:28 are all the cams feeding into 1 port? May 29 20:19:00 Through an external powered hub yes May 29 20:19:27 ok that's definitely going to be too much data trying to go through 1 port May 29 20:20:09 the "no space left" is a bandwidth error May 29 20:24:06 Hmmmm. RPi has the same setup without any bandwidth errors May 29 20:26:09 I'm new To the BB world Perhaps someone else here can shed more light May 29 20:28:54 Thank you for your insight May 29 22:12:36 Hi all,hope you're having a good day. Quick question, is it possible to use the Beaglebone Blue's roboticscape as a non-root user? May 29 22:24:32 Hi, I’ve been trying to get internet-over-USB to work for BBB on Mac OS X. I’ve went through many google searches and web pages and thought I was making progress but “ping www.google.com” still returns “connect: Network is unreachable” May 29 22:24:38 here is what I have done on Mac OS X: 1. Install Mac drivers from - http://beagleboard.org/Getting%20Started 2. Connect BBB to Mac through USB 3. On Mac, System Preferences > Sharing > Internet Sharing > Beaglebone Black 4. System Preferences > Network, make sure BBB is in the left hand side and shows “Connected” 5. After SSH’ing into the BBB, run “dhclient” (or "dhclient usb0” if that doesn’t work) and then try “pin May 29 22:24:44 Once this does start working, I plan to connect to internet-over-USB in a Linux VM. May 29 22:24:55 I’m wondering if anyone here knows what I could try next? Thanks May 29 22:25:50 Oh, my copy paste was cutoff. To finish the sentence permit... It returned that I don’t have permission so I used sudo in front. ping still failed, so I tried “sudo dhclient usb0” “sudo dhclient usb1” “sudo dhclient eth0” and ping still fails. May 29 22:29:56 I use windows, but all I had to do was ensure that the Internet was shared with the network adapter and that the IP address of the adapter was 192.168.7.1 May 29 22:30:11 After that, I could ping a server. May 29 22:30:37 Oh, and that the default gateway on the Beaglebone was set to 192.168.7.1 May 29 22:30:57 Can't offer too much advice for a Mac though May 29 22:31:45 Thanks for your input. I will try to access a windows computer because all the online advice for mac doesn't work. May 29 22:33:13 This link helped me a lot: https://www.digikey.com/en/maker/blogs/how-to-connect-a-beaglebone-black-to-the-internet-using-usb/cdf66181b3a5436e9ad730e4ed4cf9ee. May 29 22:33:37 I, literally, followed the instructions and it worked straight away. May 29 22:38:07 Thanks! I'm reading through it right now May 29 23:41:48 Okay, so I finally got internet-over-USB to work! It was through my windows VM on my mac. So I'll just have to perform updates in the VM. Thanks for your help fknoble! **** ENDING LOGGING AT Tue May 30 03:00:04 2017