yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rahimali:
Meanwhile, when i can find some time, (at least not in the next two days), i will try out the kernels i have handy and share with you which one of those contains that setting. You could then maybe reverse engineer it and see what makes it tick. if i'm not mistakes, i think cwm is in the ramdisk right? i'm a total n00b :laugh:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
I'm a noob too, don't worry... Probably the only difference between you and me is that I take the risk to break things... ;)

CWM is indeed in the ramdisk.

You could replace CWM by TWRP without touching the kernel at all, only the ramdisk.

I tried to look around for a kernel having that feature. Found a couple but none of them were for our Xperia. Are you totally sure the kernel you saw was for our devices? Considered even the builtin "Shutdown" wasn't listed in the menu (I only had to make it to appear) I'm starting to doubt that the coded routine is actually doing anything past rebooting...

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rahimali:
yes, i'm positive it's present in one of the kernels for our devices and works perfectly as well. i have a lot of kernels present on my play pc ;) but currently i have too much work piled up to turn it on and find out which one it was. i intend to do so but using the hotboot kernel feature in flashtool so i can try out the kernel without actually flashing it to phone... i will share with you as soon as I find out which one it was
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] LaShto34:
It would be nice to have "Shutdown" option. But "Reboot to fastboot mode" doesn't look too good at the bottom. If you can make it to work please put it as a reboot option (you know - reboot normally, reboot to cwm, reboot to fastboot mode). There will be a lot of people that will never use this feature, I guess - like me. It's very easy to enter in fastboot mode with the phone closed. So reboot normally, reboot to cwm and shutdown are very usefull. That's why I think that reboot to fastboot mode should be something like a third option in reboot menu. I'm just saying...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
Think, that it might be Vengeance kernel... the string "reboot into fastboot mode" is present in the CWM Recovery binary...

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rahimali:
i have never used vengeance kernel. if it does have that, it must be in addition to the one that i used :)

it could maybe be the kernel that comes with kangxperia or maybe rage or extended stock kernel or one of the variations of paranoid android roms (i've not tried PA 3.x so one of the PA 2.x kernels)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
I can confirm it's "also" Vengeance kernel which uses CWM 5.0.2.7 modded by KrSH. Testing how the reboot options work.

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
Little update:

CWM now sports a dedicated "Reboot" menu, to keep it clean and to add the desired and requested functionality.

Awful pictures here below (shooting with my trusty Blackberry which is good for messaging but not so good at taking closeup pics)

and inside the menu

Tested and menu options seem to be working nicely, including the Fastboot reboot, which was a well inspired suggestion I'm glad it's now part of the upcoming 1.6 release.

Thanks for your precious help and support,

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rahimali:
Wow! Awesome! Many many thanks. Eagerly awaiting release of v1.6 (whenever you're ready) :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] smoke_slim:
I can't wait for the update!) and... can you add shutdown option in cwm?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] lsander:
Maj just read few posts back I asked for this. Will be added

Heh Im not always right :) just Im always here on phone just to answer so obvious questions.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
lsander is right, as always!

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
Hi,

first of all, thanks!

Second... I don't want to make the same mistake that I did with 1.5. That version didn't really receive lots of praises because, at least for some of you (probably a majority) it wasn't as stable as 1.4. I wouldn't be honest if I said that 1.5 was "perfectly perfect".

It would have needed to stay a bit more in my kitchen till the recipe was really giving a tasty kernel.

'cause it seemed to work for me I released it. 'cause it wasn't actually so great, seeing the issues some of you reported, I decided (at general request) to publish back links to 1.4 for the ones willing to go back to it. Later, I also published links to 1.6 Beta for the most courageous of you to try it out before final release.

I'm currently working and testing 1.6 Beta5. So far so good. In this release there is no more "Auto adjust OOM values LMK" and the latest patch is the "pmem: Builk update from msm-kernel-2.6.35".

Now, I noticed that one of the "gurus" in here has reverted the pmem 2.6.35 changes in his kernel. I'd like to understand why before I take the decision to either keep it in 1.6 final or remove it.

At the same time want to deeply retest the CWM changes before I can tell anyone that it is safe to use for backups and stuff.

Might publish 1.6Beta5 at least for some devices, in case somebody is willing to help me testing it.

Take care,

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] lsander:
Release for lww as you dont have this one. :) will test

