[KERNEL][GPL] Vengeance [1.38][3/5]

  • Thread starter Deleted member 4736004
  • Start date
Search This thread

gu5t3r

Senior Member
May 30, 2012
1,610
1,516
Gu you are our man thanks once again...i il post when I go to pc to test

Sent from my LT18i using xda premium

---------- Post added at 04:48 PM ---------- Previous post was at 03:51 PM ----------

Gu I put the frantom in to initd what job it does?

Sent from my LT18i using xda premium

It keeps entropy fast and full...

Test: /dev/random
Code:
root@android:/dev # dd if=random of=null bs=1M count=3
dd if=random of=null bs=1M count=3
0+3 records in
0+3 records out
384 bytes (384B) copied, 0.000579 seconds, 647.7KB/s

root@android:/dev # dd if=random of=null bs=1M count=1
dd if=random of=null bs=1M count=1
0+1 records in
0+1 records out
128 bytes (128B) copied, 28.720093 seconds, 4B/s
as you can see random doesn't look so slow at first (648kB), but that is due SuperCharger tweak to keep entropy full 3MB...
....on second run when entropy is empy we see a real speed of random, 4B/s i.e SLOW

Test: /dev/urandom
Code:
root@android:/dev # dd if=urandom of=null bs=1M count=32
dd if=urandom of=null bs=1M count=32
32+0 records in
32+0 records out
33554432 bytes (32.0MB) copied, 27.944611 seconds, 1.1MB/s

Test: /dev/frandom
Code:
root@android:/dev # dd if=frandom of=null bs=1M count=128
dd if=frandom of=null bs=1M count=128
128+0 records in
128+0 records out
134217728 bytes (128.0MB) copied, 5.207428 seconds, 24.6MB/s
root@android:/dev # dd if=frandom of=null bs=1M count=512
dd if=frandom of=null bs=1M count=512
512+0 records in
512+0 records out
536870912 bytes (512.0MB) copied, 20.932007 seconds, 24.5MB/s
It is ultra fast and never empty....

What 20frandom script does is forcing android to use frandom instead random and urandom...

