**** BEGIN LOGGING AT Thu Aug 28 02:59:58 2014 Aug 28 03:01:09 I was wondering if anyone has gotten cryptodev working with new kernel 3,15 on bbb? Aug 28 03:01:44 symgryph, everything but the atmel interface.. Aug 28 03:01:50 I tried ocf, but it doesn't include cryptodev, and cryptodev dies a horrid death. Aug 28 03:02:10 amtel aka aes128cbc sha1? Aug 28 03:02:31 hwrng works fine Aug 28 03:02:42 but getting the am335 crypto stuff working is a bear. Aug 28 03:03:02 symgryph, https://github.com/RobertCNelson/linux-stable-rcn-ee/blob/3.15.10-bone8/arch/arm/boot/dts/am335x-bone-crypto-00a0.dtsi Aug 28 03:03:51 do I have to cx compile? Aug 28 03:03:56 I did get the kernel installed Aug 28 03:04:11 was hoping to avoid compiling kernel. Aug 28 03:05:22 you don't have to.. if you have 3.15.10-bone8 installed from my repo, just set dtb=am335x-boneblack-crypto-00a0.dtb Aug 28 03:05:29 in /boot/uEnv.txt Aug 28 03:05:47 Oh you are the god who created the image?? Aug 28 03:06:14 then do I have to re-compile @#$$#%^#$% openssl? Aug 28 03:06:47 and enable cryptodev support? Cryptodev is quite horrid. (patching openssl etc). Aug 28 03:07:33 I'm not sure on that front, i just know Joshua Datko is the one who designed the crypto cape... Aug 28 03:08:19 if we have to recompile openssl to better support this, we could easily stick a deb package in the repo's for easier use.. Aug 28 03:08:53 I did it with the earlier version, but it requires cryptodev support and patching. New modules seem to hate cryptdev Aug 28 03:09:05 I get all kinds of errors when trying to compile cryptodev. Aug 28 03:10:59 i found, http://datko.net/2013/10/03/howto_crypto_beaglebone_black/ i'll take a look at that tomorrow... Aug 28 03:11:12 that would be most heinously cool. Aug 28 03:11:20 Working on getting mitm proxy working with openssl. Aug 28 03:11:28 had it working on your earliver version, but wanted hwrng Aug 28 03:11:47 we just back ported hwrng to v3.8 last week. ;) Aug 28 03:12:15 then I could use your 'older' kernel and have it working again? Any advantages to 3.15? Aug 28 03:12:30 https://github.com/RobertCNelson/bb-kernel/commit/853d4e87552d82e958de761bdef9f8589f41638f Aug 28 03:12:36 3.8.13-bone64 Aug 28 03:12:48 better usb/ethernet in 3.15.. ;) (and sgx) Aug 28 03:13:13 I don't mind waiting. I will happily test for you! Aug 28 03:13:51 i'm just finishing up dinner, so it'll be tomorrow. ;) Aug 28 03:42:54 I did figure out that the new openssl doesn't need the cryptodev patch anymore. Aug 28 03:42:59 only for 0.98 and below Aug 28 03:43:07 its included with the 1.0x and above. Aug 28 03:43:18 I did find a nice patch to help correct it (some problems with sha1) Aug 28 03:43:38 https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/openssl-cryptodev/0001-cryptodev-Fix-issue-with-signature-generation.patch Aug 28 03:48:09 How can I configure the BeagleBoard (running Debian with latest U-Boot) to boot from the SD card (emmc, correct?) by default (when not pressing the USER button during boot)? Aug 28 03:49:43 I just use a 'bootable' image. It 'just works' if you choose the right one. Aug 28 03:49:49 you don't want the EMMC flash version. Aug 28 03:50:13 p.s. the cryptodev patch didn't work. horked up the binaries. Aug 28 03:50:44 I'm confused. I have the system working fine: if I boot while holding the USER button it boots from the system on the SD card without issue. Aug 28 03:51:23 I want it to boot as it does when I boot while pressing the USER button while I boot without pressing the USER button. ;) Aug 28 03:51:51 I never had to 'press the button' when I put in the sd card in. It just booted from the external card w/o effort. Aug 28 03:51:56 (I don't want to have to press any buttons to boot off of the SD card; I just want it to do that by default in case power is interrupted or such) Aug 28 03:52:13 I see. Right now mine will try to boot from the internal NAND storage, which has no valid system. Aug 28 03:52:15 however if you don't use the right image, things will work very badly. Aug 28 03:52:34 the EMMC FLASHER image on the bbb website is NOT the one to use. Aug 28 03:52:40 I think it's just something in the NVRAM I need to change Aug 28 03:52:51 did you modify anything? Aug 28 03:53:00 I am not using that image I'm pretty sure. modify anything in what regard? Aug 28 03:53:04 never had to do nvram or anything. mine 'just works' Aug 28 03:53:53 I ran the make_mmc.sh tool to update u-boot, then I dd'd a Debian image to an SD card and have been playing with that kernel and rootfs since. Aug 28 03:54:24 http://elinux.org/BeagleBoardUbuntu#raw_microSD_img Aug 28 03:54:29 (make_mmc.sh, or w/e it's called, does it's dirty work on an sd card that you then boot from and it updates u-boot) Aug 28 03:54:48 I just write the console image to the sd card Aug 28 03:54:51 and call it a day. Aug 28 03:54:52 Yeah, that's what I did. Aug 28 03:56:51 https://rcn-ee.net/deb/microsd/wheezy/bone-debian-7.6-console-armhf-2014-08-13-2gb.img.xz Aug 28 03:57:43 I also found you could 'grow' the filesystem to include all available disk space if you use ext4 resize commands. Aug 28 03:58:10 I am looking at that now actually; I don't have the /opt/scripts/tools directory on my image though, :/ Aug 28 03:58:14 strange honestly. Aug 28 03:58:28 You shouldn't have to do anything, it 'just boots' Aug 28 03:58:30 https://github.com/RobertCNelson/tools pretty sure that's it though Aug 28 03:58:32 dd that image Aug 28 03:58:34 to the sd. Aug 28 03:58:58 I did load my console with the micro hdmi cable, however. Aug 28 03:59:06 you using micro hdmi? Aug 28 03:59:20 makes it easier, it might be booting but not getting on network. Aug 28 03:59:44 I am ssh'd into the thing. Aug 28 03:59:53 that might be part of the problem. Aug 28 04:00:00 it boots just fine, but I have to hold the USER button to boot it. Aug 28 04:00:05 get a micro hd to norrmal hdmi Aug 28 04:00:12 then you can watch and see whats happening. Aug 28 04:00:14 that won't solve anything. Aug 28 04:00:27 my board has a full HDMI socket. Aug 28 04:00:39 all I can say is that image requires no user button when I reboot. Aug 28 04:01:22 you sure you don't have a pi? Aug 28 04:01:29 no full sized hdmi on the bbb Aug 28 04:01:35 I have a BeagleBoard revision C3. Aug 28 04:01:37 unless it’s the old one. Aug 28 04:01:38 oh Aug 28 04:01:40 :) Aug 28 04:01:41 not bbb Aug 28 04:01:44 oops Aug 28 04:01:46 np Aug 28 04:02:08 I see now though that the instructions I followed to update u-boot had me checkout a flasher.git repository Aug 28 04:02:13 I bet that's what's going on. Aug 28 04:02:39 I did have a devil of a time until I got the 'emmc flasher' and dded it to the emmc. Aug 28 04:02:41 (on bbb) Aug 28 04:02:48 otherwise it just never boots. Aug 28 04:03:09 designed to be run from the emmc rather than the microsd. Aug 28 04:04:30 hmm Aug 28 04:20:13 symgryph: somehow my partition 1 only has an MLO and a u-boot.img Aug 28 04:20:42 when I boot w/out USER button, the system tries to read uEnv.txt from partition 1, and /boot/uImage Aug 28 04:20:57 interesting. Aug 28 04:21:06 /boot/uImage is from partition2 though Aug 28 04:21:25 yeah, strange. that's straight from the sdcard image unless I fubar'd along the way (But I don't remember such) Aug 28 04:31:26 symgryph: I had junk in the NAND, and that "boot system" is what was booting everything Aug 28 04:31:36 I understand what I was missing; thanks much! Aug 28 04:31:45 did I actually help? Aug 28 04:31:48 you did, :) Aug 28 04:31:51 how? Aug 28 04:31:59 by insisitng that it should work as I thought Aug 28 04:32:05 ah Aug 28 04:32:40 has anyone found a good wifi (not usb) cape for the bbb? Aug 28 04:37:21 hello Aug 28 04:37:26 friends Aug 28 08:16:49 Anyone with a live beagleboard <=C4 running a kernel >= 3.0? Aug 28 08:19:21 Hi all! Anyone there with knoledge about bblack and capes? I need two combine two of them. (actually using the bblack audio cape revb and the UART1 at the same time) Aug 28 09:03:39 Hi all! Anyone there with knoledge about bblack and capes? I need two combine two of them. (actually using the bblack audio cape revb and the UART1 at the same time) Aug 28 09:04:57 Kirsath: maybe just ask what you want to know specifically. Aug 28 09:05:22 besides, generally speaking: if the pin unsage doesn't overlap, should be no problem. Aug 28 09:09:44 ok, the problem I have if I can load both (the uart1 and the audio cape) once i try to record some audio it hangs Aug 28 09:09:56 the pin usage should be no problem Aug 28 09:10:00 Find the pi Aug 28 09:11:20 usage for the audio cape here: http://elinux.org/CircuitCo:Audio_Cape_RevB Aug 28 09:12:08 and the uart1: P9 24 and 26 Aug 28 09:12:37 Shouldn't overlap, maybe some stupid missconfiguration I do not get... Aug 28 09:13:11 have you tried they obvious problems? like, does it hang when the uart cape is not loaded? when the uart cape is not plugged in? Aug 28 09:14:05 yes, the audio cape works without the uart1 loaded Aug 28 09:14:25 it records, etc... Aug 28 09:14:50 just when I tried it with the uart when it happens Aug 28 09:14:57 then i'd say, next point is to find out *why* it hangs. but i'Ve got no experience there, sorry. Aug 28 09:15:12 the uEnv.txt content to load them: optargs=capemgr.enable_partno=BB-UART1,BB-BONE-AUDI-02 capemgr.disable_partno=BB-BONELT-HDMI Aug 28 09:15:23 ok, do not worry, thanks for your help Aug 28 09:15:43 I will try it, maybe using another uart Aug 28 09:16:04 is there any way to know which pin mode is enabled for P8 and P9? Aug 28 09:18:23 there should be some stuff in /sys/kernel/debug/pinctrl Aug 28 09:19:29 /sys/kernel/debug/pinctrl/44e10800.pinmux/pinmux-pins Aug 28 09:19:38 probably it is Aug 28 10:38:00 LetoThe2nd I was able to check the used pins, thanks for your help. I will try to find the solution! bye Aug 28 13:23:41 hi there Aug 28 13:24:03 I've got a programming oriented question Aug 28 13:24:19 So ask it. Aug 28 13:24:38 I try to reproduce the basic Blink an on-board LED demo utilizing all the usr leds Aug 28 13:25:21 so it goes like: Aug 28 13:25:23 var b = require('bonescript'); Aug 28 13:26:03 var led = ["USR0", "USR1", "USR2", "USR3"]; Aug 28 13:26:23 var state = [0, 0, 0, 0]; Aug 28 13:27:16 for (var i = 0; i < led.length; i++) { Aug 28 13:27:26 b.pinMode(led[i], 'out'); Aug 28 13:27:33 } Aug 28 13:27:44 t81: It is strongly recommended to use a pastebin service for large (>1 line) blocks of text. Aug 28 13:27:51 Very strongly. Aug 28 13:27:54 ok, sorry Aug 28 13:29:11 so then what? how do I use the setInterval in a loop to start any function? Aug 28 13:30:59 t81: https://www.google.com/search?q=bonescript+setInterval Aug 28 13:31:03 t81: you are welcome Aug 28 13:35:54 thanks Aug 28 14:41:59 <_jac_> Is it intentional that the debian images at http://www.armhf.com/boards/beaglebone-black/ have _zero_ support for capes? Aug 28 14:43:18 <_jac_> I actually prefer just editting the board dts and rebooting, so it's not a big deal for me, but I imagine new users would be lost. Aug 28 14:43:26 _jac_: ask those providing them, as the official debian images are hosted at beagleboard.org Aug 28 14:45:22 <_jac_> LetoThe2nd: Ahh, you're right. I thought I linked there from beaglebone.org, but it came from http://the8thlayerof.net/2013/10/08/canbus-beaglebone-black-as-a-canbus-data-logger-for-automobiles-part-1/ Aug 28 14:46:26 <_jac_> At any rate, the latest kernels don't seem to support the capemanager. Was it deprecated or just never in mainline? Aug 28 14:46:52 latest kernels from what/where? Aug 28 14:47:17 <_jac_> mainline. the armhf kernel is v3.14.1 Aug 28 14:47:38 mainline never had the capemanager so far. Aug 28 14:47:40 <_jac_> sorry, v3.14.4.1 Aug 28 15:03:36 anyone know what the best usb wifi dongle to use on the beagle might be? Aug 28 15:04:41 no Aug 28 15:08:13 Yes, there is a list online. Aug 28 15:08:19 It is probably even linekd from the FAQ. Aug 28 15:09:15 agmlego no wifi usb controller I know of works over a long period Aug 28 15:09:25 besides the usb rehotplugging problem Aug 28 15:10:17 The ones I use on a daily basis in my lab have been subject tot he worst abuse one can provide, and have not faltered yet. Aug 28 15:10:29 Granted, that is on Intel machines running Windows 7. Aug 28 15:11:38 ? Aug 28 15:12:22 woglinde: ?? Aug 28 15:12:27 hm why would running it on windows 7 makes it running on the beagle? Aug 28 15:13:24 You made a generic statement. I provided a counterexample, and further clarified that I have not yet used the items in question on the channel platform. Aug 28 15:13:50 THe chipsets themselves have yet to fail--therefore, counterexample to your statement. Aug 28 15:16:46 agmlego no he asked for the beagle Aug 28 15:16:54 I am aware. Aug 28 15:16:57 so answered for the beagle Aug 28 15:17:00 and not windows 7 Aug 28 15:17:37 But it sounded a lot like you were blaming the controller on the module. So I provided a counterpoint to that, suggesting that maybe the issue lies elsewhere in the system. Aug 28 15:17:41 Whatever. Aug 28 15:17:52 no I am blaming musb as always Aug 28 15:17:52 I apologize for my attempt at aid. Aug 28 15:35:18 Hi there Aug 28 15:35:41 can anyone help me out, how to connect beagleboard xm to laptop Aug 28 15:36:06 preferably using RS-232-C Aug 28 15:36:27 I have prolific usb-to-serial connector Aug 28 15:36:42 but the drivers didn't support for windows 8 Aug 28 15:37:06 I have vmware Ubantu install Aug 28 15:37:14 find a way to install the drivers or then get an FTDI one Aug 28 15:37:43 USB forwarding to a virtual machine may work, or not. Aug 28 15:38:18 do you provide any links from where I can look FTDI Aug 28 15:38:34 I have tried enough, did get any result Aug 28 15:41:57 does anyone facing same problem with beagleboard-xm to laptop ( USB-Serial driver issue) Aug 28 17:31:13 hi Aug 28 17:31:17 all Aug 28 17:31:37 I have one question about PMIC scripts Aug 28 17:31:42 In beagle board Aug 28 17:31:57 only wrst script is configured Aug 28 17:32:10 not sleep, wake scripts Aug 28 17:32:44 Can please any expert tell why other scripts have not been configured Aug 28 17:32:51 in twl_common.c Aug 28 18:13:31 If I wanted to get the schematics/BOM/ART for the beaglebone black and build it myself, how much would it cost? Aug 28 18:15:20 more than you can buy one for Aug 28 18:16:19 That's what I was thinking :-( Aug 28 18:16:19 there's a narrow profit margin and the price is reduced by MOQ (minimum order quantities) in the 1000's Aug 28 18:17:06 fabrication of a single board is pretty expensive Aug 28 18:17:12 I would like to build a custom system and use the beaglebone as my reference with just small modifications really. Aug 28 18:18:24 has anybody done this? I wonder how much it would cost Aug 28 18:18:36 howmuchtobuild: Well, it *is* open-source, so you certainly can do it. Aug 28 18:18:52 howmuchtobuild: But it might serve your purposes better to build a cape instead. Aug 28 18:19:10 anyone successfully get bluez/gatt stuff working? Aug 28 18:19:52 it's also open hardware Aug 28 18:19:54 howmuchtobuild: And since the BOM is also open, you could certainly do the pricing as well as any of the rest of us. ;-P Aug 28 18:20:27 Yeah, I have not found the BOM but I will do that Aug 28 18:20:44 It is in the same place as the EAGLE files, IIRC. Aug 28 18:20:55 I see Aug 28 18:21:37 I don't like the form factor for a real product so that is why I wouldn't want to make capes Aug 28 18:22:02 Ah. Aug 28 18:22:09 Then you are stuck making your own. Aug 28 18:23:37 yeah :-( Aug 28 18:24:18 On the other hand, since you are looking at this for products anyway, you should be able to hit higher MOQs to drop the price. Aug 28 18:24:28 No big deal. Aug 28 18:27:46 not likely Aug 28 18:27:53 my product will be low volume Aug 28 18:28:51 maybe I should keep it simple and just copy everything as is and create capes like you suggested Aug 28 18:29:46 but I cannot depend on somebody else to buy the beaglebone black and instead I should just take the schematics and everything that goes with it and send it to the fab house to be build Aug 28 18:33:45 howmuchtobuild: Why not just include the bone in your product? Aug 28 18:35:23 what do you mean? Aug 28 18:35:51 YOu worry about your customers not buying the bone. Aug 28 18:36:01 Just include the bone in the product. Aug 28 18:36:10 THen you do not have to rely on your customers to do it. Aug 28 18:36:29 no, you misunderstood me Aug 28 18:36:50 OK. Clarify. Aug 28 18:37:11 I meant I cannot rely on beagleboard.org having the beaglebone black on stock Aug 28 18:37:23 for me to buy it and use it in my product Aug 28 18:37:45 Why not? Aug 28 18:37:46 i should get the schematics/bom/art and send it myself to the FAB house Aug 28 18:37:49 Everyone else is. Aug 28 18:38:03 This is why supply and demand are nearly balanced. Aug 28 18:38:20 what if my customer want to buy more of my products and beagleboard.org is out of stock? Aug 28 18:39:23 That would be really awkward, because beagleboard.org does not sell any product. Aug 28 18:39:33 THis is what the distribution network is for. Aug 28 18:41:47 Pardon my ignorance, I just started looking into the beaglebone and this beagleboard.org website Aug 28 18:42:10 so I do not know much at all about how things are done Aug 28 18:43:24 So, beagleboard.org is run by CircuitCo, the company that partnered with TI to design the BeagleBone and other products. Aug 28 18:43:52 They use a network of distributors, like Digikey, and element14, and Adafruit Industries, and others, to actually sell the fabricated boards. Aug 28 18:44:42 So, you want a stable supply of boards? Contract with a distributor to get a stable supply of boards, but remember that many other companies are doing the same thing, which is why the boards are selling slightly faster than they are being made. Aug 28 18:47:14 "which is why the boards are selling slightly faster than they are being made" hmm... that is a little scary though Aug 28 18:47:30 Well, there are also the blue boards. Aug 28 18:47:49 Which are effectively the same art, sold by (IIRC) element14. Aug 28 18:47:51 blue boards? Aug 28 18:48:12 howmuchtobuild: Besides, you speak of low volumes. Not like a little lead time is going to ruin everything for that kind of product. Aug 28 18:48:32 ok Aug 28 18:48:59 I need to read more Aug 28 18:49:20 I'll read more at the website Aug 28 18:49:28 I like that there is plenty of documentation Aug 28 18:49:45 maybe too much lol Aug 28 18:49:55 No such thing as too much documentation. Aug 28 19:21:16 I mean it is in many different pages, sites etc Aug 28 19:57:46 oh, what a coincidence. I am compiling usbnet into my desktop kernel, so I can try and talk to my brand new bbb via ethernet. turns out that may allow me to connect to it via virtual ethernet, plugged to the port Aug 28 19:57:53 hopefully one way or the other works. Aug 28 19:58:33 sheesh, i must have run a make clean on my kernel tree before. Aug 28 20:03:15 is there a way to connect 2 more ethernet devices to a bbb, (at least one could be USB) Aug 28 20:03:21 Hi, I'm trying to use the ARM Performance Counter in my app with my Beaglebone Black but it seems like the Linux kernel does not allow access to those registers like it did in my older Beagleboard. Any info on how to enable access to PMNC is appreciated. I think I need to load a new kernel but if that is the case, which one? Aug 28 20:04:24 anxt, do you have a router? usually a router has 4 ports while hooking one to the BBB Aug 28 20:05:17 its for an embedded application, one port is inet, one is AoIP and another is some other signalling Aug 28 20:05:48 i was thinking maybe I could add a little switch board Aug 28 20:06:23 the AoIP is high bandwidth, probably the USB ethernet is not an option Aug 28 20:06:25 yes, you may be able to use the router like a ether switch. Aug 28 20:07:15 the finished project needs 3 ports exposed on the chasis Aug 28 20:08:03 just put the BBB in port #1, then the rest in the other ports... otherwise buy an ethernet switch you can buy used ones at a salvage store. Aug 28 20:18:08 this is for fabrication Aug 28 20:18:31 does bbb support more than one cape simultaneously? Aug 28 20:19:17 I /think/ it's up to 3 but I could be mistaken Aug 28 20:20:05 Pretty sure it is 4. Aug 28 20:20:19 Given that the I2C EEPROM on the cape has 4 possible addresses. Aug 28 20:30:15 anxt, probably as long as they dont conflict with each other. Aug 28 20:31:24 is there such a thing as an ethernet cape for the BBB? Aug 28 20:31:39 or has anyone successfully hooked to the SPI? Aug 28 20:32:27 anxt, look in google, I think there is a cape for the ethernet... Aug 28 20:40:43 I'm trying to set timer4 (gpio 66 in the overlay) to timer mode (A fixed frequency output right?) and set its frequency but despite a bunch of googling i've found no easy answers Aug 28 20:40:50 i can set it to simple 1/0 output via the overlay, but that's it Aug 28 20:40:54 where should i be looking Aug 28 20:43:36 so it looks like i have to write a device overlay specifically? Aug 28 21:31:52 > Aug 28 21:39:50 < Aug 28 21:42:39 ^ Aug 28 21:50:22 » Aug 28 21:58:52 in a 3.15 kernel, what would I enable to make the bbb show up as a usb ethernet device? Aug 28 21:59:31 i have ethernet gadget support, usb acm Aug 28 22:00:38 hmm, maybe I don't actually. Aug 28 22:00:49 cp: cannot stat 'drivers/usb/gadget/g_cdc.ko': No such file or directory Aug 28 23:00:16 could someone tell me what I need to enable in a 3.15 kernel to get usb virtual ethernet device from BBB? Aug 28 23:00:35 I can use screen and attach to /dev/ttyACM0 and get a login console Aug 28 23:01:22 should I have CONFIG_USB_ETH_EEM=y ? Aug 28 23:02:51 I added verbose messages and i get "couldn't find an available UDC" in dmesg Aug 28 23:03:53 you need the composite device Aug 28 23:04:13 only 1 gadget is allowed per UDC and it looks like the serial stuff grabbed it already Aug 28 23:04:59 ok, probably I need to disable the acm business, and use the composite device Aug 28 23:08:59 would it use kernel/drivers/usb/gadget/g_multi.ko ? Aug 28 23:09:18 sounds about right to me Aug 28 23:13:11 hmm, it is taking some time to get my desktop working correctly. I swear I should switch to a better distro Aug 28 23:13:14 one day. Aug 28 23:14:55 g_multi: Unknown symbol fsg_config_from_params (err 0) Aug 28 23:15:03 hmm, maybe i need to make clean or something Aug 28 23:15:13 the kernel is a rather large program Aug 28 23:27:34 large program...cesspool... Aug 28 23:31:15 well not like you can rewrite a program that large Aug 28 23:31:34 sure you can...it is in a constant state of rewrite Aug 28 23:31:43 i remember trying to source dive the kernel, down the hole I went, i didn't even know what some basic macros did Aug 28 23:32:45 I was writing some glib/gobject stuff the other month, sheesh, that is a big program too. I venture its not even C anymore, but a new language called glib Aug 28 23:33:11 layer upon layer of abstraction Aug 28 23:33:27 (not that this is a bad thing, just sayin') Aug 28 23:39:59 glib is just plain horrible Aug 28 23:40:03 it is like boost Aug 28 23:45:57 you need assembler and opcodes :D Aug 28 23:49:02 i just added the latest image on microsd, and now after about 10 mins of idling the bone is shutdown, with a specific halt from the OS Aug 28 23:49:11 is this something silly i missed? Aug 28 23:50:42 seems to be almost exactly 10 minutes in fact Aug 29 00:23:18 ok, what do I need to do to make a linux desktop present a virtual ethernet on USB when I plug a BBB? Aug 29 00:23:52 "couldn't find available UDC"? what does this mean? Aug 29 00:24:09 have you compiled in the usb gadget drivers? Aug 29 00:24:16 there's about 3/4 options for them Aug 29 00:24:39 I have tried. I expect I need to use g_multi Aug 29 00:24:57 g_multi is one .. g_ether is another Aug 29 00:25:40 could you pastebin your .config by any chance? Aug 29 00:26:11 hmm not using usb with linux .. plain old CAT5 wire :) never fails .. almost. Aug 29 00:26:41 even wifi is easier imho. Aug 29 00:27:05 well not quite :) Aug 29 00:27:18 sec lets see if my debian box has got enough built-in to pull up the one on the floor here ....... Aug 29 00:27:23 hmm, maybe I could set a static IP on the ethernet coming in via /dev/ttyACM Aug 29 00:27:30 yeah so slightly after 10 mins after booting the latest image off microsd Aug 29 00:27:33 it just halts Aug 29 00:27:38 what's going on? Aug 29 00:29:28 nope .. no gadget on my beagle .. never configured in my custom build Aug 29 00:29:54 more hassle than its worth .. but jkridner etc seem to think its the best way to get started -shrug- :p Aug 29 00:30:18 clearly they weren't brought up on serial consoles and plain old ethernet ;) Aug 29 00:30:28 telnet etc Aug 29 00:32:41 CONFIG_USB_NET_CDC_EEM Aug 29 00:32:42 hmm Aug 29 00:34:44 so modprobe g_ether puts " couldn't find an available UDC" to the log Aug 29 00:35:49 do you have another gadget device loaded? Aug 29 00:35:52 or compiled in? Aug 29 00:37:35 yes, I think on both Aug 29 00:37:46 i tried rmmodding everything Aug 29 00:37:53 rebooting even Aug 29 00:38:09 do I need a USB peripheral controller? Aug 29 00:39:13 i can try and remove everything usb and modprobe g_ether Aug 29 00:39:51 rmmod usb_f_mass_storage usb_f_rndis u_ether libcomposite Aug 29 00:40:18 + udc_core Aug 29 00:40:41 maybe I need to tell udev to leave it the _*#( alone? Aug 29 00:40:50 it should *just work* :p Aug 29 00:41:08 Yes you do need one Aug 29 00:41:08 on the 1/2 occasions I tried it once I got the drivers compiled I think it did Aug 29 00:41:12 I am somewhat competent, and the last 5 hours are singing a different tune Aug 29 00:41:17 thankfully, OTG controllers include one of them Aug 29 00:41:53 I need OTG support on the desktop side? Aug 29 00:42:17 just gadget iirc Aug 29 00:42:33 but you will need some form of usb driver .. or else you won't get usb ports enumerated :P Aug 29 00:42:52 you should see somethign happen in dmesg when you plug the beagle in Aug 29 00:43:01 even if its just port blah blah blah Aug 29 00:43:11 i get usb mass storage attached Aug 29 00:43:24 i can even use /dev/ttyACM to talk to it Aug 29 00:43:34 no usb virtual ethernet Aug 29 00:44:23 wrong gadget driver then ;P Aug 29 00:44:49 did you do g_multi ? Aug 29 00:44:56 I can't remember which does which Aug 29 00:45:04 tried it too Aug 29 00:45:13 no UDC Aug 29 00:45:20 perhaps its falling back Aug 29 00:45:24 ok, so say I want to use the ethernet port Aug 29 00:45:38 there is no eth0 on the shell, and lspci doesn't work Aug 29 00:45:47 i suppose maybe there is no pci bus on the BBB Aug 29 00:46:05 no there isn't :) Aug 29 00:46:08 Any video mode help about ? I loaded the latest debian on to a black and edid is reporting "Mode "1920x1080"" but the list modes reported by DRM is "1280x720". How can I get the resolution up 1920x1080 ? Aug 29 00:46:09 nor bridges, etc Aug 29 00:46:34 hmm, ifconfig eth0 up shows it Aug 29 00:46:39 i'll try and assign an IP Aug 29 00:47:25 oh yay, I am pinging the outside world Aug 29 00:47:39 what kernel version are you using? Aug 29 00:47:45 beagle will dhcp :) Aug 29 00:48:13 yay, dhclient gives me a default route Aug 29 00:48:31 Linux beaglebone 3.8.13-bone47 Aug 29 00:48:44 freaking epic, what a waste of time the last 4 hours were Aug 29 00:49:19 hmm, can I apt-get? Aug 29 00:49:24 sure Aug 29 00:49:27 gadget is a pain Aug 29 00:50:02 is this a uclibc or glibc? Aug 29 00:50:16 wow i have gcc Aug 29 00:50:18 excellent Aug 29 00:50:27 ofc Aug 29 00:50:55 ahh, a different compiler? Aug 29 00:51:06 what is ofc? Aug 29 00:51:10 of course :p Aug 29 00:51:14 txt spk :D Aug 29 00:52:20 the USB contrllers on the BBB is a OTG Controller Aug 29 00:52:31 if you got mass torage then you have someting else running Aug 29 00:53:24 now to try and build libaacplus Aug 29 00:53:43 lmao good luck :) Aug 29 00:54:26 oh i should be a rockstar at this dance Aug 29 00:54:54 ds2 .. I'm pretty sure the OTG is just a 'wrapper' effectively .. it should support serial, ethernet AND mass storage Aug 29 00:55:27 eh? Aug 29 00:55:30 OTG Is not a wrapper Aug 29 00:55:31 perhaps not simultaneously though :D Aug 29 00:56:16 ok its a physical layer .. not a protocol either Aug 29 00:56:51 OTG is a protocol Aug 29 00:57:06 GND ID and it is a host, Float ID and it is a device Aug 29 00:57:17 eh ok there is a protocol Aug 29 00:57:19 pulse VBUS and things can switch Aug 29 00:57:45 in the case of the BB, ID is either hard grounded or floated to do the 2 ports Aug 29 00:59:11 is one supposed to shut a BBB down cleanly? Aug 29 00:59:19 yes. Aug 29 00:59:27 the BBB is just another Linux device. Aug 29 00:59:29 there must be a guide to mount / ro and use a ramdisk for /var? Aug 29 00:59:51 if you want that, use Angstrom. Aug 29 01:00:11 oh, I had better google about this Angstrom Aug 29 01:00:15 this is a distro I think Aug 29 01:00:35 I have pissed with buildroot, but its frustrating at times Aug 29 01:00:37 it can be done in debian .. I wouldn't try in ubuntu though Aug 29 01:01:34 i have a gentoo, but I could probably untar a debian in a chroot or something Aug 29 01:02:06 if you're familiar with gentoo you should be fine Aug 29 01:02:33 Angstrom should have it setup that way out of the box Aug 29 01:03:12 it didn't last time I used it on an embedded board :) Aug 29 01:03:57 all the arm/etc boards I've found ro rootfs have a custom rootfilesys Aug 29 01:04:12 my 3g router is squashfs and an ip camera we're working with is cramfs Aug 29 01:04:47 that said .. angstrom is capable of all sorts of things Aug 29 01:05:02 I just never got into it :D Aug 29 01:05:31 its not the easiest thing to set up when I've tried Aug 29 01:06:50 so no matter what with the examples in the default web ide thing, i can't get P9_14 to output any sort of high frequency square wave Aug 29 01:07:07 impressive piece of kit Aug 29 01:07:20 using adafruit_bbio and PWM.start("P9_14", 1, 20000) the bb actually outputs a 1hz square wave with 50% duty cycle Aug 29 01:07:25 high frequency square waves don't exist Aug 29 01:07:33 anxt: high frequency being 'above 1hz plz' Aug 29 01:07:44 oh, well those can look pretty square Aug 29 01:07:47 veremit: I think that is a matter of passing ro to the kernel option or something like that. most writeable files has been redirected to a ramdisk Aug 29 01:07:48 it doesn't really matter if it turns into a sine wave, the problem is the beaglebone not actually working Aug 29 01:07:49 you have a scope? Aug 29 01:07:51 yes Aug 29 01:08:11 ds2 .. quite probably Aug 29 01:08:39 hahainternet .. is the pwm bein set up correctly? and that pin can be muxed ot a pwm, or is already? Aug 29 01:08:54 frequeny isn't some strange units? Aug 29 01:09:11 hi all, I am having trouble getting the beaglebone-universal-io device overlay to work. I get "file exists" error Aug 29 01:09:12 and is the adafruit library compatible with tht eBlack, if its the BBB you're using? Aug 29 01:09:22 with^the Aug 29 01:09:31 veremit: i'm thinking that it hasn't been muxed out as PWM but it does square wave at 1hz, which is odd Aug 29 01:09:40 going through device overlays now to see if i can explicitly set it Aug 29 01:09:51 too lazy to go through offsets and mode bits Aug 29 01:10:14 sounds like a mode bit missing somewhere Aug 29 01:10:20 or a clock not configured Aug 29 01:10:24 that kinda thing Aug 29 01:10:37 the 1hz wave is probably a red herring Aug 29 01:10:40 veremit: do you know if timer4-timer7 can be used to output a set frequency? Aug 29 01:10:50 not off the top of my head, sorry, no. Aug 29 01:10:58 from some googling it seems that PWM frequency can go to reasonably high freqs Aug 29 01:11:05 but i'd like to drive this at 20Mhz or more Aug 29 01:11:08 should go into the khz Aug 29 01:11:17 I'd be surprised in the mhz Aug 29 01:11:24 yeah that's my problem Aug 29 01:11:40 need to look into the PRUs perhaps Aug 29 01:12:04 they're better for high speed / low latency stuff Aug 29 01:12:14 ie. MHz++ Aug 29 01:13:39 oh interesting, i didn't realise the PWMs weren't driven by them already Aug 29 01:13:48 looks slightly annoying to code for but a square wave should be simple enough Aug 29 01:14:02 also looks like pwm pin is in mode 7 not 6 Aug 29 01:14:19 which is gpio not pwm, although i thought the cloud io stuff was supposed to set it, maybe i'm using it incorrectly Aug 29 01:14:31 i'll set up a device tree entry for that and keep reading the pru docs, thanks veremit Aug 29 01:16:03 yeah you might need to configure a pwm clock from an old article I'm reading .. but this is kernel 3.2 lol Aug 29 01:16:07 ancient history Aug 29 01:16:30 and check the mux .. but that might be defaulted .. depends how you've rolled your system Aug 29 01:16:40 check and double-check, as always :) and look for errors! Aug 29 01:18:13 yeah no that is likely the cause, i checked the pinmux pin entry in the sysfs tree and it looks like it's in mode 7 Aug 29 01:18:17 so that would be generic gpio Aug 29 01:19:09 d'oh :D Aug 29 01:21:32 the device tree overlay stuff is frustrating but i'll get through that Aug 29 01:21:37 the PRU stuff looks hilariously complex Aug 29 01:21:57 yeah I know jack about the PRU really .. except that its Good :) lol Aug 29 02:49:27 Hi, someone had changed the tps6521 from beaglebone Aug 29 02:54:16 what are you referring to? Aug 29 02:54:46 BB white Aug 29 02:55:29 ok, I only have the black... sorry Aug 29 02:55:41 I assume the PMIC is different on the older board .. which hardly surprises me Aug 29 02:58:07 The PMIC from my BB white doesn't work... Aug 29 02:59:32 I think you need to explain better what you're trying to do .. or expecting to work .. or Something .. Aug 29 02:59:42 but me .. I've gotta go sleep .. so .. nite all I-) **** ENDING LOGGING AT Fri Aug 29 02:59:58 2014