[Q] Compile bcm4329 as built-in? - G Tablet Q&A, Help & Troubleshooting

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!

Related

what roms support tun.ko openvpn

I am trying To connect my Eris to my vpn using openvpn settings, but heard that the roms kernel needs to have tun support embeded. So like I said in the title which roms support it? I have kaosfroyo. Also can I access my network shares via openvpn settings?
sabot105mm said:
I am trying To connect my Eris to my vpn using openvpn settings, but heard that the roms kernel needs to have tun support embeded. So like I said in the title which roms support it? I have kaosfroyo. Also can I access my network shares via openvpn settings?
Click to expand...
Click to collapse
Conap built CFS v9 with TUN support (as a kernel module). See for yourself by searching for "TUN" in his Dec 4th commit, or by inspecting his V9 download (in system/lib/modules).
Whether or not ROM devs included all of those kernel modules - or, more importantly, performed an "insmod" at some place during initialization to load the module into the kernel (by default) is different matter. But, that is certainly something that you could do on any CFSv9 ROM with a root-privileged script; just make sure you install the matching kernel module to the kernel you are using. Depending on what the dev does with "include" directives out of the /init*rc scripts, you might be able to make an insmod automatic at boot with something in /system/etc/init.rc.local (or whatever it is named).
If you want, you can peruse Conap's .config release history to see if different kernels were built with TUN support - his kernels are in lots of Eris ROMs. I didn't look through it exhaustively, but it looks like he also built it for V8.
cheers
my kernel is from conap version 2.6.29. im having trouble connecting to the server via openvpn settings. i installed the openvpn installer and openvpn settings, also the tun.ko file i moved to the modules folder, i think i did everything right but still i get an error fatal: cannot allocate tun/tap dev dynamically. what does that mean?
I think it means you've got some more analysis work to do.
Normally I might be motivated to help (I've done a fair bit of network admin incl. tunneling setups, and find it interesting work), but I don't have ready access to a configured server... so I would have to configure both a server and the phone in order to help out further. A bit too much volunteer work for me, I'm afraid.
Good luck... and remember that Google is your friend!

[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.

[Q] Add driver to kernel

Hi,
I'm building a custom rom and everything works great except one driver!
I made a "make menuconfig" in kernel and the driver is not listed under device drivers. How can I add the driver?
I downloaded the Linux driver and successfully made .ko modules. Should I add the .ko module to kernel or the files "as is"?
After some hours of google this problem I found something about "linux-headers packages" insted of kompiling kernel.
"Reasons for NOT compiling a custom kernel - You merely need to compile a special driver. For this, you only need to install the linux-headers packages" - How?
Please help

Asus Zenwatch 2 (Sparrow) - How to get rebuilt kernel work (need framebuffer console)

Hello XDA developers,
First of all my motivation to write here is to create a commandline GNU/Linux-like UI (and maybe add desktop GUI later) on the Asus Zenwatch 2, so I could see the kernel messages at bootup and use Midnight Commander without starting the entire main system (for example, get a text-mode shell and stop after every devices got initialized, firmwares got loaded, but before loading any Surfaceflinger and Dalvik stuff). I did similar thing on an Android tablet before by writing my own keyboard and touchscreen handlers based on Yaft. But that didn't help with boot-time kernel messages and the built-in framebuffer console in the kernel is probably much better. It's not enabled in the stock kernel, so I tried to recompile the Sparrow kernel from source (I didn't modify the default configs yet). After some tweaks to the kernel-source (which doesn't compile without them) I could build the Momentum-kernel and the stock Sparrow-kernel too using the provided .config files (e.g: make sparrow_defconfig). I used Android NDK's r13b gcc on Lubuntu 18.04, because an earlier attempt with NDK r18b wanted to use clang and compilation stopped early with errors.
My problem is that despite the kernel finally got compiled it doesn't seem to start at all. (I had similar experience with the Android-kernel in the past, but more success with Raspberry PI)...
I used mkbootimg to repack the generated zImage-dtb and the previously decompressed initrd into a boot.img, and ran fastboot boot on it, but booting simply stucked at fastboot screen, the animated ASUS logo never came in.
Can anyone point me into the right direction how I could troubleshoot further why the kernel doesn't work?
(I assume the 4.9 gcc isn't the issue here, though I got a zImage with slightly different filesize. I've read somewhere the earlier 14.04 Ubuntu and 4.8 gcc is advised for Sparrow kernel compilation but do these versions matter here? Should I replace the modules too on the system partition with their newly built versions, as the zImage changed?)
I know others managed to build a working kernel, for example TWRP has its own custom kernel and it works fine on the Sparrow watch... Is there any step I might have missed? Is there a debug-tool or logging which helps me to find out why the kernel doesn't boot? Something to troubleshoot the kernel-loading and booting? (A simulator for example? Or how do the experts do it in practice?)
I hope I declared every aspects to get some help. If for some reason I don't succeed I might try to make more linux-like AsteroidOS or PostmarketOS to get my complete Linux console on the smartwatch. The thing is that these don't support all hardware on the watch, that's why I'm trying with Android in the first place.
I guess if I'll be able to compile and then run the stock original kernel somehow the rest will be easy. (To enable framebuffer-console, set governors, remove unnecessary drivers, etc.)
Thanks in advance for the help, XDA gurus...

Categories

Resources