yashsingh1/xdaforums huggingface dataset:
[XPERIA X10 Android Development] DooMLoRD:
the following is from /system/bin/chargemon of WolfBreak's CM6 rom

#!/system/bin/busybox sh

cat /dev/input/event2 > /dev/keycheck&
sleep 3
kill -9 $!
if [ -s /dev/keycheck ]
then

# remount rootfs rw
mount -o remount,rw rootfs /

# Umount MTDs
umount -l /data
umount -l /cache

# Extract recovery
cd /
rm -r /sbin
rm -f etc
tar -xf /system/bin/xrecovery.tar

# Umount system
umount -l /system

chroot / /init

fi

/system/bin/charger

# remount rw
mount -o remount,rw rootfs /

cd /
rm -r /sdcard
rm init*
rm logo.rle
rm default.prop
tar -xf /system/bin/ramdisk.tar

# zdzihu: hack-fix
if [ -e /data/data/com.android.providers.telephony/databases/telephony.db ]; then
/system/bin/chroot / /init
exit
fi

chroot / /init

put the code i provided in the previous post before these lines:

cd /
rm -r /sdcard
rm init*
rm logo.rle
rm default.prop
tar -xf /system/bin/ramdisk.tar

so it should finally look like:

#!/system/bin/busybox sh

cat /dev/input/event2 > /dev/keycheck&
sleep 3
kill -9 $!
if [ -s /dev/keycheck ]
then

# remount rootfs rw
mount -o remount,rw rootfs /

# Umount MTDs
umount -l /data
umount -l /cache

# Extract recovery
cd /
rm -r /sbin
rm -f etc
tar -xf /system/bin/xrecovery.tar

# Umount system
umount -l /system

chroot / /init

fi

/system/bin/charger

# remount rw
mount -o remount,rw rootfs /

if [ -e /data/local/tmp/kexecboot ]
rm -r /data/local/tmp/kexecboot
stop
stop servicemanager
stop vold
stop debuggerd
stop ril-daemon
stop installd
stop keystore
stop qmuxd
stop akmd2
stop media
stop dbus
stop port-bridge
stop wpa_supplicant
stop dhcpcd
umount /cache
umount /sdcard
umount /cdrom
umount /data/DxDrm/fuse
killall -9 DxDrmServerIpc
sleep 1
insmod /system/kernel/splboot.ko
sync
cat /system/kernel/miniloader > /proc/splboot/image
cat /system/kernel/boot.img > /proc/splboot/boot_img
sleep 1
echo > /proc/splboot/boot
fi

cd /
rm -r /sdcard
rm init*
rm logo.rle
rm default.prop
tar -xf /system/bin/ramdisk.tar

# zdzihu: hack-fix
if [ -e /data/data/com.android.providers.telephony/databases/telephony.db ]; then
/system/bin/chroot / /init
exit
fi

chroot / /init
[XPERIA X10 Android Development] iridaki:
Thank you! :)

I just want to clarify one thing: data2sd was developed by zhidu and is in experimental stage. I mean absolutely no disregard to him. ;)
[XPERIA X10 Android Development] flo44:
Hi !

I have been using the custom kernel for more than a week, and here's the only bug I'am having with :

Once the phone is under 20% of battery life, it reboots several times !

Thanks :)
[XPERIA X10 Android Development] rdannar:
Yes.. install thrrough newest flashtool beta.. or take charger chargemon script. Add recovery and kernal folder... make sure busybox is in xbin and then make sure update script is symlink to busybox and bin files or

Do changes like doomlord says... I recommended the flash tool method if you don't know much about scripts or files.
[XPERIA X10 Android Development] diimaan:
One more clarification it was implemented in X10 by z!

but it was developed by sibere/starburst team!!! ;)

and for sure no disregard to him... otherwise we would not be tasting froyo or anything further in our X10's... :)
[XPERIA X10 Android Development] diimaan:
has anyone tested any of the custom kernels on FreeX10-beta4?

