yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] evilvoice:
WOW People are "pissy" tonight...anyone got a midol? LOL Im just kidding.

Seriously, though, Foo_Blyat and Firerat have done an awesome job on offering this to us. Foo, I didnt know you had Tmobile, but I see it now, awesome of you for giving instructions on how to do this. Seriously, this mod does work, take it from someone who screwed up their phone and had to go back to almost Day 1. If you are experiencing issues, start over. It sucks, trust me, I know. I gave a lot of Tips and explained what I went through. Also, if it isnt working, you might as well start over anyways because you will constantly have issues.

For Kyle, firstboot.sh should be in the rom zip file under data...I do not know if it still exists after firstboot has happened, so you may not find the file on your phone. You need to edit the Rom and input the command there. I do not know as I am not a rom cook, a mod creator, or a theme builder...I just search a lot and all over the place...not saying you should, just that it is what I do. I ended up editing PureHero 2.1 Snow_MOC for my needs. I needed a rom with the VERY MINIMAL to boot and update prl, so I extracted the rom on my pc, removed almost everything I could see as possible (no browser, sms/mms, maps, calculator, calendar, email, gmail, gtalk...basically, I added AndroZip [personal reasons], left Device Self Service, SuperUser, Contacts, Phone, ADWLauncher, Navigator [anyone know how to remove that? Its not an apk], Settings, Setup Wizard, and Visual Voicemail), zipped it back up and flashed. Yea, I have errors (stupid HTC bg error), but it updates prl which is the only reason I put it on the phone. I did not sign the zip as Clockwork allows flashing of unsigned zips.

Foo, in my experience, just flashing a new recovery does not fully undo this mod as the partitions are still set. You need to either have clockwork format the main 3, or do a fastboot. The problem on CDMA heros is that most of us can not use fastboot, we have the ability, but it just came out not long ago, so as I see it, the only option is to clockwork recovery format partitions. If any of this is wrong, feel free to tell me
[Hero CDMA Android Development] danaff37:
Your last part there, about the recovery not totally reversing it, the original instructions, later re-iterated by firerat, say you must format /data and /system if there are any changes. I don't think anyone here is trying to be pissy or be an ass, but this is a bit more advanced than a simple flash of an update.zip. You have to understand a little bit about how android is set up to know what numbers and stuff to use. I was flashing over an eclair rom the other day and totally borked my phone because I forgot to change the mtdpart.txt... lol It booted, but my home button didn't work and a few apps I knew were in system were missing, and I suddenly realized what I did. Thank god for nandroids.
[Hero CDMA Android Development] Firerat:
not as far as I know

I'm limited due to my G1, but I have an idea to get round this

I will do a proof of concept , with CM6 and some donut

basically I will add a new partition ( system2 ) and modify one of the boot.imgs to use that partition as system, I will then use some script magic to handle the /data side of things

not sure when I can do this, I have some other things on the go, and tbh I want to do a re-write of CustomMTD to tidy it up, get better 'reporting' and hopefully more compatible with other phones/devices.

initially the dual boot will be very much 'hardcoded', but once I get the POC out then we can probably make it customisable ( I can probably even patch a boot.img from within recovery )
[Hero CDMA Android Development] evilvoice:
If you read just ONE post above mine, and the entire post, you will see Foo says to flash an unpatched recovery. I was responding to that post alone...not the entire thread. It might have been short-hand in his post, but that is what I was referring to. Also, the original instructions, as written, give the illusion that you can simply "wipe" the partitions and that is just not true. Yes, he does say Format/wipe, but as someone who had a recovery that did not let you format and only let you wipe, and who did not have access to a pc, wiping becomes the option. I can tell you firsthand that wiping does not help in working with this mod once you have done the mod for the first time (the first time I set it up, I only wiped and the mod actually did work, I have no explanation for that. I have theories, but nothing concrete). Yes, I figured out how to fix it through reading through this thread.

