[Kernel/Recovery][P75XX] A1 Kernel V1.9/TWRP2.6.3.0

Stuck After 1.3 on Samsung Screen?

  • No, and hope I never do.

    Votes: 179 82.9%
  • Yes, but I solved it by reflashing

    Votes: 8 3.7%
  • Yes, but I solved it by flashing V1.3 or older

    Votes: 8 3.7%
  • Yes, and had to reflash full stock

    Votes: 21 9.7%

  • Total voters
    216
Search This thread

jaswinky

Senior Member
Jun 24, 2009
730
134
The boot problem is difficult to diagnose, it may depend, apart of the voltages, of how cold or hot is the CPU and the system, the ambient temperature, etc... That could explain why some people have the issue, and some people don't. The fact that 1.5.2 and more even 1.5.3 has fix the problem to most people, could mean that maybe there still is or are others possible voltages adjusts needed to do...

AAccount, Do yo mean 1.5.4 set ACmod by default and we can, as users, desactive it? how? Could you post last source code to try see if more voltage could be fixed?

Thanks!
 
Last edited:

AAccount

Senior Member
Sep 8, 2010
1,005
1,909
The boot problem is difficult to diagnose, it may depend, apart of the voltages, of how cold or hot is the CPU and the system, the ambient temperature, etc... That could explain why some people have the issue, and some people don't. The fact that 1.5.2 and more even 1.5.3 has fix the problem to most people, could mean that maybe there still is or are others possible voltages adjusts needed to do...

AAccount, Do yo mean 1.5.4 set ACmod by default and we can, as users, desactive it? how? Could you post last source code to try see if more voltage could be fixed?

Thanks!

in 1.5.4 there is no need for the acmod. I looked at pershoot's latest 3.1 code and copied over the changes for usb charging except you don't need to use "force_usb_charging". It is enabled automatically. Yes, the boot problem is way difficult to diagnose especially since my tablet has dropped its moody side.
 

Attachments

  • p4_battery.c
    47 KB · Views: 10
  • tegra2_dvfs.c
    13.5 KB · Views: 3

jaswinky

Senior Member
Jun 24, 2009
730
134
in 1.5.4 there is no need for the acmod. I looked at pershoot's latest 3.1 code and copied over the changes for usb charging except you don't need to use "force_usb_charging". It is enabled automatically. Yes, the boot problem is way difficult to diagnose especially since my tablet has dropped its moody side.

Great! this way to manage USB charging is cleaner...

What do you mean with your tablet? Is it ok??

---------- Post added at 11:34 PM ---------- Previous post was at 11:24 PM ----------

Report v1.5.4 still have bootup problem. Stuck at the Samsung tab symbol. Need to force power off and on a few times before able to boot up.
V1.5.3 have bootup problem but need to force off and on once to reboot but v1.5.3 need more than once.

Even if you think this is stupid, just to see what happen... swith off the tablet for 10 mins and put it in a cold room (with A/A or similar). Then try to boot and see if the freeze still happen. Maybe it will, but it is just to discard...
 

AAccount

Senior Member
Sep 8, 2010
1,005
1,909
Great! this way to manage USB charging is cleaner...

What do you mean with your tablet? Is it ok??



The tablet OK, but by moody I mean it doesn't have the boot up freeze anymore. Sort of personifying the tablet where moody is whether it feels like booting or not. Is it even worth trying to continue overclocking? I read in the SGS1 forums that overclocking in ics was nowhere near as stable as when it had gingerbread. Does the same apply here too?
 
Last edited:

jaswinky

Senior Member
Jun 24, 2009
730
134
The tablet OK, but by moody I mean it doesn't have the boot up freeze anymore. Sort of personifying the tablet where moody is whether it feels like booting or not. Is it even worth trying to continue overclocking? I read in the SGS1 forums that overclocking in ics was nowhere near as stable as when it had gingerbread. Does the same apply here too?

