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-

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. why can't stop the mediaplayer??

hi all,

i develop a music play app,
whe app framework is:>

eg: in the there have two mp3 files :  1.mp3,2.mp3
when first time choose 1.mp3, then play ok,
then back to from,
and now the 1.mp3 is still playing,

and then i click 2.mp3 in the,
and go to,
but it play 1.mp3 and 2.mp3 simultaneously???

but i have used the

and it always play 1.mp3 and 2.mp3 simultaneously?
i want stop 1.mp3 and play 2.mp3

how can i do??


2. android webservice

Hi,it's my first post and i know it's a good place to share questions
and get answers.I want to make a webservice to read datas from
website.And the first step is to get an String returns by the
site.Here is my code,and i don't know why i can't get the String  str
in which XML contains.
Thank you very much.

package com.yancaidaxia.ExchangeRate;


import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;

import android.os.Bundle;
import android.util.Log;
import android.widget.LinearLayout;
import android.widget.TextView;

public class ExchangeRate extends Activity {

        private final int WC = LinearLayout.LayoutParams.WRAP_CONTENT;
        private static String str;
        private static final String SERVER_URL="
theType=A";   //the site from which i get datas
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
        TextView tv1 = (TextView)findViewById(;
        TextView tv2 =(TextView)findViewById(;
        String temp1 ="";
                HttpGet request = new HttpGet(SERVER_URL);
                HttpClient client = new DefaultHttpClient();
                HttpResponse httpResponse = client.execute(request);
                temp1 = EntityUtils.toString(httpResponse.getEntity());//xml
datas in string form supposed to be contained in temp1.
                Log.e("response", temp1);

        }catch(ClientProtocolException e){
                Log.e("request error",e.getMessage());
        } catch(IOException e){
                Log.e("requset error",e.getMessage());
        tv1.setText(str);//i want to see the xml datas in string form
but nothing is shown.Why?


3. Use sqlite in AsyncTask freeze all

4. StackOverflow Exception while using TabActivity

5. Is there a way to backup and restore a Cursor?

6. Age of GPS data (continued)

7. PendingIntent / addProximityAlert problem