**** BEGIN LOGGING AT Sat Feb 06 02:59:58 2016 Feb 06 08:51:54 hey, im trying to write kernel module for frequency measurement Feb 06 08:53:50 i don't know how to use timer in kernel, i need simple module to blink led with timer Feb 06 09:01:02 so you need a frequency counter from an external pin or do you need to blink a led? Feb 06 09:06:46 i need a frequency counter from an external pin Feb 06 09:14:33 ok, the bbb has an external tclkin pin, you can setup timer4 (which should be free) to use this pin as an input, then you can use the omap dmtimer kernel functions, there is an example in one git project https://github.com/ddrown/pps-gmtimer/blob/master/pps-gmtimer.c see pps-gmtimer.c how to setup an timer and an interrupt you will also need the kernel-tclkin.patch from this repo, just to remind you, this is not an easy topic, don't copy and paste the code Feb 06 09:14:33 from this project since it has a different purpose, you should be good at c and have more than basic knowledge in kernel programming, also keep a copy of the am335x datasheet at hand, you'll probably need it Feb 06 09:29:47 https://github.com/ftagius/OMAP-Capture im using the omap capture but can't find the bbb 's gpio number correspond to pins 146,147,144 of the omap_3530 in my beagle Feb 06 10:51:44 i cant identify the pins 146,147,144 of process omap_3530 in my bbb's gpio Feb 06 10:52:09 im looking for their correspondance Feb 06 11:30:39 bbbb: do you have a BBB, a BBW, a BB-classic or a BBxm? Feb 06 11:34:16 Beaglebone white Feb 06 11:56:23 tse Feb 06 12:41:47 any one here to help me with my new beagleboard ? Feb 06 12:53:53 Gadde_: you'll have to ask specific questions if you want answers Feb 06 12:53:57 http://www.catb.org/esr/faqs/smart-questions.html Feb 06 12:53:59 and all that Feb 06 16:20:27 I'm using ccsv6 to build a Linux executable for my beaglebone. I have tried dozens of combinations of New Project to try and get a 32 bit linux object but they are all either bare metal or 64 bit. How can I tell ccs to make a 32 bit linux exe? Feb 06 16:21:13 I tried putting the -marm compiler directive in the builder parameters but it keeps getting stripped out Feb 06 16:24:46 I think this might be the point where you should put together a proper cross-compiling environment Feb 06 16:26:48 I have lots of armhf compilers, and multiarch installed on my Ubuntu 14.04 desktop already Feb 06 16:29:51 twoten: why would you want -marm instead of -mthumb ? Feb 06 16:29:59 ia32libs as well Feb 06 16:30:36 I just want 32 bit, the parameter that works is the one I like Feb 06 16:31:31 you just want 32-bit? 32-bit x86? arm? powerpc? sparc? mips? Feb 06 16:32:33 you probably mean to say you're trying to target arm-linux-gnueabihf Feb 06 16:32:47 yes Feb 06 16:33:11 hardfloat Feb 06 16:33:14 yet you keep getting executables for your host system, unless you make a baremetal project Feb 06 16:34:15 to be honest, I've never heard of anyone using ccs to build linux executables (although you can probably do it, mostly because it's build on eclipse) Feb 06 16:34:26 *built Feb 06 16:35:02 huh, I like the integrated pru compiler and assembler Feb 06 16:35:10 I like qt creator Feb 06 16:35:39 what does qt creator have to do with ccs ? Feb 06 16:36:01 it's built in, and it's an alternative Feb 06 16:37:51 ok, I've closed as much stuff as possible to free up ram for CCS, I'll go take a peek to see if it's immediately obvious how to select a linux cross-compilation target :P Feb 06 16:38:18 try c++ project Feb 06 16:38:29 not ccs project Feb 06 16:38:57 note that that means you're just creating an Eclipse project, not a CCS one Feb 06 16:39:22 true Feb 06 16:40:23 that's also helpful for you to realize since asking for help setting up an Eclipse project will probably get you help much quicker than asking for help setting up a CCS project Feb 06 16:41:36 I didn't know there were so different till you just pointed it out Feb 06 16:46:59 the BBB runs linux, and ccs builds for the bbb - I think that means ccs should make linux executables Feb 06 16:47:58 ccs does not "build for the bbb", nor for linux, it builds directly for TI processors Feb 06 16:48:14 aaah Feb 06 16:48:24 eclipse however is a very general IDE, and it was indeed very easy to setup a cross-compilation project Feb 06 16:48:38 oh? Feb 06 16:48:46 do tell Feb 06 16:50:14 when I selected new C++ project the wizard asked whether I wanted a "Linux GCC" or "Cross GCC" toolchain, I selected "Cross GCC". Later it asked for prefix and path of the cross-compiler, I filled "arm-linux-gnueabihf-" in as prefix, left path blank (since I have it installed as system package), clicked "Finish" Feb 06 16:50:50 I'm on it ... Feb 06 16:51:35 the project build without any problem and resulted in a working executable Feb 06 16:53:19 hah!, I just did a file command and it looks good, now to copy over ... Feb 06 16:53:32 (if you want to use a toolchain that's not system-installed (e.g. a linaro toolchain) you'll need to specify the path... they could have been a bit more clear there but apparently they mean the path in which the compiler resides) Feb 06 16:54:46 that wizard pane definitely could have been a lot more userfriendly... like, how hard can it be to scan PATH for executables that seem to be gcc cross-compilers :/ Feb 06 16:54:46 works on the bbb - my days of pushing a boulder up a hill in hell are over! Feb 06 16:55:07 so true - do you use ccs? Feb 06 16:55:13 but note that CCS deserves neither credit nor blame here, this is just eclipse Feb 06 16:55:46 (note that apparently you can also install CCS as a set of plugins into an existing Eclipse installation) Feb 06 16:55:57 it's like one tiny hair across a chasm and now I can build a bridge Feb 06 16:56:15 thanks a billion zmatt! Feb 06 16:56:21 and I use CCS... only if I really can't avoid it Feb 06 16:56:36 ? whats your usual ide? Feb 06 16:57:49 you mean the environment from which I open text editors and execute make? I think people call it "bash" Feb 06 16:57:52 :P Feb 06 16:58:24 tough guy eh? you on slackware too? or gentoo? Feb 06 16:59:28 debian. but dunno so far every IDE I've tried, I hated it. slow, bloated, inpenetrable maze of settings (yet no obvious way to perform the customizations I *do* want) Feb 06 17:00:10 completely untransparent build process Feb 06 17:00:30 yeah I hear that - I have to get this little BBB job out of the way so I can get hired onto a big project with pic18's Feb 06 17:02:38 plus habit... I know my way around vim, makefiles, and shell scripts... which, dispite their flaws, makes it easier to stick with them than to look for greener grass Feb 06 17:03:02 the learning cliff is a real bitch Feb 06 17:03:18 well, I can learn new things pretty quickly Feb 06 17:03:31 the thing is I already have a solution that works *well enough* Feb 06 17:04:05 so I lack motivation to invest any time, I have plenty of other things to do Feb 06 17:04:44 vim also easy to install on every computer and does not need X Feb 06 17:04:46 the dilemma is Should I attack my task head on in the dark now? or learn generally from the outside in to bring in some light? Feb 06 17:04:50 Defiant: that too Feb 06 17:05:18 I often edit locally on a BBB Feb 06 17:05:50 I tried that, my desktop blows the BB away in performance Feb 06 17:06:13 twoten: vim is a bit lighter :P Feb 06 17:06:38 my cousin swears by emacs Feb 06 17:07:14 though cross-compiling is still a lot faster than compiling locally... but then I need to transfer files which is extra effort Feb 06 17:08:12 yeah I guess there are still plenty of people who swear by emacs Feb 06 17:08:16 and/or at emacs Feb 06 17:08:40 I mount the BBB file system on my desktop with sshfs and just drag and drop in konqueror Feb 06 17:09:57 make a post compile hook and call rsync there.. Feb 06 17:10:41 Defiant: yeah I do a make && rsync ... routine often enough too (too many BBBs around to make it a hook, but that's what shell history is for) Feb 06 17:11:18 but then I run it on the target, and often I accidently end up editing there anyway and then need to carefully rsync things back again, etc Feb 06 17:12:08 my biggest problem with cross compiling is getting all the dependencies Feb 06 17:12:51 it could all be smoothed out, but as usual things (including workflows) that work "good enough" is that they tend to stick around for way too long instead of being replaced by something better Feb 06 17:14:08 yeah fortunately I'm normally not involved in big projects with lots of dependencies, most of my code is small tests of some interaction with the hardware that I can send off to some coworker "here's how you setup/use the pwm peripheral" Feb 06 17:14:33 so libc is usually about it Feb 06 17:15:20 replaced by something better: that's why so many weenies are still stuck on arduino Feb 06 17:17:05 well the main benefit of the arduino uno is that it can take a beating and if you manage to toast it anyway you pop a replacement cpu into the DIP socket Feb 06 17:21:59 the BBB is the other extreme... one one hand it is similar in having lots of easily accessible I/O and an assortment of peripherals that's more typical of microcontrollers than SoCs... yet it's still a modern SoC produced on a 40 nm process for which even 3.3V is not really comfortable. make a mistake with it and you can easily end up with an expensive paperweight Feb 06 17:23:48 (for the middle ground I think the LPCXpresso boards look interesting, e.g. http://www.embeddedartists.com/products/lpcxpresso/lpc1769_cmsis_xpr.php or http://www.embeddedartists.com/products/lpcxpresso/lpc1549_xpr.php ) Feb 06 17:24:05 hey Feb 06 17:25:20 45 nm I mean sorry Feb 06 17:25:54 im trying to blink led using Dmtimer i don't how to use it Feb 06 17:26:29 in kernel Feb 06 17:48:24 I like the K64F - http://www.nxp.com/products/software-and-tools/hardware-development-tools/freedom-development-boards/freedom-development-platform-for-kinetis-k64-k63-and-k24-mcus:FRDM-K64F Feb 06 17:50:12 twoten: interesting, hadn't heard of it before Feb 06 17:52:37 there's a dozen of those kinetis boards, the K64F is the heavyweight Feb 06 17:53:48 I hadn't heard of the entire MCU family before Feb 06 17:54:36 hmm, another site lists it under Freescale rather than NXP ? is it an acquisition? Feb 06 17:56:05 Using DMtimer pins to measure pulse width ??? Feb 06 17:56:42 NXP just bought Freescale last year Feb 06 17:56:59 jacob__: possible yes. (eCAP is slightly better suited but dmtimer can do it too) Feb 06 17:57:49 any code ? Feb 06 17:59:08 twoten: it has a suspiciously beaglebone-ish appearance ;P Feb 06 17:59:13 Zmatt im beginner Feb 06 17:59:24 i don't know how i can use it Feb 06 18:00:16 jacob__: I understand. I do know, but I don't know of a ready-to-go example and I'm not really in the mood to guide a beginner through the process right now Feb 06 18:01:01 plus my usual approach to dealing with peripherals ("fuck the kernel, I'll use /dev/mem") is not exactly the most friendly to newcomers probably Feb 06 18:03:22 twoten: they look interesting, though I'd need to familiarize myself with the processor family if I'd want to form a real opinion... Feb 06 19:31:58 Hello :) Feb 06 19:37:34 Hi guys Feb 06 19:37:43 I am looking for some info regarding beagleboard Feb 06 19:37:53 Say I have my own image and order 100 beaglebone board Feb 06 19:38:11 can I get them factory flashed from beagle board company ? Feb 06 20:51:25 hello Feb 06 20:51:52 i have problem when i try to using UART1 with rts and cts signals Feb 06 20:52:24 i can't load caple because of conflict with I2C-2 Feb 06 20:52:46 but i nerver load the i2c-2 cape Feb 06 20:53:25 i can't see the i2c-2 in slots Feb 06 20:59:40 have you tired disabling it ? Feb 06 22:04:10 hello i need ecap driver Feb 06 22:09:40 hello pranky Feb 06 22:11:10 Good night , i want to find out more about the pin mux (or header i don't know ) and about the omap catpure module to capture the frequency because i cant find the right pins that suite the pins 144, 145 , 146 , 147 Feb 06 22:11:52 hi BBW Feb 06 22:54:59 panto: omap capture module? Feb 06 22:55:22 BBW: what sort of application? Feb 06 23:02:22 no one Feb 06 23:02:48 is there a doctor in the house Feb 06 23:02:57 Pranky: sorry, tab error, my question was aimed at you Feb 06 23:03:06 what do you mean with "omap capture module" ? Feb 06 23:04:55 i found a module on the net Feb 06 23:05:01 a kernel module Feb 06 23:05:43 so that i can read the frequency directly Feb 06 23:05:57 form the user interface Feb 06 23:07:00 here is the link Feb 06 23:07:21 https://groups.google.com/forum/embed/?place=forum/beagleboard&showsearch=true&showpopout=true&showtabs=true&hideforumtitle=true&parenturl=http%3A%2F%2Fbeagleboard.org%2Fcommunity%2Fforums#!search/omap$20capture/beagleboard/_XM_s3v-Ns4/kZgFBQN2MWEJ Feb 06 23:14:04 so you have an original beagleboard then? (with an omap35xx processor) ? Feb 06 23:15:04 yes Feb 06 23:15:15 is there sthg like a fake beagleboard ? Feb 06 23:15:23 you mean home made ? Feb 06 23:15:24 no, but most people here nowadays have a beaglebone Feb 06 23:15:44 no this one is orginal Feb 06 23:16:11 i'm still new Feb 06 23:16:18 "noob" Feb 06 23:17:32 unfortunately my knowledge of the omap3 processors (that are used on the original beagleboard and the bbxm) is rather limited, as I don't have any such board myself Feb 06 23:18:02 i really dont get ,dont all beagleboards have the omap ? Feb 06 23:18:45 no, the beaglebone (all variants) uses an AM335x Feb 06 23:18:57 oh Feb 06 23:19:11 so how to find out about my beagle ? Feb 06 23:19:14 the upcoming (hopefully soon-to-be-released) beagleboard-x15 uses an AM572x Feb 06 23:19:29 ok Feb 06 23:19:50 it seems the driver uses a dmtimer Feb 06 23:20:00 and my board is the one before the black Feb 06 23:20:12 you remeber it the white board Feb 06 23:20:18 beaglebone white Feb 06 23:20:19 remember* Feb 06 23:20:21 yes Feb 06 23:20:46 that's already a beaglebone, hence am335x cpu Feb 06 23:20:56 ok so no omap Feb 06 23:21:18 no, it shares some heritage of course, but it's not an omap3 Feb 06 23:21:43 (it's more closely related to the omap4 actually, but still very different from one) Feb 06 23:21:57 so can you help me i dont understand the use of the module that i found Feb 06 23:21:58 you want frequency measurement? Feb 06 23:22:03 yes Feb 06 23:22:12 consider using the eQEP module Feb 06 23:22:20 (one of the three eQEP modules I mean) Feb 06 23:22:46 don't let the name fool you, it's not just for quadrature signals Feb 06 23:22:58 do i need a kernel module to use it ? Feb 06 23:23:06 no Feb 06 23:23:28 i thought it was only for quadrature sgnals Feb 06 23:23:34 you need 2 inputs Feb 06 23:23:37 you can disable the quadrature decoder Feb 06 23:23:44 then input pulses on input A Feb 06 23:23:55 it can count rising edges, falling edges, or both Feb 06 23:23:57 disable the qudrature decoder ? Feb 06 23:24:04 yeah, it's a config option Feb 06 23:24:08 ah ok Feb 06 23:24:12 so i can make it ? Feb 06 23:24:58 it can measure frequency by counting the number of pulses per fixed time interval, or for slower frequencies it can simply measure the interval between pulses Feb 06 23:25:15 nice Feb 06 23:25:37 you tried it before ? Feb 06 23:25:39 it even has a "watchdog" feature to alert you if no pulses have been seen at all for some time. Feb 06 23:25:50 lol cool Feb 06 23:25:57 i had no idea Feb 06 23:25:58 (that last part is for motor stall detection) Feb 06 23:26:22 i can imagine Feb 06 23:26:47 zmatt do you have an email or sthg ? Feb 06 23:26:48 its primary intended use is of course for motor control... using a quadrature signal it also knows direction, so it can track position and velocity Feb 06 23:27:16 yes that's the problem Feb 06 23:27:23 i thought i nedde 2 inputs Feb 06 23:27:33 and i f i dont have it will be good for nthg Feb 06 23:27:56 i'm working with a firend on a project for school Feb 06 23:27:56 nope, as alternative it can just use input A for pulses (and optionally input B for direction indication, but that too is optional) Feb 06 23:28:13 ok Feb 06 23:28:20 i'll try to work on it Feb 06 23:28:28 and as I said, you can even choose which edge of the signal it triggers on (rising, falling, or both) Feb 06 23:28:44 thanks man Feb 06 23:28:50 so you have an email ? Feb 06 23:29:15 hold on, since the best way to use it from user space is using uio, and there's still no good simple tiny example on how to use that in circulation, I'll make one Feb 06 23:29:38 (do make sure you have a recent debian distro, preferably jessie) Feb 06 23:29:51 i dont have jessie Feb 06 23:29:56 what kernel version? Feb 06 23:30:03 wait a sec Feb 06 23:30:08 also, cat /etc/dogtag Feb 06 23:30:54 what for ? Feb 06 23:31:14 that shows which filesystem image you're using Feb 06 23:31:28 ok let me check the board Feb 06 23:31:37 i have a debian i think but let me check Feb 06 23:33:08 and yes I have an email address of course, but I'm not a personal helpdesk Feb 06 23:33:20 i have to log off for a sec wait for me Feb 06 23:35:59 hey zmatt thank you for helping us Feb 06 23:39:06 ok hello again Feb 06 23:39:41 zmatt what was the command ? Feb 06 23:39:53 to find out about my kernel version Feb 06 23:40:31 kernel: uname -r Feb 06 23:40:38 filesystem image: cat /etc/dogtag Feb 06 23:41:23 uname -a :P Feb 06 23:41:29 ok bbiab! Feb 06 23:44:01 BeagleBoard.org Debian Image 2015-03-01 Feb 06 23:44:04 here it is Feb 06 23:44:09 a debian Feb 06 23:45:18 Linux beaglebone 3.8.13-bone70 #1 SMP Fri Jan 23 02:15:42 UTC 2015 armv7l GNU/Linux Feb 06 23:45:23 with uname - a Feb 06 23:45:49 ok, old but not ancient Feb 06 23:45:53 lol Feb 06 23:45:57 ok Feb 06 23:46:52 I'm not sure when rcn started including uio stuff Feb 06 23:47:11 me neither lol Feb 06 23:48:18 try grep -r uio /etc/modprobe.d /etc/udev Feb 06 23:48:59 ls /lib/modules/$(uname -r)/kernel/drivers/uio Feb 06 23:49:37 ok 1sec Feb 06 23:50:17 uio_pruss.ko Feb 06 23:52:01 no uio_pdrv_genirq.ko ? Feb 06 23:52:21 no Feb 06 23:52:23 i think Feb 06 23:52:42 i past the same cammand Feb 06 23:54:03 you'll need at least a newer kernel Feb 06 23:54:45 why ? Feb 06 23:55:07 if it's not too much hassle I can definitely recommend installing a recent jessie snapshot... wheezy has been declared "obsolete" even by the debian project and those guys are pretty conservative Feb 06 23:55:38 because rcn (the guy who builds these kernels) started including uio_pdrv_genirq at some point (by my suggestion) Feb 06 23:56:42 I think he included it in all kernel series, i.e. even in the 3.8 kernel series for wheezy Feb 06 23:58:00 but I personally never use such old kernels or old debian versions, so if anything doesn't quite work for you then it may be impossible for me to help you diagnose it Feb 07 00:00:36 got disconnected Feb 07 00:00:55 so why do i need a newer version Feb 07 00:01:02 and which one Feb 07 00:03:01 well if you don't *want* to reflash that's okay too (e.g. if you already have a lot of stuff on there that's annoying to backup and restore) Feb 07 00:03:54 yes because it's not my board Feb 07 00:03:57 ah ok Feb 07 00:04:05 fair enough... Feb 07 00:04:39 but i dont think the owner minds to have a newer version Feb 07 00:04:41 lol Feb 07 00:07:05 do you use the gui? Feb 07 00:08:14 zmatt i told i'm a noob Feb 07 00:08:21 i dont know what a gui is Feb 07 00:08:29 graphical user interface Feb 07 00:08:35 oh Feb 07 00:08:38 (as opposed to SSH/Putty) Feb 07 00:08:50 yes Feb 07 00:08:55 (or the cloud9 web thingy) Feb 07 00:09:00 if you mean like to surf between files we use xfe Feb 07 00:09:02 SSH Feb 07 00:09:17 BBW is my firend Feb 07 00:09:23 we wrok together Feb 07 00:09:28 work* Feb 07 00:09:54 ahh wait, BBW, no eMMC, so you're running from sd card Feb 07 00:10:20 so you can just install the new system on another card and if you don't like it you can always go back (assuming you have a spare sd card) Feb 07 00:11:27 https://rcn-ee.com/rootfs/bb.org/testing/2016-01-31/lxqt-4gb/bone-debian-8.3-lxqt-4gb-armhf-2016-01-31-4gb.img.xz Feb 07 00:11:31 this is the latest version Feb 07 00:11:45 ok thx Feb 07 00:12:45 whats the difference between my version and the latest one ? Feb 07 00:13:52 new major release of debian (jessie vs wheezy), new kernel (probably a 4.1-ti one by default), and well, lots of stuff really, I haven't got a detailed changelog or anything :) Feb 07 00:15:05 note that kernel version isn't really tied to distro version... I think even on jessie you can install a 3.8 kernel (and conversely I'd guess you can install a 4.1 kernel on wheezy) Feb 07 00:16:33 ok I'm going to try to continue on that example.... sorry if I get distracted now and then, it happens to me :) Feb 07 00:18:44 note that a more complete overview of images available is at http://elinux.org/Beagleboard:BeagleBoneBlack_Debian ... but the long list can be confusing which is why I gave a direct link Feb 07 00:18:48 so zmatt would u give us your email i will not disturb you but for sur i will need your help Feb 07 00:18:58 BBW: I'm often here Feb 07 00:19:12 if I'm not here, I'm probably busy. Feb 07 00:19:33 so how can i contact you ? Feb 07 00:19:39 I prefer to help people here since other people read this too, hence my efforts may end up helping more people then just you Feb 07 00:19:57 I'm always in this channel, with "not here" I mean "not responsive" Feb 07 00:20:04 my irc client is always connected Feb 07 00:20:20 if you say something to me, normally I will see it eventually Feb 07 00:22:26 u'r right so how can i check if i my processor is omap or AM33 Feb 07 00:25:33 ok Feb 07 00:28:54 forever alone Feb 07 00:31:09 don't use private messages though unless you have very good reason Feb 07 00:31:36 i'm not used to chat Feb 07 00:31:41 it's ok Feb 07 00:32:44 so if i find away that means i cant reach you ? Feb 07 00:32:58 i was trying to discover things Feb 07 00:34:02 you can reach me in exactly the same way as you are doing right now... and I'm not your personal tutor. if you have questions, just ask them here and with a bit of luck someone will answer them Feb 07 00:34:16 ok Feb 07 00:34:30 i'm sorry for being rude Feb 07 00:34:37 (do try to be patient since people don't always pay attention, may be in different timezones, etc) Feb 07 00:35:04 can i ask in wich time zone you are right now ? Feb 07 00:35:11 it can take a bit to get accustomed to how an irc help channel works Feb 07 00:35:36 i agree Feb 07 00:35:36 (e.g. asking "can someone help me" happens too often but is virtually a guarantee to get no reply) Feb 07 00:36:09 http://www.catb.org/esr/faqs/smart-questions.html <--- not really specific to IRC, but a useful document Feb 07 00:36:33 CET (UTC+0100) Feb 07 00:38:13 i think we are in the same time zone Feb 07 00:38:28 so i think i understand Feb 07 00:40:32 it is almost 2 am here Feb 07 00:42:41 zmatt ? Feb 07 00:51:12 i get to feel like a country man in his first visit to the city when i come to this site Feb 07 00:54:59 good night **** ENDING LOGGING AT Sun Feb 07 02:59:58 2016