yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] jokersax11:
sounds like the boot logo is preset to a address your using on boot. once the kernel loads shouldnt be an issue. anyway to get the qualcomm pbl source or at least a dump that anyone might know about? this might help with getting to our 128+ goal
[G1 Android Development] daproy:
Not sure. In order to fit the frame buffer memory in SMI I had to reduce its size from 0x00100000 to 0x0009B000 but this is how it is in the HTC source. I'm still trying to figure that out.
[G1 Android Development] bkmo:
Booted ok on a G1 32B PVT, and gives me 107292KB , and before I had 98024 kB. I have wifi tether app working ok so it seems wifi is ok. The only issue I had was that it booted without the animated boot image from framework-res.
[G1 Android Development] daproy:
The GPU1 bank is moved to SMI. Although I should do a negative control and see what happens if I remove it completely.
[G1 Android Development] jokersax11:
http://www.pudn.com/downloads110/doc/project/detail454080.html

this may help may not.
[G1 Android Development] Geniusdog254:
Another peculiar thing that I've noticed with RAM on HTC android devices, on 32A Magic boards they have 288MB of RAM. However they only have 192,xxxMB available. Us Dream & Magic 32B owners have 192MB with 110MB available. Why is so much more of the 32A RAM disappearing into the ether??
[G1 Android Development] jubeh:
Dream actually has 192 MB with 96 available under regular circumstances, you're comparing two scenarios. Both devices actually lose 96 MB to radio and shared mem functions
[G1 Android Development] IOmega666:
how do you apply this bootmem.img ?
[G1 Android Development] Zoide_:
Higher taxes for the rich? :D
[G1 Android Development] coolbho3000:
Flashed with flash_image and it works great. Rocking with 107292 kB of RAM. Thanks daproy!

To do it without fastboot, copy the image over to your SD card (or somewhere else) and run:

flash_image boot /sdcard/bootmem.img

reboot
[G1 Android Development] Geniusdog254:
ROTFL @ Zoide

And to the person who asked how to apply it, you have to have fastboot set up, then just use the command "fastboot flash boot bootmem.img" and it will install.
[G1 Android Development] daproy:
The 192MB spec is including a 64MB baseband chip. I believe the SDRAM available on EBI is 128MB. Not sure about sapphire.

I believe the 32A Magic boards have less SMI memory (32MB) while 32B and Dream have 64MB SMI so MDP ADSP RAM etc. are all mapped to the EBI SDRAM in 32A cutting into the Linux ram.
[G1 Android Development] IOmega666:
thx for the help . i did the fastboot setup thing and i now got 107292 kb of mem .
[G1 Android Development] IOmega666:
i forget to tell something, i do get the T-Mobile G1 screen when booting :S but the one that i dont get its the gChrome Theme screen xD
[G1 Android Development] dwang:
Working on the 32b mt3g (magic/sapphire).
[G1 Android Development] ccyrowski:
Been working on this for awhile. You need to edit other files, much like Tiger's 32A patch does.
[G1 Android Development] mwenyuan:
Great!

but Google Sky Maps & Street View show a black screen after flash this boot image.
[G1 Android Development] Booker-T:
Does it work with Cm4.04?
[G1 Android Development] daproy:
What other files?

Here's an updated boot.img with workin boot logo, street view and sky maps.

http://drop.io/mempatch
[G1 Android Development] Nedlinin:
Well, after a bit of use (bout 15m) I let the phone sit in sleep for a bit over an hour. Tried to use it and it looks comatose. Click a button lights the buttons up but the screen never responds. Also wont respond in ADB.

Pulled the battery and it booted back up fine.
[G1 Android Development] Zoide_:
Just some healthy skepticism here. If there were no side effects to this memory allocation change, don't you think that Google would have done it already? Are you guys sure that by increasing the memory available to the kernel you're not reducing the memory available to the GPU, etc?
[G1 Android Development] Nedlinin:
I can confirm this new bootimg gives back our boot image and sky maps. Never tried street view but I'll take your word for it ;)
[G1 Android Development] dwang:
Doesn't seem to work with the sapphire...

