Compile and port Android os in MS104-SH4AG board

by Hamilton Vera » Wed, 21 Apr 2010 03:04:32 GMT


Sponsored Links
 Any English information, I cannot read japanese.

I've never worked with SH4, and I don't know if android stands for that

But anyway you can start here:

 http://android.git.kernel.org/ 
 http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Porting-Android-to-a-new-device/ 
 http://www.mail-archive.com/android-disc... @googlegroups.com/msg10640.html
https://review.source.android.com/#dashboard,1001893




>



Compile and port Android os in MS104-SH4AG board

by Pankaj » Wed, 21 Apr 2010 19:07:31 GMT


 Thank you for the reply.


I have "MS104-SH4AG" and "MS104-LCD/AUDIO" board.

Configuration : CPU        : sh7764
                Product no : R5S77640N300BG
                Flash rom  : 16 MB
                SD Ram     : 64 MB

For hardware reference please see below link
 http://www.apnet.co.jp/product/ms104/ms104-sh4ag.html 
 http://www.apnet.co.jp/product/ms104/ms104-lcd_audio.html 


I want to run android on this device.
For that i apply following step
1) Download android source code.
2) Install all patch's in
https://review.source.android.com/#dashboard,1001893

after i compile android source code using
TARGET_ARCH=sh make
But it gives "unknown architecture" error.

I want to know that am i going right way or not.
Also that how can i build and mount android image file on PCB.

Can any one help me on this topic?
Please give me what can i do for compile source code for SuperH
architecture.




>


Sponsored Links


Compile and port Android os in MS104-SH4AG board

by Pankaj » Wed, 21 Apr 2010 19:09:52 GMT


 Thank you for the reply.


I have "MS104-SH4AG" and "MS104-LCD/AUDIO" board.

Configuration : CPU        : sh7764
                Product no : R5S77640N300BG
                Flash rom  : 16 MB
                SD Ram     : 64 MB

For hardware reference please see below link
 http://www.apnet.co.jp/product/ms104/ms104-sh4ag.html 
 http://www.apnet.co.jp/product/ms104/ms104-lcd_audio.html 


I want to run android on this device.
For that i apply following step
1) Download android source code.
2) Install all patch's in
https://review.source.android.com/#dashboard,1001893

after i compile android source code using
TARGET_ARCH=sh make
But it gives "unknown architecture" error.

I want to know that am i going right way or not.
Also that how can i build and mount android image file on PCB.

Can any one help me on this topic?
Please give me what can i do for compile source code for SuperH
architecture.





> >



Compile and port Android os in MS104-SH4AG board

by Bob Kerns » Thu, 22 Apr 2010 05:10:11 GMT


 Well, TARGET_ARCH=sh make doesn't look right!

I'm not familiar with that processor, so I don't know what value you
should use for TARGET_ARCH. Perhaps the clue is in this phrase:  -- but I often find it harder to understand English as katakana
than Japanese as kanji! What is  technology? Would that be a
processor architecture?

Anyway, I suspect what you're supposed to be typing is:

TARGET_ARCH=architecturename sh make

that is, run 'sh make' with the TARGET_ARCH environment variable set.

Anyway, you'll have better luck asking this on the android-porting
list.




> >



Other Threads

1. HttpClient, URLConnection, settings, etc...

I have tried to call out to the web using both HttpClient and
URLConnection, and I get "unknown error" in both cases at the point
the call is actually made (HttpClient.execute() or
URLConnection.getContent() methods).  My emulator is able to connect
to the web, because I can use the Browser with no problem.  So, I'm
assuming that there aren't any issues with my settings (this is being
done on my home network with no proxy server).  Is there a "best
practices" preference between using HttpClient or URLConnection, and
are there any examples or sample apps (with source code) that make
simple calls to the web?

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

2. getLatitudeSpan, getLongitudeSpan, getHeight, getWidth errors

Hello, in my MapView, getLatitudeSpan is returning 0, and
getLongitudeSpan is returning 360,000,000. Similarly, getHeight,
getWidth and any other get[Pixel] method is returning 0. How am I
improperly setting up my code?

XML:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:id="@+id/map_view_main"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <com.google.android.maps.MapView
        android:id="@+id/map_view"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:enabled="true"
        android:clickable="true"
        android:apiKey="map"
        />
</LinearLayout>

Code:
public class SampleMap extends MapActivity{
        MapView map_view = null;
        private String DEBUG_TAG = "MapView";

        public void onCreate(Bundle icicle){
                super.onCreate(icicle);

                setContentView(R.layout.map_view);
                map_view = (MapView) findViewById(R.id.map_view);

                Log.d(DEBUG_TAG, "bottom: " + map_view.getBottom());
                Log.d(DEBUG_TAG, "map Height: " + map_view.getHeight());
                Log.d(DEBUG_TAG, "map Width: " + map_view.getWidth());
                Log.d(DEBUG_TAG, "latitude span: " +
map_view.getLatitudeSpan());
                Log.d(DEBUG_TAG, "longtitude span: " +
map_view.getLongitudeSpan());
        }
}

Aside from getLongitudeSpan, every method called in Log.d returns 0.

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

3. Charting engine within Android?

4. Android on existing non G1 phone?

5. Saved Instance State and ListViews

6. dalvikvm-gc error at startup creating "ashmem mark stack"

7. interrupt incoming sms.