**** BEGIN LOGGING AT Mon Apr 11 02:59:58 2016 Apr 11 12:05:59 quiet around here... Guess it get more lively in a 11 days time! Apr 11 12:18:42 yes Apr 11 12:38:31 Can I have one question now? after 22? Apr 11 12:39:11 you can ask anything (permitted by your local law) Apr 11 12:40:23 i have a problem. I installed DTS for spi which changes device status. Then i installed driver (insmod driver.ko) but it doesn't recognizes device. Apr 11 12:41:11 the driver must be specifically added (compiled)? Apr 11 12:46:42 well .ko is "compiled" already Apr 11 12:46:56 where is that driver.ko from? Apr 11 12:47:08 also, you can ask such questions in #beagle Apr 11 12:47:20 there are way more people there Apr 11 12:47:27 also, you can ask such questions also in #beagle Apr 11 12:48:21 it is hard to tell what went wrong without more detailed information Apr 11 12:52:44 my guess is the probe function is not being called because the devicetree binding is not properly specified Apr 11 12:52:53 pls wait a minute, I'm runing my eclipse and i will show you the code Apr 11 12:56:51 code is here: http://pastebin.com/b7Zne3Hk I'm trying to understand how the platform _device works. Apr 11 12:58:10 ti,omap4-mcspi Apr 11 12:59:33 is this the same binding as the mcspi master driver? Apr 11 13:01:14 if so you will need to make sure that the other driver is not loaded Apr 11 13:01:18 yes, in omap2 Apr 11 13:02:13 in spi-omap2-mcspi.c is line .compatible = "ti,omap4-mcspi", Apr 11 13:02:34 is that driver loaded on your system? Apr 11 13:04:33 if so then you must rmmod it if it is built as a module Apr 11 13:05:18 otherwise you can unbind the platform resource in the sysfs layer before loading your driver Apr 11 13:06:07 ok, thanks, the lsmod command doesn't show me all install drivers Apr 11 13:06:43 my guess is the mcspi driver is built in then Apr 11 13:07:20 cd /sys/bus/platform Apr 11 13:07:45 see if you can find the mcspi directory Apr 11 13:13:26 Error: Module omap2_mcspi is not currently loaded Apr 11 13:13:55 what did you run? Apr 11 13:14:43 rmmod? Apr 11 13:15:37 if so this will not work if the driver is built into the kernel Apr 11 13:15:46 yes rmmod Apr 11 13:16:16 so you need to manually unbind the driver Apr 11 13:16:48 i will try Apr 11 13:17:05 /sys/bus/platform/drivers/omap2_mcspi/ Apr 11 13:17:23 it should have a unbind virtual file Apr 11 13:17:42 echo the instance name into the unbind file Apr 11 13:17:50 cd /sys/bus/platform/drivers/omap2_mcspi Apr 11 13:18:13 echo omap2_mcspi.1 > unbind Apr 11 13:18:19 or something similar Apr 11 13:19:42 once the unbind is complete try insmod of your driver again Apr 11 13:21:31 ok wait i will try unbind Apr 11 13:30:34 woowowowoowowo, it work Apr 11 13:31:03 my driver only show base address: Start:481a0100, End:481a04ff Size:1024 Apr 11 13:31:59 m_w: thanks very much, Apr 11 13:33:48 bradfa,I have replied to your comments.I have some doubts.Could you please go through it? Apr 11 13:33:56 m_w, Hi,are you there? Apr 11 13:34:36 chanakya_vc: yes, I'll try to go through your comments today, thanks Apr 11 13:36:35 bradfa,Thanks a lot!! I will definitely work on your suggestions. Apr 11 13:39:15 yup Apr 11 13:42:26 chanakya_vc: Do you have a question? Apr 11 13:42:48 m_w, Could you please go through my application?The official link that I sent for google docs.If you want to maybe point out something that I may have missed? Apr 11 13:43:36 chanakya_vc, If that is okay with the rules Apr 11 13:44:06 well the application period is over Apr 11 13:44:40 and the decision for the projects is based on the final PDF Apr 11 13:45:36 Okay.What I was going for was that If you maybe wanted to get something clarified before the final decision :) Apr 11 13:46:00 let me take a look Apr 11 13:46:56 it does not hurt to refine your goals for your own sake but I don't know that it will effect the decision process much Apr 11 13:47:25 because we are supposed to judge based on the PDF to be fair to all applicants Apr 11 13:47:41 m_w, I understand that :) Apr 11 13:53:55 I think it is a solid proposal Apr 11 13:57:01 m_w, Thanks.Nothing you would want me to add/explain more in the google docs? Apr 11 13:57:18 not that I can see Apr 11 13:58:20 but cannot dig too deep though as I have to work to pay my bills :) Apr 11 13:58:45 okay :) Apr 11 13:59:39 the proposal shows that you understand the problem and the general path to implementation Apr 11 13:59:59 this should be good enough for the decision process Apr 11 14:01:27 m_w, Actually,there are certain issues which i think were not explained clearly in the final PDF.In a haste,I missed out on correcting some stuff which may give a wrong idea. Apr 11 14:01:55 But I guess the mentors would know all about that. Apr 11 14:02:52 So I thought if any mentor required me to explain the stuff a bit more clearly :) Apr 11 14:04:03 what exactly were your areas of concern? Apr 11 14:06:56 Well I talked to alexhiam about this.When I talk about writing the drivers,it may appear in the final PDF,that I talk about writing a userland driver.Which is not the case. Apr 11 14:07:34 ah Apr 11 14:07:49 I corrected this in various places in my application but forgot to edit a paragraph where it is still mentioned. Apr 11 14:08:23 okay noted Apr 11 14:09:12 It may give a sense that I do not understand the problem.And,I was concerned,because it is a mistake pointed out to me by the mentors. Apr 11 14:10:43 But alexhiam said that the mentors would take into account that I had corrected this mistake and the fact that I had such a lengthy discussion with so many mentors on this issue Apr 11 14:11:04 yes this is important Apr 11 14:11:38 So I am hoping that the mentors would take this into consideration while making their decision. Apr 11 14:13:46 It shows that you are committed and will certainly help you when the final projects are selected. Apr 11 14:15:13 m_w, Okay.If you have time,do go through the ioctls driver I have written:https://github.com/chanakya-vc/BBB-Gsoctry/tree/master/ioctlsdriver Apr 11 14:16:04 It is not complete.I am still working on observations made by alexhiam. Apr 11 14:17:00 firstly you should conform to the kernel coding style guidelines Apr 11 14:17:21 it is good to start early getting used to this Apr 11 14:17:39 https://www.kernel.org/doc/Documentation/CodingStyle Apr 11 14:18:54 chanakya_vc: I've left some comments :) Apr 11 14:20:46 bradfa, I will go through them.And make the necessary changes.Thanks a lot :) Apr 11 14:21:13 bradfa, Would it be okay if I did that by Thursday?Or you would want it before? Apr 11 14:22:33 m_w, I will go through it.Otherwise what do you think of the code? Apr 11 14:23:13 does it compile? Apr 11 14:23:27 https://github.com/chanakya-vc/BBB-Gsoctry/blob/master/ioctlsdriver/query_ioctldriver.c#L9 Apr 11 14:23:46 there are missing semicolons Apr 11 14:24:45 chanakya_vc: I have no deadline, as m_w said the official google evaluation is based on the PDF, I'm just happy to help to clarify things in google docs :) Apr 11 14:25:02 Yes there are certain issues.I have not yet updated the latest version in which I corrected this. Apr 11 14:25:32 syntax issues. and the makefile. Apr 11 14:25:55 bradfa:Thanks.I will look through it. Apr 11 14:26:29 m_w, And whitespace issues.I guess we have some program to avoid it? Apr 11 14:26:46 there are a few Apr 11 14:26:54 Apart from manually eliminating them. Apr 11 14:26:59 there is lindent Apr 11 14:27:15 there is a vim plugin Apr 11 14:27:43 there is checkpatch to check the syntax Apr 11 14:28:15 if you ran checkpatch you would see lots of errors Apr 11 14:28:28 chanakya_vc: what editor are you using? Apr 11 15:19:42 m_w, Okay got that.So I could use checkpatch to check for syntax errors before I compile it?It is very difficult to manually correct all the errors. Apr 11 15:19:52 alexhiam, Sublime text editor Apr 11 15:20:35 Does checkpatch work with all the editors? Apr 11 15:20:47 sublime does pretty good with white space in my experience Apr 11 15:21:08 there's some settings you can tweak, like spaces/tab Apr 11 15:21:41 Okay.I never really checked it out. Apr 11 15:21:56 checkpatch just looks at the file, has nothing to do with the editor Apr 11 15:22:05 been only doing competitive coding before this so :) Apr 11 15:22:29 Okay.So any .h or.c file ? Apr 11 15:22:54 Like it is an IDE or something? Apr 11 15:23:05 what? checkpatch? Apr 11 15:23:21 it's just a pearl script that checks your patch to make sure it adheres to the Linux standards Apr 11 15:24:41 Okay.So it would show many errors in my case,as m_w pointed out,I have not adhered to the linux standards. Apr 11 15:25:10 It would also show syntax errors? Apr 11 15:25:37 no, gcc shows you those Apr 11 15:26:29 But to compile modules,we cannot straight away use gcc,can we? Apr 11 15:26:51 like we would have to use certain flags or something right? Apr 11 15:27:07 not sure what you mean.. Apr 11 15:27:13 you just need to have the kernel source Apr 11 15:28:14 for normal programs we straightaway write gcc helloworld.c and then do ./a.out for the program to run. Apr 11 15:28:33 no, that only works for very simple single file programs Apr 11 15:28:50 usually you have a Makefile that describes all the steps Apr 11 15:29:18 gcc can't guess what you want to do Apr 11 15:30:09 Yes got that.We would have to write the makefile. Apr 11 15:30:53 That takes (me atleast) some time to correct all the errors. Apr 11 15:31:36 For me it is worse,because I did not know how to correctly write the makefile.I am still reading the link you gave me. Apr 11 15:32:27 there's a lot of info there - personally I learn that kind of stuff best by doing it Apr 11 15:35:40 Okay.I have understood the basics.Probably a couple of days more before I could write the makefile for the driver. Apr 11 15:36:45 don't you already have it? Apr 11 15:38:03 alexhiam, Well you did help by giving the makefile.But I would prefer If I could come up with it all on my own with my basics completely clear. Apr 11 15:38:59 right. well the changes I made were just about the userspace program Apr 11 15:40:24 Like I read makefile of a similar driver on the net and understood what it did.But I don't feel comfortable unless I know what exactly is happening in the background. Apr 11 15:41:54 in that case I'd recommend googling something more specific than that gnu doc, you don't need to learn every corner of make all at once Apr 11 15:42:57 Okay will do that. Anyway,would you like to see any other piece of code before the final decision comes in? Apr 11 15:43:47 chanakya_vc: I can't think of anything Apr 11 15:44:05 I am working on the blinky code. Actually ,i have a lot of work in college so I have been kind of slow in doing stuff :) Apr 11 15:45:27 And I have still not submitted the cross compiled hello world program.Will that be a problem?I will submit it as soon as I can. Apr 11 15:45:48 you should do that asap Apr 11 15:45:55 it shouldn't take long Apr 11 15:46:22 Okay so a pull request to jkridner's github ? Apr 11 15:46:26 yup Apr 11 15:46:45 Will do it tonight itself. Apr 11 15:52:16 chanakya_vc: is used to prepare patches for mainline submission Apr 11 15:52:45 but it is good to use it to find style problems in a new driver Apr 11 15:55:08 sublime has some formatting tools Apr 11 15:55:17 https://github.com/timonwong/SublimeAStyleFormatter Apr 11 15:58:22 I misspoke eariler checkpatch checks for style errors not syntax Apr 11 15:59:02 lindent is the probably the easiest way to fix many things at once Apr 11 15:59:50 https://ruckuus.wordpress.com/2010/03/15/lindent-amazing-script-for-lazy-c-coder/ Apr 11 17:08:23 m_w, Toh I can use Lindent to fix whitespace right?I will look at the link you gave. Apr 11 17:20:43 hey jic23 ! Apr 11 20:31:35 alexhiam, jkridner Could you please give me the link to your github account?I need to make a pull request for the hello world program. Apr 11 20:32:04 chanakya_vc: I believe it is simply in the instructions. Apr 11 20:33:11 jkridner The ones that you have put in the google group? Apr 11 20:33:26 I will check sir. Apr 11 20:42:33 jkridner, https://github.com/jadonk/gsoc-application/tree/master/ExampleEntryJasonKridner. This is the link? Apr 11 20:54:13 chanakya_vc: yes that is the purpose. Apr 11 20:54:27 chanakya_vc: sorry for the delay Apr 11 20:54:35 busy day at work Apr 11 20:57:28 m_w, No problem.I can imagine how difficult it must for mentors to manage work and gsoc. :) Apr 11 20:58:32 m_w, I will take a look at the link you gave and get back to you. Apr 11 20:59:33 it is very simple Apr 11 21:19:14 jkridner, alexhiam m_w I have created a pull request for the hello world program.Please take a look. Apr 11 21:19:58 I have checked the .bin file to be working on the BBB. Apr 11 21:20:34 m_w, Okay.I still have to read the kernel coding standards,I guess. Apr 11 21:25:14 chanakya_vc: still up ? Apr 11 21:29:40 ZeekHuge, Yes.Just had to complete the hello world task Apr 11 21:30:08 oh .. ohk. What cross compiler did you use ? Apr 11 21:32:31 chanakya_vc: ^^ Apr 11 21:34:29 chanakya_vc: that tab on the first line of your Makefile shouldn't be there Apr 11 21:34:35 ZeekHuge, gnueabi Apr 11 21:35:13 chanakya_vc: and whats the kernel on you BBB ? Apr 11 21:35:20 *your Apr 11 21:36:20 alexhiam, Problem in uploading it maybe.Working fine on BBB. I will rectify it immediately. Apr 11 21:36:49 alexhiam, I ran the .bin file on the BBB. Apr 11 21:37:16 make doesn't seem to mind, but it's not technically correct Apr 11 21:38:06 whitespace issues ? Apr 11 21:38:38 ZeekHuge, 3.8.13 Apr 11 21:39:01 ZeekHuge, I did uname-R Apr 11 21:39:42 ZeekHuge, You are working with the latest image I presume? Apr 11 21:41:40 yeah .. Apr 11 21:43:03 alexhiam: how can we check if the kernel supports hard-float or not ? Apr 11 21:44:19 idk.. http://raspberrypi.stackexchange.com/questions/4677/how-can-i-tell-if-i-am-using-the-hard-float-or-the-soft-float-version-of-debian ? Apr 11 21:44:26 kernel?! Apr 11 21:44:30 alexhiam, Rectified it. Apr 11 21:44:32 hard float or not has little to do with the kernel Apr 11 21:44:46 hardfoat/softfloat is a userland artifact Apr 11 21:45:57 ds2: the kernel doesn't use hardfloat? Or is that a totally separate switch? Apr 11 21:47:23 ds2: actually I tried to use gnueabi cross-compiler but that didnt work for me. I then used gnueabihf and it was working fine. While with others its opposite. Apr 11 21:47:24 kernel doesn't care Apr 11 21:47:51 ZeekHuge: as long as your "program" is consistant (or you have special thunks), you can use either Apr 11 21:48:07 the complication is typically programs are dynamically linked which means you got to match what shlibs are on the system Apr 11 21:48:31 with glibc, it is not possible to generate a true static bin, hence all the rumors floating around Apr 11 21:48:38 but even with that hello program, gnueabi didnt work. Apr 11 21:48:43 what did it do? Apr 11 21:48:45 segfault? Apr 11 21:48:59 start a fire? sit there looking stupid? Apr 11 21:49:12 no, ahh .. I think it was something like unsupported format or something. Apr 11 21:49:21 unsupported format?! Apr 11 21:49:31 please show me the output and the compilation you did Apr 11 21:49:47 .. I ahh dont remember .. Apr 11 21:49:54 yep, just a sec please. Apr 11 21:54:57 ds2: ohk so gnueabi compiled code says : -bash: ./helloGnueabi.bin: No such file or directory Apr 11 21:55:21 you are missing the ld so your tool chain put in Apr 11 21:55:22 the compilation process is clear, no warnings or errors. Apr 11 21:55:27 try adding "-static" Apr 11 21:55:35 that should eliminate ldso Apr 11 21:57:39 ds2: well, ahh yeah .. that did work. Apr 11 21:57:55 what did that do? Apr 11 21:58:26 I mean... yes it worked. It printed the "hello" thing. Apr 11 21:58:42 'k Apr 11 21:58:52 whats with the linker ? why is it required to link it statically ? Apr 11 21:59:26 ds2: ^^ Apr 11 21:59:26 which linker are you asking about? Apr 11 21:59:31 there are 2 links in play here Apr 11 22:20:24 hmmm Apr 11 23:46:25 the logs stopped working again Apr 11 23:47:10 there's Slack and gitter keeping logs as well Apr 11 23:47:24 yeah just saying Apr 12 00:34:55 do we have a logbot? Apr 12 00:35:11 *not counting the slacker over there => **** ENDING LOGGING AT Tue Apr 12 02:59:58 2016