**** BEGIN LOGGING AT Tue Aug 11 02:59:58 2015 Aug 11 07:14:27 Hi, got some wondering about what is a machinekit versin for a kernel ?? Some can answer me ? :s Is it a dev build coming with tools ? Actually i'm looking to build a debian kernel because that Debian 8.1 that i'm using on my BeagleBone Black doesn"t allow me to use ftrace Aug 11 07:15:54 * tbr found rebuilding the kernel to be close to trivial for the BBB Aug 11 07:16:06 rcn has a git repository with scripts Aug 11 07:18:15 sry but i didn't undestand what you just said ^^ Aug 11 07:18:53 you speek about the image-builder repo ? Aug 11 07:19:24 could be Aug 11 07:20:07 but what does a "machinekit" build is for ? Aug 11 07:20:50 no idea Aug 11 07:45:41 Hi, can someone help me on some details about building the latest kernel 4, and config it to preemptive kernel and tools such as ftrace? Aug 11 07:52:27 hi guys, I've a problem trying to access to some gpio register throught the PRU, I've this simple code that tries to toggle 3 pins Aug 11 07:52:29 http://pastebin.com/PPJTWgJa Aug 11 07:53:13 the thing is that gpio1_20 toggles but gpio1_14 and gpio1_15 doesn't toggle, any clue on this ? maybe I missed to enable some clk ? Aug 11 08:00:08 are you sure they dont toggle? Aug 11 08:01:47 KotH, yes, checked with the scope Aug 11 08:02:02 hmm.. you are really accessing gpio from the pru Aug 11 08:02:06 you don't want to do that Aug 11 08:02:11 hello Aug 11 08:02:43 can someone please tell me how to flash a Rev-A6 BB with Debian on MicroSD (latest image) ? Aug 11 08:03:27 instructions say to simply power up the board and the flash happens automatically but it doesn't seem to be working. Board boots fine with the SD card but doesn't flash oboard memory Aug 11 08:03:30 stormit: you take a sd with the flasher image (2GB), hold down S2, connect power Aug 11 08:03:47 right.. did that, then what? Aug 11 08:04:01 flasher image? hmm Aug 11 08:04:16 yes, image should have flasher in the name Aug 11 08:04:29 I downloaded/wrote this to microSD: images_bone-debian-7.8-lxde-4gb-armhf-2015-03-01-4gb Aug 11 08:04:42 i take it that's the wrong one? Aug 11 08:04:42 otherwise you can do it too, but you have to run a script from /opt Aug 11 08:04:50 what script? Aug 11 08:04:52 that's a 4GB SD-card image Aug 11 08:04:55 ah Aug 11 08:05:03 your emmc is 2G if it's rev A Aug 11 08:05:06 KotH, why not ? do you see any problem ? Aug 11 08:05:24 tbr: i guess i should look for the flash image :) Aug 11 08:05:33 eballetbo : hum looking to your code you are using physical adress, i think you need to convert them to virtual. If you want to use the PRU you need to use the PRU API in order to launch a PRU program written in ASM (.p file). See this tutorial which really helped me : http://exploringbeaglebone.com/chapter13/ look at the git repo on ch13 there is an exemple of using pru to toggle gpio pin Aug 11 08:05:35 yes Aug 11 08:06:20 tbr: all i see is the 4g for Debian -- I'm looking here: http://beagleboard.org/latest-images Aug 11 08:06:37 the "flasher" image is supposedly for BBB not BB Aug 11 08:07:55 https://rcn-ee.com/rootfs/2015-07-08/flasher/ Aug 11 08:08:15 stormit: oh, wait, you're on the BB classic? Aug 11 08:08:17 what do i download Aug 11 08:08:19 yep Aug 11 08:08:25 bb classic = bbw right? Aug 11 08:08:30 no Aug 11 08:08:40 ugh. Aug 11 08:08:45 eballetbo: because you lose the advantage of the PRU Aug 11 08:08:47 Where can i get the debian latest source kernel 4.1 ? Aug 11 08:08:49 rectangular or altoid shape? Aug 11 08:09:02 its rectangular Aug 11 08:09:08 eballetbo: if you access the gpio pins trough the busses, you are competeting against the CPU core Aug 11 08:09:09 red pcb? Aug 11 08:09:14 nope, white Aug 11 08:09:22 rounded corners? Aug 11 08:09:27 yes Aug 11 08:09:34 ok, so it's the altoid box shape Aug 11 08:09:46 hmm ok Aug 11 08:09:52 that's a beaglebone white, which has no eMMC (unless you added the cape) Aug 11 08:09:59 i didn't Aug 11 08:10:01 ahh Aug 11 08:10:09 so… nothing to "flash" :) Aug 11 08:10:38 correct Aug 11 08:10:57 so that's why there's no "flash" image for that model :) makes sense eh? Aug 11 08:11:08 sortakinda :) Aug 11 08:11:34 hah Aug 11 08:11:39 * stormit tips his hat to tbr Aug 11 08:12:01 i was sortakinda pulling my [already thinning] hair out Aug 11 08:12:55 KotH: but what if you need to do a high speed acquisition on GPIO pin ? using register adress i can access them in uS whereas using sysfs access you need mS, and using PRU you can do this in nS Aug 11 08:14:58 PacoDu: the PRU has its own IO registers Aug 11 08:15:02 KotH, PacoDu, yes I know it, well my problem is not exactly this, this is an example to try to access to the CPU register to solve my problem. I need to change pin modes from the PRU in runtime, let me explain a little bit, Aug 11 08:15:33 I've an am335x connected to PDI interface of an xmega uC Aug 11 08:15:37 like this Aug 11 08:15:44 http://pastebin.com/W8nRUMPP Aug 11 08:16:34 The PDI_DATA pin is birectional so I connected to a PRU GPI and a PRU GPO Aug 11 08:17:01 on read I need to change the mux mode of the GPO to be input Aug 11 08:17:35 but for an unknow reason this is not working, so I implemented the example above Aug 11 08:17:57 to try to see how can I acces to the mux registers through the PRU Aug 11 08:20:35 my idea is, on read, the data goes to PRU0_PRU_R31_15 pin but i need to configure PRU0_PRU_R30_15 as input to not force Aug 11 08:20:40 the values Aug 11 08:22:24 Currently I'm able to send PDI commands but not read the response, and I think this is because PRU0_PRU_R30_15 (TXD) is forcing the line Aug 11 08:23:17 I don't know if this can solve the problem but yesterday i was trying to play with GPIO with register adress, and after 2h fighting with the board I realised that there is a bug if you don't export the gpio in the sysfs /sys/class/gpio and set his direction the pin can't work properly even if the mode is correctly set (if someone got a solution for that ...) Aug 11 08:25:11 PRU pin have direction pr1_pruX_pru_r3Y_Z : X is the direction (1 input, 0 output) Aug 11 08:25:46 X : PRU number, Y : pin direction, Z pin number * Aug 11 08:29:27 PacoDu: right, so PRU0_PRU_R30_15 is an output used to transmit data and PRU0_PRU_R31_15 is an input to receive data, but as I'm both pins are connected I need to set PRU0_PRU_R30_15 in high-impedance or input on read Aug 11 08:29:49 s/I'm// Aug 11 08:30:10 this is what doesn't work Aug 11 08:32:33 sry can't help you more i'm trying to work with the PRU and GPIO as you, but i'm using the PRU API and a ASM program to control gpio pin. I'm actually learning on this so ... Aug 11 10:32:51 tbr tlab : the flasher image works now. i'm not 100% sure why, but i think installing that debian image via the u-boot UMS function also updated the bootloader and the new bootloader is able to start the flasher images. updated to ubuntu now without a problem. thanks for the help, anyway :-) Aug 11 11:35:03 hi everyone Aug 11 11:37:15 i have a beagleboard rev.c3 board Aug 11 11:38:44 i can control USR1 led from /sys/class/leds Aug 11 11:39:25 but i cant control by using gpio150 Aug 11 11:39:37 which is described in here http://bbfordummies.blogspot.com.tr/2009/07/1.html?showComment=1439275088755#c304930647573396836 Aug 11 11:39:44 what am i missing? Aug 11 11:41:31 (also cant control anygpio which is mapped in their manual) Aug 11 11:48:09 that page is from 2009. I don't think that will directly apply to any recent kernel. look into muxing and devicetree files... Aug 11 11:55:38 tbr we talked yesterday Aug 11 11:56:04 i looked up devicetree files Aug 11 11:56:23 yes it has the same mapping Aug 11 13:21:56 hi all Aug 11 13:22:10 hi Aug 11 13:22:16 i have a question about beagleboard xm Aug 11 13:22:51 what is the processor for beagleboard xm Aug 11 13:23:11 is it DM3730 or AM3715? Aug 11 13:23:58 does anybody know? Aug 11 13:24:44 ??? Aug 11 13:25:00 ¿¿¿ Aug 11 13:25:12 what is the processor for beagleboard xm Aug 11 13:25:21 is it DM3730 or AM3715? Aug 11 13:25:36 we understood the question the first time you typed it Aug 11 13:25:53 ok, so...? Aug 11 13:26:04 we just dont feel like answering something that you could figure out yourself, if you would just use google for once Aug 11 13:26:18 zathura: all this and much more is documented in http://beagleboard.org/static/BBxMSRM_latest.pdf Aug 11 13:26:27 thank you so much body!!! Aug 11 13:26:34 great help ! Aug 11 13:26:40 i just googled it Aug 11 13:26:44 zathura: LetoThe2nd is not a body, he is a worm Aug 11 13:26:56 it says there are various revisions Aug 11 13:27:00 * LetoThe2nd slithers up to KotH and munches some. Aug 11 13:27:11 some revisions come with AM3715 Aug 11 13:27:17 and some with DM3730 Aug 11 13:27:19 zathura: nope, it is pretty clear. just actually read the text, not skim it for numbers. Aug 11 13:27:47 page 16, for example. Aug 11 13:49:20 Hello guys Aug 11 13:50:34 How can I write codes in ISR? Aug 11 13:52:14 I mean creating an interrupt routine in a c file Aug 11 13:53:22 I want to detect a positive edge on a PIO Aug 11 13:54:03 By interrupt method, not polling Aug 11 13:54:56 Is it possible whit existing device overlays? Aug 11 13:55:20 Rlyeh: http://bfy.tw/1FSk Aug 11 13:56:44 If it is, how can I create the interrupts routine? Aug 11 13:56:56 do you really need an ISR? Aug 11 13:57:15 like, do you really need sub-us reaction time? Aug 11 13:57:28 and are you prepared to write a kernel module? Aug 11 13:58:31 Yea, I want to detect the UPS is online and the main power is off and send shutdown signal to system Aug 11 13:59:44 ah.. so you dont need it Aug 11 13:59:59 No, I'm just using the debians kernel Aug 11 14:00:08 do it in user space, as described in one of the search results above Aug 11 14:00:15 How? Aug 11 14:00:20 15:52 < KotH> Rlyeh: http://bfy.tw/1FSk Aug 11 14:00:34 Ok, let me check Aug 11 14:01:48 anyone using the 8192cu wifi driver (realtek driver 4.02_9000)? it works for me, but its incredibly slow... Aug 11 14:02:04 unless you actually build an UPS, you dont need a reaction time faster than 100ms for something like this Aug 11 14:02:13 and a shutdown will probably take a second anyways Aug 11 14:09:22 Yes, but polling is not a good way to just read an IO Aug 11 14:09:54 And thank you for the google link, I've found a good link Aug 11 14:09:59 https://www.linux.com/learn/tutorials/765810-beaglebone-black-how-to-get-interrupts-through-linux-gpio Aug 11 14:12:06 * KotH never said anything about polling Aug 11 14:14:17 So is there any way except interrupt and polling to capture a s I signal? Aug 11 14:14:35 a signal Aug 11 14:14:49 Not conceptually, no. Aug 11 14:15:34 [18:29] (KotH) ah.. so you dont need it Aug 11 14:16:36 Rlyeh: There is a difference between kernel-level interrupt handling, and user-mode interrupt handling. Aug 11 14:16:50 Polling make cup 100% busy, and it makes other processes too slow Aug 11 14:17:00 WHat you sounded like you were asking for, and what KotH initially answered about, was the former. Aug 11 14:17:08 Rlyeh: So do not use polling. Aug 11 14:17:16 Or use adaptive polling. Aug 11 14:26:27 hi Aug 11 14:26:34 I'm trying to use pwm from python Aug 11 14:26:54 however, after doing PWM.start("P9_14", 50, 1000, 0) Aug 11 14:27:08 I can't change the frequency anymore Aug 11 14:27:23 not with PWM.set_frequency("P9_14", 10) Aug 11 14:27:34 nor with calling PWM.start again Aug 11 14:27:47 what's the trick here? Aug 11 16:17:36 On the BBB the pinout at http://beagleboard.org/static/images/cape-headers-spi.png suggests that SPI1_CS0/SPI1_CS1 are routed to both pins 20/19 and 28/42. If this is the case doesn't that cause a problem with capes that rely on I2C2? Aug 11 16:18:23 I figure I'm misinterpreting the image but I'm not sure what the proper way to interpret it is Aug 11 16:20:30 JakeP_: Everything on the AM335x that runs the bone is muxed. Aug 11 16:21:21 JakeP_: As a result, while you *could* certainly mux SPI to both of those at the same time, you generally do not. The reason they show on two sets of pins is so you can choose which set is more convenient for your use case. Aug 11 16:21:49 That makes sense. I didn't know if it were optional or some sort of weird requirement. Aug 11 16:22:06 Thank you Aug 11 16:22:09 Everything on the bone is optional. Aug 11 16:23:15 You mean that in the sense that I could use GPIO for CS if I wanted to write the software for it correct? Aug 11 16:23:42 I have no idea what you mean by CS in this context, but sure. Aug 11 16:23:48 chip select Aug 11 16:23:57 Sure. Aug 11 16:24:09 but there are limitations on what pin can support a particular feature Aug 11 16:25:08 Only in the sense that not all functions are muxed to all pins. Aug 11 16:25:35 But if you really need a function on a pin that does not have that hardweare muxed to it, you can always bitbang it. Aug 11 22:38:32 hi, newby here. can someone point me to a cctv example using the beagleboard black? thanks Aug 11 22:38:49 cctv? Aug 11 22:39:13 china central television? Aug 11 22:41:22 closed curcuit Aug 11 22:42:01 you mean like a video streamer? Aug 11 22:42:49 yep. exactly. that would be great! Aug 11 22:43:19 generally, the processor on the older BBC/BBX boards can do a better job of that Aug 11 22:43:33 otherwise, you can use what you use on a desktop - vlc, ffmpeg, mplayer, etc Aug 11 22:44:30 i see. any examples that you can point me to? i'm coming from the rpi development environment. Aug 11 22:44:46 but the rpi doesn't do video/graphics very well. Aug 11 22:45:23 like you said the hw of the bbb seems better suited for this. Aug 11 22:45:26 on the bone, USB is your main camera interface Aug 11 22:45:39 so nothing specific to the BBB off hand Aug 11 22:45:47 look a the project list on beagleboard.org? Aug 11 22:46:31 i see. i have looked a little. i double back and have another look. thanks Aug 11 22:46:54 just do what you can do on a desktop Aug 11 22:47:17 nice thing about Linux is things should work the same way unless you are using a vendor specific kernel Aug 12 00:04:23 Hi Aug 12 00:05:50 I'm trying to make the voice recorder in QT but it seems my QT code couldn't recognize my sound card. Am I have to do anything special on my BBB to make it happend? Aug 12 01:40:04 I'm trying to make the voice recorder in QT but it seems my QT code couldn't recognize my sound card. Am I have to do anything special on my BBB to make it happend? **** ENDING LOGGING AT Wed Aug 12 02:59:59 2015