else I will test in a while and update the status... Thanks
[XPERIA X10 Android Development] DooMLoRD:
testing right now
[XPERIA X10 Android Development] diimaan:
waiting waiting... :D
[XPERIA X10 Android Development] AN7 OverClocker:
where are those kernels and i cant see them?
[XPERIA X10 Android Development] diimaan:
sorry? you can't see which kernels?
[XPERIA X10 Android Development] AN7 OverClocker:
Where are the FreeX10 Beta4 custom kernels
[XPERIA X10 Android Development] diimaan:
there are no custom kernels available for freex10 beta 4 yet mate!

me and doomlord are testing the available kernels with freex10! :)

hoping that some might work! let's see...
[XPERIA X10 Android Development] AN7 OverClocker:
looool.

I thought that you was talking about custom kernels from FreeX10 Beta4
[XPERIA X10 Android Development] diimaan:
I think all the custom kernels having trouble running with freex10 beta4 as it requires the .54 baseband as minimum!

I tried with baseband patches! but either I stuck into bootloops or some 20 or 30 odd fc's on startup and reboots!

can anyone confirm this behavior?
[XPERIA X10 Android Development] DooMLoRD:
FreeX10-beta4-hotfix1 custom kernel test...

FreeX10-beta4-hotfix1 custom kernel test...

Baseband used: 2.0.52

Baseband patch 49/52

with TripnMiUI 1.0.3 wifi module

FreeKernel-alpha1 - Not Working / multiple FCs on OS boot

FreeKernel-alpha1-in-call volume fix - Not Working / multiple FCs on OS boot

FreeXperia Kernel-001 - ROM Working / WIFI ERROR

FreeXperia Kernel-002 - ROM Working / WIFI ERROR

TripNKernel Modified FreeKernel-03 - ROM Working / WIFI Working
[XPERIA X10 Android Development] diimaan:
I followed these steps!

1, flashed free x10 beta 4!

2, then applied the bb patch without restarting,

3, rebooted and allowed the system to reboot automatically till the radio worked!

4, flashed the modified kernel from trip!

but I got stuck into kernel loop!
[XPERIA X10 Android Development] a2441918:
But d usb port for n900 and x10 are the same and my frien is able to connect a pendrive to his n900
[XPERIA X10 Android Development] kunalgahlot:
When is the beta coming out :O

i want to try on .58 8)
[XPERIA X10 Android Development] 9Lukas5:
+1

want to try a custom kernal on bb .54 and up (i mean, zdzihu, could you make custom kernal version wich is compatible with the baseband on wich beta 4 is built for please)
[XPERIA X10 Android Development] DooMLoRD:
u guys know that a baseband patch (for FROYO roms) is available right?

and FYI it works well... have personally tested it... and currently using it...
[XPERIA X10 Android Development] 9Lukas5:
but i can't simply flash baseband 0.52 or is it the same as the baseband "patch"??
[XPERIA X10 Android Development] DooMLoRD:
u can download basebands here: http://xdaforums.com/showthread.php?t=960527

baseband patch is different... u can download baseband patches (for FROYO roms) here: http://xdaforums.com/showthread.php?t=1011608
[XPERIA X10 Android Development] chiefy009:
Tried flashing link didn't work on freex10

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] DooMLoRD:
which one?
[XPERIA X10 Android Development] chiefy009:
The one which you had on the post I quoted think its trips but its the one that works on freex10

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] DooMLoRD:
if u are talking about the links in the Custom Kernel Development thread then... the links are only for the boot.img files... u will need the other two files splboot.ko & miniloader (which are, afaik same for all kernels)... also u will need to make modifications to /system/bin/chargemon for booting using custom kernel...
[XPERIA X10 Android Development] chiefy009:
My mistake. Thank you

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] DooMLoRD:
hey no problem mate....

