2.6.31+ on HTC Dream

by Axel Balley - Stantum » Thu, 18 Mar 2010 10:05:30 GMT


Sponsored Links
 Hi all,
I need to run Eclair with a 2.6.31 or later kernel on my HTC Dream, has
anyone succeeded in doing so ?
I've tried the android-msm-2.6.32 branch on kernel/msm.git, as well as
android-msm-2.6.33-test1 on kernel/experimental.git, but none booted on my
phone. I suppose the next step is to enable a serial console to see exactly
what goes wrong. Is there a known branch somewhere that supports the Dream
beyond 2.6.29 ?

Thanks in advance for any pointers !

axel

-- 



2.6.31+ on HTC Dream

by Mike Lockwood » Thu, 18 Mar 2010 12:06:23 GMT


 The android-msm-2.6.32 branch in kernel/msm.git should work if you
configure it using "make msm_defconfig".

Mike

On Thu, Mar 18, 2010 at 6:05 AM, Axel Balley - Stantum





-- 
Mike Lockwood
Google android team

-- 


Sponsored Links


2.6.31+ on HTC Dream

by Axel Balley - Stantum » Thu, 18 Mar 2010 12:19:25 GMT


 Thanks, I tried that but the phone freezes on the TMobile G1 splashscreen, 
before I can run adb shell on it.

Le 18/03/10 13:06,  Mike Lockwood  <lockw...@android.com> a crit :

The android-msm-2.6.32 branch in kernel/msm.git should work if you
configure it using "make msm_defconfig".

Mike

On Thu, Mar 18, 2010 at 6:05 AM, Axel Balley - Stantum





--
Mike Lockwood
Google android team

--


-- 



2.6.31+ on HTC Dream

by Mike Lockwood » Thu, 18 Mar 2010 13:47:03 GMT


 Maybe it is out of sync with your user space.  What version of android
are you running on the G1?

Mike

On Thu, Mar 18, 2010 at 8:19 AM, Axel Balley - Stantum






-- 
Mike Lockwood
Google android team

-- 



2.6.31+ on HTC Dream

by Axel Balley - Stantum » Thu, 18 Mar 2010 13:53:42 GMT


 aosp_dream_us-eng 2.1-update1

Turns out 2.6.30 should be enough for what I need (i.e multitouch events 
support). I managed to build and boot a 2.6.30 kernel by merging v2.6.30 tag 
into android-msm-2.6.30-rc2-test from kernel/experimental.git.

Le 18/03/10 14:46,  Mike Lockwood  <lockw...@android.com> a crit :

Maybe it is out of sync with your user space.  What version of android
are you running on the G1?

Mike

On Thu, Mar 18, 2010 at 8:19 AM, Axel Balley - Stantum






--
Mike Lockwood
Google android team

--


-- 



Other Threads

1. Access adbd from within Android app

Hello all,

I would like to issue a request to the adbd from within my application
so i can retrieve the framebuffer contents. I've setup a small test
which connects to 127.0.0.1:5037 and sends the "framebuffer:" command.
The response i got was "Got reply 'FAIL', diag='closed'"

public class ScreenProjector extends Activity {
    // Where to find the ADB bridge.
    final static String ADB_HOST = "127.0.0.1"; //$NON-NLS-1$
    final static int ADB_PORT = 5037;
    static final String DEFAULT_ENCODING = "ISO-8859-1"; //$NON-NLS-1$

    static InetAddress sHostAddr;
    static InetSocketAddress sSocketAddr;

        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                Thread.setDefaultUncaughtExceptionHandler(new
TopExceptionHandler(this));

                SocketChannel adbChan = null;

        try {
                        sHostAddr = InetAddress.getByName(ADB_HOST);
                        sSocketAddr = new InetSocketAddress(sHostAddr, 
ADB_PORT);

            adbChan = SocketChannel.open(sSocketAddr);
            adbChan.configureBlocking(false);

            byte[] request = formAdbRequest("framebuffer:"); //$NON-
NLS-1$
            ByteBuffer buf = ByteBuffer.wrap(request, 0,
request.length);
            adbChan.write(buf);

            byte[] reply = new byte[4];
            buf = ByteBuffer.wrap(reply, 0, reply.length);
            adbChan.read(buf);

            boolean readDiagString = true;

            while (readDiagString) {
                // length string is in next 4 bytes
                byte[] lenBuf = new byte[4];
                buf = ByteBuffer.wrap(lenBuf, 0, lenBuf.length);
                adbChan.read(buf);

                String lenStr = replyToString(lenBuf);

                int len;
                try {
                    len = Integer.parseInt(lenStr, 16);
                } catch (NumberFormatException nfe) {
                    Log.w("ddms", "Expected digits, got '" + lenStr +
"': "
                            + lenBuf[0] + " " + lenBuf[1] + " " +
lenBuf[2] + " "
                            + lenBuf[3]);
                    Log.w("ddms", "reply was " +
replyToString(reply));
                    break;
                }

                byte[] msg = new byte[len];
                buf = ByteBuffer.wrap(msg, 0, msg.length);
                adbChan.read(buf);

                String message = replyToString(msg);
                Log.v("ddms", "Got reply '" + replyToString(reply) +
"', diag='"
                        + message + "'");

                break;
            }
                } catch (Exception e) {
                        Log.e("ScreenProjector", "", e);
                }

                setContentView(R.layout.main); // This displays the content on 
the
        }

    /**
     * Create an ASCII string preceeded by four hex digits. The
opening "####"
     * is the length of the rest of the string, encoded as ASCII hex
(case
     * doesn't matter). "port" and "host" are what we want to forward
to. If
     * we're on the host side connecting into the device, "addrStr"
should be
     * null.
     */
    static byte[] formAdbRequest(String req) {
        String resultStr = String.format("%04X%s", req.length(),
req); //$NON-NLS-1$
        byte[] result;
        try {
            result = resultStr.getBytes(DEFAULT_ENCODING);
        } catch (UnsupportedEncodingException uee) {
            uee.printStackTrace(); // not expected
            return null;
        }
        assert result.length == req.length() + 4;
        return result;
    }

    /**
     * Converts an ADB reply to a string.
     */
    static String replyToString(byte[] reply) {
        String result;
        try {
            result = new String(reply, DEFAULT_ENCODING);
        } catch (UnsupportedEncodingException uee) {
            uee.printStackTrace(); // not expected
            result = "";
        }
        return result;
    }
}

-- 

2. voot WTA : id-android kapan Noban?

Boss Agus H. dkk kapan noban world cup?
Semifinal or final?

Salam,

Fransiskus

-- 
"Indonesian Android Community [id-android]" 

3. get debug flag from manifest

4. Why does booting time reduce from 2 min to 1 min after just adding a printk(..) invoking?

5. Apk LWP ikan koi

6. Finish an activity not started from the service

7. Get a permisssion to a known source