Weekly report

8 views
Skip to first unread message

Vaibhav Choudhary

unread,
Jul 12, 2016, 6:36:18 PM7/12/16
to beaglebo...@googlegroups.com
Respected Mentors and fellow students,
My weekly progress report is as follows:
1) I had been stuck trying to correctly insmod the char driver that I written. Although I had removed the errors in it, it was not insmoding correctly. There seemed to be a problem with the vermagic strings. So then I took the config.gz file from the BBB, gunzipped it and then tried to manually compile the kernel, so as to cross compile the module. Upon doing this the compiler showed the current compiler did not support the fstack protection. So initially I tried removing the portion that pertained to fstack protection. And then tried compiling it again. It did pass the fstack protection error but again got stuck at a point where it could not find a file called atari.h. I went looking for this file and found that in my source the link to this file was missing. Then my mentors suggested that the config file with which I was using had carriage returns. So I used dos2unix and removed those, and again tried to compile the kernel. It did compile successfully but the driver which I cross compiled with it did not successfully insmod. This was even when the vermagic string matched with the other drivers on the BBB. Upon further investigation and help from mentors, I found that the kernel would have to be cross compiled with LOCALVERSION=-ti-r25. So I again compiled the kernel and then cross compiled the driver. And I am happy to report that the driver successfully insmoded. I have run some tests on it and it seems to be working. Though I haven't had a chance to test it on the logic analyzer.

This exercise took a majority of  my time this week.

2) I have been working on the the driver using the SPI- Subsytem. This week I wasn't able to give much time to this. I am still in the process of figuring out the all the functions. But I aim to get a fully fetched driver before the end of this week.
I am still not sure whether I will incorporate RPMsg into the driver to send in parameters and will be discussing this with my mentors.


Aim for the next week:
1) Upload the logic analyzer plots of the char driver.
2) Get the basic structure of a functional SPI driver up and if possible to upload logic analyzer plots of it.

I am expecting that I2C will take much less time once I get this figured out for SPI.

Thanking-you
Namastey,
Vaibhav Choudhary.   
Reply all
Reply to author
Forward
0 new messages