Here is the steps that how I built the tun.ko for my Incredible S(first of all, you need to root your IS)
My IS kernel version: 2.6.35.9-g529446e
Environment: Ubuntu 11.10 Desktop runing on Virtual Box
Kernel source code: vivo-2.6.35-GB_MR.tar.bz2
Dowloaded in htcdev website,
(I tried vivo-2.6.35-g89aa373,it was sucessful to compile and load tun.ko,but my phone reboot automatic once I ran VPNC)
Compiler: arm-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
Downloaded from sourcery.mentor.com/sgpp/lite/arm/portal/[email protected]=lite
(I tried Android NDK,android-ndk-r6b和android-ndk-r5c, it is fine to compile tun.ko,but get "tun: unknown relocation: 3" error when I ran insmod tun.ko)
1. In Ubuntu terminal,I created folder 710e under home directory, uncompress kernel source code and compiler,
tar zvxf vivo-2.6.35-GB_MR.tar.bz2
tar jvxf arm-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
the files were put in vivo_GB_MR and arm-2011.03 by default;
2. Get config.gz file:I did this in my Windows 7
Install HTC Sync on Windows, connect IS to PC by USB cable, run below in command line,
adb pull /proc/config.gz
3. transfer config.gz to ~/710/vivo_GB_MR/ in Ubuntu(the rest commands were run in this path)
gunzip config.gz
mv config .config
edit .config, change or add "CONFIG_TUN=m" in .config
4. Modify Makefile
edit Makefile, change "EXTRAVERSION=.9-g529446e" in Makefile
5. run below commands,
export PATH=$PATH:~/710e/arm-2011.03/bin
export ARCH=arm
export CROSS_COMPILE=arm-none-linux-gnueabi-
make modules
Then I got tun.ko under ~/710/vivo_GB_MR/drivers/net/, I ran below command to check and confirm if the tun.ko version is correct,
strings drivers/net/tun.ko | grep 2.6.35
My output was: vermagic=2.6.35.9-g529446e preempt mod_unload ARMv7
6. copy tun.ko to MicroSD card,run below commands in adb on Windows or terminal emulator on phone,
su
mount -o remount,rw /dev/block/mtdblock4 /system
cp /sdcard/tun.ko /system/lib/modules/tun.ko
mount -o remount,ro /dev/block/mtdblock4 /system
insmod /system/lib/modules/tun.ko
tun.ko should be loaded if everything is fine, you can run lsmod check; and you can run dmesg | grep tun to check the error mesage if it goes wrong.
Hi, thanks for your wonderful Guide, i've tried to compile a tun.ko for my htc Flyer under ubuntu 12.04 booted from a Live-USB-Stick, but it doesn't work. I get this output on Step 5:
Code:
[email protected]:/media/Daten/ubuntu/flyer-2.6.35-crc$ export PATH=$PATH:/media/Daten/ubuntu/arm-2011.03/bin
[email protected]:/media/Daten/ubuntu/flyer-2.6.35-crc$ export ARCH=arm
[email protected]:/media/Daten/ubuntu/flyer-2.6.35-crc$ export CROSS_COMPILE=arm-none-linux-gnueabi-
[email protected]:/media/Daten/ubuntu/flyer-2.6.35-crc$ make modules
make: execvp: arm-none-linux-gnueabi-gcc: Keine Berechtigung
HOSTCC scripts/basic/fixdep
/bin/sh: 1: scripts/basic/fixdep: Permission denied
make[2]: *** [scripts/basic/fixdep] Fehler 126
make[1]: *** [scripts_basic] Fehler 2
The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.
make: *** [modules] Fehler 1
[email protected]:/media/Daten/ubuntu/flyer-2.6.35-crc$
I've also tried the Compiler-Version arm-2011.09, but same result. I think I have to edit antoher variable in the .config-File, but which?
I doubt it is related to the Ubuntu booted from Live-USB-Stick, maybe you should install the Ubuntu to your harddisk and have another try.
Ok, another try, another fail.
I've installed ubuntu on my Laptop, and i get a bit further: Another output.
Code:
[email protected]:~/Flyer/flyer-2.6.35-crc$ make modules
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In Funktion »conf_sym«:
scripts/kconfig/conf.c:159:6: Warnung: Variable »type« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
scripts/kconfig/conf.c: In Funktion »conf_choice«:
scripts/kconfig/conf.c:231:6: Warnung: Variable »type« gesetzt, aber nicht verwendet [-Wunused-but-set-variable]
scripts/kconfig/conf.c:307:9: Warnung: Der Rückgabewert von »fgets«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
scripts/kconfig/conf.c: In Funktion »conf_askvalue«:
scripts/kconfig/conf.c:105:8: Warnung: Der Rückgabewert von »fgets«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert [-Wunused-result]
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/arm/Kconfig
.config:1110:warning: override: reassigning to symbol TUN
#
# configuration written to .config
#
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
HOSTCC scripts/bin2c
CC [M] drivers/net/wireless/bcm4329_204/dhd_linux.o
drivers/net/wireless/bcm4329_204/dhd_linux.c: In function 'dhd_rx_frame':
drivers/net/wireless/bcm4329_204/dhd_linux.c:1082:24: error: variable 'save_pktbuf' set but not used [-Werror=unused-but-set-variable]
drivers/net/wireless/bcm4329_204/dhd_linux.c: In function 'dhd_os_wd_timer':
drivers/net/wireless/bcm4329_204/dhd_linux.c:2555:14: error: variable 'save_dhd_watchdog_ms' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[4]: *** [drivers/net/wireless/bcm4329_204/dhd_linux.o] Fehler 1
make[3]: *** [drivers/net/wireless/bcm4329_204] Fehler 2
make[2]: *** [drivers/net/wireless] Fehler 2
make[1]: *** [drivers/net] Fehler 2
make: *** [drivers] Fehler 2
But i've seen that the source of the Flyer has the ending ".tar.gz" instead of ".tar.bz2", so I tried to extract it via the commands
Code:
gunzip
tar xvf
The output isn't longer in the Terminal, but it generates a tun.o-File. The pasted output generates nothing, there is just the tun.c-File.
this is how i did to fix md5 missmatch due to restore from feamod recovery
-firstly make a folder clockworkmod/backup/2011-12-16.12.56.43 IN INTERNAL SDCARD
open terminal emulator
type su
#cd / sdcard/clockworkmod/backup/2011-12-16.12.56.43
#rm nandroid .md5 (if u get this rm failed for nandroid. read-only file system just leave it)
#md5sum *img > nandroid.md5
reboot to recovery
restore from internal
Good idea to post that (used it too with some backups). If you can't get into your device (bootloop etc) you should be able to do it on your pc. I tried doing it with md5sum (see attached) but it then adds an extra x0D (carriage return)... so if someone knows how to do this, please add to this topic
Regards,
Nika.
Thnx. can be very usefull
I have ca. 3 archives where I get md5 mismatch only one is restorable. Only for understanding do I only create an empty folder and make this or must I use the backup folder from my backup ?
Thx in advance
Dontron
DonTron said:
I have ca. 3 archives where I get md5 mismatch only one is restorable. Only for understanding do I only create an empty folder and make this or must I use the backup folder from my backup ?
Thx in advance
Dontron
Click to expand...
Click to collapse
Please explain what you mean. You have 3 backups that give you this error? Then you should go to each of those backup-folders and run "md5sum *img > nandroid.md5" (without the quotes off course). This will regenerate the md5 file and then the restore should work if the backup files are intact (I've had some backups with 0 kb files too)
..I tried and get "bad substitution"
Dontron
Edit: I renamed the folders and now I can use the command..give a try.
Gesendet von meinem GT-I9001 mit Tapatalk
..thx now it works like a charm and I can restore my old working rom.
Dontron
Gesendet von meinem GT-I9001 mit Tapatalk
You want to do it automatically through ADB? Here's a script:
Code:
@echo off
set FixMD5backup=[COLOR=Red][B]/mnt/sdcard/clockworkmod/backup/011-12-16.12.56.43[/B][/COLOR]
echo cd %FixMD5backup% >FixMD5.adb
echo pwd >>FixMD5.adb
echo ls -l -a * >>FixMD5.adb
echo chmod 666 nandroid.md5 >>FixMD5.adb
echo rm nandroid.md5 >>FixMD5.adb
echo md5sum *img *tar ^>nandroid.md5 >>FixMD5.adb
echo ls -l -a * >>FixMD5.adb
echo cat nandroid.md5 >>FixMD5.adb
echo exit >>FixMD5.adb
adb -d shell <FixMD5.adb
del FixMD5.adb
pause
Make sure the path is correct
Regards,
Nika.
rideriang said:
this is how i did to fix md5 missmatch due to restore from feamod recovery
-firstly make a folder clockworkmod/backup/2011-12-16.12.56.43 IN INTERNAL SDCARD
open terminal emulator
type su
#cd / sdcard/clockworkmod/backup/2011-12-16.12.56.43
#rm nandroid .md5 (if u get this rm failed for nandroid. read-only file system just leave it)
#md5sum *img > nandroid.md5
reboot to recovery
restore from internal
Click to expand...
Click to collapse
If you are using a back from your sdcard, you will need to mount r/w.
Here is what I did, and it worked perfect.
BETAlatform-tools akelly$ ./adb shell
# mount -o remount rw /sdcard
# cd sdcard/clockworkmod/backup/
# ls
2011-11-09.MIUI-1.11.4-base 2011-12-12-CM7-GlitchV13
2011-11-09.MIUI-GLITCH-1.11.4-loaded 2011-12-12-CM7-GlitchV13-basic
# cd 2011-12-12-CM7-GlitchV13
# ls
boot.img datadata.yaffs2.img system.yaffs2.img
cache.yaffs2.img nandroid.md5
data.ext4.tar recovery.img
# rm nandroid.md5
# md5sum *img > nandroid.md5
Click to expand...
Click to collapse
rideriang said:
this is how i did to fix md5 missmatch due to restore from feamod recovery
-firstly make a folder clockworkmod/backup/2011-12-16.12.56.43 IN INTERNAL SDCARD
open terminal emulator
type su
#cd / sdcard/clockworkmod/backup/2011-12-16.12.56.43
#rm nandroid .md5 (if u get this rm failed for nandroid. read-only file system just leave it)
#md5sum *img > nandroid.md5
reboot to recovery
restore from internal
Click to expand...
Click to collapse
Worked out perfectly. You are a scholar and a gentleman.
nikagl said:
Good idea to post that (used it too with some backups). If you can't get into your device (bootloop etc) you should be able to do it on your pc. I tried doing it with md5sum (see attached) but it then adds an extra x0D (carriage return)... so if someone knows how to do this, please add to this topic
Regards,
Nika.
Click to expand...
Click to collapse
For reference, attached is md5.exe and dos2unix.exe.
Here's the script to execute md5.exe (see attached) and make the nandroid.md5 on your pc:
Code:
@echo off
del nandroid.md5
for %%i in (boot.img,cache.ext4.tar,data.ext4.tar,recovery.img,system.ext4.tar,.android_secure.vfat.tar) do md5 %%i>>nandroid.md5 && echo %%i>>nandroid.md5
dos2unix nandroid.md5
pause
Btw, for everyone good to know, you can always run the md5sum from adb in clockworkmod recovery too (just before doing the backup, even when you're in the backup screen!):
Code:
adb shell
# cd /sdcard/clockworkmod/backup/[B]BACKUPDATE[/B]
# rm nandroid.md5
# md5sum *img >nandroid.md5
# exit
Regards,
Nika.
nikagl said:
... reference, attached is md5.exe and dos2unix.exe.
Here's the script to execute md5.exe (see attached) and make the nandroid.md5 on your pc:.
Click to expand...
Click to collapse
Hi,
Could you guide how to use the file? I'm totally newbie here. Using ClockWorkMod Touch Recovery Lilg for Galaxy Mini
Tq
exz8 said:
Hi,
Could you guide how to use the file? I'm totally newbie here. Using ClockWorkMod Touch Recovery Lilg for Galaxy Mini
Tq
Click to expand...
Click to collapse
Can you first check the filesize of each file that the backup created? If there's 0kb files you will not be able to restore them, do it with Advanced Restore one by one and you may be able to get back stuff...
If you don't know how to use the files I uploaded, I doubt a guide will help you
nikagl said:
Can you first check the filesize of each file that the backup created? If there's 0kb files you will not be able to restore them, do it with Advanced Restore one by one and you may be able to get back stuff...
If you don't know how to use the files I uploaded, I doubt a guide will help you
Click to expand...
Click to collapse
Inside backup folder have 2 files.
both files are same size. Under CWM Folder I found 2 files as attach.
Anything wrong?
exz8 said:
Inside backup folder have 2 files.
both files are same size. Under CWM Folder I found 2 files as attach.
Anything wrong?
Click to expand...
Click to collapse
That does not seem like a complete backup. Normally you also have a system.ext4.tar, data.ext4.tar and cache.ext4.tar. I guess this backup failed.
The only things you have is a kernel (boot.img) and the recovery.
wintel_mac said:
That does not seem like a complete backup. Normally you also have a system.ext4.tar, data.ext4.tar and cache.ext4.tar. I guess this backup failed.
The only things you have is a kernel (boot.img) and the recovery.
Click to expand...
Click to collapse
Right, I'd talk to the one that supports your cwm (touch recovery Lilg for Galaxy Mini)
I think I know already. Today, I had try backup and it's fine. Probably last time, I'm not use the proper method. Anyway, thanks for intention to help.
Tq
i am newbie
sorry for my question :
i have 03 clockworkmod backup in my ext_sd card named :
1 - 2012-05-08.16.48.10
2 - 2012-05-08.16.17.27
3 - 2012-05-02.02.25.41
i renamed them to :
1 - nitrox
2 - moon
3 - kqb
but when i try to restor i have md5 mismatch for all them
how to do for fix them all
please
EDIT : i finally understund the way :
i have moved clockworkmod from external_sd to sdcard
put the phone in usb debug
and than call adb shell with this :
adb shell
$ su
#
# cd /sdcard/clockworkmod/backup/nitrox
# rm nandroid.md5
# md5sum *img >nandroid.md5
# cd /sdcard/clockworkmod/backup/moon
# rm nandroid.md5
# md5sum *img >nandroid.md5
# cd /sdcard/clockworkmod/backup/kqb
# rm nandroid.md5
# md5sum *img >nandroid.md5
# exit
and then move back the clockworkmod to extrenal_sd and now all my backups work fine
thank you very much
rideriang said:
this is how i did to fix md5 missmatch due to restore from feamod recovery
-firstly make a folder clockworkmod/backup/2011-12-16.12.56.43 IN INTERNAL SDCARD
open terminal emulator
type su
#cd / sdcard/clockworkmod/backup/2011-12-16.12.56.43
#rm nandroid .md5 (if u get this rm failed for nandroid. read-only file system just leave it)
#md5sum *img > nandroid.md5
reboot to recovery
restore from internal
Click to expand...
Click to collapse
worked like a charm!!
THANK YOU!!!!
HTC EVO 4G CM7
very helpful
thanks ..
i have already flash cm10+cwm6 with nvflash, but now want to back to cm7.
wenn i try to flash cm7 zip, i get this error: assert failed getprop ro.product.device shooter(status 7)
now have i downgrad to cwm5! but wenn i try it with nvflash, i get: faild executing command 14 nverror 0x120000
what should i do? how can i downgrad to cwm5?
From post i assume you ALREADY did it...
anyway, flash cwm5 package from cwm 6 and et voila!
hamedd2000 said:
i have already flash cm10+cwm6 with nvflash, but now want to back to cm7.
wenn i try to flash cm7 zip, i get this error: assert failed getprop ro.product.device shooter(status 7)
now have i downgrad to cwm5! but wenn i try it with nvflash, i get: faild executing command 14 nverror 0x120000
what should i do? how can i downgrad to cwm5?
Click to expand...
Click to collapse
maybe you can CHECK THIS and thank the developer
I rooted this device successfully but then my bro try'd installing a busybox and it broke the root so I did a factory reset then try'd to root again and all I got was this
2510 KB/s (89968 bytes in 0.035s)
Changing permissions...
Executing Exploit (could take some minutes, be patient!)
Hit ENTER to continue
Drücken Sie eine beliebige Taste . . .
Device detected: KFSOWI (JDQ39)
Attempt acdb exploit...
KFSOWI (JDQ39) is not supported.
Attempt fj_hdcp exploit...
Attempt msm_cameraconfig exploit...
Detected kernel physical address at 0x80008000 form iomem
Attempt put_user exploit...
ioctl: Bad address
Attempt fb_mem exploit...
Detected kernel physical address at 0x80008000 form iomem
Attempt perf_swevent exploit...
Drücken Sie eine beliebige Taste . . .
I have try 'd the manual way and uninstalled driver's then reinstalled them I downloaded the root and nothing seems to work...I need someone's help
Thanks
Performing a factory rest does not completely remove root access since the binaries are still left. That's most likely why you cannot gain root access.Try following the advice given in post 15 from this link.
http://forum.xda-developers.com/showthread.php?t=1923612&page=2
elua35 said:
Performing a factory rest does not completely remove root access since the binaries are still left. That's most likely why you cannot gain root access.Try following the advice given in post 15 from this link.
http://forum.xda-developers.com/showthread.php?t=1923612&page=2
Click to expand...
Click to collapse
i have try'd unrooting and had no sucess i just get permission deined at
mount -o remount,rw /system
so i get rm failed here
rm /system/xbin/su
because i dont have permission...i try'd rooting again after this and no luck still no luck but thank for the advice
EDIT:in the beginning when i type
adb shell
su
after i type su i get
su: must be suid to work properly
EDIT:I was looking throughout the files and found in /system/xbin a superuser file I try 'd opening it and reading it but it was encrypted like it's expected to be but then I try 'd deleting it but then again no root so no permissions
I think you and I are in the same boat. I had root, something went wrong, factory reset the device, now can't get root back, and no solutions I've found on here have worked.
Hi guys i have a Grad sync failed Error: Gradle sync failed: C:\Users\Mateusz\.gradle\caches\2.10\scripts\settings_6eu1j4qmtrl9oqi07fqayq16t\cp_settings\cache.properties (Das System kann die angegebene Datei nicht finden)
Consult IDE log for more details (Help | Show Log)
does anyone knows this error and can help me?
Try to debug... Click on the the error statement
Disable or remove junit. Junit... In the debug and it will sync... I will attach pictures soon
solved
Thank you ive already solved it