Test of random and urandom after running script (you don't need to run it manually it executes on boot if put in init.d):
Code:
root@android:/dev # /system/etc/init.d/20frandom
/system/etc/init.d/20frandom
root@android:/dev # dd if=random of=/dev/null bs=1M count=64
dd if=random of=/dev/null bs=1M count=64
64+0 records in
64+0 records out
67108864 bytes (64.0MB) copied, 2.818756 seconds, 22.7MB/s
root@android:/dev # dd if=urandom of=/dev/null bs=1M count=64
dd if=urandom of=/dev/null bs=1M count=64
64+0 records in
64+0 records out
67108864 bytes (64.0MB) copied, 2.673767 seconds, 23.9MB/s

From test we see android system uses frandom instead random and urandom....
 

Attachments

  • 20frandom.rar
    189 bytes · Views: 76

digitalsuni

Senior Member
Aug 15, 2011
88
4
Mandya
Cant able to use lastest pendrives in USB OTG..
Only pendrive comes with led only works..
Pls do something bro..:thumbup:

Sent from my LT18i using Tapatalk 2
 

gu5t3r

Senior Member
May 30, 2012
1,610
1,516
Cant able to use lastest pendrives in USB OTG..
Only pendrive comes with led only works..
Pls do something bro..:thumbup:

Sent from my LT18i using Tapatalk 2

This is problem on all kernels...I think it's problem due to USB Sticks, as some of them don't work even on Xperia U & Xperia S that have Sony Stock support for OTG (but some that don't work on ArcS work on Xperia S)....

On the new Xperia Z almost all USB Sticks works (had a chance to test)...
 
  • Like
Reactions: digitalsuni

Yovecio

Senior Member
Oct 30, 2009
307
34
Vicenza
Thing I don't like about Vengeance is no VDD control as my phone runs stable at 1500MHz at 1250mV, 1400MHz on 1200mV, etc...
My UnderVolt table:
Code:
VDD=/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo  '134400 850' > $VDD
echo  '184320 875' > $VDD
echo  '249600 900' > $VDD
echo  '364800 900' > $VDD
echo  '460800 950' > $VDD
echo  '576000 950' > $VDD
echo  '652800 1000' > $VDD
echo  '768000 1000' > $VDD
echo  '806400 1025' > $VDD
echo  '921600 1050' > $VDD
echo '1017600 1075' > $VDD
echo '1113600 1100' > $VDD
echo '1209600 1125' > $VDD
echo '1305600 1175' > $VDD
echo '1401600 1200' > $VDD
echo '1516800 1250' > $VDD
echo '1612800 1250' > $VDD

How to add it?
 

gu5t3r

Senior Member
May 30, 2012
1,610
1,516

It's for LuPuS kernel...

Make script i.e. 60UV in init.d

Code:
#!/sbin/busybox sh

VDD=/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo  '134400 850' > $VDD
echo  '184320 875' > $VDD
echo  '249600 900' > $VDD
echo  '364800 900' > $VDD
echo  '460800 950' > $VDD
echo  '576000 950' > $VDD
echo  '652800 1000' > $VDD
echo  '768000 1000' > $VDD
echo  '806400 1025' > $VDD
echo  '921600 1050' > $VDD
echo '1017600 1075' > $VDD
echo '1113600 1100' > $VDD
echo '1209600 1125' > $VDD
echo '1305600 1175' > $VDD
echo '1401600 1200' > $VDD
echo '1516800 1250' > $VDD
echo '1612800 1250' > $VDD


---------- Post added at 07:30 PM ---------- Previous post was at 07:29 PM ----------

Values are based on KTG kernel which is undervolted by default...
 

TopperBG

Senior Member
Oct 17, 2012
1,344
477
Bulgaria
Xiaomi Mi 9
Gu because I don't understand what job doing the frandom can you simple explain?

Sent from my LT18i using xda premium
Random is in use very often in Android - to generate random number/sequence.
Examples with real results are and what is the difference when is generated random dummy files already posted from gu5t3r above.

---------- Post added at 11:15 PM ---------- Previous post was at 11:05 PM ----------

BTW modules for 1.34 didn't work for me (two times re-flashed, few reboots, nothing)
But works old ones from 1.32 ?
 
  • Like
Reactions: nokiagye

digitalsuni

Senior Member
Aug 15, 2011
88
4
Mandya
This is problem on all kernels...I think it's problem due to USB Sticks, as some of them don't work even on Xperia U & Xperia S that have Sony Stock support for OTG (but some that don't work on ArcS work on Xperia S)....

On the new Xperia Z almost all USB Sticks works (had a chance to test)...

Any other kernel supports all usb sticks????

Sent from my LT18i using Tapatalk 2
 

rezaswandira

Senior Member
May 13, 2012
202
45
Denpasar
modules wifi not work on my arc







Strange... wifi work great in my Arc... :cowboy:







no problem in here ...

Sent from my LT18i using Tapatalk 2

Figured out the problem, my /system partition remaining was less than 7MB while the modules size is pretty darn big about 9MB
So i cleaned up my system a little bit, reflash modules, then voila the wifi works :victory:

Sent from my GT-P6800 using Tapatalk HD
 

Louis235

Senior Member
Jan 14, 2013
655
184
Münsterland
I have a strange problem. I'm on ICS HD Supernova Build 7 and have an LT18i. So for some reason Vengeance Kernel doesn't work. It seems to be normal till I reboot. It stuck at Sony Logo. If I change Kernel this doesn't happen. I really like to use this Kernel. Is there anything I can do?

Thanks in advance
 

gu5t3r

Senior Member
May 30, 2012
1,610
1,516
I have a strange problem. I'm on ICS HD Supernova Build 7 and have an LT18i. So for some reason Vengeance Kernel doesn't work. It seems to be normal till I reboot. It stuck at Sony Logo. If I change Kernel this doesn't happen. I really like to use this Kernel. Is there anything I can do?

Thanks in advance

probably bad init.d scripts as vengeance does not run them on first boot...try deleting everything from /system/etc/init.d
 
  • Like
Reactions: Louis235

Louis235

Senior Member
Jan 14, 2013
655
184
Münsterland
probably bad init.d scripts as vengeance does not run them on first boot...try deleting everything from /system/etc/init.d


Thank you. I'll gonna try it immediately and ill report:)

---------- Post added at 06:36 AM ---------- Previous post was at 06:05 AM ----------

That works:):):). I deleted everything as you said and now Vengeance boots normally:good: One question. Now as the whole init.d folder is deleted...does this effect performance negatively?
 