At least I don't see the boot logo

Doesn't work with sky maps either..
[G1 Android Development] Do0zman:
I can just replace the boot.img in the CM update.zip right?
[G1 Android Development] daproy:
My fault...forgot sapphire. try this.

http://drop.io/mempatch
[G1 Android Development] jubeh:
correct,

people report no changes needed for any other modules (since the kernel change moves nothing in the wlan framework), so it should just work. You can always just fastboot flash it though.
[G1 Android Development] dwang:
working now.

thanks!

Dave
[G1 Android Development] ccyrowski:
is this confirmed? Can you put this in an update.zip?

In my experience, I can always fastboot flash it but it WILL NOT boot in an update.zip (full, me and jac's hero rom)

@daproy, you got the files, I spoke too soon. I thought there was only 1 page when I posted that, then all of a sudden there was a whole thread. Haha sorry.
[G1 Android Development] jubeh:
i dont see how flashing it from fastboot or from an OTA make a difference. Both processes format boot (though you have to specify it in OTA) and both flash the image the exact same way.
[G1 Android Development] ccyrowski:
This may be the case. My phone has been acting weird as hell lately. I don't know what it's deal is. About every other build won't flash (even one's i've released). I have to try a couple times. I think my NAND is effed.
[G1 Android Development] Booker-T:
Does it support CM4.0.4?
[G1 Android Development] darthspartan:
Im trying now. Made a rom for my phone removed apps i did not use. Im running the benchmark tool before and after.
[G1 Android Development] IConrad01:
Just used the fastboot route to flash this on cm4.1.11.1. Just ran RoboDefense and stacked up to where it was lagging previously. Getting no lag now. (Hardly an intensive test, but... at least we know there's no loss to the graphical processing.)
[G1 Android Development] dumfuq:
Thanks a lot. Just tried and it worked so far. I'm at work with no access to a computer, so I did it through recovery console. Just placed it at /sdcard/boot.img, booted into recovery, started console, and...

mount sdcard
mount system
flash_image boot /sdcard/boot.img
reboot
[G1 Android Development] yukkio:
Thank you! Just flash your boot.img and It works :)

Now I will test it a bit more :D

BR.

PD: HTC Magic 32B
[G1 Android Development] bender android:
I've tested it but doesn't work, bricked my Magic 32B

any boot.img for CM4.0.4?

thanks guys
[G1 Android Development] vixsandlee:
Well I have chucked it over on CM4.1.11.1 and it is running.

Will give it a go today and see how stable it is and report back any problems.

But so far so good.

Edit //

Phone went to sleep and the display wouldnt come back, i was left at a black screen (i suspect its just the display dieing) and had to reboot and restore a nandroid backup.
[G1 Android Development] Booker-T:
Bricked or just unable to boot into the OS?
[G1 Android Development] Geniusdog254:
Just unstable. There is nothing in this that using fastboot can't fix.
[G1 Android Development] ElChouch:
Hi Daproy, the link is dead could you please up it again ?
[G1 Android Development] DJFliX:
Another request aswell as an offer for some hosting space without ad's (my own :P). I'd be happy to host some Android-project-files as a mirror, because I'm currently not using any of my data traffic :(. Please pm me if you're interested!
[G1 Android Development] All~G1:
Been running this for about 12 hours. Seems to be very stable, I do have increased RAM, no panics, no FC's/ANR's, and no coma issues.

Thanks Daproy!
[G1 Android Development] kassy_ok:
hero

hey, could this work for hero roms also ?
[G1 Android Development] g4rb4g3:
I flashed it in the morning and i had some problems already.

The phone sometimes doesn't wake up from sleep mode, just the keys a lighting up but the screen stays black.

And a few hours ago i got a corupted status bar but it was just for a second and didn't repeat since then.

I use CM 4.1.11.1 with EnochX skin but not the latest one and it's without the new lockscreen. It was the first release for CM 4.1.11.1 that i flashed.
[G1 Android Development] bob50963:
I had the same problem a few days ago while on Cyanogen rom. You have to reflash your rom it should fix all errors. If not redownload and then reflash.
[G1 Android Development] sstang2006:
can someone re-upload the boot.img please.. previous link is down..
[G1 Android Development] daproy:
Reuploaded the boot.img, and attached is the latest patch used to make the kernel.

MD5SUM 9e49829ad466b2f3adf9402bcba9c9c0

http://www.mediafire.com/?dvwmwyit4yn

http://drop.io/mempatch
[G1 Android Development] Nedlinin:
I went ahead and uploaded this newest one a host I never use myself just incase the mirror goes down again.

http://www.nedlinin.com/files/bootmem.zip
[G1 Android Development] g4rb4g3:
I had the black screen problems too already but not that often. It was like once in 3 or 4 days.
[G1 Android Development] dwang:
No issues here as well running on my mt3g.
[G1 Android Development] Boomgawd:
No workie HTC Dream Canada (Rogers)

Was runnning 4.1.11.1 and fastboot flashed now its just boot looping....

Currently having trouble restoring, just wiped and re-installed 4.1.11.1. lets see what happens.

EDIT: Had to wipe then flash to sucessfully fix boot loop.

EDIT2: can anyone offer up another boot.img that would on my dream and hook me up with another 9%?
[G1 Android Development] nurre:
Anyone tried making boot images for stable mods/kernels? Like cm 4.0.4? I had some issues with 4.1.11 before the custom boot.img, so I'm wondering how much is the boot image and how much is the donut changes.
[G1 Android Development] Malix82:
My gears look bad, the horror.

Reporting increased amount of ram on ADP1 running cyanogen 4.1.11.1 spiced with this boot.img, however the graphics system seem to have taken a hit, atleast Gears of Android runs at rather constant 33fps (ran solid 60fps prior flashing the new boot.img) and the colors are all washed out.

So far can't tell if any other performance hits, or any actual perceivable boosts for that matter. Will continue to toy around with this and report later if there's anything to report.
[G1 Android Development] daproy:
This makes sense since I first tried to move GPU1 RAM to SMI but that ruined the boot logo and sky maps etc. Which is strange because in some of the htc source they have it located in SMI. So I removed it altogether in the latest patch so the GPU only has the 7MB defined in GPU0 on SMI.
[G1 Android Development] sstang2006:
thank you guys for the upload and creation.

It works good on mine phone.. only had one android.corrupt..., rebooted and didn't come on anymore.. everything loads way faster now.. I'll keep testing..

$ su
# cat /proc/meminfo
MemTotal: 107292 kB
MemFree: 12444 kB
Buffers: 564 kB
Cached: 34432 kB
SwapCached: 2228 kB
Active: 32644 kB
Inactive: 44152 kB
Active(anon): 21492 kB
Inactive(anon): 20632 kB
Active(file): 11152 kB
Inactive(file): 23520 kB
Unevictable: 252 kB
Mlocked: 0 kB
SwapTotal: 26816 kB
SwapFree: 15424 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 40904 kB
Mapped: 12016 kB
Slab: 5864 kB
SReclaimable: 1188 kB
SUnreclaim: 4676 kB
PageTables: 3748 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 80460 kB
Committed_AS: 995792 kB
VmallocTotal: 802816 kB
VmallocUsed: 47520 kB
VmallocChunk: 695292 kB
#
[G1 Android Development] dwang:
So apps that use the GPU (3d) will see a performance hit as you've taken away half of the memory that is used by the gpu for system memory?

Since I never play games on my android device, I'm perfectly fine with that. :-)
[G1 Android Development] Malix82:
Did some more testing, Speed Forge 3D (wipeOut style racer) completely unplayable now, not that I really care, but heads up for those who do.

Also, though I stress this could be coincidental, my 3G and Wifi seem to have connection problems. Never before I have seen 3G drop at my desk, and over Wifi my market app had connection problems (100% signal strenght, sitting next to my wlan AP).
[G1 Android Development] .PaNiNi.:
I cant extract the .zip file and there is no .zip extension to remove to make it a .img file :-/ am I missing something?
[G1 Android Development] Vovan888:
I see problems in 3D applications too (on Magic 32B) - problems with colors in Mystique and

Neocore benchmark.

So this patch would benefit only for those who do not plan to play 3D games :)
[G1 Android Development] dwang:
Probably a coincidence as I'm not having any wifi or 3g issues.
[G1 Android Development] maxisma:
who cares about 3d games?

