**** BEGIN LOGGING AT Sat Jun 16 02:59:59 2012 Jun 16 04:56:34 does anyone know if it's possible to reset the -xM's USB hub through software when it gets disabled by EMI? Jun 16 04:56:45 eh? Jun 16 04:56:57 i may be drunk but i don't parse that Jun 16 04:58:13 Seems to be a semi-common problem, all devices plugging into the usb ports go dead, and the kernel logs "hub 1-0:1.0: port 2 disabled by hub (EMI?), re-enabling..." Jun 16 04:58:37 and so far the only way I've found to get USB devices working again is to reboot Jun 16 05:00:47 there is a gpio to turn usb-power on/off. Jun 16 05:04:24 aholler: ah, okay. For some reason I was focusing on the i2c-controlled regulator chip Jun 16 05:21:32 hmm, it looks like it's gpio 147, but I can't seem to control that one through the sys/class/gpio interface Jun 16 06:21:08 hey Jun 16 06:21:54 HI Jun 16 07:46:17 anybody here installed debian on the bbone? Jun 16 07:46:41 ak_ yep Jun 16 07:46:44 works great! Jun 16 07:46:51 k, I have a question Jun 16 07:46:58 okay Jun 16 07:47:00 http://elinux.org/BeagleBoardDebian#Debian_NetInstall Jun 16 07:47:04 I'm following this Jun 16 07:47:07 yep Jun 16 07:47:30 and have done up to the shell script putting the netinstall on the sd card Jun 16 07:47:37 ok Jun 16 07:47:38 so do I now but the sd in the bbone and run it? Jun 16 07:47:47 put* Jun 16 07:48:00 okay so you've already used another linux system to copy the image you downloaded to the SD card? Jun 16 07:48:23 yea, ubuntu virtual machine Jun 16 07:48:33 and everything worked just fine? Jun 16 07:48:45 uhh Jun 16 07:48:45 didn't give any errors or anythign. Jun 16 07:48:50 no errors Jun 16 07:49:08 I don't know if I downloaded a full image? Jun 16 07:49:24 I thought netinstall downloaded one? Jun 16 07:49:47 Well this is what happened. Jun 16 07:50:01 You essentially put the Debian installer on the SD card Jun 16 07:50:12 So this is what you need to do next. Jun 16 07:50:18 Go ahead and toss the SD card back into the bone Jun 16 07:50:31 Get the bone connected to the internet via ethernet. Jun 16 07:51:08 Connect the USB cable to the bone and then to the ubuntu virtual machine. Jun 16 07:51:52 then you want to find what tty the bone got. Jun 16 07:52:10 Follow me so far? Jun 16 07:52:32 yea, plugging into the router at the moment Jun 16 07:52:37 k Jun 16 07:56:02 hm, just a sec, it's not letting me attach the "Linux ... ethernet gadget" Jun 16 07:56:05 says it's in use Jun 16 07:56:53 it shouldn't be the ethernet gadget Jun 16 07:57:05 is there something else listed too? Jun 16 07:57:27 actually Jun 16 07:57:43 yea I think it is the ethernet gadget Jun 16 07:57:46 lol sorry. Jun 16 07:57:52 You might need to restart your VM Jun 16 07:59:01 yea, there's also a beaglebone Jun 16 07:59:33 try adding the beaglebone Jun 16 08:00:00 btw what is the host OS? Jun 16 08:00:09 osx snow leopard Jun 16 08:00:14 ahh ok Jun 16 08:00:25 I could get a virtual machine setup on a windows 7 box Jun 16 08:00:31 yea add the beaglebone not the ethernet gadget. Jun 16 08:00:33 but that'd take a bit Jun 16 08:01:05 ? Jun 16 08:02:06 I'm on my laptop, but have a desktop with windows 7 Jun 16 08:02:13 ah okay Jun 16 08:02:19 haven't set it up for virtual machines Jun 16 08:02:27 Sorry I'm a little scatter brained it's late. Jun 16 08:02:40 no worries, thanks for the help so far Jun 16 08:02:49 got FTDI beaglebone connected to linux Jun 16 08:02:56 cool Jun 16 08:03:06 do a cd /tty in terminal on ubuntu Jun 16 08:03:10 then ls Jun 16 08:03:19 I think it's ttyUSB0 Jun 16 08:03:21 not sure. Jun 16 08:03:52 se if ttyUSB0 is present Jun 16 08:03:57 in the tty directory. Jun 16 08:04:16 no tty directory, there's /dev/ttyUSB0 Jun 16 08:04:21 I'm on ubuntu Jun 16 08:04:27 ah okay Jun 16 08:04:31 that's it. Jun 16 08:04:38 k Jun 16 08:04:45 is the beaglebone on? Jun 16 08:04:59 turned on? yea Jun 16 08:05:07 Type this is terminal Jun 16 08:05:11 screen /dev/ttyUSB0 115200 Jun 16 08:05:42 gotta install screen, just a sec Jun 16 08:06:02 kk Jun 16 08:06:27 "sorry could not find a pty" Jun 16 08:08:09 try this screen /dev/ttyS0 115200 Jun 16 08:08:30 same thing Jun 16 08:08:34 :/ Jun 16 08:08:53 is a light on the beaglebone blinking = Jun 16 08:08:54 ? Jun 16 08:09:53 yea Jun 16 08:10:05 I had done an ls before I connected Jun 16 08:10:24 diffing them gives ttyUSB0 and serial as the only changes Jun 16 08:10:35 try screen /dev/serial 115200? Jun 16 08:10:41 yea I guess Jun 16 08:10:48 worth a shot Jun 16 08:10:49 lol Jun 16 08:10:58 permission denied Jun 16 08:11:04 lemme sudo Jun 16 08:11:28 okay lets try this... Jun 16 08:11:30 cannot execute, permission denied Jun 16 08:11:52 hit the reset button on the beaglebone then a few seconds later do screen /dev/ttyUSB0 115200 Jun 16 08:12:50 same thing Jun 16 08:13:02 I just realized I have an ubuntu tower I could set up Jun 16 08:13:10 think that'd make it easier? Jun 16 08:13:12 hmm it should work... Jun 16 08:13:36 I wonder if it's because that ethernet is stuck on osx? Jun 16 08:14:45 detach it from the ubuntu system Jun 16 08:14:59 and then run this command in the mac terminal Jun 16 08:15:01 screen `ls /dev/{tty.usb*B,beaglebone-serial}` 115200 Jun 16 08:16:23 didn't error Jun 16 08:16:31 but blank screen Jun 16 08:16:51 okay leave it on the blank screen and hit the reset button on the bone Jun 16 08:17:09 ah, things are happening Jun 16 08:17:14 good :) Jun 16 08:17:25 have you ever installed Debian before? Jun 16 08:17:28 on anything else? Jun 16 08:17:39 not debian Jun 16 08:17:59 I've done a few ubuntu, my school ran fedora Jun 16 08:18:01 It should take you to an old school setup screen. Jun 16 08:18:17 once it is done loading all the stuff from the SD card Jun 16 08:18:33 hmm Jun 16 08:18:40 ? Jun 16 08:18:43 bad text Jun 16 08:18:46 gibberish? Jun 16 08:18:50 yea Jun 16 08:18:59 the loading was plaintext Jun 16 08:19:01 that's the issue I had with trying to do it on my mac. Jun 16 08:19:03 :/ Jun 16 08:19:11 I ended up doing like you did Jun 16 08:19:19 having to run a ubuntu linux image. Jun 16 08:19:24 k, lemme finish setting up my ubuntu tower Jun 16 08:19:27 kk Jun 16 08:19:55 While we wait what are your plans for the bone? Jun 16 08:20:09 I'm in the process of a DIY smart home myself. Jun 16 08:21:14 vehicle tracking is the first leg Jun 16 08:21:22 cool Jun 16 08:21:41 I've got most of the stuff working on a pc Jun 16 08:21:42 What convinced you to install Debian and not stick with angstrom? Jun 16 08:21:48 now to get an embedded working Jun 16 08:22:00 some of the stuff is using UART Jun 16 08:22:08 ah cool. Jun 16 08:22:09 and I'm a little partial to minicom Jun 16 08:22:30 angstrom cripples the device anyway in my opinion. Jun 16 08:22:30 and opkg update/upgrade broke my ethernet-over-USB Jun 16 08:22:38 that's what I've been hearing Jun 16 08:23:00 were you the guy earlier who overclocked to 1.1GHz? Jun 16 08:24:03 nah I was the guy talking to him about it though. Jun 16 08:26:35 Hi,all. I'm in trouble... I've got to talk to you. Can I? Jun 16 08:27:28 ? Jun 16 08:27:44 I'm starting to work with BeagleBone(Ubuntu12.04) and using Python. Jun 16 08:27:57 okay Jun 16 08:28:14 I want to control GPIO through web interface. Jun 16 08:28:28 ok Jun 16 08:28:29 So, my question is How to set MUX and read and write GPIO by general user?? Jun 16 08:28:38 By root user, I can do that. Jun 16 08:28:41 PyBBIO Jun 16 08:28:45 But, by default user, I got a lot of Permission Deny. Jun 16 08:29:07 https://github.com/alexanderhiam/PyBBIO Jun 16 08:29:22 ^^ That is a python library for controlling the GPIO pins on the bone. Jun 16 08:29:23 using PyBBIO, I can use GPIO by non-root user? Jun 16 08:29:50 what specific permission deny errors are you getting? Jun 16 08:30:08 well.... Jun 16 08:30:10 "IOError: [Errno 13] Permission denied: '/sys/kernel/debug/omap_mux/spi0_d0'" Jun 16 08:30:14 like this Jun 16 08:30:27 ah Jun 16 08:30:52 You need to change the permissions of those directories. Jun 16 08:31:04 To allow your regular user access. Jun 16 08:32:02 You can either set the permission level to 777 with chmod or you can add the regular user to a group the folder is associated with. Jun 16 08:32:09 ak_ making any progress? :) Jun 16 08:32:35 drwxr-xr-x 3 root root 0 Dec 31 1969 omap_mux Jun 16 08:32:45 chmod 777 omap_mux ? Jun 16 08:34:04 chmod -R 777 omap_mux Jun 16 08:34:22 or you could just add your regular user to the root group. Jun 16 08:34:25 accidentally unplugged the sd while it was running, redoing the netinstall Jun 16 08:34:35 did it mess stuff up? Jun 16 08:35:53 yea, couldn't even get garbage on osx Jun 16 08:36:20 lol Jun 16 08:36:22 kk Jun 16 08:36:25 yea Jun 16 08:36:35 thx, I'll try! Jun 16 08:38:45 k Jun 16 08:42:43 hm, not showing up in ubuntu Jun 16 08:42:52 no USB0? Jun 16 08:43:03 not that I see Jun 16 08:43:25 ttyS0? Jun 16 08:43:40 that's there lemme try Jun 16 08:44:02 If that doesn't work try screen `ls /dev/{tty.usb*B,beaglebone-serial}` 115200 in debian Jun 16 08:44:06 sorry Jun 16 08:44:10 in ubuntu Jun 16 08:44:11 lol Jun 16 08:44:54 now, I got :"IOError: [Errno 13] Permission denied: '/sys/class/gpio/export'" Jun 16 08:45:18 i have to chmod this too? Jun 16 08:45:26 yea Jun 16 08:45:54 no such file or directory Jun 16 08:46:13 did the ttyS0 not work? Jun 16 08:46:49 it connected, but nothing showed up when I reset the bone Jun 16 08:47:21 no it won't connect Jun 16 08:47:25 now* Jun 16 08:47:38 huh... Jun 16 08:47:44 I wonder what's up. Jun 16 08:47:52 what revision of the bone do you have? Jun 16 08:47:54 A5? Jun 16 08:47:56 A4 Jun 16 08:48:08 ahhhh Jun 16 08:48:11 wget http://beagleboard.org/static/beaglebone/latest/Drivers/Linux/FTDI/mkudevrule.sh Jun 16 08:48:22 do that then sh mkudevrule.sh Jun 16 08:48:39 might need a sudo in there too. Jun 16 08:48:41 :P Jun 16 08:48:43 on ubuntu host? Jun 16 08:48:46 yes Jun 16 08:49:47 aaaah Jun 16 08:49:52 I forget the FTDI drivers! Jun 16 08:49:55 basically. Jun 16 08:50:00 I have the A5 Jun 16 08:50:11 it doesn't require 3rd party drivers Jun 16 08:50:14 I have too many computers, I forget what I've done on them all Jun 16 08:50:39 haha I know what you mean. Jun 16 08:52:38 Hopefully getting the FTDI stuff installed will get you goign. Jun 16 08:52:41 going Jun 16 08:54:01 sweet, ttyUSB0 and ttyUSB1 Jun 16 08:54:16 kk try them both. Jun 16 08:54:32 see if this works. Jun 16 08:54:33 screen `ls /dev/{tty.usb*B,beaglebone-serial}` 115200 Jun 16 08:54:56 ak_ want to see part of my project? Jun 16 08:54:58 1 Jun 16 08:55:05 sure Jun 16 08:55:12 https://geekweekly.net/home-status/ Jun 16 08:55:22 so 1 worked? Jun 16 08:56:12 yea, going through setup Jun 16 08:56:20 thanks for your help Jun 16 08:57:05 the watts, your house's power consumption? Jun 16 08:58:15 yep Jun 16 08:59:45 the pulse your AC kicking on/ Jun 16 08:59:46 ? Jun 16 08:59:53 yea Jun 16 09:00:08 the large like 72k spike was an error. Jun 16 09:00:16 I was messing with the code. Jun 16 09:00:16 lol Jun 16 09:00:34 I was gonna say Jun 16 09:01:45 that's a pretty cool project Jun 16 09:01:50 you having fun on it? Jun 16 09:07:33 yea so far Jun 16 09:07:54 Here's the box with the power monitoring stuff in it. Jun 16 09:07:56 https://dl.dropbox.com/u/7323462/2012-06-15%2015.53.27.jpg Jun 16 09:08:08 basically an arduino with some current transformers around the mains. Jun 16 09:08:29 an ethernet cable running to a switch across the house. Jun 16 09:08:53 Even using one of the twisted pairs in the ethernet cable to supply the arduino with 5V Jun 16 09:09:09 Still need to clean up the wires a bit Jun 16 09:09:11 power over ethernet, nice Jun 16 09:09:13 but overall I like it. Jun 16 09:09:24 using hall effect sensors? Jun 16 09:09:52 current transformers. Jun 16 09:10:05 basically hall effec. Jun 16 09:10:08 effect. Jun 16 09:10:14 k Jun 16 09:10:14 I think they use the same principle. Jun 16 09:10:33 I've never heard of them, but I could guess what they do Jun 16 09:10:39 yea Jun 16 09:10:48 btw the net install is going to take for freaking ever. Jun 16 09:10:57 yea Jun 16 09:11:05 6% through base system Jun 16 09:11:31 how would it react to me going to sleep while installing? Jun 16 09:11:57 I'd probably crash and burn. Jun 16 09:11:59 lol Jun 16 09:12:09 It's how my luck usually goes Jun 16 09:12:26 it might get depressions while beeing alone Jun 16 09:12:33 heh Jun 16 09:12:40 aholler you're not alone. Jun 16 09:12:47 You have internet friends. Jun 16 09:12:54 in the "cloud" Jun 16 09:12:55 but I've gotten to this point, I should be able to get here again if so Jun 16 09:13:02 ak_ yea Jun 16 09:13:03 indeed Jun 16 09:13:10 I'm sure it'll be file regardless. Jun 16 09:13:28 I think I'ma get some sleep Jun 16 09:13:34 thanks again for all your help Jun 16 09:13:37 KeatonT: I've written "it" Jun 16 09:13:38 yea I'm headed that way too. Jun 16 09:13:50 no prob ak_ anytime Jun 16 09:13:57 night Jun 16 09:13:59 night Jun 16 09:17:21 oh! thx alot Keaton! i can control gpio by reguler user! Jun 16 09:17:29 good night! Jun 16 12:41:31 hi gays Jun 16 12:41:51 I'm try to enable spi channel on my beagleboard xm Jun 16 12:42:20 gays? Jun 16 12:42:26 I have a file board-omap3beagle.c Jun 16 12:43:10 someone can help me how can I modify this file? Jun 16 12:49:45 anyone? Jun 16 13:18:54 crap Jun 16 13:19:04 who wanted that patch to overclock their beaglebone? Jun 16 13:50:09 can anybody recommend a good usb wifi dongle that works with the beagleboard/bone and has master mode? Jun 16 13:58:11 travalas: i use the rt5370 Jun 16 13:58:54 jakeday: and that works in master mode? Jun 16 13:59:24 supposedly. it says it has support, but i haven't tried it Jun 16 13:59:41 it's on my todo list though Jun 16 13:59:58 they're $6 on amazon though with free shipping, you might want to try it Jun 16 14:00:12 want a link? Jun 16 14:00:19 sure Jun 16 14:00:55 jakeday: do you use it on beaglebone? Jun 16 14:01:25 yes, i use it on my beaglebone Jun 16 14:01:38 here's the link: http://www.amazon.com/gp/product/B004I8B8Z6/ref=oh_details_o01_s00_i00 Jun 16 14:01:44 what image do you use on it? Jun 16 14:02:00 what distribution? Jun 16 14:02:12 i have a custom built slackware image Jun 16 14:02:22 slackware. well, armedslack Jun 16 14:03:21 could you tell me where I can find its image for beaglebone? Jun 16 14:03:37 a slackware image? Jun 16 14:03:40 yes Jun 16 14:03:57 are you wanting one for you to build, or just one to flash to your sd card? Jun 16 14:04:37 just one to load to the SD card Jun 16 14:05:02 i don't have any around as no one offers them Jun 16 14:05:07 i have a guide i wrote that you can follow Jun 16 14:05:53 that's good how can I access your instruction? Jun 16 14:06:01 https://docs.google.com/document/d/11H6tDZ9dtQa_Pijjh5tLOLVa1JGJ3-IpPTMUfNcxLBY/edit Jun 16 14:06:15 thank you Jun 16 14:06:20 you're very welcome Jun 16 14:06:34 should be easy to follow, but let me know if you have any questions Jun 16 14:06:58 have you ever used rtl8192cu chipset? Jun 16 14:07:10 on beaglebone Jun 16 14:07:32 not on the beaglebone Jun 16 14:07:52 i had a n300 from belkin that used the chipset. it sucked lol Jun 16 14:08:16 have you ever used any usb doggle in ad hoc mode on beaglebone? Jun 16 14:08:46 why do you ask? Jun 16 14:09:28 I need to use ad hoc mode, if you ever used, I would like to ask you to suggest me any document/instruction Jun 16 14:09:55 yes, i have Jun 16 14:10:15 yeah i didn't have good suscess with anthing than infrastructure mode with the n300/rtl8192cu Jun 16 14:10:30 i've connected my beaglebone with the usb dongle i linked to my phone running ad-hoc Jun 16 14:10:42 yeah, like i said that n300 sucks Jun 16 14:10:54 the one i linked to works perfectly though, and it's cheaper! Jun 16 14:12:04 thank you Jun 16 14:12:31 you're welcome Jun 16 14:58:37 jakeday: ordered one, we'll see how it works. Thanks! Jun 16 15:25:19 travalas: it's working great for me. let me know if you need any help with it Jun 16 17:00:23 hi Jun 16 17:00:47 I have a problem with kernel compilation on bbXM Jun 16 17:01:29 I'm tring to enable SPI channel on my begleboard XM, I'm following this web page manual http://linuxdeveloper.blogspot.it/2011/10/enabling-spi-on-beagleboard-xm.html, but I think that there are same problem with git version. I can't compile my kernel. Anyone can help me, to compile the kernel to enable SPI channel on blegleboard XM ? Thank in advance Jun 16 17:02:05 anyone can help me? Jun 16 17:14:46 are you getting an error? Jun 16 18:14:19 I've BeagleBoard rev c3 and I'm trying to write my own OS for just educational purposes on this platform. Although I'm familiar with OS-related concepts, I have never really done it. I've got hardware architecture books just to gain big picture and I need documents on this beaglebord platform Jun 16 18:14:22 where should I start? Jun 16 18:14:48 I guess starting learning how to use JTAG would be best Jun 16 18:16:05 since I need to easily put my program to device, run it and debug so that I can easily test example codes on the internet and modify them Jun 16 18:24:34 eren: start with compilling your own kernel for it Jun 16 18:25:00 I can't find a simple c++ example to use GPIO, any suggestion? Jun 16 18:25:01 in that process you'll have to figure out how to program it and debug it Jun 16 18:26:32 jet: you should be able to do it by writing to the sysfs files in C++ Jun 16 18:27:01 there is no direct API? Jun 16 18:27:29 I'm not sure what you mean by "direct API" Jun 16 18:27:49 the gpio's are exposed on the sysfs, so you can write to them that way Jun 16 18:28:06 or, you can look up their location in memory, and directly write to them Jun 16 18:28:34 check the elinux.org website. I'm taking a quick peek for something useful right now Jun 16 18:29:03 or write a kernel driver for whatever you're connecting to the gpio Jun 16 18:30:06 jet: here you go. it's in C, but looks to be what you need to get started: https://www.ridgerun.com/developer/wiki/index.php/Gpio-int-test.c Jun 16 18:30:07 there is direct API using memory calls but I can also only do it using filesystem Jun 16 18:30:37 thanks ! Jun 16 18:30:50 I'm going to look at this example Jun 16 18:32:04 it uses the sysfs, which is more less the same way to do it in bash. Jun 16 18:32:27 (well, as I understand it. I'm pretty new here myself) Jun 16 18:32:45 but is it slower than directly write to them in the memory Jun 16 18:32:47 ? Jun 16 18:32:53 yes Jun 16 18:33:02 from what I've read, a lot slower Jun 16 18:33:09 here's the main article: http://elinux.org/GPIO Jun 16 18:35:09 and, what i'm slowly working through: http://elinux.org/Category:ECE497 and http://elinux.org/Category:EmbeddedBeagleClass, and overview page: http://elinux.org/EBC_Embedded_Beagle_Class_Topics Jun 16 18:35:21 looks of inspiration there Jun 16 18:37:25 Anyone have experience reading in fro mthe serial port, my open() seemsto work find but then nothing happens when I get to read() and perror() prints an Input/Output error, the beagleboard serial port is on ttyS2 correct? Jun 16 18:41:53 jet: take a look at this for some ideas on accessing gpio's through memory: https://groups.google.com/forum/?fromgroups#!topic/beagleboard/K0EVCrsxsuU Jun 16 18:42:40 MiketheImmaculat: unfortunately, I don't. have you tried the google groups? Jun 16 18:54:32 magyarm: actually, I was referring to writing my own kernel Jun 16 19:00:04 eren: that is an impressive goal. The linux kernel resources for the beagleboard can at least tell you have to program and debug. Even if you don't want to use the existing kernel, the elinux.org website (and links above) might help. Best of luck! Sounds like an interesting project Jun 16 19:10:36 magyarm: thank you! #osdev is very helpful, I'm getting suggestions Jun 16 19:10:52 most of the OS writing tutorials is on x86 Jun 16 19:11:11 which is a bit bad :) Jun 16 19:53:29 Does anyone know how to disable system sleep on bb-xm running angstrom command line? Whenever I try to SSH after 3-4 days of inactivity, I always have to reboot. Jun 16 20:08:28 is there a way to know for sure the revision number for a beaglebone? Jun 16 20:11:18 check the sticker Jun 16 22:23:54 anybody here doing USB stuff with their Beaglebone? Jun 16 22:24:03 like USB<->serial? Jun 17 01:39:23 has anybody here built a RS232 shifter for the UART pins on the beagle? Jun 17 01:49:13 do I need anything apart from logic level translators to hook something up via i2c to a beaglebone Jun 17 01:51:27 can't see why you wouldn't Jun 17 01:51:30 err would Jun 17 01:53:08 like pull ups or something Jun 17 01:53:59 I have these: http://www.sparkfun.com/products/10403 and http://www.sparkfun.com/products/8745 Jun 17 02:02:02 the first one will work, it even has the pullups on it already Jun 17 02:08:11 the stock kernel doesn't have the i2c on the breakout headers enabled, right? Jun 17 02:08:23 i2c2, was it? Jun 17 02:30:48 heeen: it does, otherwise you can't detect capes **** ENDING LOGGING AT Sun Jun 17 02:59:59 2012