mamenvn

Senior Member
Sep 2, 2012
267
38
It keeps entropy fast and full...

Test: /dev/random
Code:
root@android:/dev # dd if=random of=null bs=1M count=3
dd if=random of=null bs=1M count=3
0+3 records in
0+3 records out
384 bytes (384B) copied, 0.000579 seconds, 647.7KB/s

root@android:/dev # dd if=random of=null bs=1M count=1
dd if=random of=null bs=1M count=1
0+1 records in
0+1 records out
128 bytes (128B) copied, 28.720093 seconds, 4B/s
as you can see random doesn't look so slow at first (648kB), but that is due SuperCharger tweak to keep entropy full 3MB...
....on second run when entropy is empy we see a real speed of random, 4B/s i.e SLOW

Test: /dev/urandom
Code:
root@android:/dev # dd if=urandom of=null bs=1M count=32
dd if=urandom of=null bs=1M count=32
32+0 records in
32+0 records out
33554432 bytes (32.0MB) copied, 27.944611 seconds, 1.1MB/s

Test: /dev/frandom
Code:
root@android:/dev # dd if=frandom of=null bs=1M count=128
dd if=frandom of=null bs=1M count=128
128+0 records in
128+0 records out
134217728 bytes (128.0MB) copied, 5.207428 seconds, 24.6MB/s
root@android:/dev # dd if=frandom of=null bs=1M count=512
dd if=frandom of=null bs=1M count=512
512+0 records in
512+0 records out
536870912 bytes (512.0MB) copied, 20.932007 seconds, 24.5MB/s
It is ultra fast and never empty....

What 20frandom script does is forcing android to use frandom instead random and urandom...

