Hello,
i'm running naosp 6.0 on a Xperia S, i'm trying to get lsmod output from terminal emulator or dab shell but always get:
"lsmod: No file /proc/modules: No such file or directory"
I don't know which modules must i have installed.
I'm trying to run bemoan, which requires to get lsmod output when installing its firmware and tools, i think i probably need at least wifi module to be in that file, but i don't know how and why i don't have any kernel module loaded or if its normal in android.
Can i install the module with modprobe and how can i do it?
Can anyone help me with this issue?
E-Dark said:
Hello,
i'm running naosp 6.0 on a Xperia S, i'm trying to get lsmod output from terminal emulator or dab shell but always get:
"lsmod: No file /proc/modules: No such file or directory"
I don't know which modules must i have installed.
I'm trying to run bemoan, which requires to get lsmod output when installing its firmware and tools, i think i probably need at least wifi module to be in that file, but i don't know how and why i don't have any kernel module loaded or if its normal in android.
Can i install the module with modprobe and how can i do it?
Can anyone help me with this issue?
Click to expand...
Click to collapse
It's because kernel is compiled without support for LKMs. U need to set CONFIG_MODULES=y in the defconfig and then recompile/reflash.
Related
I just extracted the Gentoo Stage3 package for ARM7A and I am playing around trying to get the binaries to run either through terminal emulator or adb shell on my Galaxy Tab running Gingerbread.
I am FULLY aware of how PATH works and all of the normal reasons you would get a "not found" error when trying to run a command, but this one has me stumped.
I tried setting my path to include a subdirectory of /system/bin as follows:
PATH=/system/bin/gentoo:$PATH and gentoo is where I put my gentoo binaries.
When I do which (command) it says:
/system/bin/gentoo/(command)
When I try to run it, it runs the same command from one of the other directories such as /system/xbin (from busybox) instead.
I tried renaming one of the binaries so it has a unique name mv ps wtf I can still do which wtf and get /system/bin/gentoo/wtf
THEN when I try to run it I get wtf: not found.
Obviously the file is there. Even if I go directly to /system/bin/gentoo and do ./wtf I get wtf: not found. If I copy one of the Android system binaries to /system/bin/gentoo/wtf it will run just fine.
Why would I get a not found error for a binary that is obviously there??
I would expect a different error if it wasn't an acceptable binary, so I am lost.
Any ideas?
rustyshack3 said:
I just extracted the Gentoo Stage3 package for ARM7A and I am playing around trying to get the binaries to run either through terminal emulator or adb shell on my Galaxy Tab running Gingerbread.
I am FULLY aware of how PATH works and all of the normal reasons you would get a "not found" error when trying to run a command, but this one has me stumped.
I tried setting my path to include a subdirectory of /system/bin as follows:
PATH=/system/bin/gentoo:$PATH and gentoo is where I put my gentoo binaries.
When I do which (command) it says:
/system/bin/gentoo/(command)
When I try to run it, it runs the same command from one of the other directories such as /system/xbin (from busybox) instead.
I tried renaming one of the binaries so it has a unique name mv ps wtf I can still do which wtf and get /system/bin/gentoo/wtf
THEN when I try to run it I get wtf: not found.
Obviously the file is there. Even if I go directly to /system/bin/gentoo and do ./wtf I get wtf: not found. If I copy one of the Android system binaries to /system/bin/gentoo/wtf it will run just fine.
Why would I get a not found error for a binary that is obviously there??
I would expect a different error if it wasn't an acceptable binary, so I am lost.
Any ideas?
Click to expand...
Click to collapse
Just a guess, but I'd bet that the linker path for the binary is having trouble finding a library.
Hi, so I'm trying to use an xbox 360 for pc controller. I have a galaxy tab 10.1 running stock 3.1 (w/ touchwiz). It is rooted and I flashed pershoot's kernel (http://forum.xda-developers.com/showthread.php?t=1138167). It says it supports 360 controllers, so I'm not sure what the problem is. Do i have to flash a custom rom?
When I attach the usb receiver to the tab through the usb adapter, it lights up, stays lit up, and it seems like the controller can even connect to it, but the controller doesn't work at all. Nothing shows up in the input settings area either.
Thanks for any help
edit:
In case anyone finds this through searching and is having a similar problem, reddit user misfeasor answered the question for me, here is his response/solution:
"It does support it, unlike the stock kernel, but the modules (or drivers in other words) aren't built-in to the kernel but have to be installed so to speak after every reboot. Some roms have init.d support which would allow you to create a script that can run the commands at startup.
I believe the two modules you would need are ff-memless.ko and xpad.ko and both are in the lib-2636.4.tar.gz at http://droidbasement.com/db-blog/. You need to put these files somewhere on your tablet storage. Then, to insmod the modules run these commands in a terminal app or adb shell:
insmod <path-to-file>/ff-memless.ko
insmod <path-to-file>/xpad.ko
Finally, plug in your controller receiver and it should hopefully work.
Edit: You might need to run "su" before the commands above depending on if you are executing commands as root by default or not."
Hi,
I have installed ubuntu 10.10 port to my sgs 2. I have tried to install ad launch cisco packet tracer but i couldn't ran it. I could extract it and install from terminal the installer made an executable text file but i cannot run it.
please help!
Wow, this is an advanced one.
As you said, you're getting a shell script with the binary payload included. Does it have execution permissions ? does it use the correct shell ? is the script located on a partition without execute rights ? be more specific please.
VAXXi said:
Wow, this is an advanced one.
As you said, you're getting a shell script with the binary payload included. Does it have execution permissions ? does it use the correct shell ? is the script located on a partition without execute rights ? be more specific please.
Click to expand...
Click to collapse
I downloaded this one: Packet Tracer v5.3.3 Application + Tutorial - Generic Ubuntu
This is the complete Packet Tracer program including tutorials for generic Ubuntu
From: cisco.netacad.net/cnams/content/templates/LibraryHome.jsp?#/resource/lcms/cnams_site/english/generic_site_areas/library/course_catalog/PTSoftwareDownloads_Students.html
It is a tar.gz file. I extracted it from the terminal and succesfully ran the install file. I had to read the licence first then it started to install. I got a message "packet tracer succesfully installed" but i don't know how do i run it. I found a file in usr/local/bin/ named packettracer. I set the permissions to able to run it. When i tried to run or run from terminal options nothing happend
Sent from my GT-I9100 using xda premium
Well, if I remember correctly the Ubuntu port is heavily stripped down and lots of things are disabled. You'd be better off installing a full Ubuntu on your PC, sorry.
Thank you. I just wanted to flashing with my phone My pc runs win7
Sent from my GT-I9100 using xda premium
Any idea?
wanam v10 siyah v3b7 ttalk
Bump
wanam v10.6 siyah v3rc2 ttalk
Hey,
ive got a moto g and its my first android and its rooted and bootrom is unlocked, and ive installed terminal emulator, but i cant find out how to install python so that it works in terminal eit su, cd , ls ... commands?!?
ive installed qpython app from playstore but you cant do commands like su, cd .....
ive tried ping in terminal rmulator and it wotks so you can enter internet over terminal emulator, so i tried apt-get install python but it says no apt-get command foundor something like this, so i hope someone can trll me how to install python on android with working commands( su ...) so that it can enter filesystem directorys like /sdcard....
please help
Hi,
You don't need python to run commands like su and cd! All you need is a nifty binary called 'BusyBox'. Since you mentioned apt-get, I assume you come from Ubuntu? Well I'm sure you're familiar with BusyBox. Look for BusyBox installers in the Play Store.
Once you've installed Busybox, enter this command in the terminal emulator to let BusyBox symlink its applets:
(Are you sure you're rooted? Running su successfully is a must.)
Code:
su
busybox --install /system/xbin
If all goes well, then you should be able to use Unix utilities like cd and ls.
Sent from my GT-I8730 using Tapatalk
aureljared said:
Hi,
You don't need python to run commands like su and cd! All you need is a nifty binary called 'BusyBox'. Since you mentioned apt-get, I assume you come from Ubuntu? Well I'm sure you're familiar with BusyBox. Look for BusyBox installers in the Play Store.
Once you've installed Busybox, enter this command in the terminal emulator to let BusyBox symlink its applets:
(Are you sure you're rooted? Running su successfully is a must.)
Code:
su
busybox --install /system/xbin
If all goes well, then you should be able to use Unix utilities like cd and ls.
Sent from my GT-I8730 using Tapatalk
Click to expand...
Click to collapse
Thank you for answering me,
i tell you whats my problem, i need to run a python file, for example: python dummy.py 12345
then it createsa txt file in the path where i am!
that what it should do, but on my android (busybox is installed and its rooted and bootrom unlocked) i ve installed terminal emulator from play store and su and cd and ls command works, but i cant run python files, it says python not found even when i installed pythonforandroid, so i try to apt-get install python but it says apt-get not found, then ive installed qpython from play store, but it doesnt do what i want too !
so my question is, is there any way to tun my python file that creates a new file (its like a passwordgenerator) ???
Basically, you don't need superuser to run simple Python or to develop using it.
If you are looking for Jupyter type IDE on android, visit the following link here.
It will help you install Python and run ipython notebooks without hassle.
I have compiled a kernel from Floppy kernel source, to make it contain an ATH9K driver for TP-Link usb wifi card TL-WN722N, but when I plug it in on OTG usb and execute command in Termux to list available devices, it's not there, and the wifi network card's LED is not on. I'm not sure if it's the kernel driver is not working or it's app's level issue, Is there a way to check if the driver is successfully installed? Thanks!
The device is a Xiaomi MI 5, running official miui dev ver of Android 8, kernel is compiled from Floppy Kernel for miui Oreo
The app I'm trying to run is airmon-ng via Termux, device is rooted by Magisk, and bootlock is unlocked.
kdlsw said:
I have compiled a kernel from Floppy kernel source, to make it contain an ATH9K driver for TP-Link usb wifi card TL-WN722N, but when I plug it in on OTG usb and execute command in Termux to list available devices, it's not there, and the wifi network card's LED is not on. I'm not sure if it's the kernel driver is not working or it's app's level issue, Is there a way to check if the driver is successfully installed? Thanks!
The device is a Xiaomi MI 5, running official miui dev ver of Android 8, kernel is compiled from Floppy Kernel for miui Oreo
The app I'm trying to run is airmon-ng via Termux, device is rooted by Magisk, and bootlock is unlocked.
Click to expand...
Click to collapse
IMHO to get to know all the drivers, you need to go through the /sys directory.
jwoegerbauer said:
IMHO to get to know all the drivers, you need to go through the /sys directory.
Click to expand...
Click to collapse
Thanks, that really helped, I checked /sys/module, and the driver (ath9k_htc) is there, then I checked lsmod, there is only one item:
Code:
gemini:/sys/module # lsmod
Module Size Used by
wlan 5801121 0
I think this is the one I added to the kernel, but is it a bit weird that there is no other loaded module?
And the usb wifi card is still not working, even I can see the device is showing in lsusb -t, the driver is not loading to the device.
I'm really out of ideas, can anyone please give some suggestions? Thanks!
@kdlsw
Loaded and hence currently running modules ( drivers ) are to be found in file /proc/modules
jwoegerbauer said:
@kdlsw
Loaded and hence currently running modules ( drivers ) are to be found in file /proc/modules
Click to expand...
Click to collapse
Here is what I see in there:
Code:
wlan 5801121 0 - Live 0x00000000000000 (O)
So it's definitely there, loaded. But the wifi card is still not working, I really don't have too much idea of how to proceed from this point.
The function I have selected from make menuconfig when compile kernel was called ATH9K and ATH9K_HTC, here it's wlan, is there something wrong? I checked the same wifi card plug into a desktop Debian, there is no module named wlan, the driver showed in lsusb is ath9k_htc.
And the offset of this being all zero seems not normal?
And it's the only one as not in tree external module, maybe external modules don't work? Should I try to compile it as in the tree?
Can you please point me some direction? What should I try from this point? Thanks
I finally got it working, what I did is to bind the driver to the usb device, and download a firmware for the device and put it in firmware' corresponding directory, I noticed it because there was an error message of loading firmware failed in dmesg when usb device is plugged. THANKS!!