Jump to content

10/Mar 3.2 - MoDaCo Custom ROM for GSM Hero (now with online kitchen)


Recommended Posts

Guest teknologist
Posted (edited)
Hi Paul,

Do you think these patches could be applies to your custom kernel so as to enable support full support for bluetooth on HTC Hero :D

http://i-miss-erin.blogspot.com/2009/10/ho...in-android.html

I will try to patch my kernel with these...as per the usersapce tools and libs we'll have to see if paul can do it.

On my side I can try to make the kernel "aware" of openobex

[EDIT]

I don't think there is anyhting to do with the kernel. After reviewing it seems all patches ar userspace tools/libs...

Please anyone with more knowledge correct me if I am wrong.

Edited by teknologist
Guest ptruman
Posted

It may be me, or a flook, but "TopVoiceControl" now actually accesses my phonebook using MoDaCo 2.8, which it didn't seem to do before....

Guest JamesKing
Posted
For those of you who want to experiment a bit, and already have a swap partition (at least 64MB and it MUST be the 3rd partition), I really recommend to try teknologist's update.zip.

Is there a maximum swap partition size for this? OR even better, an optimum..?

Cheers,

James

Guest teknologist
Posted (edited)

Here we go,

As no one as asked for the update.zip , I thought you guys might be shy ;-)

Otherwise I don't see why you wouldn't try something we feel is better than stock hero kernel.

First of all, this kernel runs at stock manufacturer speeds, there is nothing overclocked in it.

I'll just drop it here and let adventurous folks try it on their own.

2 files:

One update .zip file named 1.3-hero-mck-teknologist-custom-signed.zip

One zipped shell script to init ramzswap : userinit.sh.zip (needs to be unzipped because .sh attachements aren't allowed of course)

First unzip only usernit.sh.zip and copy both files to your sdcard.

Make sure you have a swap partition as the 3rd partition on sdcard (type linux-swap) and its size is at least 64Mb (if unsure make it slightly bigger, otherwise compache will refuse to initialize).

If it is not the third, or you want to make it bigger (though for me the optimal is 64Mb for now) you just need to edit the userinit.sh file and change the following :

/system/xbin/insmod /system/lib/modules/compcache/ramzswap.ko memlimit_kb=64200 backing_swap=/dev/block/mmcblk0p3

with the appropriate partition, for example 2nd partition would be backing_swap=/dev/block/mmcblk0p2 etc.

If you don't want to use backing swap (some people say, and I tend to agree, that using this would shorten the life of you sdcard) just replace that line by:

/system/xbin/insmod /system/lib/modules/compcache/ramzswap.ko disksize_kb=65536

Once you are done editing userinit.sh, copy it to /system/sd using your favorite tool...(that's the only part where you need to be familiar enough with android tweaking)

Apply the .zip file update with any recovery method you use to apply Paul's ROM.

Reboot and you are set.

If you want to check if it is in use just run any console/terminal and type:

cat /proc/swaps

There you go,

Cheers,

--Eric

PS: Feedback is welcomed. for the moment we are 2 users using it and are pretty delighted with the perfs/responsiveness

And of course the usual stuff...if it breaks or turns your phone into a gremlin I am not responsible...use it at your own risk. That being said, there is nothing completely crazy/hardcore about this kernel...just plain hero with a few patches and tweaks...not that much. (ie: Again, it doesn't overclock anything, everything runs at stock manufacturer speeds etc.)

1.3_hero_mck_teknologist_custom_signed.zip

userinit.sh.zip

Edited by teknologist
Guest squirreleater
Posted

teknologist:

Thanks for your work.

I would flash your update except I haven't partitioned my SD card yet.

Don't be downhearted, Paul is busy at the mo, but once he gets involved there will be more interest I'm sure.

Guest teknologist
Posted (edited)
teknologist:

Thanks for your work.

I would flash your update except I haven't partitioned my SD card yet.

Don't be downhearted, Paul is busy at the mo, but once he gets involved there will be more interest I'm sure.

No worries, I just want to share with you guys the excitement...after Keramidas confirmed what I felt at first... ;-)

Now that the file are freely available here anyone can test and report...please report as this is the first reason for posting this... ;-)

[EDIT]

a few people asked for the sources. So I am going to take some time to get rid of the undeserved credit you are giving me guys.. ;-)

The source, as I told in previous post is nothing magic. Just the compache swap notify callback patch (availabale in compache 0.5.4 distrib) applied to the htc hero kernel released last week.

the tweaked config (mostly modules activations) is available through /proc.config.gz in your device after install...