Test of random and urandom after running script (you don't need to run it manually it executes on boot if put in init.d):
Code:
root@android:/dev # /system/etc/init.d/20frandom
/system/etc/init.d/20frandom
root@android:/dev # dd if=random of=/dev/null bs=1M count=64
dd if=random of=/dev/null bs=1M count=64
64+0 records in
64+0 records out
67108864 bytes (64.0MB) copied, 2.818756 seconds, 22.7MB/s
root@android:/dev # dd if=urandom of=/dev/null bs=1M count=64
dd if=urandom of=/dev/null bs=1M count=64
64+0 records in
64+0 recordis out
67108864 bytes (64.0MB) copied, 2.673767 seconds, 23.9MB/s

From test we see android system uses frandom instead random and urandom....

Hi pro,
I'm not found random, frandom, urandom in /dev/ folder
 

Top Liked Posts

  • There are no posts matching your filters.
  • 192
    D
    Deleted member 4736004
    Disclaimer
    Code:
    /* 
     
     * You may void your warranty.
     * I am not responsible for bricked devices or dead SD cards.
     * Please do some research if you have any concerns about this kernel.
     * YOU are choosing to make these modifications to your device.
     * I absolutely disclaim all the responsibilities.
    [COLOR="Red"] * Flashing kernel requires unlocked bootloader.
    [/COLOR] * You can unlock your bootloader from [URL="http://unlockbootloader.sonymobile.com/"][COLOR="Blue"][U]here[/U][/COLOR][/URL].
    
     */

    Frankly, I don't like bloated and fancy OP's. So I kept the thread simple and clean. Changelogs are not posted here. Check the link in the description.
    All the best!

    Features :-
    Code:
    * Based on official 4.1.B.1.13 sources
    * Compiled using LINARO 4.7.3 Toolchain
    * Added smart overclocking support upto 1.7 GHz
    * Init.d support
    * O2 optimizations
    * CAF backport fixes
    * Updated crc32 lib and jhash
    * VDD sysfs level interface
    * ARM_THUMBEE Support
    * Removed debugging s**ts
    * Optimized Low Memory Killer
    * Swap and zram support
    * ext 2/3/4 support
    * Salvaged RAM
    * Integrated CWM recovery
    * SLUB Memory allocator
    * LZO compression
    * 2 way call recording
    * CIFS, NTFS, FUSE and TUN as external modules
    * Memcopy and compaction
    * Added Cleancache
    * Added frandom
    * Optimized ARM RWSEM algorithm and ashmem
    * /rootfs and /system mounted as rw
    * Persistent adb
    * Google Snappy Drivers
    * Added other miscellaneous optmizations
    * Governors :     + Interactive
                      + Ondemand
                      + Performance
                      + Userspace
                      + Powersave
                      + Conservative
                      + InteractiveX
                      + OndemandX
                      + Smoothass
                      + Brazilianwax
                      + Smartass2 with boost pulse
                      + SmartassH3
                      + Intellidemand2
                      + Virtuous
    * IO Schedulers : + Noop
                      + SIO - default
                      + CFQ
                      + VR
                      + ROW
                      + ZEN
                      + Anticipatory
                      + deadline
    * [COLOR="Red"]See changelog or commits for detailed info.[/COLOR]
    [/B]

    Code:
    [COLOR="Purple"]Root Binary[/COLOR] : ( Flashable via recovery )
    * SuperSU : [URL="http://download.chainfire.eu/204/SuperSU/"][COLOR="Red"][U]Download[/U][/COLOR][/URL]
    * Superuser : [URL="http://androidsu.com/superuser/"][COLOR="Red"][U]Download[/U][/COLOR][/URL]

    Code:
    [COLOR="Purple"][U]Instructions[/U][/COLOR] :
    * To flash : fastboot flash boot boot.img
    * To hotboot : fastboot boot boot.img
    * Via FlashTool

    Credits : Wedgess for recovery

    F.A.Q's :-

    1. Is this working on blah blah?
    > I don't know. Do some research. Keep the disclaimer in mind.

    2. OMG! My device rebooted/crashed/exploded?
    > In case of bootloop, check for conflicting scripts in init.d. If problem persists, get me the logcat or last kmsg.

    3. Battery drains like hell. WTF?
    > Not kernel problem. It's your apps that are waking up device from deep sleep. Check the wakelocks. I don't build kernels to worsen battery life. See here for more info.

    4. Signal is dropping since I flashed the kernel?
    > Again. Not the kernel problem. Check if you have latest ( and proper ) baseband for your device.

    5. WiFi won't work?
    > Flash attached WLAN modules.

    6. Is autoroot included in ramdisk ?
    > No. Autoroot isn't included. Just download flash-able root binary zip from site.

    7. App FC's or something crashes?
    > Try reinstalling app again. Give me logcat if problem persists.

    8. Does this kernel has X or Y mod?
    > Do some research. Check thread, repo, commits etc.

    9. Which governors/IO-schedulers to use?
    > Depends on your usage. See here for more info.

    10.. Version X scored higher than version Y in benchmarks. OP, you screwed your kernel!
    > Deal with it.

    11. I need more info on something?
    > You can find all answers here



    132
    D
    Deleted member 4736004
    Code:
    [CENTER]CODENAME OF ARC : [COLOR="Red"]ANZU[/COLOR][/CENTER]
    Code:
    [CENTER]CODENAME OF ARC S : [COLOR="Red"]AYAME[/COLOR][/CENTER]
    Code:
    [CENTER]CODENAME OF PRO : [COLOR="Red"]IYOKAN[/COLOR][/CENTER]
    Code:
    [CENTER]CODENAME OF NEO : [COLOR="Red"]HALLON[/COLOR][/CENTER]
    Code:
    [CENTER]CODENAME OF NEO V : [COLOR="Red"]HAIDA[/COLOR][/CENTER]
    Code:
    [CENTER]CODENAME OF NEO L : [COLOR="Red"]PHOENIX[/COLOR][/CENTER]

    Code:
    [center][U]
    [URL="http://www.mediafire.com/?kb784mb7ai4o8"][COLOR="BROWN"] Download Kernel [/COLOR][/URL][/center][/U]

    Code:
    [CENTER][URL="https://github.com/rachit-rc96/Vengeance-Kernel-MSM7x30/blob/master/Changelog.txt"][COLOR="RED"]Changelog[/URL][/COLOR][/U][/CENTER]
    25
    Latest UHD has init.d scripts:

    98tweaks
    Code:
    #!/system/bin/sh
    sleep 10;
    
    #Tweak SD readahead values
    echo 1024 > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
    echo 1024 > /sys/devices/virtual/bdi/default/read_ahead_kb;
    
    #File system tweaks
    busybox rm -rf /data/tombstones/*;
    
    #Tweak various memory settings
    sysctl -w vm.dirty_ratio=20;
    sysctl -w vm.dirty_background_ratio=5;
    sysctl -w vm.vfs_cache_pressure=300;
    sysctl -w vm.oom_kill_allocating_task=0;
    sysctl -w vm.min_free_kbytes=2048;
    sysctl -w vm.dirty_expire_centisecs=200;
    sysctl -w vm.dirty_writeback_centisecs=500;
    sysctl -w vm.panic_on_oom=0;
    sysctl -w vm.overcommit_memory=1;
    sysctl -w vm.overcommit_ratio=50;
    sysctl -w vm.swappiness=0;
    
    sysctl -w kernel.panic_on_oops=1;
    sysctl -w kernel.panic=10;
    and

    99hd
    Code:
    #!/system/bin/sh
    
    sleep 40;
    hd;
    which is 40+10=50 seconds of unnecessary waiting at boot logo...

    BUT if you modify scripts like this:

    98tweaks
    Code:
    #!/system/bin/sh
    exec > /dev/null 2>&1
    if [ "$1" != "BG" ]; then $0 BG & exit 0; fi
    
    sleep 10;
    
    #Tweak SD readahead values
    echo 1024 > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
    echo 1024 > /sys/devices/virtual/bdi/default/read_ahead_kb;
    
    #File system tweaks
    busybox rm -rf /data/tombstones/*;
    
    #Tweak various memory settings
    sysctl -w vm.dirty_ratio=20;
    sysctl -w vm.dirty_background_ratio=5;
    sysctl -w vm.vfs_cache_pressure=300;
    sysctl -w vm.oom_kill_allocating_task=0;
    sysctl -w vm.min_free_kbytes=2048;
    sysctl -w vm.dirty_expire_centisecs=200;
    sysctl -w vm.dirty_writeback_centisecs=500;
    sysctl -w vm.panic_on_oom=0;
    sysctl -w vm.overcommit_memory=1;
    sysctl -w vm.overcommit_ratio=50;
    sysctl -w vm.swappiness=0;
    
    sysctl -w kernel.panic_on_oops=1;
    sysctl -w kernel.panic=10;

    99hd
    Code:
    #!/system/bin/sh
    exec > /dev/null 2>&1
    if [ "$1" != "BG" ]; then $0 BG & exit 0; fi
    
    sleep 40;
    /system/xbin/hd;

    You will not have to wait this 50 seconds at boot logo...
    25
    D
    Deleted member 4736004
    Re: [KERNEL][ICS] Vengeance [ARC/S/PRO][1.32][18/02/13]

    I had planned to discontinue this kernel for MSM7x30 devices. But seeing the immense support from arc community, I may continue the kernel for anzu, ayame and iyokan. Rest have been discontinued already. There have been over 10000+ downloads of 1.32 from these 3 devices alone.
    :)

    edit: i am ready with new version. Just need some testers first to verify if it stands better than 1.32
    If you guys want CM9 supported kernel, send me last and working fxp kernel for your device
    20
    D
    Deleted member 4736004
    Version 1.35 released.
    Added VDD sysfs level interface upon request. Let those voltage tweaks begin :p
    Better init.d support ( thanks to gu5t3r )
    Check changelog for more info on commits.

    PS : Modules have been divided into two sets 1. Wlan 2. Extra OTG modules ( CIFS, FUSE etc )
    Flash 1st set before 2nd set ( if you do ).
    All the best!