Lubuntu
Compiling kernel modules on Lubuntu image v1412
14
7286
View: 7286|Reply: 14
|
[Lubuntu]
Compiling kernel modules on Lubuntu image v1412
[Copy link]
|
|
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:- Banana Pi
- -rw-r--r-- 1 root root 450644 Nov 7 2012 abi-3.1.10-6-ac100
- -rw-r--r-- 1 root root 288 Feb 21 2013 bootimg.cfg-ac100
- -rw-r--r-- 1 root root 224 Feb 21 2013 bootimg.cfg-nexus7
- -rw-r--r-- 1 root root 90571 Nov 7 2012 config-3.1.10-6-ac100
- -rw-r--r-- 1 root root 2817269 Feb 5 2014 initrd.img
- -rw-r--r-- 1 root root 1520246 Nov 7 2012 System.map-3.1.10-6-ac100
- lrwxrwxrwx 1 root root 22 Feb 5 2014 vmlinuz -> vmlinuz-3.1.10-6-ac100
- -rw-r--r-- 1 root root 3472448 Nov 7 2012 vmlinuz-3.1.10-6-ac100
- Banana Pro
- -rw-r--r-- 1 root root 450644 Nov 7 2012 abi-3.1.10-6-ac100
- -rw-r--r-- 1 root root 288 Feb 21 2013 bootimg.cfg-ac100
- -rw-r--r-- 1 root root 224 Feb 21 2013 bootimg.cfg-nexus7
- -rw-r--r-- 1 root root 90571 Nov 7 2012 config-3.1.10-6-ac100
- -rw-r--r-- 1 root root 2817269 Feb 5 2014 initrd.img
- -rw-r--r-- 1 root root 1520246 Nov 7 2012 System.map-3.1.10-6-ac100
- lrwxrwxrwx 1 root root 22 Feb 5 2014 vmlinuz -> vmlinuz-3.1.10-6-ac100
- -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.
|
|
|
|
|
|
|
|
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. Add bananapi user account into sudoers.
- 2. The login account is : bananapi/bananapi or root/bananapi .
- 3. Changed the default desktop.
- 4. Use the latest kernel firmware
Copy the Code |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
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 ! |
|
|
|
|
|
|
|
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.
,
|
|
|
|
|
|
|
|
Edited by hjoe at Fri Jan 9, 2015 00:43
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.
|
|
|
|
|
|
|
|
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. |
|
|
|
|
|
|
|
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. |
|
|
|
|
|
|