5,600,483 Members 32,644 Now Online
XDA Developers Android and Mobile Development Forum

Compiling frandom module for kernel 2.6.32.9

Tip us?
 
desalesouche
Old
(Last edited by desalesouche; 16th February 2013 at 12:49 PM.) Reason: solved
#1  
Senior Member - OP
Thanks Meter 1264
Posts: 1,490
Join Date: Feb 2012
Tutorial Compiling frandom module for kernel 2.6.32.9

hi.
i would like to get some information about how to compile frandom module for my kernel.

here is the wiki... https://github.com/pier11/kernel_hua...hable-boot.img
and git https://github.com/pier11/kernel_huawei_u8220
so which command i should use ? (i ve been told ---> CONFIG_*=m)
and when ?
i have the frandom kernel module tarball. dl it here= http://billauer.co.il/frandom.html
do i have to extract it? in which directory?
thank you very much...
HUAWEI:U8230/HONOR(U8860)
SAMSUNG:G YOUNG/G S
SONY: XPERIA Z
 
desalesouche
Old
(Last edited by desalesouche; 11th February 2013 at 10:33 AM.)
#2  
Senior Member - OP
Thanks Meter 1264
Posts: 1,490
Join Date: Feb 2012
Quote:
Originally Posted by desalesouche View Post
hi.
i would like to get some information about how to compile frandom module for my kernel.

here is the wiki... https://github.com/pier11/kernel_hua...hable-boot.img
and git https://github.com/pier11/kernel_huawei_u8220
so which command i should use ? (i ve been told ---> CONFIG_*=m)
and when ?
i have the frandom kernel module tarball. dl it here= http://billauer.co.il/frandom.html
do i have to extract it? in which directory?
thank you very much...
as there is no teachers(for the moment) in that "university", i had to "harass" some regonized people from xda...(sorry for that)
and they kindly try to help me...
i had this kind of answer which i could do : i think that the following is to build the module included in the kernel..
Download Makefile, Kconfig, and frandom.c and put all three in your downloaded kernel source (drivers/char directory) overwriting any existing file.
this part is done...
but how to do that ? add FRANDOM=m to the kernel .config file ? and where is located that file?
HUAWEI:U8230/HONOR(U8860)
SAMSUNG:G YOUNG/G S
SONY: XPERIA Z
 
pulser_g2
Old
#3  
pulser_g2's Avatar
Developer Admin / Senior Recognized Developer
Thanks Meter 10595
Posts: 19,214
Join Date: Nov 2009
2 minutes of googling suggests you take a look at these:

http://forum.xda-developers.com/show....php?t=1236576
http://yatsec.blogspot.co.uk/2011/01...om-kernel.html


Having trouble getting an answer? | What is XDA about? | How to ask for help?

if [ $PM.incoming.type = $type.question.ROM.how_to_use ] || [ $PM.incoming.type = $type.question.ROM.silly_question ]; then mv $PM.incoming /.trash; PM.response($responsetype.ignore); $PM.sender.ignore_in_future=true; init.sequence($boy_who_cried_wolf); fi;

BTC: 1K2fpDsRHkirWmk3PKiqtzhVHKUJCWPWnN
PGP: 0x260F4FDEF258E3C4
The Following User Says Thank You to pulser_g2 For This Useful Post: [ Click to Expand ]
 
desalesouche
Old
(Last edited by desalesouche; 12th February 2013 at 10:24 PM.)
#4  
Senior Member - OP
Thanks Meter 1264
Posts: 1,490
Join Date: Feb 2012
Quote:
Originally Posted by pulser_g2 View Post
i have been googling far much more than 2 minutes and i already found these threads...but couldn't manage...
by egg with this one ...which contains error... http://yatsec.blogspot.co.uk/2011/01...om-kernel.html


PREPARING YOUR KERNEL SOURCE

First we must retrieve and copy the kernel config from our device.

Code:

$ cd /path/to/android-sdk/tools ----->ok
$ ./adk pull /proc/config.gz ----->not good! you have to make first $ adb devices in terminal....then $ adb pull /proc/config.gz

$ gunzip ./config.gz ----->ok
$ cp config /path/to/kernel/.config not working! ----> cp: cannot create regular file /path/to/kernel/.config : No such file or directory....
so what to do now?
how to solve this please? i will keep on googling to try to find out solution...any help is welcome
thank you
when i will finish my little project , i think that other people would benefit from that... i might make a how to .
for information ,i have been setting ubuntu 12.10 64 bits from this thread ---->http://soupdawg.wordpress.com/2012/1...-all-variants/
HUAWEI:U8230/HONOR(U8860)
SAMSUNG:G YOUNG/G S
SONY: XPERIA Z
 
pulser_g2
Old
#5  
pulser_g2's Avatar
Developer Admin / Senior Recognized Developer
Thanks Meter 10595
Posts: 19,214
Join Date: Nov 2009
Default Re: [Q] Compiling frandom module for kernel 2.6.32.9

Quote:
Originally Posted by desalesouche View Post
i have been googling far much more than 2 minutes and i already found these threads...but couldn't manage...
by egg with this one ...which contains error... http://yatsec.blogspot.co.uk/2011/01...om-kernel.html


PREPARING YOUR KERNEL SOURCE