In response to your second part about how hard this mod is to achieve, I cant see why you would say that. Firerat has done a fantastic job on making this mod work, and he even put it in a nice zip format to flash from recovery...so explain how it is NOT "that easy"? Foo has done a wonderful job of posting instructions for Hero CDMA users, which again, makes this an easy mod. I know it is said numerous times that if you dont understand, dont use the mod...but honestly, how hard is this? You follow instructions, your set. About the only thing a person needs to do is to figure out how big of a system partition is needed for their rom (and maybe cache, most say 2, I say 3, but whatever). The only thing a person has to understand is to run df and interpret how many MBs system takes.

I understand your eclair story, but you must have only been a few MB's off in your partition. When I did something like that, it was 50MB off and after wiping data and cache and flashing a rom, it would not boot at all -> Green HTC logo, reboot, Green HTC logo, recovery...would not go anywhere else, and after 1 reboot, it would dump me to recovery, so that was kind of cool.

The first statement was a joke, btw.

Firerat, man that would be awesome. I know it will take some time, and as you said, you have other things to deal with, but to know someone is actually going to look into this is just really cool. I do not know the memory of the G1, so I dont know if it is possible to do both CM6 and Donut just using the onboard memory. CM6 is what? about 105MB, and Donut is around 150? along with data for both in the realm of at least 150 for one, and who knows about the 2nd. Obviously, those are just rough numbers, and Im sure if you minimized data to just 100 per system, it might be doable. People can take it or leave it with whatever partition size you get to work...just thinking out loud. You obviously would know more about that ;). I know someone was doing a POC on running from sdcard. Form what I read, a consolidated guide has not been created for that.
[Hero CDMA Android Development] danaff37:
There's an app on the market called linux installer. I found it trying to boot ubuntu on my phone, but loop devices is not working for me for some reason even though they are enabled in the config.gz under/proc. Anyways, he says he has a custom g1 recovery that lets you boot straight to ubuntu without android (obviously without phone capabilities at that point). Basically, from what I read on his site, boot normally, android. Boot into recovery, linux. But I also think this means no regular recovery options, but you could always flash one over real quick. But maybe you could look/improve/kang or whatever.
[Hero CDMA Android Development] Firerat:
remunt /sdcard with the dev option

mount -o dev,remount /sdcard

by default its mounted with the nodev option , which means that that filesystem will not allow device files, and a loop mount is like pretending the file/image is a block device

simple if you know about linux
[Hero CDMA Android Development] nimitz87:
I have read this thread but have a simple question

at step 11. do I have to flash the actual CM6 again and basically lose my nand? and have to start over or is there a way where I can restore my nand while keeping this mod.

I have booted it with CM6 and works perfectly fine with 339mb free was just wondering if there is an easier way for me to nand back to all my previous settings/apps.

thanks

Chad
[Hero CDMA Android Development] Firerat:
you can restore a nand, just don't forget to flash the boot patcher
[Hero CDMA Android Development] nimitz87:
ok so nand' then did the boot zip reboot it and gets stuck up on the HTC screen...:confused:

Chad
[Hero CDMA Android Development] Firerat:
and your logcat says?
[Hero CDMA Android Development] nimitz87:
well I'm sure this mod is great and I'm not saying anything bad about it but its not for me at this time...trying to go back to my nandroids and it brings up the setup screen where I can't click or it gets hung up on the boot screen if I try and flash the actual ROM again it hangs during the install...

help please?

Chad
[Hero CDMA Android Development] Firerat:
the cachebind script is not running
[Hero CDMA Android Development] nimitz87:
so I need to do this?

su

sh /system/etc/init.d/06BindCache

when I go into the shell and type SU

C:\android-sdk-windows\tools>adb shell

/ # su

su

/sbin/sh: su: not found

/ #

edit: got SU working says it can't open the cachebind

Chad
[Hero CDMA Android Development] Firerat:
/sbin/sh indicates you were running recovery

you don't need su for adb shell

ultimately you are going to need to figure out how to get that script to run on boot

Edit:

echo "sh /system/etc/init.d/06BindCache" >> /system/init.d/gumbo.sh

note, if you are using a2sd you might like to

link /system/sd/cache/dalvik-cache with /data/dalvik-cache for better performance

( tbh you should probably not use a2sd )

this is all assuming RegawMOD as per your sig
[Hero CDMA Android Development] nimitz87:
damn sig I was running the 8/30 nightlie, battery tweak, and decadence #9, no apps2sd

