a issue about LCD display of Android porting on SAM9261 board

by hua...@symbio-group.com » Wed, 25 Mar 2009 01:33:24 GMT

Sponsored Links

I am new to this group, just port Android to SAM9261-EK board, but LCD
display is so coarse, is this the issue of LCD panel, or other? my LCD
is TFT LCD 240x320. does some one have any clew for this?  Thanks.



Other Threads

1. HttpConnection forWifi

Hi Friends....

I have written my HttpConnection code for Android.I have also set
Network preferences. Should I change the code so that it would be able
to work for Wifi?or I dont need any change.Does the same code work for
Wifi correctly?Here is my code:

public static String http_get(String urlParameters)
                    String msg = "",uid = "";
                    int ch;

                    url = url + urlParameters ;

                    int BUFFER_SIZE = 2000;
                    InputStream in = null;
                    try {
                        in = OpenHttpConnection(url);
                    } catch (IOException e1) {
                        // TODO Auto-generated catch block


                         InputStreamReader isr = new InputStreamReader
                         int charRead;
                           String str = "";
                           char[] inputBuffer = new char
                         try {
                             while ((charRead = isr.read(inputBuffer))
                                 //---convert the chars to a String---
                                 String readString =
0, charRead);
                                 str += readString;
                                 inputBuffer = new char[BUFFER_SIZE];
                         } catch (IOException e) {
                             // TODO Auto-generated catch block



                                    uid = str.substring(2);




                    catch (Exception e)
                              msg = e.toString();
                    return uid;

  public static String postData(String user,String file, String

              // Create a new HttpClient and Post Header
              HttpClient httpclient = new DefaultHttpClient();
              HttpPost httppost = new HttpPost(url+file);
              String result="";

          try {
               // Add your data
               List<NameValuePair> nameValuePairs = new
               nameValuePairs.add(new BasicNameValuePair("sID",
               nameValuePairs.add(new BasicNameValuePair("content",
               httppost.setEntity(new UrlEncodedFormEntity

               // Execute HTTP Post Request
               HttpResponse response = httpclient.execute(httppost);

               InputStream is = response.getEntity().getContent();
               BufferedInputStream bis = new BufferedInputStream(is);
               ByteArrayBuffer baf = new ByteArrayBuffer(20);

                int current = 0;
                while((current = bis.read()) != -1){
                  Log.d("GETANDPOST",new String(baf.toByteArray()));
                  result=new String(baf.toByteArray());
               /* Convert the Bytes read to a String. */
          //     text = new String(baf.toByteArray());
             //  tv.setText(text);

          } catch (ClientProtocolException e) {
               // TODO Auto-generated catch block
          } catch (IOException e) {
               // TODO Auto-generated catch block
          return result;

public String SetPreference() {
        NetworkInfo info=connMgr.getActiveNetworkInfo();
                   return (connMgr.getActiveNetworkInfo().getTypeName


2. How to compile a module to Android Dev Phone 1

I tried to compile a module to Android Dev Phone 1. I tested it with a
sample hello module. I used the kernel source 2.6.25 and cross compile
toolchain arm-eabi-4.2.1. Such as:


I added the additional string to the extraversion variable at the
beginning of Makefile. Then I recompiled the module and called the
command "modinfo hello.ko", it showed as "vermagic: 2.6.25-01843-
gfea26b0 mod_unload ARMv5". Then I copied the hello.ko into the phone.
But when I used the following insmod command:

"./busybox insmod hello.ko"

I got an error message: " insmod: cannot insert 'hello.ko': invalid
module format (-1): Exec format error"
Then I used dmesg, it showed: " hello: version magic '2.6.25-01843-
gfea26b0 mod_unload ARMv5 ' should be '2.6.25-01843-gfea26b0 preempt
mod_unload ARMv6".

What is the "preempt mod_unload ARMv6"? How to change from ARMv5 to
ARMv6? How to add the "preempt" version.

By the way, when I called " cat /proc/version " for the phone, it
showed as " Linux version 2.6.25-01843-gfea26b0 (android-
bu...@apa27.mtv.corp.google.com) (gcc version 4.2.1) #6 PREEMPT Mon
Oct 6 14:13:36 PDT 2008"

How to set "#6 PREEMPT" ?

Thank you for your help in advance.

Best Regards,


unsubscribe: android-kernel+unsubscr...@googlegroups.com

3. How to connect through HttpConnection using WiFi for Android?

4. Setting Drawable/ClipDrawable level from XML

5. Free, OpenSource Android project for all: AnCal

6. Strange Exception

7. Power Management on Android