eric_jia的个人空间 https://blog.eetop.cn/208662 [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

Gitserver

已有 536 次阅读| 2008-7-10 12:26 |个人分类:资料

通过GitServer来在niosII上运行uclinux

作者[andylgh] 发表于[2008-2-19 10:12:00]

1,应该首先下载git-core的安装包。尽量用最新版本的。下载地址为:

http://www.kernel.org/pub/software/scm/git

http://www.kernel.org/pub/software/scm/git/git-1.5.3.8.tar.bz2

http://www.kernel.org/pub/software/scm/git...1.5.3.8.tar.bz2

然后通过以下命令进行安装 

tar jxf git-1.5.3.8.tar.bz2
cd git-1.5.3.8
./configure
make
sudo make install

2,登记你的邮箱地址和用户名,通过以下命令:

git config --global user.email "you@email.com"
git config --global user.name "Your Name"

3,下载uclinux源代码包uClinux-dist-20071107.tar.bz2,下载地址为:

uClinux-dist-20071107.tar.bz2 

然后进行解压:

tar jxf uClinux-dist-20071107.tar.bz2 

4,通过以下的命令来选择分支:

cd uClinux-dist
git branch -a
  master
* nios2
  origin/HEAD
  origin/master
  origin/nios2

5. Only if you are blocked by firewall to use git:// port 9418, you can use http:// instead. But it will be slower than using git:// . Don't use http:// unless you have no choice.
Edit file .git/config, and change to http:// .

[remote "origin"]
       url =
http://
sopc.et.ntust.edu.tw/git/uClinux-dist.git
       fetch = +refs/heads/*:refs/remotes/origin/*

6. 决定用哪个内核 通过以下命令:(uClinux-dist-20070130是个比较稳定的版本推荐用
git checkout master #uClinux-dist-20070130 stable, kernel v2.6.19
Or,
git checkout nios2   # uClinux-dist-20071107 development, kernel v2.6.23

7,更新内核和打一些补丁通过下面的命令:

git pull

当连接好网络的情况下,电脑会自动连接到sopc server,下载更新,当更新完成之后就代表着uclinux系统已经在niosii上移植好了,安装交叉编译工具后就可以编译内核了,详细步骤请见另外一篇笔记--------------uclinux_nios记录

如果你的电脑没有连接到internet,你将不能从服务器上下载到更新,你就应该先到:

http://sopc.et.ntust.edu.tw/pub/uclinux/patches-20070130/然后自己进行打补丁

If your Linux PC doesn't connect to internet, you won't be able to pull from the server. You can download the patches for master branch, and use "git am" to apply them (but don't use them on nios2 branch).
Apply them in the numbered sequences, and apply each patch only once. eg,
git am 0001-nios2-Merged-MTD-CFI-driver-patch-from-Mictrotronix.patch
git am 0002-....

Or using wildcard,
git am 00*patch

8. Build as usual, ("make romfs" is not needed now),通过以上的几步后,就不需要在make romfs 了,直接用以下的命令即可:
make menuconfig
make vendor_hwselect SYSPTF=/path_to/your_system_ptf
make


点赞

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 1

    粉丝
  • 0

    好友
  • 0

    获赞
  • 5

    评论
  • 访问数
关闭

站长推荐 上一条 /1 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-5 23:16 , Processed in 0.016150 second(s), 11 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部