Chad
[Hero CDMA Android Development] james33440:
What is the size of your mtd text file? It may be too small. I've been using 110 3 on all my aosp roms. When I used anything smaller it would hang at the HTC screen.

Or just do 200 2 and once its loaded see how much space the system takes and the edit the mtd text accordingly.
[Hero CDMA Android Development] nimitz87:
110 as well.

I think there is something wrong with that Nandroid I just got CM6 RC1 to boot and all was well (without the mod) I go to restore my nandroid and it brings up the setup screen and won't let me click on the Android logo at all...will try another backup

Chad
[Hero CDMA Android Development] customhdrider:
Fireat,,when trying to use code df -h,,it says file not found,but internal memory is triple what it was,,went from 54 to 187...any ideas?..great mod and thanks so much for this..using this with Blue Echo rom,,
[Hero CDMA Android Development] danaff37:
I'm learning linux slowly. But it's ben a bit annoying as I only have my laptop and it has an ati video card that isn't liking to play well with linux. I can get 3d performance with proprietary drivers, or watch full screen video with open source drivers, but no way to get both.
[Hero CDMA Android Development] evilvoice:
I have this problem also. In the rom I am editing, I tried adding a newer version of busybox to fix it, but never could get it to boot. Anyways, just use df (leave off the -h) and youll have to use your own calculation to get readable numbers
[Hero CDMA Android Development] customhdrider:
Thanks evil,,I'll give that a shot..
[Hero CDMA Android Development] customhdrider:
Works like a charm evil..thanks man
[Hero CDMA Android Development] evilvoice:
What rom are you using? PureHero? I only ask because it is the rom I am editing and have this problem...about the only rom ive seen with the issue too.
[Hero CDMA Android Development] customhdrider:
Using Blue Echo,,
[Hero CDMA Android Development] Firerat:
did you read the logcat?

dalvik-cache is being built on /cache, which is too small

for whatever reason the cache bind script is not running, make that script run, problem will go away
[Hero CDMA Android Development] Firerat:
ahh, my bad

yeah, drop the -h bit, or use

busybox df -h

I forget you are all using roms based on old thinking
[Hero CDMA Android Development] Firerat:
you could unzip the rom on pc and take a look at the size of system before you flash it
[Hero CDMA Android Development] Firerat:
well I'm very surprised that a cm rom is not running the script on boot
[Hero CDMA Android Development] james33440:
I never thought of that. This is a good tip.
[Hero CDMA Android Development] smolck:
So I forgot to look at my internal storage before doing this mod, but it says I now have 335mb. It is safe to assume I did it right?
[Hero CDMA Android Development] nimitz87:
lol yes.:D

Chad
[Hero CDMA Android Development] Firerat:
yeah, looks like it worked

but the hurdle you have is the cache bind mount

it seems that some of the hero roms you are using have not woken up to the power and flexablitlty of run-parts.

I'm thinking of testing for, and adding this as required, but tbh it would be nice if devs would 'catch up' and stop just copying the old ways, even file pusher 'devs' can implement run-parts'

I can probably patch in the required bits, but it will take longer to flash and might be a bit hit/miss for a while

busybox run-parts /system/etc/init.d

ftw

any dev that can't use that is just a Muppet file pusher like king
[Hero CDMA Android Development] smolck:
Thanks! On CM6 this thing flies. JIT seems more stable too. Maybe its the placebo affect but I dig it!

Thanks for this!
[Hero CDMA Android Development] nimitz87:
okay so I attempted this again (scary) and got it to work however I have a question

it is telling me I am using 242/345mb when before I was using at most 130 or so.

how did I double that?

phone wouldn't boot without setting partitions to 112/3 using 9/5 nightly decad3nce #11.

seems to be working besides that.

hmm

Filesystem Size Used Available Use% Mounted on
/dev/block/mtdblock3 90.0M 89.0M 1.0M 99% /system
/dev/block/mtdblock5 117.8M 99.3M 18.4M 84% /data
/dev/block/loop0 4.0M 4.0M 0 100% /system/xbin
/dev/block/mmcblk0p2 457.4M 88.0M 345.0M 20% /sd-ext
/dev/block/mmcblk0p2 457.4M 88.0M 345.0M 20% /cache
/dev/block/mtdblock4 2.0M 816.0K 1.2M 40% /dev/cache

