How to reduce system memory on the ADP1

by bfriedman » Fri, 13 Mar 2009 19:07:06 GMT


Sponsored Links
 While doing work with the ADP1 we wanted to reduce the system ram from
the default 101MB. Normally you can do this is the kernel command line
with a mem=xM, this however does not work. After some research we
discovered that upon boot-up the system memory size is set to 101MB
via the file board-trout.c in the kernel directory under arch/arm/mach-
msm/.

Inside the function trout_fixup, the line:

mi->bank[0].size = (101*1024*1024);

Change the 101 to what system memory size you want. Recompile. Your
system memory is now reduced.


--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Other Threads

1. Keeping some data in memory during onDestroy->onCreate

I want to monitor the velocity of a phone. I can do this by looking at
accelerometer data over the last 30 seconds, saving about one sample
every 0.1 seconds (300 samples) and applying a sliding filter to the
data. If I create a service to do this, what's the best way to
preserve the state of the filter (600 doubles) between an onDestroy
and a subsequent onCreate? I can set up an SQLite table to hold the
values but that's a lot of extra coding and processing overhead. Is
there a better way?

-- 

2. Creating the request to a webservice by kSoap2

Hi,

I have a few blog posting regarding using Ksoap2, mine is in the
context of interfacing with Salesforce CRM using Webservice, hope it
helps.

http://androiddevblog.blogspot.com/






-- 

3. Sold wts milestone 2 nd

4. Calling view from activity鈥檚 count down timer

5. Memory store for long term processing

6. Launching my "About" screen from Preferences

7. Map Key