How to Build kernel with android build system?

by chin...@tw-roc » Mon, 16 Feb 2009 04:57:21 GMT


Sponsored Links
 Hello

There is no android.mk in kernel folder of andoid platform source
codes, so I could not use "mm" to build the whole folder. I am
wondering if any script for android build system to build Android's
linux kernel?

Thanks

Chinlin


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

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



How to Build kernel with android build system?

by kmatzen » Mon, 16 Feb 2009 16:01:22 GMT


 You can build it the same way as any Linux kernel.  If building for
the dev 1 then get the .config from the phone itself.  If building for
the emulator, switch to the kernel-goldfish-2.6.27 branch and run
'make goldfish_defconfig' to get the correct .config.  Finally, run
'make'.

The question I have is, where do you place the zImage and vmlinux when
building the Android software stack?  Right now I'm overwriting kernel-
qemu and vmlinux-qemu in the prebuilt directory.  The modification
that I made to the kernel was adding a character device.  However,
this character device does not appear in /dev.  Any ideas?



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

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


Sponsored Links


How to Build kernel with android build system?

by chin...@tw-roc » Mon, 16 Feb 2009 16:40:02 GMT


 Thanks for your reply.

Since the kernel folder lies inside  a folder of the android build
system tree, I think there should be a Android.mk for it to integrate
into the build system as all in one development process flow.

I setup the . build/envsetup.sh and confugre the target setting (such
as lunch 1), and enter the folder of kernel, then I type make. It is
building for x86 arch, but not default to arm arch.

I just don't want to setup another cross compiler for the kernel
build, and hopefully the android build system will also take care for
the android's linux kernel as well.

Any idea?

Thanks





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

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



How to Build kernel with android build system?

by chin...@tw-roc » Mon, 16 Feb 2009 16:53:39 GMT


 Hi again,

I assume you are building a kernel that has a new char device "driver"
with a specific device major/minor number associated with it.
However, you will require a char device "file" in /dev for a process
to control the device driver.
That requires you to write a udev descriptor  or static dev file using
mknod with major/minor number to mapping your char device driver.

Hope that helps.




er device does not appear in /dev.  Any ideas?

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

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



How to Build kernel with android build system?

by Manish » Thu, 05 Mar 2009 12:55:17 GMT


 Hi All,

I have another issue but related to udev/uevent.
I am using 2.6.25 kernel with android patch on my board. When I insert
the sdmmc card the "/dev/block/mmcblk0" is not getting created. After
debugging I found that uevent is coming not init process.
Where can I check to get the statistics of uevent?

After inserting the card if I do mknod manually the card is getting
mounted and I am able to access it.

Note: Hotplug is enabled in the kernel. the mountd.conf file is also
present with "/dev/block/mmcblk0".

Regards,
Manish






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

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



Other Threads

1. Extremely Simple Question

Here goes:


I have a very simple listview going on. The list just consists of
strings, when you click the string it opens a new activity blah blah.
Here's the problem, I enabled settextfilter and while it did filter
the list, when you click the result, it always performs the action of
the string located at zero, and not the one it is supposed to.

-- 

2. ListView refresh in ListActivity

Hello,

I have a ListActivity with a custom CursorAdapter. Using a ContextMenu
I delete a row from the database. My problem is, that after deleting
the row, the ListView is not updated. IIRC the ListView should refresh
automatically. But I also tried to trigger this with a requery() on
the cursor.

Maybe you can give me a hint where I have to look or what I am doing
wrong.

Here is the relevant part from onContextItemSelected(...):
[...]
    switch(item.getItemId()) {
    case R.id.beeyards_context_delete:
        mDatenbank.deleteBeeyard(info.id);
        Toast toast = Toast.makeText(this,
R.string.toast_entry_deleted, Toast.LENGTH_SHORT);
        toast.show();
        //BeeyardsCursorAdapter adapter = (BeeyardsCursorAdapter)
getListAdapter();
        //adapter.getCursor().requery(); // Doesn't work
        return true;
    }

And mDatabase.deleteBeeyard(info.id) deletes the entry:
public boolean deleteBeeyard(long id) {
    final SQLiteDatabase dbCon = getWritableDatabase();
    int rowsDeleted = 0;

    try {
        rowsDeleted = dbCon.delete(BeeyardTable.TABLE_NAME,
        BeeyardTable.WHERE_ID_EQUALS, new String[]
{ String.valueOf(id) });
    } finally {
        dbCon.close();
    }
    return rowsDeleted == 1;
}

Thanks a lot!

-- 

3. ListView and CheckedTextView questions - help me, thanks!!!!

4. Implementing Recovery Mode in Android

5. Hebrew Fonts in Froyo?

6. Poor roaming performance ! Is it an Android bug ?

7. One of my application is invisible now on the market (Pure messenger / not copy protected)