i think this will make it a bit clear why i have only kept boot.img files: http://xdaforums.com/showpost.php?p=12839350&postcount=16
[XPERIA X10 Android Development] chiefy009:
Do I push the boot image using the mod tool ?

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] j.anderson618:
lol... No
[XPERIA X10 Android Development] chiefy009:
Well enlighten me instead of just saying no

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] j.anderson618:
Follow the procedure they give you?
[XPERIA X10 Android Development] DooMLoRD:
the links which i posted there are all flashable via recovery and they contain ONLY the boot.img...
[XPERIA X10 Android Development] chiefy009:
Sorry for messing up your thread its a bit over my head

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] DooMLoRD:
:P

i will try n make it easier by providing flashable update.zip for miniloader/splboot.ko

might also try and provide some script for automatically modifying the /system/bin/chargemon file for custom kernel booting...
[XPERIA X10 Android Development] chiefy009:
That would be great I thought I could just flash it only just got my head round custom roms kernels really confuse me

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] admartian:
That would be awesome as I'm qiut unclear how to load custom kernels myself. :D
[XPERIA X10 Android Development] diimaan:
delete please!
[XPERIA X10 Android Development] chiefy009:
copied files over using root explorer wifi stopped workin boot not sure the boot img copied over as about phone still said the same kernel I am on beta 4 as well
[XPERIA X10 Android Development] DooMLoRD:
yup same issue on TripMiUI v1.0.4

odd thing is: kernel version comes up as "2.6.29 SEMCUser@SEMCHost #1 Mon Nov 29 16:43:00 2010"

can someone confirm kernel version?

EDIT:

seems i am doing something wrong... even on reboot (w/o custom kernel) it shows the same... i will try again...
[XPERIA X10 Android Development] 9Lukas5:
xrecovery update.zip for k003/beta3

Here's a update.zip for the Kernel 003/beta3:

Kernel 003/beta3 by Bin4ry

if you use it on cm7 u have to delete the files chargemon and carger in system/bin before flash
[XPERIA X10 Android Development] AN7 OverClocker:
are you talking about bin4rys kernel?

ps. Did anyone get wifi working with the new kernel? because i cant :(
[XPERIA X10 Android Development] chiefy009:
Yeah Bin4ry kernel, I couldnt get wifi working just said error, boot not sure the phone used the boot img as it booted normally and about phone said the same as it did before
[XPERIA X10 Android Development] 9Lukas5:
+1

are you on cm7 J015 or freeX10 b4h1 like me?
[XPERIA X10 Android Development] AN7 OverClocker:
i am on achotjan's v010 which is based on freex10
[XPERIA X10 Android Development] DooMLoRD:
my bad... i had missed out splboot.ko module while booting... :P

now it boots perfectly...

kernel version:

2.6.29-FreeXperia_Beta3

TheDoctor@Tardis #1

Fri Apr 15 20:31:56 EDT 2011

wifi doesnt seem to be getting activated on TripMiUI v1.0.4 (using provided wifi.ko kernel module)

can anyone confirm?
[XPERIA X10 Android Development] anders260:
I'm also on freex10 b4h1, does it work with this new kernel? Can I try and just go back if not with restore? With xrecovery? Just use update. Zip to get new kernel?
[XPERIA X10 Android Development] DooMLoRD:
my friend that file isnt flashable via recovery...

here are update.zips (flashable via recovery)...

boot.img:

boot.img_FreeXperia-Kernel-k003.zip

wifi.ko:

modules_FreeXperia-Kernel-k003_wifi.zip
[XPERIA X10 Android Development] AN7 OverClocker:
To be sure about the wifi.ko

we paste it in /system/lib/modules right?

permissions?
[XPERIA X10 Android Development] 9Lukas5:
ohhh.....my mistake...uploaded the downloaded file, just clicked the wrong zip cause they in the same folder!

excuse me

you uploading, so i haven't to updoad my file?
[XPERIA X10 Android Development] chiefy009:
Can I flash these ?

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] DooMLoRD:
no need

