New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
desalesouche
Old
(Last edited by desalesouche; 16th February 2013 at 12:49 PM.) Reason: solved
#1  
Senior Member - OP
Thanks Meter 135
Posts: 595
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/ and U8860/samsung galaxy y and s2
 
desalesouche
Old
(Last edited by desalesouche; 11th February 2013 at 10:33 AM.)
#2  
Senior Member - OP
Thanks Meter 135
Posts: 595
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/ and U8860/samsung galaxy y and s2
 
pulser_g2
Old
#3  
pulser_g2's Avatar
Developer Admin / Elite Recognized Developer
Thanks Meter 8166
Posts: 18,459
Join Date: Nov 2009
Location: United Kingdom Likes: Galaxy Note 2 Dislikes: Noobs
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;


If you wish to apply for one of the Recognized Themer/Contributor titles, or have a question, please DO NOT send me a PM about it. Instead please contact your device's forum moderator, or a senior moderator, who will deal with your application. Thanks
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 135
Posts: 595
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/ and U8860/samsung galaxy y and s2
 
pulser_g2
Old
#5  
pulser_g2's Avatar
Developer Admin / Elite Recognized Developer
Thanks Meter 8166
Posts: 18,459
Join Date: Nov 2009
Location: United Kingdom Likes: Galaxy Note 2 Dislikes: Noobs
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;


If you wish to apply for one of the Recognized Themer/Contributor titles, or have a question, please DO NOT send me a PM about it. Instead please contact your device's forum moderator, or a senior moderator, who will deal with your application. Thanks
 
sgt. meow
Old
#6  
sgt. meow's Avatar
Recognized Contributor
Thanks Meter 1296
Posts: 3,190
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.

Device config:
ROM: MiniCM10/9
Kernel: oxydo@unikernel-1+
CPU (min/max/governor): 480MHz-787MHz, smartassH3
I/O Scheduler: Deadline

My blog: http://alltheengsawesumz.blogspot.com/ Keep checking for news!
 
desalesouche
Old
#7  
Senior Member - OP
Thanks Meter 135
Posts: 595
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/ and U8860/samsung galaxy y and s2
 
desalesouche
Old
(Last edited by desalesouche; 16th February 2013 at 12:48 PM.)
#8  
Senior Member - OP
Thanks Meter 135
Posts: 595
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/ and U8860/samsung galaxy y and s2
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 5479
Posts: 2,308
Join Date: Mar 2011
Location: Independence, Mo (Methlehem)
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!


Follow @jamie_G_


XDA PORTAL POSTS

Expand Your Choice of Icons with Icon Themer

Icons are some of the most commonly themed elements of the Android UI, and there is certainly no … more

MicrowaveTimePicker Brings 4.2 TimePicker to 2.1+ Devices

It’s frustrating to see slick new features that you can’t use when … more

What’s Possible with CASUAL & How to Make Your Own CASUAL – XDA Developer TV

XDA Elite Recognized Developer AdamOutler is known … more

Pearl Chen to Talk NFC Development at XDA:DevCon 2013

From HTML to LEDs or Android to Arduino, Hardware Hacking is a pastime of many people … more