CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 8797|回复: 6

在Github上下载cubieboard2的内核源码

[复制链接]
发表于 2013-8-13 21:19:11 | 显示全部楼层 |阅读模式
各位前辈大哥,敢问你们有没有从github.com上下载过cubieboard2的内核源码?

为什么我这里总是下载不下来,貌似不支持断点续传,无论是迅雷还是IE默认下载全部下载失败,彻底没招了,
有望各位前辈指条明路,除此之外还有没有镜像站点之类的............

Below is the fucking link:  

https://github.com/cubieboard2/linux-sunxi/archive/sunxi-3.4-cb2.zip
回复

使用道具 举报

 楼主| 发表于 2013-8-14 20:40:50 | 显示全部楼层
本帖最后由 beiyuuyieb 于 2013-8-14 20:41 编辑

自己已解决, 只能用用ssh clone(https clone也会断),具体步骤:

1. 用ssh或者xshell生成密钥对id_dsa_1024.pub和id_dsa_1024,把公钥内容粘贴到github.com上自己的账户里,把私钥id_dsa_1024拷贝到~/.ssh/id_dsa_1024下

2. 执行以下命令给ssh客户端安装私钥
    # ssh-agent bash
    # ssh-add
    Enter passphrase for /root/.ssh/id_dsa:
    Identity added: /root/.ssh/id_dsa_1024 (/root/.ssh/id_dsa_1024)

3. 测试和git服务器的密钥验证是否正常
    #ssh -T git@github.com
    Hi yourusername! You've successfully authenticated, but GitHub does not provide shell access.

4. 在git网站服务器上建立Repository,名字为cb2, 所以路径就是git@github.com:yourusername/cb2.git

5. 建立本地代码文件夹
    # mkdir -p /home/code/git/cb2
    # cd /home/code/git/cb2
    # git config --global user.name yourusername
    # git config --global user.email yourmail
    # git config --global credential.helper cache
    # touch README.md
    # git init
    # git add README.md
    # git commit -m "first commit"
    # git remote add origin git@github.com:yourusername/cb2.git
    # git push -u origin master
    Counting objects: 3, done.
    Writing objects: 100% (3/3), 209 bytes, done.
    Total 3 (delta 0), reused 0 (delta 0)
    To git@github.com:yourusername/cb2.git
     * [new branch]      master -> master
    Branch master set up to track remote branch master from origin.

6. 在git网站上浏览要下载的代码branch,在网页右侧clone URL的地方点SSH,标题就变成SSH clone URL,然后复制这个URL链接
    # git clone git@github.com:cubieboard2/linux-sunxi.git
    等待clone完成即可
回复 支持 反对

使用道具 举报

发表于 2013-9-6 21:31:18 | 显示全部楼层
https://github.com/cubieboard2/linux-sunxi/archive/sunxi-3.4-cb2.zip


zip的包在解压时会有问题,unzip不能正确处理 symlink。但github上不提供tar包的下载

我一直用 git clone git://.... 或 git clone http://... ,https需要用github帐号。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-9-7 01:36:38 | 显示全部楼层
matt 发表于 2013-9-6 21:31
zip的包在解压时会有问题,unzip不能正确处理 symlink。但github上不提供tar包的下载

我一直用 git c ...

zip的包在解压时会有问题,unzip不能正确处理 symlink。

==>zip包可以用7z解压,就不会出现这个问题啦
回复 支持 反对

使用道具 举报

发表于 2013-9-9 14:05:31 | 显示全部楼层
beiyuuyieb 发表于 2013-9-7 01:36
zip的包在解压时会有问题,unzip不能正确处理 symlink。

==>zip包可以用7z解压,就不会出现这个问题啦 ...

多谢。

BTW: 刚看到unzip的patch,解决了这个问题:http://cn.cubieboard.org/forum.php?mod=viewthread&tid=546
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-9-10 20:16:48 | 显示全部楼层
matt 发表于 2013-9-9 14:05
多谢。

BTW: 刚看到unzip的patch,解决了这个问题:http://cn.cubieboard.org/forum.php?mod=viewthread ...

多谢多谢!
回复 支持 反对

使用道具 举报

发表于 2013-12-30 09:45:40 | 显示全部楼层
用百度云离线下,速度飞快
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-5-3 19:30 , Processed in 0.024326 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部