wlan driver is from latest android platform sources...

Understand the sources are pretty big so I think with what I just told you in this post you can get the same sources (get htc sources, patch them with compache swap notify callback patch, very easy, no rejects) and copy the config file to .config in your kernel source root

If there is enough interest and I add many patches (beginngin with openobex) I'll upload to a github or something like that.

Right now, as I have lots of work (paid work ;-) I just don't have time to set that up. Again not about protecting my work as there really nothing to protect.

I don't want you guys to think I hacked deeply the sources... I am no C coder.. ;-) Just a GNU/linux kernel enthusiast for years now.. ;-)

After more than 10 years compiling kernels for servers etc. it just felt funny to compile one for my phone ...

Edited by teknologist
Guest JamesKing
Posted

thanks for the instructions :D

So I take it I do not need, and also should not install Swapper with your Kernel?

Or do I need both.

Sorry for being a lemon :P

Guest teknologist
Posted (edited)
thanks for the instructions :D

So I take it I do not need, and also should not install Swapper with your Kernel?

Or do I need both.

Sorry for being a lemon :P

Get rid of swapper ! No use...this is zillion times better...read my previous posts where I copied compache infos from their site. In fact it's no really swapping to sdcard, it compresses a pool of 64Mb in RAM and if it fills up it uses backing swap...but not until it's full..

Edited by teknologist
Guest JamesKing
Posted
Get rid of swapper ! No use...this is zillion times better...read my previous posts where I copied compache infos from there site. In fact it's no really swapping to sdcard, it compresses a pool of 64Mb in RAM and if it fills up it uses backing swap...but not until it's full..

Thanks. do I need to keep the userinit.shtfiles on there long term, or just for the first install? Do I need th macosx ones too when I'm only using windows, and don't want to edit it anyway??

Guest teknologist
Posted (edited)

For everyone, so i don't get same question multiple times

Hi (again)

I have a 32mb swap partition used for swapper. Can i still use this AND compcache by editing the userinit with :

/system/xbin/insmod /system/lib/modules/compcache/ramzswap.ko disksize_kb=65536 as you said in your post?

Also can you please help me with putting it into system/sd

Cheers MATT

Matt,

the disksize_kb param is for user without a backing swap partition...

You need to use the line with backing_swap replace it with:

/system/xbin/insmod /system/lib/modules/compcache/ramzswap.ko memlimit_kb=32000 backing_swap=/dev/block/mmcblk0p3

Make sure it is your 3rd or modify as per my instructions

As per your second question:

You put userinit.sh to /system/sd by using adb push userinit.sh /system/sd/ or whatever other method you like

then adb shell chmod 700 /system/sd/userinit.sh

Edited by teknologist
Guest teknologist
Posted
Thanks. do I need to keep the userinit.shtfiles on there long term, or just for the first install? Do I need th macosx ones too when I'm only using windows, and don't want to edit it anyway??

You need to leave it there as it initializes ramzswap at every boot.

What do you mean by the macosx ones ?

Guest teknologist
Posted
Is there a maximum swap partition size for this? OR even better, an optimum..?

Cheers,

James

64Mb works great for me. Keep in mind you are running linux on a phone not a PC!! ;-)

Posted
Ok, you are right :D . Thinking was phone's problems and it results to be a Windows problems :P . Thank you

I could solve this by using putty to telnet to the local machine and then do adb...

but that's kind of weird.. without having to telnet, what terminal emulator to use and how?

dan

Guest gazosdeamigos
Posted

Hi thanks teknologist your rom is sweet!!! Glad tun.ko is sorted no vpn was killin me. Ill post my findings after running for a day or too but looks rapid!

Guest JamesKing
Posted
You need to leave it there as it initializes ramzswap at every boot.

Thanks :P

What do you mean by the macosx ones ?

in the zip file I have userinit.sh and a folder called __MACOSX with a file in it called ._userinit.sh

I don't understand the purpose of that file, given that I don't even have a mac, and I can't work out if I need it or not :D

Guest teknologist
Posted (edited)
Thanks :P

in the zip file I have userinit.sh and a folder called __MACOSX with a file in it called ._userinit.sh

I don't understand the purpose of that file, given that I don't even have a mac, and I can't work out if I need it or not :D

My bad!

Just ignore those. I made that zip on MacOSX.

The file you are looking for is userinit.sh

[EDIT]

I replaced the userinit.sh.zip file in the original post with a clean file made on linux....damn OSX and it's hidden dir/files..; :-(

