risc-v中文社区

 找回密码
 立即注册
查看: 1376|回复: 0

[原创] 手把手教你开始搭建Risc-v Rocket环境(3)

[复制链接]

347

主题

564

帖子

2237

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
2237
发表于 2021-7-28 13:50:26 | 显示全部楼层 |阅读模式
7:重新返回到第4步,再执行:(上面对firrtl的分析应该是不正确的,不过这么做也没有坏处吧,毕竟后面还是用得上)

joe@joe-Inspiron-7460:~/rocketchip/rocket-chip/riscv-tools$ git submodule update --init --recursive
正克隆到 'firrtl'...
remote: Counting objects: 19723, done.
remote: Compressing objects: 100% (104/104), done.
remote: Total 19723 (delta 46), reused 89 (delta 31), pack-reused 19584
接收对象中: 100% (19723/19723), 46.14 MiB | 123.00 KiB/s, 完成.
处理 delta 中: 100% (11457/11457), 完成.
检查连接... 完成。
子模组路径 '../firrtl':检出 '547082c04886f605b6f411b4ff3e42b54062f9a0'
正克隆到 'hardfloat'...
remote: Counting objects: 1127, done.
remote: Total 1127 (delta 0), reused 0 (delta 0), pack-reused 1127
接收对象中: 100% (1127/1127), 1.19 MiB | 344.00 KiB/s, 完成.
处理 delta 中: 100% (599/599), 完成.
检查连接... 完成。
子模组路径 '../hardfloat':检出 '45f5ae171a1950389f1b239b46a9e0d16ae0a6f4'
正克隆到 'riscv-tools'...
remote: Counting objects: 1092, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 1092 (delta 5), reused 14 (delta 4), pack-reused 1075
接收对象中: 100% (1092/1092), 342.05 KiB | 202.00 KiB/s, 完成.
处理 delta 中: 100% (539/539), 完成.
检查连接... 完成。
子模组路径 '../riscv-tools':检出 '40a134cb8505361d1f4cadc1f8fe201bfc40b420'
子模组 'riscv-fesvr' (https://github.com/riscv/riscv-fesvr.git) 未对路径 '../riscv-fesvr' 注册
子模组 'riscv-gnu-toolchain' (https://github.com/riscv/riscv-gnu-toolchain.git) 未对路径 '../riscv-gnu-toolchain' 注册
子模组 'riscv-isa-sim' (https://github.com/riscv/riscv-isa-sim.git) 未对路径 '../riscv-isa-sim' 注册
子模组 'riscv-opcodes' (https://github.com/riscv/riscv-opcodes.git) 未对路径 '../riscv-opcodes' 注册
子模组 'riscv-openocd' (https://github.com/riscv/riscv-openocd.git) 未对路径 '../riscv-openocd' 注册
子模组 'riscv-pk' (https://github.com/riscv/riscv-pk.git) 未对路径 '../riscv-pk' 注册
子模组 'riscv-tests' (https://github.com/riscv/riscv-tests.git) 未对路径 '../riscv-tests' 注册
正克隆到 'riscv-fesvr'...
remote: Counting objects: 1942, done.
remote: Total 1942 (delta 0), reused 0 (delta 0), pack-reused 1942
接收对象中: 100% (1942/1942), 668.71 KiB | 177.00 KiB/s, 完成.
处理 delta 中: 100% (1363/1363), 完成.
检查连接... 完成。
子模组路径 'riscv-fesvr':检出 '68c12d06ebbdfe20856b886570822fe66804fd26'
正克隆到 'riscv-gnu-toolchain'...
remote: Counting objects: 6810, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 6810 (delta 2), reused 4 (delta 1), pack-reused 6803
接收对象中: 100% (6810/6810), 4.02 MiB | 42.00 KiB/s, 完成.
处理 delta 中: 100% (3310/3310), 完成.
检查连接... 完成。
子模组路径 'riscv-gnu-toolchain':检出 '64879b24e18572a3d67aa4268477946ddb248006'
子模组 'riscv-binutils-gdb' (https://github.com/riscv/riscv-binutils-gdb.git) 未对路径 '../riscv-binutils-gdb' 注册
子模组 'riscv-dejagnu' (https://github.com/riscv/riscv-dejagnu.git) 未对路径 '../riscv-dejagnu' 注册
子模组 'riscv-gcc' (https://github.com/riscv/riscv-gcc.git) 未对路径 '../riscv-gcc' 注册
子模组 'riscv-glibc' (https://github.com/riscv/riscv-glibc.git) 未对路径 '../riscv-glibc' 注册
子模组 'riscv-newlib' (https://github.com/riscv/riscv-newlib.git) 未对路径 '../riscv-newlib' 注册
子模组 'riscv-qemu' (git://github.com/riscv/riscv-qemu.git) 未对路径 '../riscv-qemu' 注册
正克隆到 'riscv-binutils-gdb'...
remote: Counting objects: 786588, done.
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
fatal: 无法克隆 'https://github.com/riscv/riscv-binutils-gdb.git' 到子模组路径 'riscv-binutils-gdb'
无法递归进子模组路径 'riscv-gnu-toolchain'
无法递归进子模组路径 '../riscv-tools'
8:经过两天的偿试,总是不成功,退回上级目录,然后再 执行git submodule sync,命令如下:

joe@joe-Inspiron-7460:~/rocketchip/rocket-chip/riscv-tools$ cd ..
joe@joe-Inspiron-7460:~/rocketchip/rocket-chip$ git submodule sync
为 'chisel3' 同步子模组 url
为 'firrtl' 同步子模组 url
为 'hardfloat' 同步子模组 url
为 'riscv-tools' 同步子模组 url
为 'torture' 同步子模组 url
joe@joe-Inspiron-7460:~/rocketchip/rocket-chip$ git submodule update --init
9:再 进到子目录riscv-tools执行同步命令:

joe@joe-Inspiron-7460:~/rocketchip/rocket-chip$ cd riscv-tools/
joe@joe-Inspiron-7460:~/rocketchip/rocket-chip/riscv-tools$ git submodule update --init --recursive
10:回到上级目录,参考 https://blog.csdn.net/andersonanya/article/details/77863983 修改缓冲区

joe@joe-Inspiron-7460:~/rocketchip/rocket-chip$ git config --global http.postBuffer 524288000

回复

使用道具 举报

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

本版积分规则



Archiver|手机版|小黑屋|risc-v中文社区

GMT+8, 2024-4-26 04:05 , Processed in 0.017866 second(s), 17 queries .

risc-v中文社区论坛 官方网站

Copyright © 2018-2021, risc-v open source

快速回复 返回顶部 返回列表