Firefly开源社区

标题: RK3399编译linux_sdk时出现错误 [打印本页]

作者: smm    时间: 2020-5-21 16:54
标题: RK3399编译linux_sdk时出现错误
PC:Ubuntu 16.04 LTS
linux_sdk:Firefly_Linux_SDK_V1.0.7

出错log:
>>> linux HEAD Downloading
Doing shallow clone
Cloning into 'linux-HEAD'...
fatal: '/home/mm/Firefly_RK3399/linux_sdk/Firefly_Linux_SDK_v1.0/buildroot/../kernel' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Shallow clone failed, falling back to doing a full clone
Doing full clone
Cloning into 'linux-HEAD'...
fatal: '/home/mm/Firefly_RK3399/linux_sdk/Firefly_Linux_SDK_v1.0/buildroot/../kernel' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
--2020-05-07 10:56:59--  http://sources.buildroot.net/linux-HEAD.tar.gz
Resolving sources.buildroot.net (sources.buildroot.net)... 104.26.1.37, 104.26.0.37, 2606:4700:20::681a:25, ...
Connecting to sources.buildroot.net (sources.buildroot.net)|104.26.1.37|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-05-07 10:57:01 ERROR 404: Not Found.

package/pkg-generic.mk:166: recipe for target '/home/mm/Firefly_RK3399/linux_sdk/Firefly_Linux_SDK_v1.0/buildroot/output/rockchip_rk3399/build/linux-HEAD/.stamp_downloaded' failed
make[1]: *** [/home/mm/Firefly_RK3399/linux_sdk/Firefly_Linux_SDK_v1.0/buildroot/output/rockchip_rk3399/build/linux-HEAD/.stamp_downloaded] Error 1
/home/mm/Firefly_RK3399/linux_sdk/Firefly_Linux_SDK_v1.0/buildroot/output/rockchip_rk3399/Makefile:16: recipe for target '_all' failed
make: *** [_all] Error 2

我看了http://sources.buildroot.net/下的确没有linux-HEAD.tar.gz,这个有人解决了么,求告知!!
作者: jinsai    时间: 2020-6-1 11:57
http://dev.t-firefly.com/thread-101808-1-2.html 这个大佬解决了
作者: dongyf    时间: 2020-6-13 02:00
可以修改buildroot下面的参数信息,不使用git来更新,使用本地拷贝就可以了

错误原因:git的远程url是发布者机器的本地路径,导致git操作失败了
作者: penguin    时间: 2020-6-13 10:41
可以在kernel目录下执行git init && git add ./* && git commit -m "debug"然后再编译,编译成功后可以删除掉kernel文件夹下的.git文件夹。




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1