下載android的linux核心的方法

來源:互聯網
上載者:User

1、安裝git

       android的linux核心可以從http://android.git.kernel.org/下載,但下載需要使用git,windows版的git可以從http://code.google.com/p/msysgit/下載,有完整安裝版和便攜版(portable)兩個版本可供選擇,不常用git的話選portable版就可以了。

      下載portable版的git後,解壓縮,然後運行git-bash,會出現一個console視窗。

2、android的kernel有多個部分,可根據需要運行以下命令下載需要的內容。

      在git的console視窗中執行以下命令即可下載核心:

    $ git clone https://android.googlesource.com/kernel/common.git  //這個是linux核心,也可以是git clone http://android.git.kernel.org/kernel/common,網上許多地方介紹的命令是git clone git://android.git.kernel.org/kernel/common,但現在似乎是不能用了。

    $ git clone https://android.googlesource.com/kernel/goldfish.git

    $ git clone https://android.googlesource.com/kernel/msm.git

    $ git clone https://android.googlesource.com/kernel/omap.git

    #git clone https://android.googlesource.com/kernel/samsung.git

    $ git clone https://android.googlesource.com/kernel/tegra.git

3、checkout出對應的核心

   進入samsung目錄

   $git branch -a    //列出所有可用的核心版本

   $git checkout  remotes/origin/android-samsung-3.0-ics-mr1   //checkout出想要使用的核心

如果要下載所有的android源檔案,下載方法見http://source.android.com/source/downloading.html

 

補充:關於android安裝開發過程中的需要的一些開發包,在終端執行以下命令:

          sudo apt-get install git-core gnupg valgrind flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.