Hey guys, i need some help with something.
I have a chinese device ( SLIDE SP 4013)
Here's the info:
BB chip: MT6580
MS Board: t53_A_X40
Build Time: 2016/10/25 13:10:17 CST
Kernel Ver: 3.10.72 ([email protected]) (gcc version: 4.8) (GCC)
#1 SMP PREEMPT tue Oct 25 13:22:37 CST 2016
Android Ver: 5.1
SWver: ALPS.L1.MP6 V2_ALONG6580.WE L_P18
Custom Build Verno: Unknown
Modem Ver: MOLY.WR8.W1449.MD.WG.MP.V6.P10 2016/08/10 01:43
Bar Code: 10
I've tried to unlock bootloader via fastboot ( fastboot oem unlock), but the bootloader is locked.
I Need to root this phone and instal CWM recovery as well. (bootloader locked)
Screen is brocken, so touch-screen doesn't work but it displays.
Any idea about it?
Regards
Related
Hi,
I need vpn connection to cisco vpn server so i have tried to install corresponding soft to my galaxy tab. Finally I am stopped with following problem:
I try to follow this: http://forum.xda-developers.com/showthread.php?t=1013513
But when I input
"insmod tun.ko" I receives:
tun: version magic '2.6.32.9 SMP preempt mod_unload modversions ARMv7 ' should be '2.6.32.9 preempt mod_unload ARMv7 '
My kernel version is 2.6.32.9 ([email protected] #1)
Build number is FROYO.XWKB8
Microcode version is 2.2.1
Where can I find correct version of tun.ko?
Thanks.
Sorry for bad English
Tonight I wanted to get more detailed versions of all the kernels HTC has released for our phone. I did not want to flash every last boot.img to the device, I also believe old kernels will not functions with new ROM's etc complicating things further.
You may also find yourself with boot.img files which you have no clue of what they are.
So here is my "How to read kernel versions without needing to flash/boot them on a phone" based on things I found with a good Google session.
1)You need to split the boot.img into kernel and ramdisk.
I found jcase posted a nice split script for signed boot.img here:
http://forum.xda-developers.com/showthread.php?t=1008619
Also for more Windows friendly michfood posted a great script/app package here:
http://forum.xda-developers.com/showthread.php?t=2036528
For unsigned boot.img I think you can use scripts like this but I have not tested:
http://linuxclues.blogspot.com.au/2012/11/split-bootimg-python-android.html
2)Lets assume we are going the Linux route with a signed boot.img
Download jcase script and extract to a folder
3)Place your desired boot.img to read next to the jcase script.
4)./split_bootimg.pl boot.img
This will split the boot.img to boot.img-kernel and boot.img-ramdisk. boot.img-kernel still itself is multiple files and we need to further break that up.
5)od -t x1 -A d ./boot.img-kernel | grep "1f 8b 08"
This should list where it finds the gzip magic word
6)dd bs=1 skip=16253 if=./boot.img-kernel | zcat > split_kernel
Using the offset(eg 16253 for 3.0.8 or 16419 for 3.4.10 kernels) found in step 5, if multiple are listed it is likely the first.
7)strings ./split_kernel | grep gcc
Observe the listed strings, you should be able to find the version easily.
Eg:
Linux version 3.4.10-gfb67a50 ([email protected]) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Mar 26 17:34:42 CST 2013
If you are heading down the Windows route with michfood's app package which includes 7zip and Swiss File Knife amongst other apps:
2)STD_unpack.bat boot.img
3)bin\sfk166.exe hexfind ./boot/kernel -bin /1F8B08/ -case
Find "hit" for magic word. eg 0x4023 or 0x3f7d
4)bin\sfk166.exe dec 4023
Convert hex to dec. eg 4023 to 16419 or 3f7d to 16253
5)bin\sfk166.exe partcopy ./boot/kernel -fromto 16419 5699584 split_kernel.gz -yes
Where 5699584 is simply the length of the file, split the kernel. ( filesize: bin\sfk166.exe list -size ./boot/kernel )
6)bin\7z.exe -tgzip x -y split_kernel.gz
Decompress the kernel.
7)bin\sfk166.exe find split_kernel gcc
Observe the listed strings, you should be able to find the version easily.
Eg:
Linux version 3.4.10-gfb67a50 ([email protected]) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #1 SMP PREEMPT Tue Mar 26 17:34:42 CST 2013
Platform: LG Qualcomm
Selected port: COM18
Selected model: D820
Reading info...
Initializing ADB...OK
Waiting for phone...OK
Model ID: Nexus 5
Firmware version:
Kernel version: 3.4.0-g9eb14ba ([email protected]) (gcc version 4.7 (GCC) ) #3
SMP PREEMPT Tue Nov 26 12:04:50 CST 201
Android version: 4.4.4
Hardware: Qualcomm MSM 8974 HAMMERHEAD (Flattened Device Tree)
ARMv7 Processor rev 0 (v7l)
Performed by 2.4.6 Software version.
--------------------------------------------------------------------------------
Checking data...OK
Platform: LG Qualcomm
Selected port: COM18
Selected model: D820
Reading info...
Initializing ADB...OK
Waiting for phone...OK
Model ID: Nexus 5
Firmware version:
Kernel version: 3.4.0-g9eb14ba ([email protected]) (gcc version 4.7 (GCC) ) #3
SMP PREEMPT Tue Nov 26 12:04:50 CST 201
Android version: 4.4.4
Hardware: Qualcomm MSM 8974 HAMMERHEAD (Flattened Device Tree)
ARMv7 Processor rev 0 (v7l)
Switching to Fastboot mode...OK
Unlocking Bootloader...
Bootloader is unlocked.
Writing Bootloader...OK
Please, wait while the phone will turn on and press "Ok" button.
Trying to enable Diagnostics ports...
Initializing ADB...OK
Waiting for phone...OK
Checking root access...
Phone is already rooted.
Diagnostics ports are enbled!
Switching to Serial Port...
Failed!
Performed by 2.4.6 Software version.
Any Solution ?
I'm not sure what the problem would be since the software and box should force flash the phone, assuming the phone is not physically damaged.
I have been repaired, But what is the Solution Of " Mobile network Not Available ' And ' No Signal " ?
Was the phone dropped? Possible loose internal connection? Phone is showing the correct imei?
Yes It's Have A Correct Imei , I'm not dropped the phone ...
is The problem Of Hardware ?
-----SYSTEM INFORMATION-----
Build: lineage_a5y17lte-userdebug 7.1.2 NJH47F 6130578a64 test-keys
CM version: 14.1-20180213-UNOFFICIAL-a5y17lte
Build fingerprint: 'samsung/a5y17ltexx/a5y17lte:7.0/NRD90M/A520FXXS2AQF2:user/release-keys'
Bootloader: A520FXXS2AQF2
Radio: A520FXXS2AQF2
Network: MOBITEL
Kernel: Linux version 3.18.14-gacc44c75f95 ([email protected]) (gcc version 4.9 20150123 (prerelease) (GCC) ) #1 SMP PREEMPT Wed Feb 14 00:28:08 CET 2018
Command line: console=ram loglevel=4 sec_debug.level=0 sec_watchdog.sec_pet=5 DynSysLog=0 androidboot.debug_level=0x4f4c ess_setup=0x46000000 [email protected] [email protected] charging_mode=0x30 s3cfb.bootloaderfb=0x67000000 lcdtype=4259858 consoleblank=0 vmalloc=384m sec_debug.reset_reason=7 ehci_hcd.park=3 oops=panic pmic_info=3 ccic_info=1 cordon=277790bc1ea6f80f42cb0c7577a5e3b3 connie=SM-A520F_OPEN_EUR_dcf53c782347f3688fd08e45ccf1e757 fg_reset=0 androidboot.emmc_checksum=3 androidboot.boot_salescode= androidboot.odin_download=1 androidboot.bootloader=A520FXXS2AQF2 androidboot.selinux=enforcing androidboot.security_mode=1526595584 androidboot.ucs_mode=0 androidboot.hw_rev=8 androidboot.hardware=samsungexynos7880 androidboot.warranty_bit=1 androidboot.hmac_mismatch=0 androidboot.sec_atd.tty=/dev/ttySAC2 androidboot.serialno=5200ed5afeed64c3 snd_soc_core.pmdown_time=1000 androidboot.em.did=07740e7bccf8 androidboot.em.model=SM-A520F androidboot.em.status=0x0 reserve-fimc=0 firmware_class.path=/vendor/firmware factory_mode=0
Bugreport format version: 1.0
Dumpstate info: id=1 pid=7364
-----------------------------------------------------------------------------------------
My volume is way too loud after I did a backup onto my external sdcard.
When I first got this error, I formatted my device and flashed LineageOS again and it fixed the problem. Now i've been using my phone for a while and I don't want to lose all my data and stuff again.
I don't even know where should I start, so tell me if you need more information about bug.
I know about mixer_paths.xml but there is no label for speakers or something like it should be.
Thanks for all help!
p.s. sorry for bad english
Thread closed as per OP request
Hi, I spent my evening (and night) trying to load this driver module into a cheap chinese tablet with Lollipop:
Code:
Linux version 3.4.39 ([email protected]) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #651 SMP PREEMPT Fri May 5 15:47:15 CST 2017
I tried to compile it on my own on Debian, but (even if I'm a developer) I've no experience in kernels, so the best I got is an .o file instead of a .ko file, and I'm not sure if I'm using the right kernel sources/toolchain/compiler
I also tried to download a precompiled .ko for this kernel (3.4.39) and to change the magic number with an hex editor, but with no luck:
Code:
insmod: init_module '/vendor/modules/hid-dr.ko' failed (Invalid argument)
So before going to bed I'm asking here as my last resource. I'm open to any help and suggestion :good: