**** BEGIN LOGGING AT Thu Sep 25 03:00:01 2014 Sep 25 03:43:07 bbb was shipped to me with debian on it. There are no devices like /dev/spidev0.0; how do I enable the first SPI port? Sep 25 04:31:16 if i'm running off the external microSD, and it has enough room for a new .img, is there a way to transfer that new .img to the bbb's filesystem and then use it to reflash the microSD "in place"? Sep 25 04:32:05 the method cannot utilize the internal emmc because my cape is using the mmc1 signals for other purposes. Sep 25 04:37:52 yates: why not just swap the SD card? Sep 25 04:38:35 the whole idea is to avoid requiring physical access, e.g., to be able to update remotely. Sep 25 04:40:42 sure its possible, its "just" SW after all Sep 25 04:40:50 and PC systems update themselves Sep 25 04:40:52 right. :) Sep 25 04:40:57 its just work Sep 25 04:41:00 exactly. Sep 25 04:41:17 just make 2 partitions and have the boot loader pick the right one Sep 25 04:41:19 seems like this is a nut that may have already been cracked. Sep 25 04:41:26 is one way Sep 25 04:41:39 or dont use .img files, but update only what changed Sep 25 04:41:47 like a linux distro does Sep 25 04:42:02 and most of all, worry about what can go wrong Sep 25 04:42:08 that dwarfs everything else Sep 25 04:42:20 yup, yup, yup. i agree 101 % Sep 25 04:42:43 it's not a big deal, but if it could be easily done, it Would Be Nice(TM) Sep 25 04:42:51 easily, no Sep 25 04:43:13 ok, thanks av500 Sep 25 04:43:15 also, what about local "settings"? Sep 25 04:43:24 if you write an img, they are lost Sep 25 04:43:51 well, not really - you control the img, right? Sep 25 04:44:03 make sure they're there before you download the new .img. Sep 25 04:44:11 but good caveat Sep 25 04:44:13 thats one way Sep 25 04:44:54 its just more things that can go wrong :) Sep 25 04:45:03 well enough said about it. my client has a unit that is about 40 miles from their workplace, but they're just gonna have to take a drive... Sep 25 04:45:23 and if its just for one unit, well, tough luck :) Sep 25 04:45:29 right. Sep 25 04:45:34 i was just inquiring.. Sep 25 05:33:17 upgrade is trivial. just kiss your data good bye and pull the trigger Sep 25 05:49:01 If I want to enable a device tree overlay, I can do this: echo BB-SPI1-01 > /sys/devices/bone_capemgr.*/slots Sep 25 05:49:11 What do I do to disable it?\ Sep 25 06:25:13 hi, everyone Sep 25 06:26:02 i'm having problem when upgrading debian kernel on BB black Sep 25 06:26:32 i followed the instruction from: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Kernel_Upgrade Sep 25 06:27:28 and got this message at the end of the command line: ERROR: The certificate of `rcn-ee.net' is not trusted. Sep 25 06:28:00 Can anyone please help to resolve this problem? thanks Sep 25 06:35:24 sorry, forgot to mention... i've got the error message when running command: sudo ./update_kernel.sh Sep 25 11:46:20 <_rotti> hi Sep 25 11:53:56 mooo Sep 25 11:55:32 magi suppe servelat, ufm bergli gling gling gling stoht e chue und treit de grind! Sep 25 11:56:15 KotH: was there lsd in your early grey tea? Sep 25 11:56:38 tbr: it might have been lunch Sep 25 11:57:02 lsd laced lunch, interesting places you go... Sep 25 12:00:08 you should know by now, that i've been to places where no sane man would go Sep 25 12:02:27 <_rotti> KotH: is that swiss? Sep 25 12:03:00 _rotti: if you have to ask, then the answer is no Sep 25 13:09:55 Does anybody knows how exactly the communication works between my Chrome Browser and my Beagle board? Or can explain it for me? Sep 25 13:11:01 http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol Sep 25 13:12:35 and it works only if i have my usb plugged in my board? Sep 25 13:14:19 well... you know how netorking, ie TCP/IP based protocols work? Sep 25 13:14:30 if not, get a book on networking Sep 25 13:18:35 Thank you very much Sep 25 13:20:03 Boneille: es gibt eine ep von der sendung mit der maus, die tcp/ip recht gut erklärt Sep 25 13:23:56 okay hahaha vielen Dank =) Sep 25 13:24:16 dann sollte ich es auch verstehen Sep 25 13:24:38 Boneille: lach nicht. das zeugs ist gut :) Sep 25 13:25:11 okay, vielen dank klingt echt gut werde es mir gleich mal anschauen, danke dir nochmals! Sep 25 15:20:59 I'm on the BBB, and the python code 'spi = SPI(0,0)' fails when not run as root. Sep 25 15:21:28 I have correctly chown/chgrp/chmoded /dev/spidev1.0 for the user... Sep 25 15:45:58 hey folks, just got a beaglebone black, following the getting started guide. Can I flash an img file to the onboard storage instead of using an SD Card somehow? Sep 25 15:46:21 poxin: there are 2 images on http://beagleboard.org/latest-images .... Sep 25 15:46:36 both are meant to be written to a microSD card, but one will flash the on-board eMMC when booted. Sep 25 15:46:55 It is possible to flash w/o a microSD card, but it requires some expertise Sep 25 15:47:24 Ah okay, so the img goes to the sd card and that flashes the onboard? Sep 25 15:47:42 I have the eMMC flasher img downloaded Sep 25 16:03:14 Why does my adafruit spi code run only as root? Sep 25 16:03:28 /dev/spidev1.0 is owned by the user. Sep 25 16:04:01 /usr/local/lib/python2.7/dist-packages/Adafruit_BBIO/SPI.so is also owned by the user. Sep 25 16:06:29 So the device in /dev, and the python library file are both owned by the user... Sep 25 16:06:40 Why would I need to run the code as root? Sep 25 17:03:07 I figured it out: running an strace on python showed that when you instantiate a SPI handle, it tries to open /sys/devices/bglcapemgr.*/slots in 'R/W' mode. Sep 25 17:04:07 By changing it's permissions from "root root 644" to "root users 664" I was able to execute my python SPI code without running as root. Sep 25 19:35:34 I have a BBB and the SPI is clocked at ~23.8 MHz. Sep 25 19:35:39 How can I slow that down? Sep 25 20:14:57 This room is not very helpful! Sep 25 20:19:05 perhaps all 278 people are out to lunch ;) Sep 25 20:22:10 ecdhe: you asked a question less than an hours ago... Sep 25 20:22:51 I've been asking unanswered questions for about 20 hours now. Sep 25 20:23:07 i guess also more longer ago Sep 25 20:23:34 * ogra_ has been answering unanswered questions his whole life ... Sep 25 20:23:43 ecdhe: maybe... nobody knows the answer to your question Sep 25 20:23:51 that doesn't make it unhelper Sep 25 20:23:54 unhelper Sep 25 20:23:56 gah. Sep 25 20:23:59 unhelpful Sep 25 20:24:08 <_av500_> I like to unhelp Sep 25 20:24:45 see. positive attitude. Sep 25 20:26:00 ecdhe: well... you are asking questions without providing information Sep 25 20:26:13 ecdhe: you are not getting much help that way Sep 25 20:26:23 ecdhe: also, you should learn unix basics Sep 25 20:26:58 ecdhe: i'm also pretty sure that the documentation tells you how to set the spi clock speed Sep 25 20:28:28 KotH, which documentation? Sep 25 20:29:28 I was able to eventually find the device tree overlay file, and believed it to be responsible for the speed. Sep 25 20:29:30 spi? trm? ... Sep 25 20:29:39 But I couldn't find the dts file it was compiled from. Sep 25 20:29:52 So I eventually also found a dts file online. Sep 25 20:30:16 Typically, SPI speed is configured in hardware through a register value, so you have to round... Sep 25 20:30:50 You can just set your speed to 10,382 hz exactly, it gets rounded to the nearest closest clock division. Sep 25 20:31:22 So I wasn't sure if I could just set '10000000' in the uncompiled device tree overlay, or if there was a table of values somewhere that I would need to choose from. Sep 25 20:32:22 So I tried the value and compiled it, copied it to /lib/firmware and echoed it into /sys/devices/bone_capemgr.*/slots Sep 25 20:32:42 have you read the TRM? Sep 25 20:32:56 It seems to work, but I've been googling for hours and haven't run across a manual on this. Sep 25 20:33:21 well.. have you looked into Documentation/ ? Sep 25 20:33:39 especially Documentation/spi and Documentation/*/devicetree Sep 25 20:38:04 KotH, do you mean on beagleboard.org? Sep 25 20:38:11 no Sep 25 20:38:14 kernel docu Sep 25 20:38:22 link?\ Sep 25 20:38:23 where all the documentation you ever need, is Sep 25 20:38:36 /path/to/your/kernel/sources/ Sep 25 21:21:30 ecdhe: WHat library are you using with what language to do SPI? Sep 25 21:21:54 python+Adafruit Sep 25 21:22:15 Because py-spi has really simple ways to set the SPI bus clock rate. Sep 25 21:22:26 Adafruit...what? Sep 25 21:22:34 She has like 400 libraries. Sep 25 21:23:18 adafruit BBIO Sep 25 21:23:26 Ah. Sep 25 21:23:37 So, what does her documentation say about chaning the SPI clock rate? Sep 25 21:25:05 It wasn't disclosed by the library docs, but there is a page on device tree showing the code used to set it at ~24Mhz. Sep 25 21:25:45 Why would you go to device tree to set something your chosen library does already? Sep 25 21:25:57 Because the library doesn't do it. Sep 25 21:26:08 ( source/spimodule.c:52 ) Sep 25 21:26:11 Yes, it does. Sep 25 21:26:50 SPI.msh is the current max speed in Hz. Sep 25 21:28:41 Here is how I discovered this, never having used the library: Sep 25 21:28:58 1. Google: "adafruit_bbio spi clock" Sep 25 21:29:22 2. Quick analysis of top several tutorials all referring to a "msh" attribute of the SPI module. Sep 25 21:29:38 3. Github: Adafruit_BBIO: Search repository for "msh" Sep 25 21:30:22 4. Result: source/spimodule.c:52 yields "uint32_t msh;/* current SPI max speed setting in Hz */" Sep 25 21:31:02 5. Now I know that the "msh" attribute of the SPI module is the current maximum clock rate, in Hz, for the bus controlled by the module. Sep 25 21:32:22 Note that this process was started at "17:25 < agmlego> Why would you go to device tree..." and ended at "17:26 < agmlego> ( source/spimodule.c:52 )" Sep 25 21:32:46 Thanks agmlego! Sep 25 21:32:50 ecdhe: The reason I am laying this all out very plainly like this is threefold. Sep 25 21:33:22 1. Many people fail to understand how to put the principles in the guide on how to ask smart questiosn the right way to use. Sep 25 21:33:31 2. Many people fail to read the guide at all. Sep 25 21:33:51 3. I am waiting for a statistical simulation to complete at work and I have literally nothing better to do. Sep 25 21:34:29 ecdhe: Expectations that all interactions with support fora like this one will go the way this one did should not be maintained. Sep 25 21:34:44 agmlego, I see that I can improve my IRC question quality. Sep 25 21:35:14 Yes, and a really really good place to start? Is reading the topic, and all the links therein. Sep 25 21:35:14 I understand that you were really holding my hand there. Sep 25 21:35:17 ;-P Sep 25 21:35:28 (really, really, really holding) Sep 25 21:35:46 agmlego, earlier, I had a two liner that wouldn't run without root: Sep 25 21:35:49 from Adafruit_BBIO.SPI import SPI Sep 25 21:35:50 spi = SPI(0,0) Sep 25 21:36:08 And asked in here why that might be -- but then I kept poking. Sep 25 21:36:27 I saw your questions about that, when I scrolled up to verify your claim of asking questions for 20 hours. Sep 25 21:36:32 I ran strace on the code -- and discovered that the adafruit library actually tries to install it's own overlay. Sep 25 21:36:47 (which is how such things work) Sep 25 21:37:06 So before you run it, there are no spidev*.* devices in /dev -- and after you run your code, there they are. Sep 25 21:37:31 So I was able to change the permissions on the slots file and get it working. Sep 25 21:37:32 WHich is how overlays work, yes. Sep 25 21:37:54 *get it working without having to run as root. Sep 25 21:38:40 Sure. Sep 25 21:38:42 This is also how I work--when 10 minutes of googling fails me, I ask a question on IRC. Sep 25 21:38:56 But when IRC fails, I google. Sep 25 21:39:05 After a few hours, I get it. Sep 25 21:39:24 Another way you could do it is to have sensible privilege escalation in your program, and run only the part needing higher privileges when you need to. Sep 25 21:39:36 ecdhe: And yet... Sep 25 21:39:53 As I learn, I start to be able to field the questions that others have, and I contribute back. Sep 25 21:40:48 To me, the beauty of IRC is that one volunteer can save another one 3-4 hours of googling. Sep 25 21:41:46 Like your github mention -- you really saved me some time there, because the only docs I had for BBIO SPI were python's dir() and this page: https://learn.adafruit.com/search?q=bbio+spi Sep 25 21:42:25 Well, that just comes from knowing that the ultimate documentation for a piece of software is the software's source code. Sep 25 21:42:50 And you will be handed that line here regularly: "Did you read the source? Did you read the docs?" Sep 26 00:16:29 there may be good resources available that i'm just not finding - i've got a beaglebone black. it's currently plugged into my (linux) laptop via USB - I'm trying to get the BBB to reach the internet and not having a lot of success. Sep 26 00:17:48 eth0 just isn't getting an ipv4 address - i don't use an interfaces file on my computer so I might just be cocking it up Sep 26 00:29:51 doesn't it show up as usb0, not eth0? unless you're plugging in an rj45 network cable... Sep 26 00:31:32 usb0 can't reach out to the network at large Sep 26 00:31:39 is there an easy fix for that? Sep 26 00:32:08 alright Sep 26 00:32:17 loans: Yes. Sep 26 00:32:20 Bridging. Sep 26 00:32:28 i'd disagree with the 'easy' part Sep 26 00:32:32 do you have the right drivers loaded on your laptop? I think you need cdc_eth or something like that. I forget off-hand. And then you need to bridge it Sep 26 00:32:33 Or, using the Ethernet port on the bone. Sep 26 00:32:35 i've spent a little time with that Sep 26 00:32:48 yeah easy isn't the first word that comes to mind Sep 26 00:32:59 i tried using brctl for a little while Sep 26 00:33:02 Heh. Sep 26 00:33:06 creating a bridge disables networking entirely Sep 26 00:33:18 Well, then the other option is to use a physical Ethernet connection to the bone. Sep 26 00:33:23 i've been trying that Sep 26 00:33:27 Wait, where are you making the bridge? Sep 26 00:33:27 that's what my initial question is aimed at Sep 26 00:33:40 (it was not clear from your question) Sep 26 00:33:54 my question is related to plugging an ethernet cable into the BBB Sep 26 00:34:45 the BBB appears to get an ipv6 address (that can't actually ping any of the ipv6 addresses on the network) but not ipv4 Sep 26 00:35:18 What services are you running on your network? Sep 26 00:35:28 Is there a functioning DHCPv4 server? Sep 26 00:35:30 yes Sep 26 00:35:35 WHat have you tried already? Sep 26 00:35:46 i've tried dicking with the interfaces file - eth0 was commented out Sep 26 00:35:51 it no longer is Sep 26 00:36:31 Did you try leaving that alone and just asking for a DHCP lease? Sep 26 00:37:03 no Sep 26 00:37:33 i don't know how to do that Sep 26 00:37:42 dhclient usually works well. Sep 26 00:37:56 Or does Angstrom use dhcpd? Sep 26 00:38:23 dhclient appears to have done it Sep 26 00:38:35 i think this might be new enough that it shipped with debian Sep 26 00:38:46 uname reports: Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l GNU/Linux Sep 26 00:39:10 excellent Sep 26 00:39:15 thanks for the help Sep 26 00:39:17 now to break this thing Sep 26 00:39:53 (distribution is another thing left out of your question) Sep 26 00:39:58 yeah, sorry Sep 26 00:40:31 i work in a service/support kind of field and it always surprises me how hard it can be to actually articulate useful requests when you're the one having trouble Sep 26 00:40:41 it's hard to remove yourself from the perspective of being familiar with the problem Sep 26 00:42:01 Yup. ;-P Sep 26 00:42:11 Hence, the links in the topic. Sep 26 00:43:07 i'm planning on using this for RFID access control in our hackerspace Sep 26 00:43:22 someone already wrote all the backend stuff so our members can go to a site and enter their RFID tag Sep 26 00:43:34 and a device just has to do an HTTP get to check the validity of an ID Sep 26 00:45:43 Interesting. You ought to be in #hackerspaces, and maybe get #hackforge and #i3detroit in on it too--pooling resources is good. ;-P Sep 26 00:45:56 i3Detroit is trying to get OpenAccess going. Sep 26 00:46:13 we've got an existing home-rolled member site system that it plugs into Sep 26 00:46:25 https://github.com/hef/ps1auth Sep 26 00:46:31 (i'm not hef, he's a real programmer) Sep 26 00:49:05 Oh, hey, you are PS:1. Neat. Sep 26 00:49:33 Good people. Sep 26 00:50:28 we try Sep 26 00:52:31 i'm doing the client-side stuff in go Sep 26 01:23:26 hm Sep 26 01:23:52 trying to upgrade to testing because i want that systemd goodness - apt-get seems to sorta hang on both upgrade and dist-upgrade, after listing the packages to be changed Sep 26 01:24:36 hi Sep 26 01:25:52 there it goes Sep 26 01:26:04 should probably just remember that this is an arm Sep 26 01:31:28 And an SD card. Sep 26 01:31:37 Which is really the bigger issue. Sep 26 01:34:58 oooh true Sep 26 02:28:28 hello Sep 26 02:28:56 a buddy at work just gave me a beagle board xm.. looking for some tips Sep 26 02:30:29 it had a tiny mmc with a minimal linux build on it. I pulled the ubuntu 14.04 image installed it on a 4gb card. Sep 26 02:30:53 woof Sep 26 02:30:53 Is there a "best" distro for this thing? Sep 26 02:31:38 that probably depends on your intents but i'd wager it's not ubuntu Sep 26 02:32:19 I used ubuntu for years on a laptop, I use RedHat and Cent at work. Sep 26 02:33:41 What I would really like to do is get my kids playing with the thing. Maybe have them automate something. Learn a little python. Sep 26 02:35:03 i see a lot of people running graphical environments on these embedded machines Sep 26 02:35:09 especially for kids Sep 26 02:35:13 and they suck so bad Sep 26 02:35:21 lol Sep 26 02:35:45 i'm a big fan of "Well, it's time to learn vim, kids" Sep 26 02:36:23 yeah, I don't need graphics, they might want them. I had my son playing with vim adventures today. Sep 26 02:37:02 hm Sep 26 02:37:08 this beaglebone black is still having ssl cert issues Sep 26 02:38:13 oh Sep 26 02:38:16 the date's wrong Sep 26 02:59:48 The beagle board is presenting a new MAC at every reboot, anyway to fix that? **** ENDING LOGGING AT Fri Sep 26 03:00:00 2014