after installed sshserver ,i also installed qpython app from google play.
now i can ssh into my galaxy s4 phone,
but when i try to run command "python" ,s4 says "sh: python: not found
"
Code:
[email protected]:/storage/emulated/0/com.hipipal.qpyplus/scripts # ls
helloworld.py movieplayervista.py
[email protected]:/storage/emulated/0/com.hipipal.qpyplus/scripts # python
sh: python: not found
1|[email protected]:/storage/emulated/0/com.hipipal.qpyplus/scripts # uname -an
Linux localhost 3.4.5-447903 #1 SMP PREEMPT Mon Apr 22 17:36:53 KST 2013 armv7l GNU/Linux
Please read forum rules before posting
Questions and help issues go in Q&A
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator
Related
Dear all,
I thought I'd install an apk onto the 'phone, but I cannot find pm
Does anyone know what I forget?
Regards, F
Code:
/sdcard # /system/bin/pm install fennec-4.0b2.multi.eabi-arm.apk
ash: /system/bin/pm: not found
/sdcard # cat /system/bin/pm
# Script to start "pm" on the device, which has a very rudimentary
# shell.
#
base=/system
export CLASSPATH=$base/framework/pm.jar
exec app_process $base/bin com.android.commands.pm.Pm "[email protected]"
/sdcard # uname -a
Linux localhost 2.6.29 #2 Fri Jul 23 06:25:40 KST 2010 armv7l GNU/Linux
Android 2.1
Solved. Don't use ash shell. Used the standard sh:-
# pm install fennec-4.0b2.multi.eabi-arm.apk
pkg: fennec-4.0b2.multi.eabi-arm.apk
Success
Since the European genuine HTC ROM
Code:
# uname -a
Linux localhost 2.6.35.10-g60b2609 #1 PREEMPT Sun Apr 17 01:15:33 CST 2011 armv6l GNU/Linux
has tun support disabled according to the /proc/config.gz I got with scp from my marvel,
Code:
# CONFIG_TUN is not set
I just build one
using the wildfire S kernel source code from htcdev
and
http://marakana.com/forums/android/examples/111.html
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
but with arm toolchain from http://www.emdebian.org/crosstools.html
Code:
$ gunzip config.gz
$ cp -vp config .config
$ make xconfig -> enable tun, set CONFIG_CROSS_COMPILE="arm-linux-gnueabi-"
or use the patch in zipfile.
Code:
$ make modules_prepare
$ make modules
$ make modules_install INSTALL_MOD_PATH='../install'
Module Binary is attached, please test. Copyright is GPL >= V. 2,
md5sum
10fd212186ee8506d72d14b00aa15bf5 tun.ko.zip
a8f6e2bd1f7bab19f02371955b9eda0d tun.ko
I got problems dependency checking without building the whole kernel:
Code:
$ /sbin/depmod -ae -b ../install/modules -E ./Module.symvers 2.6.35.10
WARNING: ../install/modules/lib/modules/2.6.35.10/kernel/drivers/net/tun.ko needs unknown symbol register_netdevice
... dozens more...
$ /sbin/depmod -n /usr/local/src/htc-kernel/install/modules/lib/modules/2.6.35.10/kernel/drivers/net/tun.ko
/usr/local/src/htc-kernel/install/modules/lib/modules/2.6.35.10/kernel/drivers/net/tun.ko:
# Aliases extracted from modules themselves.
alias devname:net/tun tun
alias char-major-10-200 tun
# Soft dependencies extracted from modules themselves.
# Copy, with a .conf extension, to /etc/modprobe.d to use it with modprobe.
# Aliases for symbols, used by symbol_request().
alias symbol:tun_get_socket tun
# Device nodes to trigger on-demand module loading.
tun net/tun c10:200
No questions or Support par PM or E-Mail. Report and ask here, pls.
Or tell me an IRC channel where android devs meet.
Thanks, but I suggest preference of stability and integrity before performance at experimental state kernels
Well, I start my Android world with smaller steps.
And as a conservative engineer I wouldn't overclock.
Ok, thanks.
BTW: Noone has been chasing me with an axe yet, so I assume the tun.ko module works?
Thank you for your work.
I try to load this tun.ko on Wildfire S, but module don't load.
Code:
insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)
When I check magic number of module, here is only '2.6.35.10', but maybe right is '2.6.35.10-g60b2609'.
Please, is it possible to fix it?
(I need tun.ko because openvpn...)
Thx
Hmm, thx, I've expected the emdebian gcc is not compatible with armv6l.
You need to use the toolchain from the android sdk or the one from the CM guys site.
I've scavenged the forums for kernel images in circulation and gathered a rather considerable collection of them. Here's the whole list, also including stock kernels for comparison (starting with 1.0.1, as this is the earliest version I have access to). I don't have direct links (didn't save them as I went on my collecting spree) but I renamed the files by the poster's name and the date of their post so each file should be easy to find through search. I also removed any duplicates (reposts).
The list is not by any means complete, and updates are most welcome but hopefully it's a good starting point, and others will find this summary helpful.
Using this thread you can identify if a kernel found somewhere else is the same as one of the "well-known" ones. The best way for this is to check the MD5 sum unless the file sizes obviously differ. Along with the kernel image list, there is also a comparison of other boot-related files (aka "the missing changelog") below.
Kernel Images (uImage)
All images in circulation seem to be based on Linux-2.6.29-omap1. The format of the data is as follows: the first column is the normalized filename (post date in YYYYMMDD format followed by the poster name). The second column is the creation date as recorded in the kernel (pulled from the image with mkimage -l). The third column is the image file size in bytes, and the ultimate, fourth column is the MD5 sum of the file.
Code:
uImage-20120122-verygreen Sun Jan 22 02:21:22 2012 1871536 4df25ed3887ded06e4894f31cc591767
uImage-20120326-mi100-multitouch Tue Mar 27 00:37:51 2012 1949768 35ae84d06b2397c3b1c3a18cf8489ddc
uImage-20120328-RenateNST-recommended Wed Mar 28 20:51:09 2012 2674768 2f30e452286187b4fd39a607ee08b460
uImage-20121002-guevor Tue Oct 02 23:57:28 2012 1922624 5389693e484ae478dba1ddd599af35f8
uImage-20121006-guevor Sat Oct 06 15:36:45 2012 1928808 117c33343bad9acc68642eaa0abca6cf
uImage-20121006-guevor-usbhost Fri Oct 05 02:12:02 2012 1927204 82e967e2b46401df642b803f386cbeec
uImage-20121014-guevor-166 Sat Oct 13 16:35:31 2012 1927292 6c4534cf34c3209cac23707de9bcd858
uImage-20121118-guevor-174 Fri Nov 16 21:30:24 2012 1929356 329b229f17fe08c235d352881c8bafa5
uImage-20121205-guevor-176-usbhost Wed Dec 05 19:36:24 2012 1929652 c9f649640131f1afa0e8a5b54883464e
uImage-20130525-waynesi Sat May 25 20:11:19 2013 1824476 67b0edb6bef76d119b60bd4ab86a525b
uImage-20130703-latuk Fri Jun 28 20:30:11 2013 2630460 15780cc3e9a8593627fd1c9608b068c9
uImage-20130703-latuk-nopowercheck Fri Jun 28 20:26:23 2013 2630736 18541b6fb9f2abd84daea77f3340d129
uImage-20130721-latuk-sd10 Mon Jul 15 18:21:51 2013 2630560 f43e6d9767e0d3dab18162b78a6fb7e3
uImage-20140813-Nookie-recommended Tue Apr 24 20:31:04 2012 2674584 69688487b17f6fa1202efba87aec3558
uImage-recovery-NookMgr-0.5.0 Sat Dec 08 11:46:06 2012 1827124 9366da88d7fc22b5019423b644e0fa6d
uImage-recovery-noogie Thu May 26 12:09:29 2011 1839448 0db7b475ef4dad39af21aa6af7619383
uImage-stock-101 Fri Jul 22 10:32:07 2011 1839824 a2408888c24986ec9ee9fac28bce08a4
uImage-stock-110 Sat Oct 29 15:45:55 2011 1841908 455700f060d49977da4adcce8e5516e8
uImage-stock-112 Tue Feb 28 05:38:36 2012 1841904 e056b6734c0420f3c1798f57fe4eb761
uImage-stock-121 Sat Dec 08 06:35:10 2012 1848944 a6a8bfa18ea3e7c74e87526881b980fd
The same list sorted by kernel build date:
Code:
20110526 uImage-recovery-noogie 1839448 0db7b475ef4dad39af21aa6af7619383
20110722 uImage-stock-101 1839824 a2408888c24986ec9ee9fac28bce08a4
20111029 uImage-stock-110 1841908 455700f060d49977da4adcce8e5516e8
20120122 uImage-20120122-verygreen 1871536 4df25ed3887ded06e4894f31cc591767
20120228 uImage-stock-112 1841904 e056b6734c0420f3c1798f57fe4eb761
20120327 uImage-20120326-mi100-multitouch 1949768 35ae84d06b2397c3b1c3a18cf8489ddc
20120328 uImage-20120328-RenateNST-recommended 2674768 2f30e452286187b4fd39a607ee08b460
20120424 uImage-20140813-Nookie-recommended 2674584 69688487b17f6fa1202efba87aec3558
20121002 uImage-20121002-guevor 1922624 5389693e484ae478dba1ddd599af35f8
20121005 uImage-20121006-guevor-usbhost 1927204 82e967e2b46401df642b803f386cbeec
20121006 uImage-20121006-guevor 1928808 117c33343bad9acc68642eaa0abca6cf
20121013 uImage-20121014-guevor-166 1927292 6c4534cf34c3209cac23707de9bcd858
20121116 uImage-20121118-guevor-174 1929356 329b229f17fe08c235d352881c8bafa5
20121205 uImage-20121205-guevor-176-usbhost 1929652 c9f649640131f1afa0e8a5b54883464e
20121208 uImage-recovery-NookMgr-0.5.0 1827124 9366da88d7fc22b5019423b644e0fa6d
20121208 uImage-stock-121 1848944 a6a8bfa18ea3e7c74e87526881b980fd
20130525 uImage-20130525-waynesi 1824476 67b0edb6bef76d119b60bd4ab86a525b
20130628 uImage-20130703-latuk 2630460 15780cc3e9a8593627fd1c9608b068c9
20130628 uImage-20130703-latuk-nopowercheck 2630736 18541b6fb9f2abd84daea77f3340d129
20130715 uImage-20130721-latuk-sd10 2630560 f43e6d9767e0d3dab18162b78a6fb7e3
RAM Disk Images (uRamdisk)
The missing changelog:
uRamdisk-stock-101 (Size: 185256, MD5: 054897f36c588b714f60bf41ebf7cbdf)
Initial version I have access to
uRamdisk-stock-110 (Size: 185298, MD5: ef473d179db2bf72bf6bd4cd3fd01dca)
/init.rc: Added:
Code:
# change permissions for calibration
chmod 0666 /sys/devices/platform/i2c_omap.2/i2c-adapter/i2c-2/2-0050/forcecal
uRamdisk-stock-112 (Size: 185298, MD5: 5f3c7e2ffffd870454614a94ac4e33e5)
No changes
uRamdisk-stock-121 (Size: 185650, MD5: 6c2db57a6b9426ce10544fd9c8dc6f40)
/init
/init.rc: Added:
Code:
setprop_fromtoken ro.product.model /rom/devconf/ModelNumber
setprop_fromtoken ro.serialno /rom/devconf/DeviceID
Code:
chown system system /sys/class/leds/lcd-backlight/dim_brightness
chown system system /sys/class/leds/lcd-backlight2/dim_brightness
chown system system /sys/devices/platform/i2c_omap.2/i2c-adapter/i2c-2/2-0040/dim_start
Code:
# Set default dim speed to 500ms
write /sys/devices/platform/i2c_omap.2/i2c-adapter/i2c-2/2-0040/dim_time 500
Code:
[STRIKE][COLOR="Red"]on property:sys.settings_system_version=3[/COLOR][/STRIKE]
[B][COLOR="Green"]on property:dev.bootcomplete=1[/COLOR][/B]
start bootcnt
Code:
service copyassets /system/bin/copyassets.sh
user root
oneshot
Non-Stock Changes to RAM Disk Images
Excluding the obvious meddling with ADB.
/init.rc: Governor change for uImage-20121118-guevor-174:
Code:
# Enabling DVFS with conservative governor
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor [STRIKE][I][COLOR="Red"]conservative[/COLOR][/I][/STRIKE][B][COLOR="Green"]smartassV2[/COLOR][/B]
/init.rc: Adding -f to omap-edpd:
Code:
service omap-edpd /system/bin/omap-edpd.elf [B][COLOR="Green"]-f[/COLOR][/B] -n --timeout=2 -pV220 --fbdev=/dev/graphics/fb0 -s /system/lib/dsp/subframeip_snode_dsp.dll64P -w /rom/devconf/EpdWaveform,/system/etc/default_waveform.bin
/system/bin/omap-edpd.elf --help said:
--fastupdate (-f) : fast update algorithm ON
Click to expand...
Click to collapse
Init Binaries inside the RAM Disk (uRamdisk:/init)
init-101-110-112 (Size: 127964, MD5: 738a02210409fd9e31837053cd3c9b29)
Stock init
init-121 (Size: 128000, MD5: 72e5c0d66e8fcb070fb67a004045b012)
Stock init updated for 1.2.1
init-20120122-verygreen (Size: 107344, MD5: 1243d422e4f0532ffdf12f21b6632902)
Alternative init that allows the use of USB keyboard
Recovery Kernel Images (uRecImg)
The recovery kernel is always the same as the main one, unless you use a custom recovery. Among custom recoveries, Clockwork RC2 uses uImage-stock-110. For Noogie and NookManager 0.5.0 it seems to be something else than the other images I discovered (see above).
Recovery RAM Disk Images (uRecRam)
For obvious reasons I am limiting myself to stock images here. The missing changelog:
uRecRam-stock-101 (Size: 1508577, MD5: ce1d033d97953051fc59012a4335bc96)
Initial version I have access to
uRecRam-stock-110 (Size: 1514136, MD5: 16379c824c1a2bd823cba9690d0a3edc)
/etc/dsp/baseimage.dof
/etc/dsp/subframeip_snode_dsp.dll64P
/sbin/omap-edpd.elf
/sbin/recovery
uRecRam-stock-112 (Size: 1514134, MD5: 530b055737a01694dd1ce30bfae3531b)
No changes
uRecRam-stock-121 (Size: 1517774, MD5: 7b6af9319f5543cdab853672f3a70dff)
/etc/dsp/subframeip_snode_dsp.dll64P (again)
/res/images/icon_installing.png
/res/images/icon_installing_factory.png
/res/images/icon_installing_rom.png
/sbin/recovery (again)
/build.prop: Added:
Code:
persist.nook.cust.region=US
/init (as in the main image, see above)
Wrap-up
I started collecting this information in particular to reach some conclusion which kernel would be best for my purposes [for the record: (i) looking to squeeze as much as possible from the display with NoRefresh or FastRefresh, (ii) performance optimizations if stable and without impact on battery life, (iii) no need for USB host but OK if not a drain on batery, (iv) GlowLight support not a factor as my device doesn't have one, (v) SDXC Class 10 support also not a factor]. At this point I don't see a strictly dominating choice. I'll edit the post when or if this changes.
Hi!
Has anyone managed to compile a kernel module for the SM-T315? I am having some problems...
I have downloaded the Samsung kernel source (SM-T315-JB_Opensource) and the toolchain they recommend (arm-eabi-4.4.3). I have edited the Makefile and have set the correct EXTRAVERSION (-2453351). I run
make arch=arm tab3_lte8_01_defconfig
make menuconfig
make modules
The selected modules compile without error but I can't insmod them. I get the "no symbol version for module_layout" message in dmesg.
# strings drivers/usb/serial/ftdi_sio.ko | grep vermagic
vermagic=3.0.31-2453351 SMP preempt mod_unload modversions ARMv7 p2v8
# uname -a
Linux localhost 3.0.31-2453351 #1 SMP PREEMPT Mon Jan 20 17:14:51 KST 2014 armv7l GNU/Linux
Any ideas?
So, i got nethunter for my Nexus 5x Oreo 8.1 all good, i bought an TL-WN722N and I can't install the drivers RTL8188EU because when I type 'make' it's say:
/lib/modules/3.10.73-Re4son-3.5/build: No such file or directory
And I googled about it, and i found that i need to install linux-headers, but when i type 'apt install linux-headers-$(uname -r) it's say:
E:Unable to locate package
Anyone can help me?
My uname -a:
Linux kali 3.10.73-Re4son-3.5 #1 SMP PREEMPT Fri Apr 10 12:20:30 AEST 2020 aarch64 GNU/Linux
Up?