I don't really think it's even worth to overclock to 1.6GHz. I don't know any P75xx kernel to 1,6GHz in HC, so this whould be for any reason... The experiences I have been having with overclock is that you can do it safetly with good brands and devices, because the design is oversized to sure the people will not have any problem. Cheaper devices could not be too oversized. Example: my SGS2, with siyah kernel, I can put from 1,2GHz to 1,6GHz (33%), that's all. I tried 1,4Gz with no problem (I have clocked it to 1,2GHz because I don't need yet 1,4 or 1,6, so that I save battery); our tab, to 1,4GHz (40%) with no problem. However, I also have a LG Optimus Black overcloced from 1GHz to 1,1GHz, because 1,2GHz had a problem with apk installations from market :confused: . You cannot predict the effects of a bad overclocking... this booting bug is the same thing... maybe the voltage differences are in the limit and small difference in temperature (note that in those small voltages, the amperage is more sensible to small temperature changes because the impedances) may cause a insufficient suply...
 

AAccount

Senior Member
Sep 8, 2010
1,005
1,909
I don't really think it's even worth to overclock to 1.6GHz. I don't know any P75xx kernel to 1,6GHz in HC, so this whould be for any reason... The experiences I have been having with overclock is that you can do it safetly with good brands and devices, because the design is oversized to sure the people will not have any problem. Cheaper devices could not be too oversized. Example: my SGS2, with siyah kernel, I can put from 1,2GHz to 1,6GHz (33%), that's all. I tried 1,4Gz with no problem (I have clocked it to 1,2GHz because I don't need yet 1,4 or 1,6, so that I save battery); our tab, to 1,4GHz (40%) with no problem. However, I also have a LG Optimus Black overcloced from 1GHz to 1,1GHz, because 1,2GHz had a problem with apk installations from market :confused: . You cannot predict the effects of a bad overclocking... this booting bug is the same thing... maybe the voltage differences are in the limit and small difference in temperature (note that in those small voltages, the amperage is more sensible to small temperature changes because the impedances) may cause a insufficient suply...

Ok, I'm cancelling it. It seemed to work OK in preliminary tests but the tinkering with voltages is getting annoying.
 

jaswinky

Senior Member
Jun 24, 2009
730
134
Ok, I'm cancelling it. It seemed to work OK in preliminary tests but the tinkering with voltages is getting annoying.

Consider that it was only my opinion about it... I think now, it is more important to improve more and more 1,4GHz than start with a 1,6GHz project some inestable... Maybe in some moths when all tablets will be quad at 1,5GHz, and the apks will be made for them, it would a great idea to start or continue this project...

That what happen for me with my SGS2, now I don't need 1,4GHz or 1,6GHz, but I know in some monthes when most apk will be design for SGS3, then these apks will go perfect for me in my SGS2 at 1,6GHz... so I prefer to wait for that...
 

AAccount

Senior Member
Sep 8, 2010
1,005
1,909
Is there possibility to make 4.0.4 kernel for t mobile SGH-T859 galaxy tab 10.1. I was able to install aneroid 3.2 GT-P7500 zip rom on t mobile galaxy tab without no issues. With android 4.0.4 zip rom flash , t mobile tab 10.1 does not boot up at all.


Sent from my GT-P7500 using xda app-developers app

Making a tmobile version would make it impossible for me to test since I don't want to risk messing my wifi only tablet testing it. I want to at least do a few basic tests before releasing it so I know it works. However, the sources are all there and I did put sort of step by step instructions somewhere in this thread.

What are the hardware differences between the TMobile Galaxy tab 10.1 and the international P7500 anyways?
 

AAccount

Senior Member
Sep 8, 2010
1,005
1,909
Consider that it was only my opinion about it... I think now, it is more important to improve more and more 1,4GHz than start with a 1,6GHz project some inestable... Maybe in some moths when all tablets will be quad at 1,5GHz, and the apks will be made for them, it would a great idea to start or continue this project...

That what happen for me with my SGS2, now I don't need 1,4GHz or 1,6GHz, but I know in some monthes when most apk will be design for SGS3, then these apks will go perfect for me in my SGS2 at 1,6GHz... so I prefer to wait for that...

Good idea. My own SGS3-I9300 is non OC'd at 1.4GHz anyways. I'm sort of getting stumped by all the boot issues anyways.
 

AAccount

Senior Member
Sep 8, 2010
1,005
1,909
Hello again i know we asked for many features and you added all of them. Could you please also enable swap so we can add a swap file with swapper? It would help a lot because of the low memory. Thank you in advance!

Sent from my GT-P7510 using Tapatalk 2

After further investigation, you need to put your swap file in /data/local. The /sdcard directory is a fake sd card and is really /data/media. Something about the faking does not allow swap files to be put there. Check out my terminal example. Swap is enabled but needs to be in /data/local. The faking of the sd card is probably the same reason why you can't just move the swap file to /data/local and why it must be copied then erased from its original location.

Code:
root@android:/sdcard # mkswap swap.disk
Setting up swapspace version 1, size = 33550336 bytes
UUID=94658bfe-a265-4aed-afaf-d2de1fc485f2
root@android:/sdcard # swapon swap.disk
swapon: swap.disk: Invalid argument
1|root@android:/sdcard # ls /data/local
tmp
root@android:/sdcard # mv swap.disk /data/local
failed on 'swap.disk' - Cross-device link
255|root@android:/sdcard # cp swap.disk /data/local
root@android:/sdcard # cd /data/local
root@android:/data/local # ls
swap.disk
tmp
root@android:/data/local # mkswap swap.disk
Setting up swapspace version 1, size = 33550336 bytes
UUID=bdf56bf0-7311-4d4c-a852-430cc6753198
root@android:/data/local # swapon swap.disk
root@android:/data/local # free 
             total         used         free       shared      buffers
Mem:        738984       726600        12384            0        97964
-/+ buffers:             628636       110348
Swap:        32764            0        32764
root@android:/data/local #
 
  • Like
Reactions: steveman29

jaswinky

Senior Member
Jun 24, 2009
730
134
I think where could be the reason why still happen the freeze boot issue a few people (I read one here and one in htcmania):

Sorry, I don`t know how to insert code as you do...

Again the init function where initial voltages are assigned:

void __init tegra_soc_init_dvfs(void)
{
...
BUG_ON(speedo_id >= ARRAY_SIZE(cpu_speedo_nominal_millivolts));
tegra2_dvfs_rail_vdd_cpu.nominal_millivolts =
cpu_speedo_nominal_millivolts[speedo_id];
BUG_ON(speedo_id >= ARRAY_SIZE(core_speedo_nominal_millivolts));
tegra2_dvfs_rail_vdd_core.nominal_millivolts =
core_speedo_nominal_millivolts[speedo_id];
tegra2_dvfs_rail_vdd_aon.nominal_millivolts =
core_speedo_nominal_millivolts[speedo_id];
...
}

Here is assigned the nominal voltages from the array due to the speedo_id. Ok, the problem is that tegra2_dvfs_rail_vdd_cpu.nominal_millivolts, tegra2_dvfs_rail_vdd_core.nominal_millivolts and tegra2_dvfs_rail_vdd_aon.nominal_millivolts were created with a default value at begining of the file. This mains that in any instant, even with a reduced probability, it could coexist a cpu nominal value assigned from speedo_id array and a core nominal default value. If so, see this:

static const int cpu_speedo_nominal_millivolts[] =
/* spedo_id 0, 1, 2 */
{ 1100, 1225, 1125 };

static const int core_speedo_nominal_millivolts[] =
/* spedo_id 0, 1, 2 */
{ 1225, 1275, 1300 };
...
static struct dvfs_rail tegra2_dvfs_rail_vdd_cpu = {
.reg_id = "vdd_cpu",
.max_millivolts = 1250,
.min_millivolts = 900,
.nominal_millivolts = 1175,
};

static struct dvfs_rail tegra2_dvfs_rail_vdd_core = {
.reg_id = "vdd_core",
.max_millivolts = 1300,
.min_millivolts = 950,
.nominal_millivolts = 1225,
.step = 150, /* step vdd_core by 150 mV to allow vdd_aon to follow */
};

Nominal values in bold and red could coexist... It is difficult, I know, but maybe because this reason only one or two people are still reporting the problem...

Maybe decrease first bold value from 1225 to 1175 as cpu default nominal value?, or increase second bold value to 1275 as nominal core array value?
 
Last edited:
  • Like
Reactions: AAccount

decatf

Senior Member
Dec 27, 2011
649
2,675
Can I make a request that the first post also detail what voltage changes were made from the stock settings? That's pretty important when it comes to overclocking.
 

AAccount

Senior Member
Sep 8, 2010
1,005
1,909
I think where could be the reason why still happen the freeze boot issue a few people (I read one here and one in htcmania):

Sorry, I don`t know how to insert code as you do...

Again the init function where initial voltages are assigned:

Code:
void __init tegra_soc_init_dvfs(void)
{
	...
	BUG_ON(speedo_id >= ARRAY_SIZE(cpu_speedo_nominal_millivolts));
	tegra2_dvfs_rail_vdd_cpu.nominal_millivolts =
		cpu_speedo_nominal_millivolts[speedo_id];
	BUG_ON(speedo_id >= ARRAY_SIZE(core_speedo_nominal_millivolts));
	tegra2_dvfs_rail_vdd_core.nominal_millivolts =
		core_speedo_nominal_millivolts[speedo_id];
	tegra2_dvfs_rail_vdd_aon.nominal_millivolts =
		core_speedo_nominal_millivolts[speedo_id];
...
}
Here is assigned the nominal voltages from the array due to the speedo_id. Ok, the problem is that tegra2_dvfs_rail_vdd_cpu.nominal_millivolts, tegra2_dvfs_rail_vdd_core.nominal_millivolts and tegra2_dvfs_rail_vdd_aon.nominal_millivolts were created with a default value at begining of the file. This mains that in any instant, even with a reduced probability, it could coexist a cpu nominal value assigned from speedo_id array and a core nominal default value. If so, see this:
Code:
static const int cpu_speedo_nominal_millivolts[] =
/* spedo_id  0,    1,    2 */
	{ 1100, [B][COLOR="Red"]1225[/COLOR][/B], 1125 };

static const int core_speedo_nominal_millivolts[] =
/* spedo_id  0,    1,    2 */
	{ 1225, 1275, 1300 };
...
static struct dvfs_rail tegra2_dvfs_rail_vdd_cpu = {
	.reg_id = "vdd_cpu",
	.max_millivolts = 1250,
	.min_millivolts = 900,
	.nominal_millivolts = 1175,
};

static struct dvfs_rail tegra2_dvfs_rail_vdd_core = {
	.reg_id = "vdd_core",
	.max_millivolts = 1300,
	.min_millivolts = 950,
	.nominal_millivolts = [B][COLOR="red"]1225[/COLOR][/B],
	.step = 150, /* step vdd_core by 150 mV to allow vdd_aon to follow */
};
Nominal values in bold and red could coexist... It is difficult, I know, but maybe because this reason only one or two people are still reporting the problem...

Maybe decrease first bold value from 1225 to 1175 as cpu default nominal value?, or increase second bold value to 1275 as nominal core array value?

I moved the cpu_speedo_nominal down to 1175. I prefer a decrease, rather than increase in voltage. Then I tried to have all cpu nominals and all core nominals the same so I lowered the core_speedo_nominal down to 1225. Now this way all the cpu nominals are 50mV under the core nominals. Surprise! I got the boot bug with that. A quick reflash solved that and it booted. That's really weird since everything fitted the 50mV rule.

I thought the speedo nominals were "jumpstart" values. I also thought the rail values were the "operating" values. I had the jumpstart values a bit higher because after some trial and error setting the jumpstart values a bit higher than the operating values seemed to work better. I personally call that "jumpstaring it hard". I guess there is no getting around checking every single cpu nominal against every single core nominal value.

Why weren't these inconsistencies a problem in the honeycomb overclock kernel??

PS: to mark something as code put "[ C O D E ]" before and "[ / C O D E ]" after.
 
  • Like
Reactions: jaswinky

AAccount

Senior Member
Sep 8, 2010
1,005
1,909
Can I make a request that the first post also detail what voltage changes were made from the stock settings? That's pretty important when it comes to overclocking.

All changes can be found inside the thread. They're usually suggested by jaswinky so look for his longer posts (which should be easy to spot).
 

Top Liked Posts

  • There are no posts matching your filters.
  • 187
    :good: First of all :good: Thank you for your patronage!!! :D:cowboy::laugh::victory:

    Before you do anything: This is purely at your own risk and I will not be responsible for anything that happens to your tablet. I flashed it on mine at my own risk.

    Compatibility Information: There are 2 different versions. 1 for stock and 1 for Cyanogenmod. Even though the kernels are intended for the 3G tablet it will work just fine on a WiFi only tablet (like mine). This makes the build process less messy.

    **Sources Fully documented v1.9 beginner friendly sources now available including the build script. If more explanations are required, please say so. However, remember that the explanations are not intended to be a blind step by step instructions of going from samsung source to A1.

    TWRP V2.6.0.0: Please read: do not worry about any kind of "E:A: Render Error". This is a side effect of removing some image files to save place on the recovery image so it will fit on the 5MB. The error simply means it failed to show (render) and image file that it is looking for. This is not harmful at all. If you can't flash the recovery please try the dd method.

    TWRP V2.6.3.0: There are no more E:A Render errors. All graphics that were removed are there. Also, the recovery will install supersu if no root is detected. That feature has also been restored. The kernel has been stripped of anything not recovery related to shrink it down. It also has selinux support which allows the "set_metadata" zip installation to work. The download is in the attachments below.

    Changelog:
    Changelog:
    • Voodoo sound <-- new to version 1.0
    • USB charging enabled as well as charging from other chargers *** fixed V1.5.4 thanks to pershoot
    • Overclock to 1.2GHz <-- new to version 1.2
    • NTFS modules enabled, ondemand default frequency scaler, noop default disk io scheduler <-- new to version 1.2.1
    • GPU overclock from 333MHz to 400MHz. <-- new to version 1.3
    • Overclock to 1.4GHz <--new to version 1.4
    • Support for Current Widget <-- new to version 1.5
    • CIFS enabled in kernel config, 1.4GHz attempted stability fix (thanks to jaswinky) <--new to version 1.5.2
    • Wifi driver compiled as module <--new to V1.5.3
    • More voltage anomalies fixed, updated battery driver to pershoot's 3.1 <-- new to V1.5.4 and V1.5.5XE
    • Fixed charging boot bug <--new to V1.5.6SE
    • (In case you were wondering 1.5.7 had an issue in it.)
    • Disabled frequency lock, added 1GHz default max (you can change it to 1.2GHz or 1.4GHz after boot), 216MHz default min CazeW's suggestion <--new to 1.5.8SE+XE
    • Enabled pershoot build/vfp optimization commit, added 150MHz minimum frequency <-- new to 1.5.9SE+XE
    • Boot script support (put yours as /data/local/a1init.sh) <-- new to V2.0
    • Smarter ram disk that only initializes 3G on 3G tablets<-- new to V2.1
    • 1.5GHz && 1.6GHz OC available, cifs utf8 kernel module available <-- new to V2.2
    • Support for CM9 <-- new to V2.2CM
    • Enabled xbox controller module as xpad.ko <--new to V2.2.1
    • NTFS moved to kernel module instead of built in, CIFS moved to kernel module instead of built in, enabled option.ko and usb_wwan.ko for connection of 3G dongle, all nls charsets/codepages built as modules <--new to V2.2.2
    • V1.6.3 is pretty much V2.2.2 but without my custom ram disk. I've also tried a boot script method proposed by Toldo but haven't had time to test it yet. Please flash the CM9 stock kernel or Samsung stock kernel before trying V1.6.3.
    • Applied git patch to disable mmc_cap_erase <-- new to V1.6.4
    • Voltage control, cifs built in again <-- new to V1.7
    • Galaxy Tab 8.9 specific fix <--new to V1.7.1
    • Cyanogenmod charging mode fix <--new to V1.7.2
    • Galaxy Tab 8.9 specific feature <--new to V1.7.3
    • CM10 compatibility fix, enabled Samsung's powersaving governor <--new to V1.7.4
    • followed pershoot's "-defconfig: jb: unset TEGRA_CONVSERVATIVE_GOV_ON_EARLYSUPSEND" change to fix odd 450MHz capping issue <--new to V1.7.4b
    • Copied in pershoot's keyboard dock driver <--new to V1.7.5
    • 801MB RAM enabled <-- new to V1.8
    • Rebased on pershoot's November 17 source <--new to V1.8.1
    • Back to samsung base, follow pershoot's suggestion of Nexus7 mtp drivers to fix mtp, enabled zRam <--new to V1.8.2
    • Reduced RAM to 785MB to prevent intense 3D games issue, enabled KSM (check in settings --> performance --> memory management)
    • (CM Version only) works on CM10.1 <--new to V1.8.4
    • Incorporated touchscreen death fix. Thank the user who reported it. <-- new to V1.8.5
    • Used part of pershoot's kernel config to get data usage working in CM <--new to V1.8.6
    • Added CM's version of the ROW (read over write) disk IO scheduler for GT-I9300<-- new to V1.8.7
    • Added XDA's grzwolf's solution to the hsic wakeclock problem <--new to V1.8.8
    • Added frandom kernel module <-- new to V1.9
    Credits:
    Supercurio: voodoo sound
    Pershoot: voodoo port, usb charging, flashable zip, OC template, current widget setup
    XDA forum's CazeW: used your replace suggestions to patch up wm8994_voodoo.c and wm8994_voodoo.h so it will compile properly, and finding the missing link for 1.4GHz OC, and disabling frequency locks
    Task650: providing a nice, clean deodexed rom for me to try this on
    XDA forum's RaymanFx: OC instructions
    Me: GPU OC
    XDA forum's jaswinky for valuable hints and checking my work over.
    Xoom ICS kernel: for getting an approximate idea of voltages
    (If I missed any credits, please forgive me as this is my first attempt at any kind of development)
    XDA forum's motley for voltage control
    XDA forum's Unknownzd for mmc_cap_erase patch
    XDA's grzwolf for the hsic wakelock fix
    11
    Very Good News

    So it looks like CM10.2 is actually alive and in testing on my tablet. Big thank you to user epinter for helping me with the graphics issue. I will play with CM10.2 to see how it is. First 10 seconds impression: buttery smooth, wifi works, bluetooth works, sound works, A1 kernel with SELinux firing on all cylinders! Unfortunately it has the 2 bar UI... time to search for that post on how to make tabletui.

    Please donate to epinter for CM10.2. He gets the credit for making it work. I just did some minor tweaking to the fstab and audio flinger.

    Gotta go to bed. Just check out the screenshot zips to see it working. I have no time adjust the sizes for xda.

    THE ZIP IS THE SCREENSHOTS, NOT THE ROM. I will post the rom later this week after testing.
    10
    Honeycomb Tablet Mode Partial Fix

    Hey everyone,

    I managed to figure out how to get the classic honeycomb tablet mode to work in CM10.1 (mostly). You know, the one where you get 1 status bar for the soft buttons and tray. Simply move the jars to /system/framework and the apk to /system/app. Do this with any root explorer or the terminal.

    I tried to make a flashable zip, but I managed to screw the permissions in the process and accidentally pull the plug on my computer, corrupting its data partition. I did setup my Linux install to have a system (/) and data partition (/home) like android.

    The only down side is that you can't customize the power widget but, on the upside, the UI seems noticeably less laggy than the stock CM10.1 UI with the 2 bars. Why??? Who knows. I think this benefit more than justifies the small annoyance of unchangeable toggles.

    Here are the instructions I followed: http://xdaforums.com/showpost.php?p=28957307&postcount=1, http://xdaforums.com/showpost.php?p=36319776&postcount=974.

    Last gotcha, it's for wifi only since that's what I have and I don't really want to wait for my computer to compile a whole other rom for the 3G version. (Have mercy on the Core2 mobile).
    8
    Great to see someone else kernel developing, could be the start of something here... Lol, I wanna give this a try but I think It'll stop 3G working if I flash the 7510 kernel.

    Sent from my GT-N7000 using Tapatalk 2

    Care to try the 3G version I just uploaded? I don't own the 3G version but I followed the same idea for compiling the 3G kernel.
    7
    Please do not advertise your roms in my kernel thread. This thread is mainly for bug reports and feature requests. Thank you for your understanding. (I did not advertise my A1 in pershoot's kernel thread saying "hey you want some of these features on stock rom, try my kernel". ) I will fix V2.0 to use a 3G ramdisk so 3G tablets will be able to use boot scripts later today.