XUANTIE-RV / buildroot

Buildroot customized for Xuantie™ RISC-V CPU
Apache License 2.0
39 stars 6 forks source link

The "riscv64-linux-x86_64-20200702.tar.gz" package doesn't exsit. #5

Open zhuotianshu opened 1 year ago

zhuotianshu commented 1 year ago

I followed the "Build boot.ext4 (kernel + opensbi + dtb) & rootfs" steps and met the following errors:

>>> toolchain-external-custom  Downloading
--2023-07-17 00:54:53--  https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource/1356021/1594381796470/riscv64-linux-x86_64-20200702.tar.gz
Connecting to 192.168.228.1:7890... connected.
Proxy request sent, awaiting response... 404 Not Found
2023-07-17 00:54:53 ERROR 404: Not Found.

--2023-07-17 00:54:53--  http://sources.buildroot.net/toolchain-external-custom/riscv64-linux-x86_64-20200702.tar.gz
Connecting to 192.168.228.1:7890... connected.
Proxy request sent, awaiting response... 404 Not Found
2023-07-17 00:54:54 ERROR 404: Not Found.

--2023-07-17 00:54:54--  http://sources.buildroot.net/riscv64-linux-x86_64-20200702.tar.gz
Connecting to 192.168.228.1:7890... connected.
Proxy request sent, awaiting response... 404 Not Found
2023-07-17 00:54:54 ERROR 404: Not Found.

make[2]: *** [/home/[myusername]/buildroot/thead_9xxf_enhanced_5.10_glibc_br_defconfig/build/toolchain-external-custom/.stamp_downloaded] Error 1
package/pkg-generic.mk:144: recipe for target '/home/[myusername]/buildroot/thead_9xxf_enhanced_5.10_glibc_br_defconfig/build/toolchain-external-custom/.stamp_downloaded' failed
make[1]: *** [_all] Error 2
Makefile:23: recipe for target '_all' failed
make[1]: Leaving directory '/home/[myusername]/buildroot/thead_9xxf_enhanced_5.10_glibc_br_defconfig'
make: *** [all] Error 2
Makefile:63: recipe for target 'all' failed

I tried to use explorer to search this package in those source urls, but didn't find it, too. How can I find a substitude toolchain? thanks in advance.

apetenchea commented 6 months ago

Hey @zhuotianshu,

I experienced the same problem, maybe I can share a few tips to help you.

You may go into configs_enhanced/thead_9xxf_enhanced_5.10_glibc_br_defconfig and replace the following line with a new source (this one worked for me): BR2_TOOLCHAIN_EXTERNAL_URL="https://datashare.ed.ac.uk/bitstream/handle/10283/4835/Xuantie-riscv64-linux-x86_64-20210618.tar.gz"

I had a similar issue with the zero_stage_boot package, whose link was broken and unfortunately I had to remove in order to continue the build.

Also, note that another user left some useful tips on their gitlab page: https://gitlab.com/c-sky/buildroot/-/issues/46