For others is your will if you have time to upload :) we will always test
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rahimali:
kast, i'm using 1.6beta4 with the xperia t rom (ignore my signature please, i've been a combination of too busy and too lazy to update it ;) ) and so far so good, no unexpected reboots, nice and stable although i did find wifi wasn't immediately available but after one restart (which is still better than compared to the three restarts lupus 5.1 requires). it would be nice (if possible) if wifi was available immediately the first time a new ROM boots up :)

looking forward to 1.6beta5, will help test to the best extent i can :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
Hi, thanks!

Two builds so far

1.6Beta5 for Coconut / LWW

1.6Beta5 for Smultron / Mini

Changelog since 1.6 Beta 4

In the Kernel

LMK: Reduce debugging level

[PATCH] Optimized RCU Tiny

[PATCH] ARM: improve compiler's ability to optimize page tables

[PATCH] mm: migrate: one less atomic operation

Fix some compile warnings about uninitialized variables

Want armv7-a

Reverted LMK AUTODETECT_OOM_ADJ_VALUES

Removed SEC_ADJUST_LMK logic

Add missing CONFIG_ANDROID_LOW_MEMORY_KILLER_AUTODETECT_OOM_ADJ_VALUES in Configs

OC back till 1.7Ghz

Note: In this released Beta 5, pmem: Builk update from msm-kernel-2.6.35 is not present. Please tell me if you want to test it and I'll reinclude it for public beta test.

The ramdisk changes

bundled busybox now has working telnet, wget, ifconfig, halt, tunctl and vi

kamenu has been rewritten and should spawn less SU dialogs by using functions instead of a SU call per each option.

CWM replaced with own breed of 6.0.3.1(k)

Finally, CWM changelog since 6.0.1.2 up to 6.0.3.1k

Added Reboot and Shutdown menu with Fastboot and Recovery

Cleaned up menu

Store CWM Recovery Version Number

nandroid: backup: save recovery log

Fix segfault with dead symlinks

Blocked cached Google Music files from nandroid

Pass the correct pointer to munmap on failure.

UI text corrections

import init.recovery.hardware.rc

graphics: add support for "single buffering"

move umask to the top

recovery: make dedupe gc interruptable

fix lack of null termination being written to the lun file

Fix crash in recovery that occurs during backup.

More logging around backup completeion.

fix for backup completion log

Fix menu bug

[PATCH] Fix bug with sd card partitioning

My Changes

dedupe: fix buffer overflow

Merge "mtdutils: fix crash on large erase block" into ics

Merge "touch up the pictures, remove the leftover" into ics

recovery: fix up key repeating

Cheers!

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
Gonna check that.

Thanks,

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] fabio94cb:
As ever I will test it soon! :)

Inviato dal mio Xperia Mini Zelly Cream v3.0 & kappa kernel 1.6 beta 4
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
You confirm that this only happens when you flash a new rom... Not when you just update the kernel.

Drivers need somehow to match the kernel. Kernel won't allow loading a driver which has not the same "smell" as the kernel, it won't recognise it as its puppy ;)

As far as I've seen, wifi drivers in stock phones are not in the ramdisk but bundled in the rom and loaded, of course, at boot.

Because I didn't want to replace the ones provided by the rom (whether its a stock rom or not) as otherwise another kernel would have had problems... I did as others do too and bundled compat wifi drivers directly in my ramdisk and load them from it when the kernel boots.

This way I avoid completely having to replace the ones in the rom.

Now, this should happen always... Whether it's the first boot of the kernel (after kernel update) or whether it's the first time you boot a new rom.