Edited by teknologist
Guest teknologist
Posted (edited)
Hi thanks teknologist your rom is sweet!!! Glad tun.ko is sorted no vpn was killin me. Ill post my findings after running for a day or too but looks rapid!

Glad you like it. By the way, it's not a ROM, just the kernel. the ROM is Paul's. He deserves the credit for that.

Did you find any decent GUI for openVPN ?

I have it installed but I don't use it cause it bugs me to use command line to launch a quick vpn connection...

Edited by teknologist
Guest keef319
Posted

Has anyone tried Amon Ra's Custom Recovery v1.2.2??

Looks like there's lots more options than Cyanogen v1.4...including the option to create the partitions on your SD card...

Any thoughts?

Guest teknologist
Posted (edited)
Has anyone tried Amon Ra's Custom Recovery v1.2.2??

Looks like there's lots more options than Cyanogen v1.4...including the option to create the partitions on your SD card...

Any thoughts?

Yep it's great, actually it is the one I am using. In fact I use 1.2.3

the file is called recovery-RA-HERO-v1.2.3.img

can't remember where I got it from though...sorry.

Edited by teknologist
Guest Robert Davidson
Posted

Hi teknologist

Its nice to see that some others are also doing some custom work to assist Paul, I have installed your update but am not sure if I have done it correctly:-

Microsoft Windows [Version 6.1.7600]

Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Users\COMPAQ>cd C:\sdk\tools

C:\sdk\tools>

C:\sdk\tools>fastboot boot Recovery-RA-HERO-v1.2.3.img

downloading 'boot.img'... OKAY

booting... OKAY

C:\sdk\tools>adb push userinit.sh /system/sd/

56 KB/s (347 bytes in 0.006s)

C:\sdk\tools>adb shell

/ # chmod 700 /system/sd/userinit.sh

chmod 700 /system/sd/userinit.sh

/ # exit

exit

At this point I applied your update and rebooted, I then wanted to check that everything was working and checked as followed:-

C:\sdk\tools>

C:\sdk\tools>fastboot boot Recovery-RA-HERO-v1.2.3.img

downloading 'boot.img'... OKAY

booting... OKAY

C:\sdk\tools>adb shell

/ # parted /dev/block/mmcblk0

parted /dev/block/mmcblk0

GNU Parted 1.8.8.1.179-aef3

Using /dev/block/mmcblk0

Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) print

print

print

Model: SD USD (sd/mmc)

Disk /dev/block/mmcblk0: 16.1GB

Sector size (logical/physical): 512B/512B

Partition Table: msdos

Number Start End Size Type File system Flags

1 512B 15.4GB 15.4GB primary fat32 lba

2 15.4GB 15.9GB 500MB primary ext3

3 15.9GB 16.1GB 202MB primary linux-swap(v1)

(parted) quit

quit

quit

/ # cat /proc/swaps

cat /proc/swaps

Filename Type Size Used Priority

/ #

As you can see my swap partion is 202MB which I hope is ok, I dont know if any other details should be showing after the last query.

Any info will be greatly appreciated.

Guest teknologist
Posted (edited)
Hi teknologist

Its nice to see that some others are also doing some custom work to assist Paul, I have installed your update but am not sure if I have done it correctly:-

Microsoft Windows [Version 6.1.7600]

Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Users\COMPAQ>cd C:\sdk\tools

C:\sdk\tools>

C:\sdk\tools>fastboot boot Recovery-RA-HERO-v1.2.3.img

downloading 'boot.img'... OKAY

booting... OKAY

C:\sdk\tools>adb push userinit.sh /system/sd/

56 KB/s (347 bytes in 0.006s)

C:\sdk\tools>adb shell

/ # chmod 700 /system/sd/userinit.sh

chmod 700 /system/sd/userinit.sh

/ # exit

exit

At this point I applied your update and rebooted, I then wanted to check that everything was working and checked as followed:-

C:\sdk\tools>

C:\sdk\tools>fastboot boot Recovery-RA-HERO-v1.2.3.img

downloading 'boot.img'... OKAY

booting... OKAY

C:\sdk\tools>adb shell

/ # parted /dev/block/mmcblk0

parted /dev/block/mmcblk0

GNU Parted 1.8.8.1.179-aef3

Using /dev/block/mmcblk0

Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) print

print

print

Model: SD USD (sd/mmc)

Disk /dev/block/mmcblk0: 16.1GB

Sector size (logical/physical): 512B/512B

Partition Table: msdos

Number Start End Size Type File system Flags

