Thread
:
New custom kernel for N900
View Single Post
peppino
2010-10-03 , 10:49
Posts: 19 | Thanked: 16 times | Joined on Sep 2010
#
4
I'm trying to compile a custom kernel, but I have a doubt on compile of modules. After make modules, I need to reduce the size of the module but with strip or objcopy my modules don't work.
I tried with my zImage and original modules the mobile computer N900 start without problems, but when I tried to copy my recompiled modules the N900 is bricked.
Where can I find a wiki which explain to me the procedure for recompile the modules?
Thank you
EDIT:
I found a solution to my problem.
After make EXTRAVERSION=XXXX modules
strip with command:
for FILE in $(find . -name '*.ko'); do strip --remove-section=.comment --remove-section=.note --strip-unneeded $FILE; done
cp $(find . -name '*.ko') /lib/modules/2.6.28-omap1-mytest
/sbin/depmod -ae -F System.map 2.6.28-omap1-mytest
scp -r /lib/modules/2.6.28-omap1-mytest <to my N900>
without files modules.dep the load of the modules don't work.
there is also make EXTRAVERSION=XXX modules_install
but this command make many directories in lib/modules. I don't like when there is few modules.
Last edited by peppino; 2010-10-03 at
15:35
.
Quote & Reply
|
peppino
View Public Profile
Send a private message to peppino
Find all posts by peppino