**** BEGIN LOGGING AT Sun Jun 19 02:59:58 2016 Jun 19 11:57:07 Hi all Jun 19 11:57:29 Did anyone receive another package from GSOC other than the welcome package ? Jun 19 12:17:15 amragaey: you sure its from Goog ? Jun 19 12:17:25 it can be from TI Jun 19 12:17:44 I read the name GSoC student on it Jun 19 12:17:48 TI is sending us some cool things too. Jun 19 12:17:49 ZeekHuge, what is TI ? Jun 19 12:17:59 TI == Texas Instruments Jun 19 12:18:32 The company the makes the AM33xx processors used by BB boards Jun 19 12:18:59 The are sending packages to members of this org only Jun 19 12:19:12 No, I don't think.. I can remember the name hretx hytrex tryhex or something like that :D Jun 19 12:19:22 and yes, it may have GSoC student on it. Jun 19 12:19:55 Yes, that is some one stop shop kind of thing and is related to TI Jun 19 12:20:19 He asked also for $50 taxes :D Jun 19 12:20:26 ask chanakya_vc, he has already received the package. Jun 19 12:21:07 Well, that tax may be related to tax laws of your country, not sure about that. Jun 19 12:21:39 But you have received email from TI right ? Jun 19 12:21:56 aha they do the same for BB but was $20 Jun 19 12:21:58 If yes, you can just use the given tracking number Jun 19 12:22:35 I did't receive any emails, and they send it without phone number Jun 19 12:23:53 They are TI, and you cant expect them to do all those things full of hassle Jun 19 12:25:28 Anyway, so, it has nothing valuable as such, but the tag : Texas Instruments is itself valuable for me. Jun 19 12:27:09 ZeekHuge, ok will ask chanakya_vc, hope to be that. Jun 19 12:27:15 thanks ZeekHuge :D Jun 19 12:27:20 :) Jun 19 12:40:45 hey amragaey ,I did receive the TI pavkage Jun 19 12:40:48 package Jun 19 12:41:34 hi chanakya_vc , what is it actually :D ? Jun 19 12:42:01 Nothing just a bunch of small items Jun 19 12:42:06 amragaey, ^^ Jun 19 12:42:26 Like sunglasses and Beach Ball Jun 19 12:42:45 hahaha really :D ? Jun 19 12:42:58 Ya :P Jun 19 12:43:16 the package was the same size like the welcome one. Jun 19 12:43:33 is it worth $50 :DD ? Jun 19 12:43:39 The worst part is that the nearest beach to me in India is nearly 1500 km away :P Jun 19 12:44:15 No the Package that I received was bigger Jun 19 12:44:17 the nearest beach here is 300KM :D Jun 19 12:44:24 amragaey, ^^ Jun 19 12:44:34 I think it's different. Jun 19 12:44:38 Ohh you are from Egypt right? Jun 19 12:44:46 yes Jun 19 12:45:21 Beautiful country.Pyramids are an awesome sight. Jun 19 12:45:34 Might be some local tax issue. Jun 19 12:46:02 But I am sure TI is not sending any electronics item that be as valuable as 50 dollars. Jun 19 12:46:03 amragaey, ^^ Jun 19 12:49:07 chanakya_vc, yes Egypt has alot of beautiful places and a good climate, you will love it.. prepare a journey after GSoC and call me :D Jun 19 12:49:39 chanakya_vc, this is a little strange ! :D Jun 19 13:06:32 amragaey, Haha. will surely come one day. Want to see Alexandria and the valley of the kings(only seen it on the Discovery channel :P) Jun 19 13:07:50 amragaey, Yes it is strange. But the box is definitely bigger than the Welcome Package. Jun 19 13:08:08 chanakya_vc, great :D Jun 19 13:08:23 chanakya_vc, I'll ask GSoC support : ) thank you Jun 19 13:09:04 amragaey, You should come to India too(during the winters,right now delhi is too hot).You should see Taj mahal and see the Himalayas. Jun 19 13:10:57 We in India are lucky to have the Thar desert and the Himalayas in the same country :P.So temperatures in Thar are at around 45 degrees in summers while in Drass valley in himalayas is around -30 degrees in winters. Jun 19 13:17:55 Oh, that's too hot and too cold :D I would love to see the Himalayas. the temperature here regularly in winter about 10:23 and in summer 25:35 Jun 19 13:23:11 chanakya_vc: there Jun 19 13:23:12 ? Jun 19 13:23:21 Yes ZeekHuge Jun 19 13:23:36 amragaey, Do come if you get the chance :P Jun 19 13:23:43 ZeekHuge, What's up? Jun 19 13:25:54 chanakya_vc, yes sure :D Jun 19 13:27:29 chanakya_vc: so you were asking about my project . right ? Jun 19 13:27:37 Yes ZeekHuge Jun 19 13:28:04 its an attempt to end arguments like this : https://groups.google.com/forum/#!topic/beagleboard/cYHCN3GWw_E Jun 19 13:28:04 I couldn't understand anything about it :P Jun 19 13:34:41 ZeekHuge, That seems intense :P Jun 19 13:38:44 intense and interesting , yes. Jun 19 16:42:06 mdp: when are you guys gonna start mentoring him? Jun 19 16:42:20 ooops Jun 19 16:42:28 ;) Jun 19 18:41:53 Abhishek_, m_w mdp There? Jun 19 18:42:50 hey chanakya_vc Jun 19 18:43:52 how is your project coming along? Jun 19 18:44:35 Hey m_w ,I have a doubt. I am writing the driver for SPI. For the moment an internal kernel API has to call the driver and transfer the data for mosi. Jun 19 18:45:15 So first please take a look at this:http://www.linuxdevcenter.com/pub/a/linux/2007/07/05/devhelloworld-a-simple-introduction-to-device-drivers-under-linux.html?page=2 Jun 19 18:45:30 And http://www.linuxdevcenter.com/pub/a/linux/2007/07/05/devhelloworld-a-simple-introduction-to-device-drivers-under-linux.html?page=3 Jun 19 18:46:21 Here in these two links writing a driver that uses /dev is explained Jun 19 18:47:23 sure Jun 19 18:48:07 Now m_w My confusion is that this is an example of a userspace API accessing the driver right?I don't think in my case I have to worry about userspace accessing the /dev Jun 19 18:49:08 chanakya_vc: you are going to have to deal with it indirectly I guess Jun 19 18:49:09 Rather than that my driver has to just expose itself in the kernel.And an internal kernel API has to transfer information right? Jun 19 18:49:46 you are making an SPI driver and hence have to use the SPI subsystem Jun 19 18:50:03 the userspace should be taken care of by the subsystem Jun 19 18:51:05 Okay that's what I am not able to figure out.How to get information from SPI subsystem. Like her we define a fileoperations structure and then define read and write functions Jun 19 18:51:08 m_w, ^ Jun 19 18:51:14 *here Jun 19 18:52:58 you shouldn't need any char dev hooks for a SPI host driver Jun 19 18:53:33 there is a specific struct that is used to pass function pointers to the SPI subsystem Jun 19 18:55:03 m_w, Okay all I need to do is to info through that structure and then let my driver write to a particular address(not using RPMsg as of now). Jun 19 18:55:47 m_w, Can you point me to a place where I can read about this structure? Jun 19 18:55:54 sure if that is how you are communicating to the PRU now Jun 19 18:57:22 struct spi_master Jun 19 18:57:40 https://www.kernel.org/doc/htmldocs/device-drivers/API-struct-spi-master.html Jun 19 18:58:49 your probe function will fill this struct and call spi_register_master Jun 19 19:01:06 or devm_spi_register_master Jun 19 19:01:52 Okay,when I insmod my driver, it will fill out this structure and initialize it right? Jun 19 19:02:21 m_w, I guess I need to look at examples of this struct being used Jun 19 19:02:32 Any example code you can think of? Jun 19 19:03:31 well one of the drivers in drivers/spi Jun 19 19:04:48 Okay. I need to research a bit on this. m_w Jun 19 19:05:25 lets take a look at the atmel one for instance Jun 19 19:06:26 take a look at the probe function Jun 19 19:06:33 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/spi/spi-atmel.c#n1503 Jun 19 19:07:02 the SPI host struct is being filled here: Jun 19 19:07:04 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/spi/spi-atmel.c#n1533 Jun 19 19:07:31 the register is taking place here: Jun 19 19:07:35 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/spi/spi-atmel.c#n1638 Jun 19 19:10:20 Okay so spi_master basically lets the subsystem all the information about the driver right?So then it can pass this to any API on the top right? Jun 19 19:12:38 in essence Jun 19 19:13:06 the spi core will call your functions Jun 19 19:14:41 m_w, Okay so its like the fileoperations structure wherein you tell which function to call when read() or write() is called? Jun 19 19:16:21 m_w, I am not able to understand the use of the probe function?Like is it called the first to be called when insmod is done? Jun 19 19:21:17 the file ops are not handled directly by your driver Jun 19 19:22:37 probe is called when the driver is installed and a matching device is registered via the platform or device tree Jun 19 19:23:44 take a look at this: https://www.kernel.org/doc/Documentation/spi/spi-summary Jun 19 19:28:57 i think some people just have a hard time listening and/or assimilating a "new" concept Jun 19 19:29:04 re ^^ pru thread Jun 19 19:29:18 * nerdboy got distracted with a patch again Jun 19 19:38:38 chanakya_vc: http://www.slideshare.net/broonie/whats-going-on-with-spi Jun 19 19:43:27 http://invo-tronics.com/spi-driver-for-linux-based-embedded-system/ Jun 19 19:45:45 https://www.youtube.com/watch?v=MByV88orYT4 Jun 19 19:46:00 m_w, I referred to the second link when I was writing my proposal :P Jun 19 19:47:15 Had certain confusions then. So far I am clear that the struct spi_transfer is the one that both the buffers for receiving and transmitting right? Jun 19 19:47:38 http://stackoverflow.com/questions/22632713/how-to-write-a-simple-linux-device-driver Jun 19 19:48:24 pretty much Jun 19 19:52:32 m_w, So the functions int(*transfer_one_function) will be called by the SPI core right?When it wants to transfer right? Jun 19 19:53:21 So I have to custom define this function so it writes to the memory location I want to? Jun 19 19:53:30 *transfer_one_message Jun 19 19:55:47 yes Jun 19 19:58:15 Okay m_w . Got it. I will look into this tonight.Thanks for your help! Jun 19 19:58:34 no problem Jun 19 19:58:50 And the waveforms produced by the firmware:https://github.com/chanakya-vc/PRU-I2C_SPI_master/issues/3 Jun 19 19:58:54 m_w, ^^ Jun 19 20:00:16 cool, you figure out mode 3 yet? Jun 19 20:01:39 I don't know. Weird it missing a clock pulse.m_w Jun 19 20:02:06 Code for case 2 and 3 is exactly the same Jun 19 20:03:38 m_w, I am still working on it. Right now I am working on getting the driver.I want to see the complete setup,the driver transmitting to the firmware and then it bitbanging Jun 19 20:03:51 very strange Jun 19 20:04:30 m_w, Kind of a tight schedule here. I promised bradfa that I would complete the driver before this week is over. Jun 19 20:04:38 So I will debug that later. Jun 19 20:05:08 At least get a major chunk of the driver up if not complete it. Jun 19 20:09:31 okay make sure to let us know if you get stuck on something Jun 19 20:16:18 not sure i can tell from that discussion what the best/current docs are Jun 19 20:16:47 "i learned by porting it to a new kernel" <= is what i got from it Jun 19 20:17:13 nerdboy: which discussion? Jun 19 20:17:23 the ml thread Jun 19 20:17:50 https://groups.google.com/forum/#!topic/beagleboard/cYHCN3GWw_E Jun 19 20:22:13 PRU = Probably Rarely Used Jun 19 20:43:50 (mailboxes would work too provided you choose mailboxes in DT over interrupts) <= interesting Jun 19 20:47:00 i have not heard that mentioned before Jun 19 21:15:05 there's some good info in there, and a lot of complaining by someone with a "baby" that depends on userspace io hack **** ENDING LOGGING AT Mon Jun 20 02:59:59 2016