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.