**** BEGIN LOGGING AT Mon Aug 10 02:59:59 2015 Aug 10 07:44:22 hi everyone Aug 10 07:46:03 does anybody know which adress i must use to reach J3 ports from linux kernel? Aug 10 07:46:08 how can i find it? Aug 10 07:49:10 ozgur: on which hardware? what are you trying to do? Aug 10 07:51:22 hi tbr Aug 10 07:51:46 i have a beagleboard rev-C3 Aug 10 07:51:59 i want to make test about kernel drivers Aug 10 07:52:10 archlinux-arm is running on it Aug 10 07:52:40 i plug some leds on J3 ports Aug 10 07:53:01 i want to switch the lights Aug 10 07:53:10 right, so which kernel version is this? Aug 10 07:53:21 preferably the output of uname -a Aug 10 07:53:23 but i dont know how to reach j3 memory space from linux kernelspace Aug 10 07:53:27 ok Aug 10 07:53:30 1 sec Aug 10 07:53:45 Linux alarm 4.1.4-1-ARCH Aug 10 07:54:22 ok, so this should use devicetree. you'll need to make sure that the devicetree that you use has those muxed as GPIO and available Aug 10 07:55:14 this is a spesific kernel for this device build on archlinux Aug 10 07:55:17 and yes, the very dirty way is also possible to just poke registers either from kernel or /dev/mem Aug 10 07:55:37 i had /dev/mem output Aug 10 07:55:59 but i dont know which one is it or the search keyvord by grep Aug 10 07:56:08 *keyword Aug 10 07:58:07 do yourself a favor, don't get into using /dev/mem - that's bypassing everything and directly screwing with the hardware Aug 10 07:58:19 yes Aug 10 07:58:25 i know Aug 10 07:58:38 these are tests Aug 10 07:58:56 we are focused on developin our kernel modules for our devices Aug 10 07:59:36 may you help if i send screenshot of /dev/iomem output? Aug 10 08:01:29 http://i.imgur.com/RBK71XS.png Aug 10 08:02:54 http://i.imgur.com/0CUW17m.png Aug 10 08:03:23 it is interesting(or not) ioports are empty Aug 10 08:10:05 I'm going to once again point out that you should review the devicetree source file you are using to boot this kernel. Aug 10 08:24:42 ok Aug 10 08:24:46 thanks Aug 10 09:13:08 Hello can anyone help about setting resistor mode (pull up, pull down) in BBB. Which register should be addressed for designing driver for the same. (I tried to refer TRM of am335x but didn't get the exact register for the same). Thanks Aug 10 09:14:57 use devicetree and don't screw with things directly. Aug 10 09:15:43 tbr: I am designing driver for GPIO for RTEMS so register access is must Aug 10 09:15:59 then the TRM is your bible Aug 10 09:17:20 tbr: Yep. I referred it but didn't get the information about Pad control register in GPIO section . It would be great if you can give me the link for pad configuration register. Aug 10 09:18:01 it would be great if I knew. wouldn't it? but I don't. Aug 10 09:18:28 ohk :) . Thanks Aug 10 09:19:42 Any reference can you give me. So that I can ask him/her. :) Aug 10 09:32:21 ti forums :p Aug 10 09:38:02 stt_michael: ahh. Thanks a lot :D Aug 10 14:40:12 hi. i just decided to "revive" my old beaglebone black. its a rev A5A with Angstrom v2012.12. i'd like to update to a recent ubuntu, using the flasher image to flash to eMMC. the new u-boot comes up but it fails (no obvious error message) and goes into "FAILSAFE: U-Boot UMS (USB Mass Storage...". is there anything special i need to do to update this old beaglebone black? i tried quite a number of howtos and images by now.... Aug 10 14:53:38 pheemo: make sure you don't use a 4GB 'flasher' image Aug 10 14:55:09 i did, its the 2GB image Aug 10 14:56:39 i read somewhere there was a switch between uImage and zImage kernel format. could that be a reason? Aug 10 14:57:29 so the flasher image doesn't boot or the flashed board doesn't boot? Aug 10 15:00:56 the flasher image doesnt boot. u-boot comes up fine but cant seem to find a suitable boot partition. Aug 10 15:01:42 you have to hold down the button while turning the power on to boot off the sd card Aug 10 15:02:33 flasher image boots off the sd card and copies itself to the emmc Aug 10 15:04:19 yes, i'm doing that. however it doesnt seem to have much of an effect, if the sd card is inserted, it always seems to use the u-boot from the sd but then fails... Aug 10 15:05:10 maybe try a different flasher image for different distro see if it works Aug 10 15:06:25 i tried 2 versions of ubuntu, 1 debian and one anstrom. same effect... Aug 10 15:09:40 which button are you holding down while powering it on? Aug 10 15:10:19 pheemo: please note that you have to remove all power before holding down S2 (next to microsd and hdmi) Aug 10 15:12:10 also doing that.. Aug 10 15:13:07 i captured a boot log earlier... http://pastebin.com/c8qf53mB Aug 10 15:19:05 Hi! Does anyone know if the is a way to export a pwm channel from the device tree? Aug 10 15:23:33 pheemo, besure to remove any capes, usb, etc.. also use a wall plug in, instead of the usb cable to power the bbb Aug 10 15:34:33 doing all that.... Aug 10 15:36:20 hm, i just ordered a second rev C from farnell...so at least i have a second board to check.. Aug 10 16:44:40 i managed to update it to a very small but recent debian through the usb mass storage emulation of u-boot but still no luck via sd & flasher image. maybe theres something wrong with the sd slot or cards... Aug 10 16:58:57 how many digital pins does the beagle bone black have? Aug 10 16:59:07 Many. Aug 10 16:59:24 More than there are physical pins on the board. Aug 10 17:01:02 can the board support 120 digital pins Aug 10 17:01:13 simultaneosly Aug 10 17:01:25 Not natively, but you can certainly add IO expanders on I2C and SPI. Aug 10 17:02:02 Usually when someone wants 120 GPIO', it means they're doing something inefficiently that there might be a better way to do... Aug 10 17:02:16 Yeah, that was going to be the next comment. Aug 10 17:02:31 nice thanks, i am familiar with arduino more, from what i see beaglebone has a stronger processors and io capabilities correct? compared to arduino mega or uno? Aug 10 17:02:54 askher: In the sense that a Ferrari is comparable to a bicycle, yes. Aug 10 17:03:26 But owning a Ferrari is a completely different thing from owning a bicycle, even if you use some of the same skills (righty tighty, lefty loosey) while working on them Aug 10 17:03:38 Yup. Aug 10 17:03:48 ANd they are well-suited for different things. Aug 10 17:04:03 Neither is strictly better than the other for all tasks. Aug 10 17:04:06 i need to read the inputs of ~120 digital inputs to see if high and low, Aug 10 17:04:11 Shift register. Aug 10 17:04:22 Shift registers. Aug 10 17:04:23 Or matrix scanning. Aug 10 17:04:46 okay, I see thanks you for sharing your knowledge Aug 10 17:04:49 Got a 20MHz SPI bus on the bone. Aug 10 17:05:03 what would be the preffered method for low latentcy and a minimal cpu load Aug 10 17:05:18 Define "low" and "minimal" Aug 10 17:07:17 it sounds like you've reinvented the keyboard, look at how they do it and if not suitable, be prepared to describe what part of a standard key matrix scanning arrangement is unsuitable. Aug 10 17:07:41 ^^^ Aug 10 17:08:18 ok sorry so i dont know anything about key matrix Aug 10 17:08:52 But you could! I hear wonderful things baout this "Internet" thing that all the kids are into these days. Aug 10 17:09:49 good morning Aug 10 17:10:39 i would like to adventually use a controller to monitor the i/o of 64-120 different inputs,then edventualy use this data in a c# .net program that would run on computer on a network Aug 10 17:11:46 askher: Maybe if we knew more about what these inputs actually were, or more definition about your problem, we could be more helpful than literally giving you the phrases to Google for. Aug 10 17:12:10 askher: But as it is, I think we have been exceedingly helpful already. Aug 10 17:16:08 lol, yes I did get some phrases that helped alot, but to give you some inside this is a device that would read traffic inputs from a controller and take these values to literally see that light is lit in an intersection, this is not a device that would run in the intersectuion but would be used for testing purposes Aug 10 17:16:51 Why are there so many inputs then? A single intersection does not have that many devices. Aug 10 17:16:56 I need to take 24vac signals which our output along at the most 120 ac line convert them to dc and read with a controller to all intperpretion Aug 10 17:18:14 thats how the controller work, there is literally a input for each signal light and each light. this is the standard the controllers in intersections work Aug 10 17:19:33 a 4 way intersection with one turn lane will have at min. 3 signal lights, with red yellow green, per direction of traffic; so around 60 just for the lights excluding the sensors and various detectors Aug 10 17:19:46 at least we now know that low latency means "below one second" Aug 10 17:20:12 1 sec .. thats a friggin fortnight Aug 10 17:20:43 lol yes at most .1-1 sec delay Aug 10 17:20:50 what do you mean michael Aug 10 17:20:51 > Aug 10 17:21:12 Heh. Usually when someone says "low latency" it means in the microseconds... Aug 10 17:21:17 askher: even if you do it in a stupid way, you can check all inputs within a ms or so Aug 10 17:21:21 askher: 100ms to 1000ms is an eternity for modern computers like the bone. Aug 10 17:22:15 :> Aug 10 17:22:18 So, https://www.arduino.cc/en/Tutorial/ShiftIn Aug 10 17:22:20 ok bbl .. home time. Aug 10 17:22:31 oh, i see what you mean I didnt know if it would be possible to have that low of a latency with this many inputs to monitor Aug 10 17:23:32 askher: the most stupid approach would be to read each pin serially. let's assume a slow clock of 1MHz. reading 100 signals would then take 100us Aug 10 17:23:42 askher: even an arduino can do that Aug 10 17:24:58 nice, forgive me of my lack of knowledge. But would reading each pin digiatlly offer similar outcomes, like a smilar deay at 1mhz Aug 10 17:25:11 thanks KotH Aug 10 17:25:22 askher: i think you want to hire someone with electronics knowledge Aug 10 17:26:31 eh, im learning, must crawl before i walk. Thanks for your help. Aug 10 17:27:04 askher: well, if you want to reach your goal this decade, you have to crawl faster Aug 10 17:27:43 lol thanks Aug 10 17:27:47 askher: learning electronics to a level where you can do such designs successfully takes 5 to 10 years Aug 10 17:28:09 there are many ways how you can screw up Aug 10 17:28:21 and you cannot fix it with just a mouse click Aug 10 17:28:30 really? Aug 10 17:28:35 well, it's hardware Aug 10 17:28:39 ive been trying to solder with my mouse for so longh Aug 10 17:28:46 buidling hardware takes at least a week, if you have a very fast production line Aug 10 18:30:54 does anyone talk on here? Aug 10 18:31:57 Nope, not ever., Aug 10 18:32:33 That's why I am here... Aug 10 18:33:12 there we go. the lurkers are out Aug 10 18:33:37 Nope. Aug 10 18:40:33 shhh go back to sleep Aug 10 18:40:40 ok Aug 10 18:42:53 my problem at the moment is more c than Beaglebone. Took an existing program,. modified ist, and my LEDs blinked the way I expected. cleaned up a bit using functions - everything works - if run the earlier version first. Else it doesn't Aug 10 18:43:10 need to find the difference Aug 10 18:44:20 -> no question for here... Aug 10 18:52:03 * djlewis suspects the electrons need a kick in the arse.. Aug 10 19:10:37 nerienna: Standard troubleshooting strategy: Trim the code down to just the minimum piece required to exhibit the problem behavior. Aug 10 19:16:54 is already on my agenda for tomorrow Aug 10 19:17:46 My guess, using my crystal ball? Your original code gets the muxes right; your edited code fails that in some way. Aug 10 19:18:42 no, it takes the value out of an array with the correct values Aug 10 19:19:27 we already checked the array Aug 10 19:19:45 ::shrugs:: Aug 10 19:20:09 I have no idea how to be more helpful. My crystal ball never fails to report the correct information. Aug 10 19:20:22 If only I had more information, so I would not have to use it. Aug 10 19:20:51 sorry, the information is at work, I am at home Aug 10 19:20:59 I see. Aug 10 19:21:35 but I have some ideas what to test tomorrow Aug 10 19:23:30 even if I had the code here, I wouldn't be able to test something, because I don't have the peripherals Aug 10 19:25:18 so good night to all - this was just an example for why not everyone is writing ^^ Aug 10 20:16:44 I'm trying to get an 8 channel relay board working with bbb. I've connected P9_05 -> VCC, P9_01 -> gnd, P9_15 -> In1. I get a in1 power light on, but when I run code, I can't get it to turn on or off. Code is here: http://pastebin.com/Z7UMmhzu Aug 10 20:16:51 any help appreciated Aug 10 20:24:22 lapin_: what kind of relay board do you have? Aug 10 20:26:27 It's an 8 channel board, uses songle SRD-05VDC-SL-C relay switches. Got it from eBay. Can't say much else about it, there's no manufacturer on the board :/ Aug 10 20:27:49 do you know if it should work with 3.3 volts? Aug 10 20:29:10 well, the songle switches say 5vdc ? Aug 10 20:32:42 without knowing anything of the relay board it's just guessing Aug 10 20:33:24 It's one of these: http://www.ebay.co.uk/itm/8CH-Channel-5V-Relay-Module-Board-Shield-Blue-for-Arduino-PIC-AVR-MCU-DSP-ARM-UK-/141125112062?hash=item20dbb650fe Aug 10 20:34:12 it looks like that the board inputs are driving the relays directly Aug 10 20:34:30 gpio's at bbb cannot handle that much load Aug 10 20:35:07 or at least the voltage on bbb gpio's is not sufficent Aug 10 20:35:30 so should I find a relay board that uses 3.3v relay switches? Aug 10 20:36:16 You should find a board that does not use the controller's pins to directly drive the relays. Aug 10 20:36:22 Transistors are your friends. Aug 10 20:36:50 can you recommend a relay board? Aug 10 20:36:57 Nope. Aug 10 20:38:42 i was going to suggest starting with this: http://www.logicsupply.com/cbb-relay/ Aug 10 20:38:45 oh well Aug 10 20:38:59 Yup. Aug 10 20:39:10 those opto isolators will draw 20mA each Aug 10 20:39:15 I was not going to recommend a realy without knowing the application. The clue was weak with that one. Aug 10 20:39:41 hmm, that looks a bit like opto isolator on that relay board Aug 10 20:40:31 i usually assume people are going to drive mains power, which makes me hesitant to give any advice :) Aug 10 20:40:58 Yup. Aug 10 20:51:37 rcn-ee_: I'd be using the "Console" Debian Jessie image to run on the BeagleBone green, or do you plan to release a separate image? Aug 10 20:53:10 Abhishek__, i'd like to uinify them as one.. Aug 10 20:53:46 I need to make sure every kernel has "am335x-bonegreen.dtb" then i'm adding a switch int u-boot to have findftd use that prefix.. Aug 10 20:59:34 Abhishek__, the green's eeprom will look like: https://github.com/RobertCNelson/boot-scripts/blob/master/device/bone/bbg-eeprom.dump Aug 10 20:59:52 They have an 0x1a after the bbb's device id.. Aug 10 22:14:55 you'll need a driver chip to buffer the beagle output pins to drive even an opto-isolator, especially a relay Aug 10 22:19:38 tets Aug 10 22:19:46 test Aug 10 23:15:55 hey folks :) how do i flash Debian onto BeagleBone A6? I have it booting off the MicroSD card but I can't get it to copy over to the chip! Aug 10 23:18:41 anyone? Aug 10 23:32:12 hmm Aug 10 23:32:24 well this is just grand Aug 11 00:52:14 anyone around? Aug 11 01:04:27 dang Aug 11 01:04:31 can't seem to get any support ugh **** ENDING LOGGING AT Tue Aug 11 02:59:58 2015