yes they are flashable via recovery... afaik there are no special permissions to be set for modules (please correct me if i am wrong)...
[XPERIA X10 Android Development] 9Lukas5:
have updated links, now the right file should be uploaded. Confirm it please DooMLoRD. Only that i now that i haven't to buy glasses ;)
[XPERIA X10 Android Development] AN7 OverClocker:
Can anyone also confirm that proximity sensor is not working or its just me?
[XPERIA X10 Android Development] chiefy009:
Do I need to do something else still the same after flashing them files

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] anantshri:
sorry to ask if its already answered nut what are the changes in this kernel...
[XPERIA X10 Android Development] DooMLoRD:
http://xdaforums.com/showpost.php?p=12929291&postcount=32
[XPERIA X10 Android Development] DooMLoRD:
if u want i can modify the chargemon file for that particular rom u are using... just post it here with details (version number) on which rom u using it on... i will edit it and post an update.zip so it will be easy for u :)
[XPERIA X10 Android Development] chiefy009:
I am using z beta 4 with hotfix for camera with baseband 52 what more do you need

Thankyou so much

I am on my phone but when I get to a pc and if you got donation button I will buy you a beer thanks

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] anders260:
I'm on the same rom but with baseband 54 do I need 52 to use the new kernel?
[XPERIA X10 Android Development] diimaan:
I am lame I think!
[XPERIA X10 Android Development] The Gingerbread Man:
Great idea thanks for helping us less technical people out. Excuse the dropbox it was the only way I could think of to post the chargemon. Cm7v15 k2 by jerpelea http://db.tt/FswuhGd
[XPERIA X10 Android Development] DooMLoRD:
steve the file u posted already has custom kernel booting as a default option... so no need to worry abt making further changes in it... :)

the strange thing which i noticed was there is no reference to the ramdisk.tar in that chargemon... :confused:
[XPERIA X10 Android Development] diimaan:
do I have to flash to baseband 52 or 49 will work fine?
[XPERIA X10 Android Development] diimaan:
delete as usual!
[XPERIA X10 Android Development] anders260:
Does z beta 4 with hotfix for camera work alright with BB52?
[XPERIA X10 Android Development] diimaan:
it works with the bb patch for 49-52!
[XPERIA X10 Android Development] chiefy009:
You need to use patch for bb52

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] anders260:
ok so i just use xrecovery and install BB52 and then bb patch for 49-52?
[XPERIA X10 Android Development] chiefy009:
Flash bb 52

Flash rom

Flash patch

Or if doing it your current rom

Flash bb52

Flash patch

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] diimaan:
use flashtool to flash the baseband and then xrec for the bb patch!
[XPERIA X10 Android Development] anders260:
Thanks guy's, will do that
[XPERIA X10 Android Development] The Gingerbread Man:
Thanks for the info, I got the chargemon from system/bin. Perhaps this is the wrong one or something, I wont pretend that I know much about the technical and coding side of things.
[XPERIA X10 Android Development] DooMLoRD:
sorry dude for the delay... was talking to J regarding the wifi fix issue...

[i havent tested it myself]

here are update.zips flashable via recovery

pre-modified chargemon file for FreeX10-beta4 (with offline charging & bonus reboot into recovery):

[1] chargemon_FreeX10-beta4_default.zip

this has modifications to make custom kernel booting as default option... ot will by default ALWAYS BOOT USING CUSTOM KERNEL (so stock kernel will ALWAYS BE BYPASSED)

[2] chargemon_FreeX10-beta4_test.zip

this has modifications for on demand custom kernel booting... it will by default ALWAYS BOOT USING STOCK KERNEL additionally it gives u the option to boot using custom kernel for next bootup... this is especially useful when u want to do kernel testing and dont want to get stuck up if custom kernel + custom rom combo is having issues... to boot using custom kernel follow the commands i have posted in that thread...

for on demand custom kernel booting

enter the following commands in terminal emulator/adb shell:

touch /data/local/tmp/kexecboot
reboot

some roms might not allow this command (reboot), in that case use the following:

touch /data/local/tmp/kexecboot
su -c reboot