First we must retrieve and copy the kernel config from our device.

Code:

$ cd /path/to/android-sdk/tools ----->ok
$ ./adk pull /proc/config.gz ----->not good! you have to make first $ adb devices in terminal....then $ adb pull /proc/config.gz

$ gunzip ./config.gz ----->ok
$ cp config /path/to/kernel/.config not working! ----> cp: cannot create regular file /path/to/kernel/.config : No such file or directory....
so what to do now?
how to solve this please? i will keep on googling to try to find out solution...any help is welcome
thank you
when i will finish my little project , i think that other people would benefit from that... i might make a how to .
for information ,i have been setting ubuntu 12.10 64 bits from this thread ---->http://soupdawg.wordpress.com/2012/1...-all-variants/

That's because you are meant to put in the path to your kernel, rather than literally /path/to/kernel...


Having trouble getting an answer? | What is XDA about? | How to ask for help?

if [ $PM.incoming.type = $type.question.ROM.how_to_use ] || [ $PM.incoming.type = $type.question.ROM.silly_question ]; then mv $PM.incoming /.trash; PM.response($responsetype.ignore); $PM.sender.ignore_in_future=true; init.sequence($boy_who_cried_wolf); fi;

BTC: 1K2fpDsRHkirWmk3PKiqtzhVHKUJCWPWnN
PGP: 0x260F4FDEF258E3C4
 
sgt. meow
Old
#6  
sgt. meow's Avatar
Recognized Contributor
Thanks Meter 2616
Posts: 4,243
Join Date: Dec 2011
Location: Dhaka
@OP
I know you sent me a PM, but it's better if I reply here.
THIS is what did it for me. Of course my goal wasn't achieved as the extraversion bit was wrong. The X8 is a tricky device.
And make sure to go through the whole thread first.
And also try to use the arm-eabi toolchain from CM as that one throws the least errors.
sgt. meow
 

https://www.dropbox.com/s/ho7noezbf3ph0l6/CrossMiranda.png
R.I.P. Miranda Nicole
An innocent soul, who deserved to live a lot longer. We all miss you.

R.I.P Alif Shahriar
A true friend, no longer here in this world, but always there in our hearts. We sorely miss you.


Owner and creator of Oxydo kernels for Nexus 7 2012 (Grouper/Tilapia) and Xperia X8 (Shakira)
Maintainer of AOSPAL for Nexus 7 2012 (Grouper).


My blog: http://alltheengsawesumz.blogspot.com/
Circle or chat: https://plus.google.com/+FayadChowdhury
 
desalesouche
Old
#7  
Senior Member - OP
Thanks Meter 1264
Posts: 1,490
Join Date: Feb 2012
hi all. i manage to compile the module thanks to Blechd0se http://forum.xda-developers.com/member.php?u=4855459 i will soon edit the working how to kindly provided by him.
i thank all people who have been providing help and advices... and XDA
HUAWEI:U8230/HONOR(U8860)
SAMSUNG:G YOUNG/G S
SONY: XPERIA Z
 
desalesouche
Old
(Last edited by desalesouche; 16th February 2013 at 12:48 PM.)
#8  
Senior Member - OP
Thanks Meter 1264
Posts: 1,490
Join Date: Feb 2012
here are the change provided by bledchOse to be able to compile the frandom module for my kernel. and little how to
1---> https://github.com/pier11/kernel_hua...hable-boot.img
2---> https://github.com/desalesouche/kernel_huawei_u8220
make the change in kernel before to build it ( change are in green)
3---> https://github.com/desalesouche/jord...235bdda7a87b5b
4---> Originally Posted by Blechd0se
" change CONFIG_FRANDOM=y to CONFIG_FRANDOM=m, it make you a nice and shiny *.ko file.
And if you already compiled your kernel its inside the kernel, no need to compile another module which does exactly the same and you can instead push your kernel to your device "
5 build the kernel and or module and finish to follow explanation of link 1...
you will find the frandom .ko under drivers/char/frandom/ where your kernel is located... copy it under system/lib/modules/ in your rom zip.
you will need a script to make it load:be activated at boot

Et voilą!!!
HUAWEI:U8230/HONOR(U8860)
SAMSUNG:G YOUNG/G S
SONY: XPERIA Z
The Following 3 Users Say Thank You to desalesouche For This Useful Post: [ Click to Expand ]
 
jamieg71
Old
#9  
jamieg71's Avatar
Senior Member
Thanks Meter 7429
Posts: 2,953
Join Date: Mar 2011
Default It's funny because it is true.....

Quote:
Originally Posted by pulser_g2 View Post
Had been researching kernel mods came across frandom, googled "frandom module".... Your post was number 2 result.... your first link was my answer.... I win! 5 seconds googling!!! Thank you sir!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

TasGear: A Tasker Extension for the Samsung Galaxy Gear

With wearable technology taking center stage this year, one can only expect more … more

Intelligently Place Contacts on Your Home Screen with CallWho Widget

There are plenty of ways to get your contacts to show up on your … more

Control TWRP from within Android with TWRP Coordinator

You may recall that back when TWRP2 introduced a couple of years ago, it brought with … more

Keep Track of Everything Your Device Does with Event Logger

Regardless of their OS choice, computing power users generally share one common … more