Lubuntu

Compiling kernel modules on Lubuntu image v1412

14 6526
hjoe  
Because I still can not compile can4linux on the Banana Pro, I try to find people doing the same and hopefully have success.
May be we can together set uo a small Howto on the topic.


Because I had no success so far I did a lot of research on the Banana Pro.
What I dont understand is the content of the /root directory. I have an older BananaPi with kernel 3.4.90 and it has the very same content.
How is it possible?

This is the content of /root:
  1. Banana Pi
  2. -rw-r--r-- 1 root root  450644 Nov  7  2012 abi-3.1.10-6-ac100
  3. -rw-r--r-- 1 root root     288 Feb 21  2013 bootimg.cfg-ac100
  4. -rw-r--r-- 1 root root     224 Feb 21  2013 bootimg.cfg-nexus7
  5. -rw-r--r-- 1 root root   90571 Nov  7  2012 config-3.1.10-6-ac100
  6. -rw-r--r-- 1 root root 2817269 Feb  5  2014 initrd.img
  7. -rw-r--r-- 1 root root 1520246 Nov  7  2012 System.map-3.1.10-6-ac100
  8. lrwxrwxrwx 1 root root      22 Feb  5  2014 vmlinuz -> vmlinuz-3.1.10-6-ac100
  9. -rw-r--r-- 1 root root 3472448 Nov  7  2012 vmlinuz-3.1.10-6-ac100
  10. Banana Pro
  11. -rw-r--r-- 1 root root  450644 Nov  7  2012 abi-3.1.10-6-ac100
  12. -rw-r--r-- 1 root root     288 Feb 21  2013 bootimg.cfg-ac100
  13. -rw-r--r-- 1 root root     224 Feb 21  2013 bootimg.cfg-nexus7
  14. -rw-r--r-- 1 root root   90571 Nov  7  2012 config-3.1.10-6-ac100
  15. -rw-r--r-- 1 root root 2817269 Feb  5  2014 initrd.img
  16. -rw-r--r-- 1 root root 1520246 Nov  7  2012 System.map-3.1.10-6-ac100
  17. lrwxrwxrwx 1 root root      22 Feb  5  2014 vmlinuz -> vmlinuz-3.1.10-6-ac100
  18. -rw-r--r-- 1 root root 3472448 Nov  7  2012 vmlinuz-3.1.10-6-ac100
Copy the Code
Both have exactly the same files, file names and file sizes. Can someone please explain.
Regards.

hnsncxy  
Edited by hnsncxy at Sun Jan 4, 2015 19:48

Hi, hjoe
The latest Lubuntu image is based on the Lubuntu_1404_For_BananaPi_v3_1_1 version,just update the following content:
  1. 1. Add bananapi user account into sudoers.
  2. 2. The login account is : bananapi/bananapi or root/bananapi .
  3. 3. Changed the default desktop.
  4. 4. Use the latest kernel firmware
Copy the Code

cyen  
hnsncxy replied at Sun Jan 4, 2015 19:47
Hi, hjoe
The latest Lubuntu image is based on the Lubuntu_1404_For_BananaPi_v3_1_1 version,just upd ...

Could you plz provide a general guide of how to compile an external module against the source kernel! Everytime i compile a specific module i have, i get the known insmod error, and dmesg shows  "no symbol version for module_layout"! I followed other guides in here or other forums but everytime conclude to the same problem! The only solution so far is to do modprobe -f to force the module to work! Maybe the problem is the Module.symvers, or the .config file !i dont know!
The things i did: Compiled the hole kernel and now uname-r shows 3.4.103+! When i try to compile the module too, modinfo shows in vermagic 3.4.103+ too, as other built in working modules !so what is the problem ! can anyone show us a solution!I think that this guide won't be helpful only for one user but for the hole forum users, cause i see many here have the same problem ! Anyway waiting for an answer from more experienced users!thaks!

Best regards

hnsncxy  
Edited by hnsncxy at Fri Jan 16, 2015 06:39
cyen replied at Mon Jan 5, 2015 10:28
Could you plz provide a general guide of how to compile an external module against the source kern ...


Hi,cyen
Please refer to the below link
http://forum.lemaker.org/thread- ... t2_4400_solved.html
We will consider writing the general guide of how to compile an external module against the source kernel in the future.
Thanks for your suggestion

cyen  
hnsncxy replied at Tue Jan 6, 2015 10:06
Hi,cyen
Please refer to the below link
http://forum.lemaker.org/thread-2172-1-1-compiling_driver_f ...

thanks a lot for your reply ! i will try your suggestion !

hjoe  
Hello hnsncxy and cyen
I did not look into the link yet, but hope it will also solve my problem.
I think I can do it tomorrow. But anyway, a general guide on how to compile external modules for the standard  images provided does help the community and lemaker.
,

hjoe  
Edited by hjoe at Fri Jan 9, 2015 00:43
hnsncxy replied at Tue Jan 6, 2015 17:06
Hi,cyen
Please refer to the below link
http://forum.lemaker.org/thread-2172-1-1-compiling_driver_f ...


That thread does not help, sorry,
you have to read a lot of posts and you don't get a summary at the end.
Secondly, it seems that the OP switched to a cross compile solution.
What many of us need, is simply a solution where kernel headers, .config and Modules.symvers are provided and a native make on the BananaPro results in a loadable module.

hjoe  
I did build my own kernel and modules. Now I can load the CAN driver and it works.
For every one interested in BananaPro, I placed a 3.4.103 Image with can4linux at http://www.oertel-halle.de/files/mypipro.img.gz

kgo  
hnsncxy replied at Tue Jan 6, 2015 10:06
Hi,cyen
Please refer to the below link
http://forum.lemaker.org/thread-2172-1-1-compiling_driver_f ...

The link is now broken. Results in: 404 Not found.

hnsncxy  
kgo replied at Fri Jan 16, 2015 01:45
The link is now broken. Results in: 404 Not found.

Hi,
The link is normal now, Thanks for your reminder.

You have to log in before you can reply Login | Sign Up

Points Rules