I noticed too that flashing a new rom... Sometimes you need a second boot for wifi to be working. Generally it's ok when just flashing a new kernel. Something in the rom setup at the first boot of it makes wifi go crazy. I'll try to find some time to see what that could be.

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rahimali:
i think, if i remember correctly, the extended builds that Hikari No Tenshi used to make (for smultron) when used with included kernel used to have wifi available at first boot without need to reboot phone. i have flashed 1.6beta5 and wifi is working but i have only flashed kernel, rom is the same as prior, the xperia t rom.

is there any way way to test how kernel wifi would act when flashed along with a new ROM? (without actually replacing or reflashing ROM - just for testing purposed)

i did clear dalvik when flashing kernel
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
Just flashed another rom on my MiniPro (NICS) just for the purpose of trying this rom and see what happens with Wifi.

Update:

Wifi doesn't load at all. logcat shows troubles loading a firmware binary like it wasn't present somewhere expected.

Checking back Pureness V5 if this error is a "normal" one or something I need to take care of.

Update2:

Think we're getting closer...

First boot of "new" rom, wifi doesn't work:

D/kernel ( 162): [ 17.118041] wl1271_sdio mmc0:0001:2: firmware: requesting ti-connectivity/wl1271-nvs.bin
V/bq275xx_fwloader( 244): TI BQ275xx FW Loader.
E/kernel ( 162): [ 17.145111] [B]wl1271: ERROR could not get nvs file: -2[/B]
D/kernel ( 162): [ 17.147216] wl1271: loaded

Second boot, wifi works:

D/kernel ( 155): [ 19.629974] wl1271_sdio mmc0:0001:2: firmware: requesting ti-connectivity/wl1271-nvs.bin
D/kernel ( 155): [ 19.660156] wl1271: loaded

Little more checks needed to see if it's actually the only issue but I guess it's already a start. Now need to check what is exactly that component that fails to load and where it is supposed to be located. Then why not present in the first boot.

I'll keep you posted. I'd love to have this fixed!

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rahimali:
that's weird. transition from 1.6b4 to 1.6b5 was seamless for me... probably, like you said, more dependent on ROM. could you please try 1.6b5 on one of saqib's ROMs? viper or revolution or xperia t or zelly?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
Yes, it's not the kernel update that causes this, it's the first boot of a new rom and files (probably) that still needs to be placed where needed.

That's my speculation for now.

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rahimali:
could this be rom developer dependent? as in how he organizes or locates files etc.

which is why i suggested trying a rom cooked by another developer, saqib specifically.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] LaShto34:
The new beta5 is working great on my smultron device. Thank you.

