轉:用 git 下載 uboot 源碼

來源:互聯網
上載者:User

標籤:

1. 起因:

想下載 uboot 源碼,原先的方法都是下載壓縮包,然後放到虛擬機器上的 Ubuntu ,再解壓。 
在看 uboot 源碼的時候,發現 v2016.01 版本的uboot中關於 board_init_f_mem 函數有問題,想要查看其它版本的相關內容,就犯愁了,我想到了 uboot 是用 git 管理的,那如果我 clone 一下,不是能在不同的版本間輕鬆切換,甚至能看到,每個版本的更新資訊。想法是好的,那我們就動起來。

2. 操作步驟:1. clone 出倉庫:
git clone git://git.denx.de/u-boot.git u-boot
  • 1
2. 查看倉庫的一些資訊:
git status
  • 1
3. 查看 release 版本(打的標籤):
git tag
  • 1
4. 切換到特定的標籤版本下:
git checkout v2016.01-rc1
  • 1
5. 查看本標籤與其他的標籤的不同:
git diff v2016.01
  • 1
  

轉:用 git 下載 uboot 源碼

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.