[BONUS]

for booting into recovery from OS

enter the following commands in terminal emulator/adb shell:

touch /data/local/tmp/recoveryboot
reboot

some roms might not allow this command (reboot), in that case use the following:

touch /data/local/tmp/recoveryboot
su -c reboot

can u please test them?
[XPERIA X10 Android Development] cjsabaki:
Just for info....

Last night I tried flashing CM7 alfa2, kernel on Trip's 0.1.0.4 rom, I had been running his kernel version already.

All I did was flash the cm kernel with xrecovery and rebooted the phone, looking at the about phone settings it showed I was back to the stock kernel, I then flashed his kernel enable zip 1, expecting to move back to his kernel, when the phone booted up and I saw the xda boot screen, I knew I was now on the cm kernel..... Confirmed...

The phone had the slow wake up issue from sleep, text scrolling was blurry, and it got the signature boot loop once battery drained down below 20%. ( I saw this also running cm7v15 with this kernel...)

I installed droid overclocker ( love it!!! ) and it did show 1113mhz overclock!!!

I will try the new version of the Kernel later today when I get off work and report anything unusual.

Best regards,

Chris
[XPERIA X10 Android Development] chiefy009:
Will do and will report back

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] anders260:
pre-modified chargemon file for FreeX10-beta4 (with offline charging & bonus reboot into recovery):

[1] chargemon_FreeX10-beta4_default.zip

this has modifications to make custom kernel booting as default option

[2] chargemon_FreeX10-beta4_test.zip

this has modifications for on demand custom kernel booting

can you explain the diffrence between these, and also how do i do when i will boot custom kernel or standard kernel ( how do i switch) sorry little noob on this

i'm on z free10 2.2 with stock kernel, can i use custom kernel also just by choosing in xrecovery?
[XPERIA X10 Android Development] chiefy009:
Flashed boot img modules and chargemon as default didn't work

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] diimaan:
looks useless to me!
[XPERIA X10 Android Development] DooMLoRD:
ok...

chargemon_FreeX10-beta4_default.zip will by default ALWAYS BOOT USING CUSTOM KERNEL (so stock kernel will ALWAYS BE BYPASSED)

chargemon_FreeX10-beta4_test.zip will by default ALWAYS BOOT USING STOCK KERNEL additionally it gives u the option to boot using custom kernel for next bootup... this is especially useful when u want to do kernel testing and dont want to get stuck up if custom kernel + custom rom combo is having issues... to boot using custom kernel follow the commands i have psoted in that thread...
[XPERIA X10 Android Development] DooMLoRD:
i think u are missing the additional files splboot.ko & miniloader in /system/kernel/

u can get them here: http://www.mediafire.com/?1ci1ul9vtqsgvf2 [update.zip flashable via recovery ;) ]
[XPERIA X10 Android Development] anders260:
ok, then i will use test.zip, so now i only need to use xrecovery and install custom kernel by Bin4ry and then i can choose if i want to use stock or custom?
[XPERIA X10 Android Development] chiefy009:
Doing it now

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] abdurahman:
the new j kernel won't work in 2.1 .435 right???
[XPERIA X10 Android Development] chiefy009:
Got new kernel on beta 4 kernel is in cpu is rapid and rom is wifi not working though

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] anders260:
flashed the test.zip, when do i get the option to start custom kernel on next bootup?

also it will not reboot into recovery , do i need to enter the commands in adb shell also?

what am i doing wrong?
[XPERIA X10 Android Development] DooMLoRD:
which rom u tested with?
[XPERIA X10 Android Development] diimaan:
I thought you would say something different!
[XPERIA X10 Android Development] chiefy009:
And me shame. Rom is rapid CPU is fast 1500 on quadrant !!!!!! Just need wifi

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] DooMLoRD:
i am currently using/testing TripNMiUI v1.0.4 on bb: 2.0.52

anyone having charging issues with kernel: FreeXperia Kernel-003 / beta3 by Bin4ry