The only think that remains to be fixed (in fact it's not a bug, just something not implemented yet) is that selecting from kamenu a io scheduler to be remembered after reboot. Or else the kamenu is useless. Anyway, I am using NoFrills CPU Control since I baught the phone and I'm very pleased with it. But I would like to use your kamenu instead, but only if it's a complete feature. This thing (a fully working kamenu) it's just a bonus that you gave us, so your kernel is still perfect without it.

Now just a question. Is it possible that afer installing a zip from SDcard in cwm to disable creating a folder called "o" on sdcard with only a file named "cwm_version" or something like that? The file autocreates also in clockworkmod folder also. It's useless, because we all know the version of the cwm.

Oh, yes, and the fact that the wifi doesn't work after first boot of a newly flashed rom... Maybe it's because when flashing a new rom we must select wipe everything (data, system, cache, dalvik), and only at the second boot the files needed for wifi are rewriten by the kernel. It's just a thought...

Anyway it's not a big deal. When flashing a new rom it's always recommended to let it sit for a while (about 15 min) and then restart. Only then the new rom is ready to use. Of course, the new rom can be used from the first boot, but that is the recommended procedure.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
Done, was long time due, thanks for reminding me about it

echo "-----------------------------------"
echo " "
echo " Current IO Scheduler: "
echo " $currio "
echo " "
echo " Choose an option: "
echo " c) Change IO Scheduler "
echo " s) Stick on Boot: $stickyboot "
echo " b) Back "
echo " "
echo " "
echo "-----------------------------------"

Personally think it's important to know with which kernel/cwm-version you did that backup someday you might need to restore. Considering we switch kernels every two days ;)

Guess I'm closer to the reason behind this. Now we'll see if there is actually an easy or clean way around it.

When you first boot a new rom, a specific binary file needs to be created for the wifi driver to work. This binary file uses an ini file with a set of predetermined parameters and then the MAC address of your wlan card is also added to the bin file.

Finally the wifi driver can be reloaded and it's got all it needs to work.

When you boot your phone using a custom kernel like mine, it loads the wifi driver directly from the ramdisk... Even before the init scripts of the newly installed rom have a chance to calibrate properly the wifi driver and create the required binary file.

Browsing forums in here you'll see that many times people have the need to recreate this binary file (NVS binary parameter file) for various reasons.

Now, to fix the issue... Either we just know that we have to reboot the phone once you install a new rom. Which is actually a good procedure anyway imho.

Or I might try to detect that the rom which is booting was never booted before... Put an option in kamenu to reload wifi divers or check if a delayed script could do once we're sure that the system has fully booted.

Hope my explanation is more or less clear...

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] rahimali:
this might be a stupid suggestion, but the file that is created with the MAC entry within it, could you not make the kernel create that file rather than wait for the ROM to do it? assuming that kernel has hardware level access to MAC without ROM involvement.... :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
This is exactly what I'm trying to look into.

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] lsander:
So now before going on dinner.

Installed, tested, so far so good.

CWM reboot to fastboot, shutdown works great.

No lags experience in games as always ( instead of 1.5 )

Did you changed already backup format to tar?

If yes I see no diference in files.

If no please make somehow to leave old standard as one which plus and tar as default in 1.7 build.

Kamenu without clicking this stupid enter every time is much better love it. But actually use no frills so it is only plus for to set there cpu.

So now need to reinstall miui. Why? Cause now Im staying with you longer so can do this as there in rom still can be some files from other kernels like drivers.

In sum love it and just wait for 1.7 build final.

And if anyone dont know coconut works great without any problem.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
Thanks a ton, you're help in testing is precious!

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] fabio94cb:
Hi kast. I tested beta 5 and as the other beta versions but i think that the phone is more smooth and I love the "reboot to fast boot" and the other commands! As ever great work kast!

Inviato dal mio Xperia Mini Zelly Cream v3.0 & kappa kernel 1.6 beta 5
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] LaShto34:
Thank you for fixing kamenu.

And ok, I agree with you that we must now the version of the cwm on which we made a backup. But I was talking about the fact that just a simple flash of any .zip through cwm creates a folder named "0" inside sdcard. That folder contains only one file with cwm version. The same file automatically creates inside "clockworkmod" folder from sdcard. Isn't any chance that at least the creation of the "0" folder to be disabled?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
Ah! Ok, now got it... Sorry, I'm getting old and stupid ;)

I'll look into this, thanks!

Little question... Would anybody be interested in having a "issue board" where to report kernel related issues, instead of using posts in here?

Github has it's own issue tracking system, now, don't want to push everybody to use Github but maybe we could find some other alternative.

Forum posting is great and there is no problem with it but a separate issue tracking system would allow for some easier tracking of reported issues.

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] lsander:
Yea make it it will more clean here as now to find some news from you or issues I need to revert many pages.

And as you are making issue board please make in first post :

Bugs with status if fixed in which version and proposition as anyone will see what.you are going to change.to not write it here over and over.

Just my propose.

Now reinstalled hole rom, is flying now without any bugs, less tweaks.

Tomorrow gonna.try naa kernel with aosp build but will always get back here until sandy want make miui v5 which will satisfie me.

Edit:

And didnt much take care of it but now checked that there is in cwm tar as default. But when enter sdcard/clokworkmod/ there are only .img and one with extension tar as it was before. Is it ok?