1 512B 15.4GB 15.4GB primary fat32 lba

2 15.4GB 15.9GB 500MB primary ext3

3 15.9GB 16.1GB 202MB primary linux-swap(v1)

(parted) quit

quit

quit

/ # cat /proc/swaps

cat /proc/swaps

Filename Type Size Used Priority

/ #

As you can see my swap partion is 202MB which I hope is ok, I dont know if any other details should be showing after the last query.

Any info will be greatly appreciated.

Reboot, try launching /system/sd/userinit.sh manually

and cat /proc/swaps

also can you give teh output of lsmod ?

Last but not least why would you run this >fastboot boot Recovery-RA-HERO-v1.2.3.img ?

just shut down the phone and start it after applying the update from RA recovery menu (apply a zip file menu option).

Also what does it say in Settings/about the Phone/ Kernel version ?

Edited by teknologist
Guest Robert Davidson
Posted
Reboot, try launching /system/sd/userinit.sh manually

and cat /proc/swaps

also can you give teh output of lsmod ?

Last but not least why would you run this >fastboot boot Recovery-RA-HERO-v1.2.3.img ?

just shut down the phone and start it after applying the update from RA recovery menu (apply a zip file menu option).

Also what does it say in Settings/about the Phone/ Kernel version ?

Thanks for the quick reply, this is what I have done, I think it is now working, I Hope.

# /system/sd/userinit.sh

/system/sd/userinit.sh

# cat /proc/swaps

cat /proc/swaps

Filename Type Size Used Priority

/dev/block/ramzswap0 partition 197720 0 -1

Guest domifer
Posted
Here we go,

As no one as asked for the update.zip , I thought you guys might be shy ;-)

Otherwise I don't see why you wouldn't try something we feel is better than stock hero kernel.

First of all, this kernel runs at stock manufacturer speeds, there is nothing overclocked in it.

I'll just drop it here and let adventurous folks try it on their own.

2 files:

One update .zip file named 1.3-hero-mck-teknologist-custom-signed.zip

One zipped shell script to init ramzswap : userinit.sh.zip (needs to be unzipped because .sh attachements aren't allowed of course)

First unzip only usernit.sh.zip and copy both files to your sdcard.

Make sure you have a swap partition as the 3rd partition on sdcard (type linux-swap) and its size is at least 64Mb (if unsure make it slightly bigger, otherwise compache will refuse to initialize).

If it is not the third, or you want to make it bigger (though for me the optimal is 64Mb for now) you just need to edit the userinit.sh file and change the following :

/system/xbin/insmod /system/lib/modules/compcache/ramzswap.ko memlimit_kb=64200 backing_swap=/dev/block/mmcblk0p3

with the appropriate partition, for example 2nd partition would be backing_swap=/dev/block/mmcblk0p2 etc.

If you don't want to use backing swap (some people say, and I tend to agree, that using this would shorten the life of you sdcard) just replace that line by:

/system/xbin/insmod /system/lib/modules/compcache/ramzswap.ko disksize_kb=65536

Once you are done editing userinit.sh, copy it to /system/sd using your favorite tool...(that's the only part where you need to be familiar enough with android tweaking)

Apply the .zip file update with any recovery method you use to apply Paul's ROM.

Reboot and you are set.

If you want to check if it is in use just run any console/terminal and type:

cat /proc/swaps

There you go,

Cheers,

--Eric

PS: Feedback is welcomed. for the moment we are 2 users using it and are pretty delighted with the perfs/responsiveness

And of course the usual stuff...if it breaks or turns your phone into a gremlin I am not responsible...use it at your own risk. That being said, there is nothing completely crazy/hardcore about this kernel...just plain hero with a few patches and tweaks...not that much. (ie: Again, it doesn't overclock anything, everything runs at stock manufacturer speeds etc.)

Hi,

I did this update, than you very much teknologist! It is running smoother now, I have only tried in the last 10 minutes though, so we shall see it's further behaviour!

Posted
Yep it's great, actually it is the one I am using. In fact I use 1.2.3

the file is called recovery-RA-HERO-v1.2.3.img

can't remember where I got it from though...sorry.

Here you go.

recovery_RA_HERO_v1.2.3.zip

Guest teknologist
Posted
Thanks for the quick reply, this is what I have done, I think it is now working, I Hope.

# /system/sd/userinit.sh

/system/sd/userinit.sh

# cat /proc/swaps

cat /proc/swaps

Filename Type Size Used Priority

/dev/block/ramzswap0 partition 197720 0 -1

Yep you got it working !

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.