[Q] How to insert wifi module into kernel image? - Galaxy S 4 Developer Discussion [Developers-Only]

Hi! I'm trying to build the kernel for S4 GT-i9506 from link
I end up with kernel image and zimage without wifi module. Phone boots, but wifi isn't working. There is a module dhd.ko, which also being built with kernel, but it isn't merged with kernel image. How to make the module into kernel and have wifi working?

have you tried changing line 54 in file arch/arm/configs/msm8974_sec_ks01eur_defconfig
change it from:
Code:
CONFIG_BCM4335=m
to
Code:
CONFIG_BCM4335=y
it wouldn't build for me so i was not able to test it for you.
let me know if it works for you.
edit: or you could just include the module in your zip to flash the kernel.
needs to be flashed to /system/lib/modules

Related

[Q] Compile bcm4329 as built-in?

I was following some guide to compile pershoot's kernel, and I compiled everything as built-in and disabled module support. After I installed the new kernel, the wifi can not be turned on. Any suggestions? (I'd really love to have a all-in-one kernel without "modprobe" things)
Thanks in advance.
You may want to check out Clemsyn's kernels. He typically builds his as all in ones.
Thanks. I've tried all Clemsyn's latest kernels (with Calkulin's ROM, if that matters) and none will boot (stucked at the viewsonic birds logo). I am not sure if that is related to OC... but I still need a kernel that has nls-gb2312/utf8 support.
Interestingly, I unzipped Clemsyn's kernel zip and found his /system/ also has bcm4329.ko as a module. Is it true that wifi driver must be compiled as module to work?
I saw my adb logs that Wifiservices is complaining about driver not available. I assume this must be a failure of "modprobe". How can I manually enable the wifi? Is there some equivalent command like "ifup wifi"?
It seems android wifi.c is making a hardwired assumption that wlan0 driver is compiled as kernel module. To support all-built-in kernel, I must recompile android as well. Could someone point a link to HOWTO-style guide for compiling android 2.2 from scratch? Preferably Calkune's ROM.
Thanks!

[Dev] Kexec support for Gen8 kernel

Hi,
You will found here the kernel source tree archos-gpl-gen8-kernel with kexec support.
Tested on A101IT.
Awesome, will have to look into this as I've been trying to get kexecboot up and running. I want to be able to boot Ubuntu with a different kernel than Android, and so far it hasn't worked.
Edit: How are you compiling this kernel? I copied linux.config to .config and ran:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j9
and it errors on
drivers/usb/storage/archos_hdd.c: At top level:
drivers/usb/storage/archos_hdd.c:30:27: fatal error: ../../scsi/sd.h: No such file or directory
EDIT again:
Change the <>'s to ""'s in the line in archos_hdd.c:
#include <../../scsi/sd.h>
Also apply this patch http://mailman.alsa-project.org/pipermail/alsa-devel/2009-May/016949.html
Then it should compile on the arm-linux-gnueabi-gcc compiler that Ubuntu ships using the above command. I have tested this on my A43 and it works perfectly, I booted Debian and ran the kexecboot bootloader (compiled from source on the device), it booted a 2.6.37+ kernel. You need the kexec-tools package installed for Debian.
CalcProgrammer1 said:
Edit: How are you compiling this kernel? I copied linux.config to .config and ran:
Click to expand...
Click to collapse
Compiled in archos buildroot env
CalcProgrammer1 said:
Then it should compile on the arm-linux-gnueabi-gcc compiler that Ubuntu ships using the above command. I have tested this on my A43 and it works perfectly, I booted Debian and ran the kexecboot bootloader (compiled from source on the device), it booted a 2.6.37+ kernel. You need the kexec-tools package installed for Debian.
Click to expand...
Click to collapse
Good to hear.
Between a mirror of kernel source code is available on gitorious
And for those who would to test, you can download zImage and initramfs.cpio.gz
Edit:
After flashing these files, and boot in sde you will have the recovery menu plus a Kexec boot item where upload a zImage and initramfs.cpio.gz corresponding to system you want to execute
sorry to re-vamp an old thread. but i'm trying to compile 2.6.37 kernels from buildroot environments and failing. very frustrating since all of the scripts download 10 million different things and are out of date.. so now i'm testing other kernels trying to find repo's that actually build.
i compiled the kernel from your repository successfully. built the modules as well. i extracted the default openaos initramfs, repacked adding in the 2.6.29 modules from the kernel build. flashed the new zImage and initramfs.cpio.gz via SDE. when i turn on the 70it it's a black screen then eventually reboots after about 5 seconds. i can't download the ones you've posted because the links are more than likely down now. any other kernels you would recommend?
alephzain said:
Compiled in archos buildroot env
Good to hear.
Between a mirror of kernel source code is available on gitorious
And for those who would to test, you can download zImage and initramfs.cpio.gz
Edit:
After flashing these files, and boot in sde you will have the recovery menu plus a Kexec boot item where upload a zImage and initramfs.cpio.gz corresponding to system you want to execute
Click to expand...
Click to collapse
I have a small guide here for building kboot http://dev.openaos.org/wiki/LubuntuGen8#Buildingkboot,
It should also work for original sources. I just cloned his repo, and made one small adjustment for booting straight into chroots with openaos boot menu.
divx118
allenelson said:
sorry to re-vamp an old thread. but i'm trying to compile 2.6.37 kernels from buildroot environments and failing. very frustrating since all of the scripts download 10 million different things and are out of date.. so now i'm testing other kernels trying to find repo's that actually build.
i compiled the kernel from your repository successfully. built the modules as well. i extracted the default openaos initramfs, repacked adding in the 2.6.29 modules from the kernel build. flashed the new zImage and initramfs.cpio.gz via SDE. when i turn on the 70it it's a black screen then eventually reboots after about 5 seconds. i can't download the ones you've posted because the links are more than likely down now. any other kernels you would recommend?
Click to expand...
Click to collapse

[Q] Installing ff-memless.ko and xpad.ko

Hello, I was just trying to install the modules ff-memless.ko and xpad.ko so that I can use my xbox controller on my Galaxy Tab 10.1 LTE (sch-i905). when I try the command in terminal emulator:
insmod /data/local/modules/ff-memless.ko
It fails and says: (exec format error)
Also, I ran dmesg and I believe the error was that these particular modules are made for a different kernel, whereas my kernel is 2.6.36.4-cyanogenmod+
My question is where can I get these modules for my kernel? Or is there a way to get mine to work?
Thanks for any help.
Which ROM are you using exactly?
Are the modules included in the ROM?
Are you doing it as root?
It is rooted and i do not believe it is running a custom ROM, just a custom kernel which is the cyanogenmod kernel for the lte tablet running 3.2
and no they were not included i found them online.
Which kernel exactly? Download link? A link to the modules too.
Most likely your theory is right, you're trying to use a module for another kernel.
You can find the last custom kernel and modules for HC 3.2 here: http://droidbasement.com/db-blog/?p=2479
Don't forget to run the insmod as root.
Oh, and the dmesg output could be useful if you keep getting the same error.
I got the modules here: http://forum.xda-developers.com/showthread.php?t=1517949
and I do not remember where exactly I got the kernel, and I believe the kernel itself is on a different computer at the moment, but it was a cyanogenmod by pershoot, so I imagine I could simply put the one you gave me onto my tablet and install via CWM?
And what do you mean to run it as root? Do you mean to start with 'su' as the first line?
Yes, you're using modules for a different kernel, an ICS kernel for a different device.
Maybe you're already using the latest kernel from pershoot, if you want to be sure, execute in a terminal:
Code:
uname -a
The date should be around 9/January/2012
In any case, if you want, download the kernel from pershoot's blog and flash it with CWM.
Use the modules in lib-2636.4_ux_hc32.tar.gz (from pershoot's blog). And yes, use the terminal as root executing the su command first.
Alright I put in that code and yes it was Jan 9th but I think Ill flash that one you gave me anyways. Before I do so, do I need to wipe data or just cache and dalvik?
and I seem to be having difficulties finding that .tar file you mentioned.
Btw thanks for all your help with this
There's no need to flash the kernel if you already have it. But no, just flash the kernel without wiping anything.
The modules (the file is a tar.gz): http://droidbasement.com/galaxy/kernels/2636/26/lib-2636.4_ux_hc32.tar.gz
Or just download the attachment (includes ff-memeless.ko and xpad.ko):
Load ff-memeless.ko first, then xpad.ko .
If you want, when someone helps you, hit the "thanks" button in the post.
It all works now thank you so much for your time.
Hello, so I'm trying to get wired 360 controller to work. But I need correct modules for my ZTpad Zenithink C91 ICS 4.0.3.
Anyidea where to find those? ff-memless.ko and xpad.ko?
Hey guys, I'm sorry to double post.
I have spent past few days with this matter, I simply do not know where else to ask anymore. My knowledge is not very good about ROMs and kernels.
I'm running ICS 4.0.3 now, and need those two files to get 360 pad working. ff-memless.ko and xpad.ko. I tried couple diferent ones I found from internet, but it says "exec format error". So it seems that kernel version is wrong.
Tablet is Zenithink C91. Any idea how/where to get right files?
Thank you for your help!
Jesse
Reply
I have an HP Touchpad running the latest official nightly update...
I have the ff-memless.c and xpad.c for my device, I just need help turning them into/compiling them into .ko files...
Can somebody please help me with compiling? I just can't make sense of this guide on the CM wiki: wiki.cyanogenmod.c0m/wiki/Building_Kernel_from_source
(replace 0 with o)
Thanks

Can I flash fuse.ko on my phone?

I want to use Cryptonite's EncFS mounting feature on my ST17i. As far as my understanding goes, it needs the phone to have the fuse module installed. Right now it's reporting that mounting is not supported on my phone which means the said fuse module is not installed. I managed to find a download for it available but I want to know if flashing it will not cause any more issues? I'm currently running CM9 with the included kernel (FXP I believe).
Do you try insmod with Termial Emulator?
The module won't be of any use if u randomly download it. It need to be compiled against your kernel.

Kernel compiled from source breaks wifi

Hi I am new to kernel tweaking. I am trying to compile the kernel for Xiaomi redmi 5a for latest miui stock rom from source located at
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/riva-o-oss
After flashing the boot image created with compiled kernel , everything except wifi works.
Google search revealed that it is a common issue and one suggestion is to put the wil6210.ko (wifi related) file from compiled kernel in to system/lib/modules which doesn't work.
What confuses me even more is that even in if I delete the wil6210.ko from system/lib/module when the stock kernel is running , the wifi still works . It Seems like this kernel module has no effect on wifi.
But deleting the vendor/lib/modules/pronto/pronto_wlan.ko breaks wifi for stock kernel that came with the rom.
But compiling the kernel from source doesn't generate such files.
one related info at https://github.com/Genom-Project/android_kernel_xiaomi_vince-3.18/issues/2
I found a guide at https://github.com/MiCode/Xiaomi_Ke...#download-qualcomm-android-enablement-project that talks about wifi module.
The download seems to be to big and maybe too many unnecessary files will be downloaded. Tried to init and sync the repo. It seems huge. So if nothing else works will try this.
https://github.com/supercairos/android_device_xiaomi_land/issues/1#issuecomment-259458071 seems to provide a shortcut technique. It asks to download the prima folder from https://source.codeaurora.org/quic/...opensource/wlan/prima/tree/?h=LA.UM.5.3_rb1.1 (I can replace the h value to my kernels tag) , merge it into the source and then compile it to generate the prima_wlan.ko . I did so and also added CONFIG_PRONTO_WLAN=m ( m to compile as module) but such file is not being generated after compiling.
So please, if anyone went through something similar , help me with your recommendations.,
try lineage os aarch64 cumpiler and try prima wlan driver
u can use this https://github.com/baunilla/android...mmit/b7e6d4e6aed50d8ae652f292235be1398be5f344

Categories

Resources