i tried to use usb charger to charge device when using this kernel... it doesnt charger?! the battery was actually draining :confused: :confused: :confused:

is it just me or are others also having this issue?
[XPERIA X10 Android Development] Aeny:
What I recall from using the very first custom kernels is that they don't show when they're charging, but they do charge (watch the battery percentage?). It should charge.. I hope. I'd test it but I don't have time right now.

~Aeny
[XPERIA X10 Android Development] AN7 OverClocker:
would you like to tell me how this script is working?

i.e how could i choose if i want to boot from a custom kernel?
[XPERIA X10 Android Development] j.anderson618:
I tested binarys on 54.. your talking about the one with the bird or hawk?

I got it working it said semcs kernel but I could tell it wasn't.. I used it for a good 12 hours.. the CPU clock is set at 576 Max. I couldn't get out of the kernel by flash a rom.. had to use ft wifi worked for me but now my phone properties look like this.. still don't know how to fix it..

Phone

Phone Type: GSM

IMEI: 359420039196180

Software Version: 52

Phone Number: Unknown

Network Country Code:

Network Operator Name:

Network Operator Code:

Network Type: Unknown

Roaming State: Not roaming

SIM Country Code:

SIM Operator Name:

SIM Operator Code:

SIM Serial Number: Unknown

SIM State: Unknown

IMSI: Unknown

Mobile Country Code: 0

Mobile Network Code: 0

Voice Mail Number: Unknown

Voice Mail Alpha Tag: Voicemail

Seems like I'm ****ed

Even tried getting back to atts branded firmware doesn't even show the KB just vibrates nonstop
[XPERIA X10 Android Development] cjsabaki:
New Bin4ry kernel up n working on Trips 1.0.4 miui, screen wake up all ok. Showing 1113mhz batt temp 104... so far so good...
[XPERIA X10 Android Development] AN7 OverClocker:
To all that you have the 3rd beta kernel from bin4ry.

Does the proximity sensor working for you?
[XPERIA X10 Android Development] cjsabaki:
Just called the wife.... No the proximity sensor is not working.... fps is still capped, 1336 quadrant, 2d n 3d not fast at all.... gonna try modded z kernel from trip later, not oc'd or undervolted, but fps uncapped, will compare n report later.... Devs might wanna look at Trips kernel add on paks, they work damn good.....
[XPERIA X10 Android Development] cjsabaki:
No issue with low battery induced bootloops.... thrashed it n all good... much better!! Battery life is better too.

Look at the app kernel manager in the market, can unzip modules n host new kernels.. might be worthwhile in the near future!!

Chris

Sent from a kustom kernel Trip!NMiui special!
[XPERIA X10 Android Development] DooMLoRD:
u can check the following for some details on how it works...

http://xdaforums.com/showpost.php?p=12933988&postcount=338

if u still want some more info let me know...
[XPERIA X10 Android Development] DooMLoRD:
hi! we (me n MrHassell) are planning to work on a custom kernel manager (based on xCharge)
[XPERIA X10 Android Development] DooMLoRD:
i can confirm that fps cap is not removed in this kernel...

as for Trip's kernel addon packs: well they will work only for his rom...

unitl we get a unified chargemon file we will be having these issues.. :(

i was thinking of writing a script (like this one) for automatically modifying the chargemon file but because of SO MANY VARIATIONS used by different devs for each rom its really becoming a bit difficult to get that script working...

may be if all devs (and users) shift to freexperia recovery... so we can have a unified chargemon and may be then we can make this work...
[XPERIA X10 Android Development] r-ikfoot:
+1 we would like have an unified chargemon for a better xperia experience and more stability!!!
[XPERIA X10 Android Development] chiefy009:
Bin4ry kernel

Flashed again to have a play very smooth and fast. Give wlod when running linpack

sent from my Z orignal and modded 2.2 powered c64
[XPERIA X10 Android Development] r-ikfoot:
I also have wlod when running linkpack

sent from rom 2.2 wolfbreak v06 with custom kernel