there are only crap 3d games on android :(
[G1 Android Development] andonnguyen:
I turned off compcache, turned on linux-swap partition at 64MB and 80 swappiness. I also have my min and max freq at 528mHz. Seemed to have alleviated the blackscreen people were experiencing. It only happened to me when I had my min freq at 128 and 245. I have also killed off most idle programs with a task manager to free up memory (actually killed off almost every app except the task manager itself, and vital android apps). Also, experiencing graphics rendering in 3D intensive games, although emulators are still working fine ;)
[G1 Android Development] Sirus20x6:
Anyone know if the ram chips on the G1 are BGA or TSOP?

If it's TSOP I'm getting out my soldering iron and a larger ram chip. There used to be a company that soldered on more ram for the Ipaq PDAs. I think they were called "times 2 etech" or something like that.
[G1 Android Development] Sirus20x6:
ok it looks like it's a samsung nand flash + ddr sdram MCP and from the blurry pic i found im 99.999% sure it's BGA :( bummer looks way to hard to solder by hand.

if it can be done I found other samsung chips that might fit the bill

http://www.samsung.com/global/busin...ures/downloads/memory/mcp_brochure_200608.pdf

Samsung MCP Products

MEMORY	NAND	DRAM	DENSITY/	VOLTAGE	PACKAGE

256mb 128mb (x16) 1.8v - 1.8v 107fbGa

256mb 256mb (x16) 2.65v - 1.8/1.8v 107fbGa

256mb 512mb (x32) 3v - 3/2.5v 137fbGa

512mb 256mb (x16/x32) 2.65/1.8v - 1.8v 107fbGa/137fbGa

512mb 512mb (x16/x32) 2.65/1.8v - 1.8v 107fbGa/137fbGa

1Gb 256mb (x16) 2.65v - 1.8v 107fbGa

1Gb 512mb (x16/x32) 3.0/2.65/1.8v - 137/107fbGa

3.0/2.65/1.8v

2Gb 512mb (x16/x32) 3.0/2.65/1.8v - 137/107fbGa

3.0/2.65/1.8v

2Gb 1Gb (x32) 2.65/1.8v - 1.8v 137fbGa

mmmm 1 gig of ram and 2 gigs internal flash :P
[G1 Android Development] bender android:
just unable to boot into the OS
[G1 Android Development] .PaNiNi.:
any1 want to assist me in my issue?
[G1 Android Development] dwang:
Its an img file, which means u have to use fastboot to install.

Search the threads for fastboot...
[G1 Android Development] sstang2006:
read the first page of this thread.

(don't forget to rename the .img file from bootmem.img to boot.img )
[G1 Android Development] .PaNiNi.:
right but on my pc its showing as a .zip file but without the .zip extension

i know how to fastboot, i know adb, im well aware on how things work.
[G1 Android Development] yukkio:
+1

Totemo is unplayable too (black screen). My wifi isn't good too...

Has anyone these problems too?

BR.

PD: on magic 32B CM 4.1.11.1
[G1 Android Development] .PaNiNi.:
ok well i flashed and it booted up past android screen then went black... im on xROM
[G1 Android Development] maxisma:
it's for cm-4.11.1.1
[G1 Android Development] miketaylor00:
You might have problems with this on xROM unless JAC updates his kernel to include this. I believe whoever made the image used Cyanogens git hub for the code. JAC has a customized kernel and replacing it could cause problems.
[G1 Android Development] DAKIDD236:
if you made a nandroid backup, you should be able to get your g1 back to normal
[G1 Android Development] .PaNiNi.:
good to know lol thanks, i was planning on going back to that anyways!

THANKS again
[G1 Android Development] .PaNiNi.:
i did thanks i ALWAYS make a nandroid lol
[G1 Android Development] .PaNiNi.:
ok 1 last question lol

im back on 4.1.11.1 now where do I go to see if it has increased the RAM?
[G1 Android Development] IConrad01:
in terminal, type:

free

That should show it.
[G1 Android Development] sstang2006:
Terminal emulator

su

cat /proc/meminfo
[G1 Android Development] yukkio:
adb shell free or adb shell cat /proc/meminfo

BR.
[G1 Android Development] NiteShdw:
Easiest way is to use adb shell or Terminal and type in: free

You'll see something like this:

total used free shared buffers
Mem: 107292 105248 2044 0 2596
Swap: 55996 7024 48972
Total: 163288 112272 51016
[G1 Android Development] yukkio:
So... nobody has problem with 3D games?

BR.
[G1 Android Development] .PaNiNi.:
thanks for this... i got

total used free shared buffers
Mem: 107292 103760 3532 0 508
Swap: 600064 22956 37108
Total: 167356 126716 40640

is this correct?
[G1 Android Development] dwang:
everybody has problems with 3d games. The issue is, do you care or not?

I personally don't play games on my mt3g, so not having 3d games in exchange for more memory is acceptable for me.
[G1 Android Development] miketaylor00:
Yep, you are getting the extra mem.
[G1 Android Development] .PaNiNi.:
whoop whoop thanks guys :-)
[G1 Android Development] .PaNiNi.:
whats the buffer and how can i get that much lol
[G1 Android Development] amirnew:
How can i use this on hero build?(runnin' on G1 )

amir
[G1 Android Development] eessel:
I was lookin at the first post, and saw at the end of it that it says that 18mb of ram is actually lost? So does that mean that this process will actually make you lose ram at the moment? Sorry if i am blatantly confused and it's really a simple thing. Thanks.
[G1 Android Development] yukkio:
Ok dude. I thought It was not a general problem.

BR.
[G1 Android Development] rahduke:
any chance of someone making a modified boot.img that is compatible with the HERO roms?
[G1 Android Development] bob50963:
Sorry about that. We can have a maximum of 128m of ram and right now we are at 106-109. So we are missing a few megs and not sure whats eating them up.
[G1 Android Development] gohaneri:
What is the way to modifiy the boot.img?
[G1 Android Development] mrnote8:
RT@rahduke.. any chance of someone making a modified boot.img that is compatible with the HERO roms?
[G1 Android Development] miketaylor00:
Cyrowski has already made one for JacHeroSki. I'm using it right now on my G1. He should be dropping a new version tonight that will have that plus a few major performance improvements. Almost every Hero ROM uses his kernel anyway so you can probably steal it from there if you aren't using JacHeroSki. But I would suggest that you try the new version when it comes out.
[G1 Android Development] Boomgawd:
HTC Dream (Rogers)

I posted earlier that I didn't have any luck fastboot flashing this boot.img on cy 4.1.11.1, after flash I was met with a boot loop.. sorta, it would show the Android boot screen, then start to load the os (I would get to the screen where my taskbar and lock screen/box are visible, then back to android boot screen and over and over.

Should I try again? running a canadian rogers HTC dream on cy 4.1.11.1

Any assistance would be awsome.
[G1 Android Development] .PaNiNi.:
ok so after all that my phone not only turns black every so often it also freezes and wont read my sdcard
[G1 Android Development] DAKIDD236:
you can also flash this by placing the bootmem.img on the root of your sd card.

in terminal type -

su

flash_image boot /sdcard/bootmem.img

reboot
[G1 Android Development] Sirus20x6:
gears fps before flashing this 60

gears fps after flashing 26
[G1 Android Development] Sirus20x6:
oh and also the gears are different colors now
[G1 Android Development] All~G1:
Have you guys tried:

wiping

flashing ROM

fastboot bootmem.img
[G1 Android Development] Boomgawd:
Emm. no

So, no I havent. Altho I installed the bootmem.img after freshly installing 4.1.11.1 + all my apps. then I fastboot flashed the file, re-booted and that was it, nada. I'll try doing switchrom tomorrow and attempting what you suggest.

Thanks!

Just to be sure, you suggest:

1. Reboot recovery.

2. Wipe from inside recovery

3. apply update.zip (4.1.11.1)

4. reboot fastboot USB

5. fastboot flash bootmem.img

6. reboot into OS

or:

1. reboot recovery

2. wipe from inside recovery

3. apply update.zip (4.1.11.1)

4. boot OS

5. reboot fastboot

6. fastboot flash

7. reboot into OS

What you all think?
[G1 Android Development] andonnguyen:
fastboot flash boot bootmem.img

make sure to hit the back button while in fastboot mode, then itll read "fastboot usb." type the command above in your command prompt, then it'll work. no problems so far besides the graphics one everyone else is getting. the battery life is the same.
[G1 Android Development] jgu71424:
I took a quick look at his and wondering will this work for drake/blur rom and how do you figure out how much ram do you have before and after installing the img.
[G1 Android Development] sacredsoul:
Im getting an error flashing thru recovery. Currently on laterst CM expermiental.

I did rename the bootmem.img to boot.img. I tried to fastboot too but strangely, my pc cant detect im on fastboot. Yes, I hit the back button till I got to fastbooot usb.
[G1 Android Development] andonnguyen:
flashing through recovery you have to mount the sdcard first. therefore type this while in the recovery console:

mount sdcard

flash_image boot /sdcard/boot.img
[G1 Android Development] sacredsoul:
Yea I did the whole thing...

But still getting the error...
[G1 Android Development] andonnguyen:
wait, have you tried it in terminal emulator, I don't see why you're trying it in recovery?

flash_image boot /sdcard/boot.img

reboot

works just fine.
[G1 Android Development] sacredsoul:
Terminal Emulator works fine. Thanks man! The first page said recovery so I though I'd better stick to the instructions.
[G1 Android Development] .PaNiNi.:
i can no longer find cm 4.1.11.1 does any1 have it to send to me? or have a link?

EDIT: i found 1 thanks
[G1 Android Development] jmon777:
i think the possible side effects should be listed in the 1st post. just a suggestion.
[G1 Android Development] .PaNiNi.:
all is well after reflashing the rom and doing the bootmem.img thru fastboot and not the terminal

dont know if that makes a difference but it works
[G1 Android Development] jcostantino:
I'd just like to jump in a minute and say that with the extra memory, Copilot Live FLIIIIIIIIIIIIIIIIIIIIIIES! There is almost no lag on any button press.

My G1 has been a little unstable and I'm going to try wiping at some point if it keeps acting up. This is too good to go back to the original memory config.
[G1 Android Development] fabsn:
Aight guys, just to sum it up:

The 10% more RAM Hack works and some Apps DO benefit from it BUT it affects the GPUs VRAM so that 3D-Apps and many games run unstable/slow?
[G1 Android Development] bob50963:
Would some one like to rewrite the main post for this thread? I am very busy and I dont have much time to pay attention to xda for the moment :-(. If your interested send me a pm with the revised post and I will edit the thread.
[G1 Android Development] Nedlinin:
I have also noticed an increase performance with Copilot.. I think that little bit of extra ram goes a long way with Copilot

yep.. that aboutsums it up!
[G1 Android Development] ivanmmj:
When and if we get the rest of that RAM, we could give the GPU back its RAM.

In the mean time, how about making this only free up half the RAM to see if we can reach a happy medium (between the GPU and the main RAM.)
[G1 Android Development] qwerty3656:
So is there a stand alone version for hero roms (e.g. MLIGN's ROM)?
[G1 Android Development] dwang:
half isn't much, its only 4megs. I would rather see all or none..
[G1 Android Development] ivanmmj:
I know, but I'm wondering how much the GPU needs. And 4 extra megs for those who want to use the GPU is still SOMETHING.
[G1 Android Development] sacredsoul:
Bonsai Blast works fine. And that's all that really matters for me :o