And one more. Im hope it is possible. I started today backup and didnt have enough space. So it started to copying and stuck on android.secure. It check on start free memory on sd card but not stoping when there is not enough. Is there anyway to make it checking free memory and stop when there is not enough?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
I'll look into CWM more carefully for both points you addressed, thanks.

For info, added a little piece more. nobodyAtall included in his kernel a reset feature. Quite clever!

By pressing HOME + POWER at the same time, the phone reboots instantly.

Quite nice for when the phone goes crazy and system is stuck in some crazy activity.

But because I considered a little too "drastic", being "instant" (might be wrong though), added a piece of code that will wait to see if the keys are kept pressed for a defined amount of time. Result, no possible "accidental" reset. You have to press HOME and POWER for more than 3 seconds before the phone reboots.

Guess I'll keep it for final.

Take care,

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] lsander:
great :) thanks a lot.

And something more. In 3.0.8 kernel is reported that it is working with stock rom. Can you look into it and later in free time and most important when all bugs there will be fixed and try to rebase or something :) Just think dont hurry up. First release 1.7 for us.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Gustavo RD78:
Kast, most tried this Beta with my script and still have problems with mobile internet

it seems that this problem by mounting mmcblk0p2 to directory /data, starting from this point I can not understand what may be causing this problem
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ccxex29:
Can i ask sonething? My brother's phone was mango(minipro) if it overclocked into 1.7GHz, is it safe? Will 1.7GHz OC not overheated it?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kingozzo:
R: [Kernel][ICS] Kappa Kernel 1.3 - Stock and Boost - 07/03/2013

In fact the boot is very fast!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
There are ways to make it even faster... But I prefer not to ;)

Jokes a part, let me explain. I investigated a little why other kernels were originally much faster to boot than mine.

I guess you know, but just in case, our CPUs have a max speed of 1Ghz. The speed at boot in stock kernels (as SE dictates) is set to be at around 400Khz. Much less than our max speed.

By checking the boot logs of some other famous kernels in here I noticed that they had changed the boot clock speed. The one probably being the fastest to boot in the forum runs at 1.9Ghz at boot. Yes, this is nearly the double stock max speed. I guess it may be safe because boot doesn't last too long. I took what I consider to be a safer approach and do the boot at 1.6Ghz. It's still quite higher than the normal max speed, not nearly the double though. As soon as the initial boot is over, the CPU is set to run at maximum the official max speed of 1Ghz. The default CPU Governor is Intellidemand, it'll safely scale from 249Khz to 1Ghz according to load.

Thanks for your input!

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
Hi there,

Ext4 is finally fixed!

Took me a while to see what was wrong but now finally seems ok. Tested it myself on Mango with Link2SD. Your reports are always extremely welcome.

Added a little thing more, maybe not of extreme use for most but this kernel can now mount (optionally, by enabling it via kamenu) HFS Plus and EFI partition table partition/drives. In case there are any Mac Os addicts out there, like me, that want to mount on the phone a USB Mac formatted volume.

Take care and thank you all!

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] :
very low total memory

its only 348
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
Hi,

thanks for your report!

What would you consider a reasonable amount?

Ka.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Gustavo RD78:
Kast

I'm using the new version 1.3a, now ext4 works fine

Thank you so

I have some questions

Vsync is disabled in your kernel? I notice a scrolling a bit (virtualized)

What are your conclusions about KSM? Maybe you could add in the next version;)

About hybrid kernel, I also think this would make a big difference over others

provided that there are some problems such as panoramic camera not working

so yes, this is one of the reasons that I'm using your kernel now

keep up the good work

Att Gustavo RD78
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] kast:
Hi there!

Glad Ext4 is now working fine for you too.

I had to climb up and down at least 5-6 times my whole "tree" before I understood that what was messed up was my build config... and not the sources. ;)

KSM is already enabled in this kernel. As others were suggesting it to be an improvement, I added it to the build config since V1.0

I'll have a look into VSYNC to see what's about it.

When you talk about hybrid... You mean CWM/TWRP or ICS/JB?

Thanks a lot!!!

Ka.