[Q] How to solve these two problems about compiling a kernel?

wctliu

Member
Feb 15, 2013
41
2
0
China
I'm just starting to learn the kernel compile

The help of many friends, I made ​​great progress soon. For example AndreiLux, etc.

I can compilethe kernel from Samsung official source code by meself, compile my own kernel for Samsung N7108

But now the two issues can not be resolved. Therefore, I hope more friends to help me and guide me.

The first problem
Compiled kernel does not support exfat format storage card.
In AndreiLux help, I added the code. if (! strncmp ("exfat_", mod-> name, 6)) return 1;
But exfat problem persists. When the the insert the exfat storage card will cause the phone to constantly reboot.
I saw http://forum.xda-developers.com/showthread.php?t=2154703 seems to have explained,
But please forgive my ignorance and ignorance. I'm a beginner. I don't understand it.

The second problem
The Wifi switch settings inside, unable to open. So. WIFI unavailable

Hope you can help me solve these two problems.
 

wctliu

Member
Feb 15, 2013
41
2
0
China
I used boot.img from Samsung official rom

'perl split_bootimg.pl boot.img" extracted 2 files: boot.img-kernel and boot.img-ramdisk.gz.

If I directly use the compiled zImage packaged, such as:used "mkbootimg --base 0x00200000 --kernel /home/wctliu/android/kernel/sumsang-kernel/arch/arm/boot/zImage --ramdisk boot.img-ramdisk.gz -o new_boot.img" .

the new_boot.img can be able to activate the phone. But no WiFI

If i do that:

mkdir ramdisk
cd ramdisk
gzip -dc ../boot.img-ramdisk.gz | cpio -i
Copy compiled module drive replacement adding: system / lib / modules
find . | cpio -o -H newc | gzip > ../newramdisk.cpio.gz
mkbootimg --base 0x00200000 --kernel /home/wctliu/android/kernel/sumsang-kernel/arch/arm/boot/zImage --ramdisk newramdisk.cpio.gz -o new1_boot.img

the new1_boot.img cann‘t be able to activate the phone

I where operating errors?Please tell me what's wrong?
 

Nazar78

Senior Member
Mar 29, 2006
366
113
0
42
Singapore
I mean take a look at the log what cause the operation to fail when you tried to activate wifi. If the module doesn't load, try insmod manually see if it works...
 
  • Like
Reactions: wctliu

Nazar78

Senior Member
Mar 29, 2006
366
113
0
42
Singapore
Sorry mate, I don't really get you. When you compile from the source, I believe wifi module should be already turned on in the defconfig. Look at the kernel log or logcat to see what's wrong with your wifi. As for the extfat, take a look at the kernel source from many great developers here on xda. They really helped me a lot compiling my own builds...:good:
 

mickmattes

Member
Jul 21, 2012
28
9
0
Hello,

He seems to have kind of the same problem that I have...

I'm trying to re-compile the boeffla-Kernel for my Galaxy S3 i9300 in order to implement the "aufs"-filesystem.

I've split the boot.img into zImage and ramdisk.gz, opened ramdisk.gz via
Code:
gunzip -c ../ramdisk.gz | cpio -i
and deleted the old zImage.

I patched the boeffla-kernel-source to use "aufs". Then I compiled the Kernel using boeffla_defconfig,
copied the modules into the ramdisk (/lib/modules), repacked it again and I copied the newly compiled zImage
to the same folder.

Finally I did a
Code:
./mkbootimg --kernel ./zImage --ramdisk ./ramdisk.gz --board smdk4x12 --base 0x10000000 --pagesize 2048 -o boot.img
and tarred the resulting boot.img with
Code:
tar cvf kernel.tar.md5 boot.img
.

After I flash it with MobileOdin, the Image boots, "aufs" seems to work but I can not turn on the wifi switch.

Insmod doesn't work and the various suggested workarounds I found through web-search didn't help.

Does anyone have an idea?

greetings

P.S.: Perhaps it would have been better to post this in the dev-section but as I haven't posted the necessary 10 posts I'm not allowed to write to it.
 
Last edited:
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone