General :: Specify Kernel Module Load Path In Config File?
Sep 28, 2011
I needed a tun.ko module for my kernel, so I tried compiling my own kernel.
The kernel did build OK, and also boots OK, the only problem is that I cannot load any modules.
It seemes, that the module tools (insmod, modprobe etc) looks for the modules in /lib/modules, and I have them in /system/lib/modules, so my wifi does not work, as I cannot load the module.
Where I can specify the kernel module load path in the .config file?
Example:
# cd /system/lib/modules
# ls -l
-rw-r--r-- root root 315403 2008-08-01 14:00 bcm4329.ko
-rw-r--r-- root root 211573 2008-08-01 14:00 tun.ko
# modprobe bcm4329.ko
[Code] .....
View 2 Replies
May 17, 2009
I'm tinkering with building and installing Android from source. Basically I've got it down fairly well, but I seem to have run into a bit of a problem with the wlan module, probably from HTC.
Having pulled the 2.6.27 kernel sources and built that with a .config pulled from the phone, and using that as the kernel image instead of the prebuilt one, I get the following wifi failure message in dmesg:
wlan: version magic '2.6.27-00205-gf2dabc0 preempt mod_unload ARMv6 ' should be '2.6.27-00392-g8312baf preempt mod_unload ARMv6 '
probably because the .config I pulled from the phone has:
CONFIG_LOCALVERSION="-00392-g8312baf"
So I rebuilt with the '00205' localversion and now I get in dmesg:
[61.122497] wlan: Unknown symbol trout_pwrsink_set
but trout_pwrsink_set was changed to htc_pwrsave_set way back in February:
[ARM]: trout: Switch from trout_pwrsink -> htc_pwrsink 33/8933/1 http://android.git.kernel.org/?p=kernel/msm.git;a=commitdiff;h=44a01f...
I'm clearly getting an obsolete wlan module somehow, Any ideas for how I can get a wlan module that goes with the '00392' kernel would be appreciated.
View 3 Replies
View Related
Mar 23, 2012
<3>[ 154.264768] bcm4329: version magic '2.6.35.14-cyanogenmod-g1ad182f preempt mod_unload ARMv7 ' should be '2.6.35.14-cyanogenmod-g704f542 preempt mod_unload ARMv7 '
I've successfully built the samsung-kernel-crespo kernel from the cyanogenmod git. I unpacked a working ramdisk from a nightly and repacked it with my kernel, when i try to load the module i get the above error, The "extraversion" info that in the "about phone" tab in sittings is 2.6.35.14-cyanogenmod-g704f542, as well as the version of the modules. but for some reason the kernel is looking for that 'g1ad182f ' instead.
I loaded the module via fastboot boot boot.img and i didnt full on flash it to the phone. I backed up the working kernel module and put the new one in /system/lib/modules, rebooted the kernel and the wifi is still giving me an error.
If i try to manually insmod the module and it hangs, if i use modprobe then lsmod it says its "loading" but never loads.
the phone im working on is a nexus s if that matters.
View 1 Replies
View Related
Nov 5, 2012
If a kernel does not have the Advanced Routing feature (which is needed for VPNC widget - Cisco VPN) is it possible to add this via module like tun.ko module? The Adv. Routing is not needed for connecting but the connection is soon lost.
View 1 Replies
View Related
May 22, 2014
kernel compiling with GCC 4.8 google toolcahin:
Got this error during generating bcmdhd module:
Quote:
CC [M] drivers/net/wireless/bcmdhd/wl_cfgp2p.o
drivers/net/wireless/bcmdhd/wl_cfgp2p.c: In function 'wl_cfgp2p_act_frm_search':
drivers/net/wireless/bcmdhd/wl_cfgp2p.c:769:31: error: array subscript is above array bounds [-Werror=array-bounds][code].....
View 3 Replies
View Related
Jun 11, 2013
I am trying to compile a WiFi driver (ath6kl) for my Sony Xperia E (Android version: 4.1.1, compilation: 11.3.A.0.47). I have downloaded the source code for compilation 11.3.A.0.47 from here: developer.sonymobile.com/downloads/xperia-open-source-archives/open-source-archive-for-build-11-3-a-0-47
I have compiled required kernel modules (cfg80211 and ath6kl_sdio), but I have encountered some problems during this proccess. I don't understand why on my android device (in /system/lib/modules/ath6kl) there are two modules: ath6kl_sdio.ko and cfg80211.ko (first one depends on the second one). But when I look at my sources, I see the following module dependencies for ath6kl: ath6kl_sdio -> ath6kl_core -> cfg80211. So there are 3 modules instead of 2. Anyway, after some modification (I merged ath6kl_core and ath6kl_sdio into one module) I managed to compile ath6kl.
I have replaced compiled modules in /system/lib/modules/ath6kl on my android device, then rebooted and I got the following error:
<4>[ 23.055226] ath6kl_sdio: disagrees about version of symbol cfg80211_sched_scan_results
<4>[ 23.055251] ath6kl_sdio: Unknown symbol cfg80211_sched_scan_results (err -22)
[Code]....
I am very desperate cause I want to modify this driver (to be able to calculate some network statistics) but I cannot load modules at all so I am stuck.
View 1 Replies
View Related
Oct 18, 2010
Milestone Overclock as of version 1.4.3 now officially supports Droid X/2 running 2.2/Froyo. Go download it for FREE from the Market.
View 49 Replies
View Related
Oct 17, 2012
A long time ago, on a 386 far, far away, some people would regularly boot Linux from DOS/Win16/Win32/Win95/etc... using a utility called loadlin. Loadlin would basically grab the system from the short and curlies, and load a target kernel into RAM, and jump directly into, which would effectively be running the kernel in practically the same way as if LILO had loaded it.
Would it be possible to actually make a Linux kernel module which did the same thing? Modules can be loaded at bootup, so it could be configured on a rooted system to load this module, which would effectively jump to a new kernel, throwing the old one out of memory.
View 4 Replies
View Related
Apr 21, 2010
I need to save these configurations into a file, and in my app I could change these configurations. In other words, I need a file to take all my config data, and in my app, I could read/write this file as I want.
I've searched document and mailing list archive, and have not found the exact solution. 1. SharedPreferences could not solve : It could only do with simple key/value pairs, my configuration data is more complex . 2. file in /assets , /res/raw could not solve: It seems that the file in these position would be read only
I've found a way, it almost solved my problem, but still not. Our code could deal with the file in /data/data/package-name/files on the target file system, this is good to me, but how could I put my file in this directory after my app has been installed? My app need to read these configurations when it starts.
My question is how could I pack my data file into my apk package, and then my app could read/write this file when it is run.
View 3 Replies
View Related
Dec 16, 2009
How i can modify an existing apk and add a file to a specified path during installation. Better...i need that installation creates a file in data/data/com.myprogram.android/myfile where com.myprogram.android is the path of program data.
View 5 Replies
View Related
Jun 22, 2012
I am attempting to use bin2elf/bin2sin. Where can I find entrypoint and load address for kernel & ramdisk of msm8255? Will any technical papers of qualcomm have that?
View 3 Replies
View Related
Feb 6, 2009
How to add more shortcuts in home screen? -- I want to do this by modifying config file rather than draging an app and dropping it on home screen. Namely, I want to know which config file contains these shortcuts.
View 6 Replies
View Related
Sep 3, 2010
I want to load an mp3 from a string path in andriod which is situated in drawable folder?
View 1 Replies
View Related
Apr 4, 2009
I use the following command to fetch all the source code of android
repo init -u git://android.git.kernel.org/platform/manifest.git repo sync
but I can not get platform/external/alsa-lib.git and platform/hardware/ alsa_sound.git
I don't know what's the rule for repo to fetch the code from http://android.git.kernel.org/
View 2 Replies
View Related
Jun 20, 2010
I'm at a loss trying to get Astro to communicate with my Windows XP home computer. I downloaded the SMB module for my MotoDroid, but am not really clear on how to configure my Windows Networking settings and what exactly needs to be entered in Astro's configuration settings. Is there a guide on how to do this on the web?.. if so, I haven't been able to find it.
View 24 Replies
View Related
Oct 3, 2013
So when updating my phone, I was all like 'I know how this show goes' and like an IDIOT I put my Samsung S2 i9100 kernel file on the bootloader spot and it boots to a black screen. I can still put it in download mode, and tried to install it the correct way but that doesn't matter.
View 4 Replies
View Related
Mar 20, 2013
I am trying to make a port of my phone to cm9.
But there's some problems
-I am unable to locate the kernel file in my stock rom
-The phone doesn't start bbot animation -It show the first logo, the second and keep stuck- I can't have a logcat.
Note : I haven't bricked it, i can start cwm.
View 4 Replies
View Related
Jan 4, 2010
This is basic kind of question, Can we load our own compiled kernel into the emulator? If there is guide or steps for that please give me those links.
View 2 Replies
View Related
Apr 1, 2009
I am launching an image picker (from the gallery) and my code crashes every single time. I tried to get some help in another post, but people quit responding to the post. Please help. When I do a debug, it tells me this (there are TONS of errors, but these looked the most important - also, I changed the "com.app.name/com.app.name.activity" for privacy reasons):
04-01 14:09:30.254: WARN/dalvikvm(719): threadid=3: thread exiting with uncaught exception (group=0x4000fe68) 04-01 14:09:30.254: ERROR/AndroidRuntime(719): Uncaught handler: thread main exiting due to uncaught exception 04-01 14:09:30.274: ERROR/AndroidRuntime(719): java.lang.RuntimeException: Failure delivering result ResultInfo {who=null, request=1, result=-1, data=Intent { data=content://media/ external/images/media/7 }} to activity {com.app.name/ com.app.name.activity}: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1 04-01 14:09:30.274: ERROR/AndroidRuntime(719): Caused by: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1
Here is the code that invokes the activity, follwed by the code that is invoked after the activity has finished:
public void takePic() { Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); photoPickerIntent.setType("image/*"); startActivityForResult(photoPickerIntent, 1);
}
View 7 Replies
View Related
Sep 1, 2009
I have create a zip file on the phone sdk. So i need to create a program to attach that zip file and mail it. For that i need the uri of that file. I used its physical path but it doesn't work. path to the file - sdcard/myfile.zip. i used it in the code in foloowing way
sendIntent.putExtra(Intent.EXTRA_STREAM,Uri.parse("file://sdcard/ myfile.zip"));
when email is sent no attachment can be seen. Is it a problem with a uri. is it a problem with the MIME type
View 3 Replies
View Related
Nov 17, 2009
I am trying to do the following.
I have an Image viewer where in the user picks an Image from within the gallery. The uri to that selected Image is available to me. Now, I want to use this URI information and send it as a file over a socket using FileInputStream. Is this a valid syntax to perform the above action?
CODE:..............
View 10 Replies
View Related
Aug 21, 2009
Is there way, from the emulator, to get the SD Card file name / path?
View 2 Replies
View Related
Jun 24, 2010
Can I parse kml file in order to display paths or points in android? Please could you help me with that?
This is kml sample code which I would like to display in android google map:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>Paths</name>
<description>Examples of paths. Note that the tessellate tag is by default
set to 0. If you want to create tessellated lines, they must be authored
(or edited) directly in KML.</description>.....................................
View 2 Replies
View Related
Jun 9, 2010
I know the absolute path of an image (say for eg, /sdcard/cats.jpg). Is there any way to the content uri for this file? Actually in my code I download an image and save it at a particular location. In order to set the image in an ImageView currently I open the file using the path, get the bytes and create a bitmap and then set the bitmap in the ImageView. This is a very slow process, instead if I could get the content uri then I could very easily use the method ImageView.setImageUri(uri)
View 1 Replies
View Related
Aug 4, 2010
I trying to do XML parsing program. I also used FileInputStream for my XML file. I placed XML file under android's assets folder,META-INF folder. That's file name is "container.XML". Here is my code parseXML,
public void parseXMLinfoBook() throws FileNotFoundException, ParserConfigurationException, SAXException{
FileInputStream in = new FileInputStream("file:///android_asset/META-INF/container.xml");
StringBuffer inLine = new StringBuffer();
InputStreamReader isr = new InputStreamReader(in);
BufferedReader inRd = new BufferedReader(isr);
SAXParserFactory spf=SAXParserFactory.newInstance();..................
View 1 Replies
View Related
Oct 12, 2010
I am trying to read a csv file from assets/file.csv, but the log keeps spitting out that it doesn't exist. Is my path correct for internal file storage? This is the class file:
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.StringTokenizer;
public class ReadList {
public String[][] mainMenuList() throws IOException {
String [][] arrayList = new String [24][24];
File file = new File("/data/data/com.xxx.view/file.csv");.....................
View 1 Replies
View Related
Jun 12, 2013
what i want is to make that some of the rom options enable/disable/Configured as i want it by default. The idea is don't have to configure things like UI settings, and things like that every time i flash de rom. In other words, change the defaults config options of the rom. Where do I have to look?
View 2 Replies
View Related
Aug 13, 2010
Is it possible to get path of database file in android at path : "/data/system/accounts.db"
In my app i want to use this database, but not getting its path. if i do hardcoding and remove the file i'm able to do it. But i want to access it as database so that i can drop the table.
code i tried:
CODE:.................
View 1 Replies
View Related
Sep 2, 2009
I need to get the absolute path of the file associated with a specific android.net.Uri instance. I know how to get the URI instance based on the file instance (with Uri.fromFile(file)) and i need the inverse action.
View 4 Replies
View Related
Jul 19, 2010
In the app I am making, I would like to take a Base64 image that is received from a server, and save it to a file for displaying later. My question is where should I store this file? It needs to be dynamic, and may be empty when the program launches. I am unsure how exactly the file system on Android works, such as how file paths look.
Ideally I would like to be able to write the data to the image file using a FileOutputStream, and then display that image somehow.
View 1 Replies
View Related