and this is what I have...

Filesystem Size Used Available Use% Mounted on
tmpfs 95.4M 12.0K 95.4M 0% /dev
tmpfs 95.4M 0 95.4M 0% /mnt/asec
/dev/block/mtdblock3 112.0M 106.3M 5.7M 95% /system
/dev/block/mtdblock5 345.1M 102.2M 242.9M 30% /data
/dev/block/mtdblock5 345.1M 102.2M 242.9M 30% /cache
/dev/block/mtdblock4 3.0M 1.1M 1.9M 38% /dev/cache
/dev/block/vold/179:1
6.5G 2.1G 4.5G 32% /mnt/sdcard
/dev/block/vold/179:1
6.5G 2.1G 4.5G 32% /mnt/secure/asec

Chad
[Hero CDMA Android Development] smolck:
I cannot seem to load other roms after doing this, even though I changed the .txt sizes. Can someone tell me how to uninstall this? I am stuck on CM6.....

EDIT: looks like in the other post it says to install a new recovery, is that all I need to do?

EDIT: Yep, that did it.
[Hero CDMA Android Development] danaff37:
I do believe you are misreading that. You are only using 102mb on /data, the 242 is what you have free.
[Hero CDMA Android Development] unCoRrUpTeD:
Just tried it and it worked. Great Job!!!
[Hero CDMA Android Development] KyleIsTheBeast:
Wait, so this is the fix for my problem too?
[Hero CDMA Android Development] hapa8o8:
I have been getting issues with the customMTD...

everytime I reboot it reboots all the settings in AWD, pops that tutorial back up, and what not... WTF IS GOIN ON!?? :blink:
[Hero CDMA Android Development] brokentoaster24:
yeah this gave me some serious issues. i followed the directions exactly as they are stated and this seriously jacked up my phone... like i can't even restore my nandroid backup now. I've done countless wipes and reflashes of anything just trying to get my phone to boot. for the longest time I couldn't even get past the htc screen.

use this at your own risk. if you don't know what you're doing, do NOT do it
[Hero CDMA Android Development] Rivas123:
Yeah he does state to not do it if you dont know what youre doing. I never had any of those problems youre having. Try wipeing everything. Flash the first file. Then flash rom, kernel, etc. Then the boot file. Notice i didnt say reboot recovery. Just go straight through it. Try that. If that doesnt work idk what to tell you.
[Hero CDMA Android Development] dsMA:
dual boot

idk if you saw or not but there is a guy who has boot from sd working on the Eris. If you are still looking into dual booting you might want to try contacting him and seeing if he can offer any help. Here is the link to the thread to the guy's thread:

http://xdaforums.com/showthread.php?t=779274
[Hero CDMA Android Development] Firerat:
thanks, but its trivial I already know how to do it, and not by having the system img on sd, but on a separate mtd partition
[Hero CDMA Android Development] hapa8o8:
hmmm I knew what I was doing, followed the steps correctly, but I am wondering why my ADW settings keep resetting (i.e. 5 columns, back to 4), the tutorial comes back up, and my icons go back to default...

any explanation? better yet, any resolution?
[Hero CDMA Android Development] dsMA:
I have been away from this thread for a while so haven't been following all the recent updates....do you have dual booting working?
[Hero CDMA Android Development] Firerat:
no , but its not difficult

all that needs to be done is to add and extra partition to the mtd layout called system2 or something..

then in init.rc mount mtd@system2 instead of mtd@system

and then just worry about how to keep /data/data and /data/system separate

