小学生
最后登录1970-1-1
在线时间 小时
注册时间2025-4-13
|
按照嵌入式Linux驱动开发实战指南第1.2.2通过SDK获取内核源码的介绍,我下载了LubanCat_Linux_Generic_SDK_20250312.tgz,并在ubuntu20.04的虚拟机上执行了
~/LubanCat_SDK$ .repo/repo/repo sync -l, 这一步是成功的,然后再运行sync -c却出错。这个如何处理呢?
~/LubanCat_SDK$ .repo/repo/repo sync -c
Fetching: 100% (13/13), done in 0.220s
info: A new version of repo is available
warning: repo is not tracking a remote branch, so it will not receive updates
================================================================================
Repo command failed: RepoUnhandledExceptionError
GitCommandError: 'reset --keep v2.53^0' on repo failed
stderr: error: Entry 'project.py' not uptodate. Cannot merge.
fatal: Could not reset index file to revision 'v2.53^0'.
1)我看了下sdk附带的repo的版本,是2.52.
tony@ubuntu:~/LubanCat_SDK$ cd .repo/repo
tony@ubuntu:~/LubanCat_SDK/.repo/repo$ git log
commit 8d5f03261164f3cd65af0576dfa7d4edded96c67 (HEAD -> default, tag: v2.52, origin/main)
Author: Josip Sokcevic <sokcevic@google.com>
Date: Wed Feb 5 19:35:45 2025 +0000
gc: Add tags to remote pack list
2)我同时试了下进入kernel-5.10, 并做git pull
~/LubanCat_SDK/kernel-5.10$ git pull
You are not currently on a branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
|
-
sync -l后的文件夹结构
|