u-boot源码下载

1. 使用git下载u-boot源码

 1.1 clone u-boot源码仓库

     可以使用gitHTTP、和 rsync协议来下载u-boot源码。你可以使用如下方法来克隆源码树:

$ git clone git://git.denx.de/u-boot.git   u-boot/

$ git clone http://git.denx.de/u-boot.git  u-boot/

$ git clone rsync://git.denx.de/u-boot.git u-boot/

1.2 查看u-boot 版本tag信息:

$ cd u-boot/

$ git tag

 

1.3 查看u-boot源码仓库信息

$ git status

 

1.4 查看当前u-boot源码仓库branch信息

$ git branch

 

1.5 checkout特定版本的u-boot源代码:

实际开发中要基于某个版本的u-boot源代码进行开发自己的u-boot时,可以checkout and create a branchgit checkout tags/<tag_name> -b <branch_name> 例如,基于v2016.07版本的u-boot源代码创建u-boot-v2016.07-tiny4412 这个branch进行开发:

$ git checkout tags/v2016.07 -b u-boot-v2016.07-tiny4412

Switched to a new branch 'u-boot-v2016.07-tiny4412'

$ git branch

  master

*u-boot-v2016.07-tiny4412

 

2. u-boot源码FTP上下载

 u-boot源代码FTP下载地址: ftp://ftp.denx.de/pub/u-boot/

3. 总结    

    使用git来管理u-boot源代码,方便开发过程中代码管理。u-boot源码仓库clone下来,可以看到各个版本的更新信息,在不同的版本之间轻松切换。

转载于:https://www.cnblogs.com/LoTGu/p/5804901.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值