it really is quite simple
[Hero CDMA Android Development] evilvoice:
Firerat, I saw in a previous posting that the reason df -h was not working was because of lazy cookers. I am working on a rom of my own and was wondering if you could tell me the right way to implement busybox. I took the Sprint rom, and have been using the kitchen to customize it, I just tested busybox, and the same -h - No such file or directory error appears, I have had this in just about every rom I have worked on, with the exception of a few, and have never found a way to fix it, so if you could help me, I would appreciate it.
[Hero CDMA Android Development] Firerat:
the simplest way is to just delete the toolbox df symlink, this way the df to busybox symlink will be used ( xbin comes after bin in the PATH env )
[Hero CDMA Android Development] Vandelay007:
If I want to wipe and reflash a nandroid backup do I need to flash the recovery file again or just the boot file, since I would not be altering m mtd file
[Hero CDMA Android Development] partytrikk:
will it cause any problems if my chache is at 100 percent usage? I upped it an extra megabyte and its still 100 percent.. my phone seems to be working just fine. I guess I'm just worried if there will be any future problems. whatcha guys think.. keep fine tuning, or leave it alone?
[Hero CDMA Android Development] Vandelay007:
Its fine, cache will say that regardless...enjoy your extra space!
[Hero CDMA Android Development] Firerat:
indicates that you missed a wipe

your best bet is clockwork recovery

nandbackup and use the partition format on system,cache and data

then nandrestore

recovery will 'fill' the cache with logs, just wipe it now and again
[Hero CDMA Android Development] partytrikk:
I'm gunna go with your post seeing as I know I didn't 'miss a wipe'. thanks :)
[Hero CDMA Android Development] Firerat:
lol, well you carry on then
[Hero CDMA Android Development] partytrikk:
thanks for the awesome guide, by the way! maybe once my friends see how much more room I have, they will stop pretending my hero isn't any better than theirs :p
[Hero CDMA Android Development] dhero1:
Works as advertised for me, and a big win in several ways ... so thanks much! :)
[Hero CDMA Android Development] simon.ponder:
BlackMod for CM6 Stable

Has anyone had any luck with this when using gomorrah's BlackMod for CM6 Stable? I can get this to work on other's including CM6 Stable without the BlackMod. Is there something in the BlackMod that may be changing how this mod works?
[Hero CDMA Android Development] Vandelay007:
Unlikely, I'm running that too and it works for me
[Hero CDMA Android Development] miguelfp1:
so am i, running CM6 stable, BlackMod, decadence's #14 kernel, and Collin's v3 RC2 battery tweak.

in waht order are you flashing the zips?
[Hero CDMA Android Development] simon.ponder:
1) Threw the two files on the sdcard

2) Created the text file (mtd 106 6) - those are the settings that ended up at least letting it boot to the intro.

3) Wiped everything and then flashed the recovery patch

4) Wipe everything again and Reboot Recovery

5) Flashed the CM6 stable zip, then bm6, then cnm6(circle battery mod).

6) Finally flashed the boot zip

7) Restart phone

The phone loaded, but upon showing me the android to touch, it seemed as if the touch would not trigger the run once at initial load application/program. The android would turn white when i touched it, but nothing would ever start. I could change my wireless settings, and load the emergency dialer. But that was about it. I was using clockworkmod recovery for this.

I finally nandroided back to a version that allowed me into cm6 but without the desired firerat mod. I then flash back the RA recovery.

I booted back into that recovery, repeated all the above steps, except I used a plain jane image of cm6 stable that I had nandroided from RA on Sep 19th, instead of cm6 from scratch. After flashing everything in the correct order, I was able to get the mod working in those steps applied.

I attempted the cm6 from scratch three times, all with the same result, not able to get past the first screen when the phone loads and your supposed to link your Google account.

Oh yea, even though it took me a little longer, I started with 257 m for data.

It all worked out, eventually. Thanks for another great Hero Mod.

Edit --

One hour later after getting all apps reloaded, I attempted to back up my phone through ROM Manager. When it rebooted into recovery, it did not start the backup automatically. I attempted to back up, and it would freeze on the system image. I booted CM6, and then I had no service, no matter where I went.

Unsure of what is causing this...
[Hero CDMA Android Development] Vandelay007:
After your second wipe (step 4) are you rebooting to recovery through your phone or with adb? I find I have to do adb reboot recovery for the partitions to work properly

And secondly, when you tried to flash a nandroid of cm6 did you remember to flash the boot file before restarting?

You don't have to start with a fresh install of your rom, a backup will do just fine, then your kernel and the boot file...
[Hero CDMA Android Development] simon.ponder:
Yes to your first two questions.

I was trying with a fresh install because my original backup from clockworkMod did not work.