How to build android init for android-2.6.30

by Elvis Dowson » Thu, 16 Jul 2009 10:08:30 GMT


Sponsored Links
 Hi,
       I'm working on trying to get android running on linux-
omap3-2.6.30 kernel version. I've managed to compile a basic kernel
image. Now I just need some guidance on what to do to get the android
init to work correctly, at the moment, I get a kernel panic when the
boot tries to run init, since init was created for v2.6.29.

What should I replace or modify in order to get init to compile
against the v2.6.30 linux kernel sources?

Best regards,

Elvis

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

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



How to build android init for android-2.6.30

by Shrinivas » Fri, 17 Jul 2009 13:19:41 GMT


 if you provide the kernel logs, we can help you out with this
problem...



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

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


Sponsored Links


How to build android init for android-2.6.30

by Neo » Tue, 21 Jul 2009 10:30:04 GMT


 check out this thread -



How to build android init for android-2.6.30

by Neil Nguyen » Tue, 21 Jul 2009 11:13:37 GMT


 I used to have a similar problem.  It turned out that I forgot to turn on the 
"CONFIG_EABI" option.  Maybe you should double-check your configuration to make 
sure.

Cheers,
Neil




> 



How to build android init for android-2.6.30

by Elvis Dowson » Thu, 23 Jul 2009 20:37:43 GMT


 Hi,
      I guess part of the solution is to update the bionic/libc linux
kernel headers. There are some changes to linux/posix_types.h that
need to be factored, used by zygote init, that may be responsible for
the crash.

I've started a separate thread for porting bionic/libc for v2.6.30
here:




Other Threads

1. Help in android code syntax

Hi all,

I am facing some problem in android as i am new to it, i need to know
how to write syntax in android for the below problem.

Problem: I have a .net web service (www.somesite.com), that webserver
has an authentication method which require user name and password as
parameter to authenticate.Once i set those things using the
authentication method, it will allow me to call the rest of the
functionality present in the webserver. i have source code written in
ASP, i want to write the same in android.

 private MyServerAPI.Service _service;
 _service = new MyServerAPI.Service();

MyServerAPI.DTAuthHeader auth = new MyServerAPI.DTAuthHeader();
auth.Username = ConfigurationManager.AppSettings["MyServerAPI.user"];
auth.Password = ConfigurationManager.AppSettings["MyServerAPI.pass"];

_service.DTAuthHeaderValue = auth;
_service.Url =
ConfigurationManager.AppSettings["MyServerAPI.service"];

i want to write the same thing in android, can you people please help
me out in this and let me know..


Thanks in advance.

-- 

2. Tab Layout not working

Hi,

I am using the Tab Layout almost copied from the example provided. But
it's not working:

public class TabHolder extends TabActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.main);

        Resources res = getResources(); // Resource object to get
Drawables
        TabHost tabHost = getTabHost();  // The activity TabHost
        TabHost.TabSpec spec;  // Resusable TabSpec for each tab
        Intent intent;  // Reusable Intent for each tab

        // Create an Intent to launch an Activity for the tab (to be
reused)
        intent = new Intent().setClass(this, ArtistsActivity.class);

        // Initialize a TabSpec for each tab and add it to the TabHost
        spec = tabHost.newTabSpec("artists").setIndicator("Artists",
                          res.getDrawable(R.drawable.ic_tab_info))
                      .setContent(intent);

// ok up to here
        tabHost.addTab(spec);    // barfs right here  **************


        // Do the same for the other tabs
        intent = new Intent().setClass(this,
MessagEaseSettings.class);
        spec = tabHost.newTabSpec("settings").setIndicator("Settings",
                          res.getDrawable(R.drawable.ic_tab_settings))
                      .setContent(intent);
        tabHost.addTab(spec);

        intent = new Intent().setClass(this, SongsActivity.class);
        spec = tabHost.newTabSpec("how").setIndicator("How",
                          res.getDrawable(R.drawable.ic_tab_how))
                      .setContent(intent);
        tabHost.addTab(spec);

        tabHost.setCurrentTab(2);
    }

}



seems that the problem happens when it adds the spec:

  tabHost.addTab(spec);

But there is not much to this:

  intent = new Intent().setClass(this, ArtistsActivity.class);

        // Initialize a TabSpec for each tab and add it to the TabHost
        spec = tabHost.newTabSpec("artists").setIndicator("Artists",
                          res.getDrawable(R.drawable.ic_tab_info))
                      .setContent(intent);

the activity (ArtistsActivity) exists and passes Eclipse's strict
checks.

the strings "artists" and "Artists" should not matter, and they are
taken from the exmple.

and the drawalbe.ic.tab.info does exist, exactly as the example
requires it:


<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <!-- When selected, use grey -->
    <item android:drawable="@drawable/tab_info_gray"
          android:state_selected="true" />
    <!-- When not selected, use white-->
    <item android:drawable="@drawable/tab_info_white" />
</selector>


Can anyone give me a hint as to where to look for? Any help is much
appreciated.

Best,

Saied



--

3. Adding a new module in Android

4. Audio initialization and recording

5. Fwd: WTB: Otterbox HTC HD2 T-Mobile

6. How to retrieve a JSON object from a php url to my android

7. How to eliminate paint sawtooth