Project

General

Profile

git clone issues with linux-socfpga.git

Added by Erkan Altan about 2 years ago

Hi, I have the issue below. After cloning, repo is unusable.

C:\prj\cl>git clone git://support.criticallink.com/home/git/linux-socfpga.git
Cloning into 'linux-socfpga'...
remote: Counting objects: 7107980, done.
remote: Compressing objects: 100% (202/202), done.
remote: Total 7107980 (delta 134), reused 0 (delta 0)
Receiving objects: 100% (7107980/7107980), 1.14 GiB | 3.00 MiB/s, done.
Resolving deltas: 100% (5988831/5988831), done.
error: invalid path 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

C:\prj\cl>cd linux-socfpga

C:\prj\cl\linux-socfpga>git restore --source=HEAD :/
error: invalid path 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c'
error: invalid path 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h'


Replies (3)

RE: git clone issues with linux-socfpga.git - Added by Michael Williamson about 2 years ago

Hello,

If you are working in windows (windows command shell), you will probably have problems as the linux repository uses logical links, etc. I don't think you can checkout and build linux on a windows NTFS or FAT32/64 filesystem.

I would recommend using windows subsystem for linux (WSL2) and installing a LTS support version of ubuntu and cloning under a linux ext2/3/4 filesystem.

With regards,
Mike

RE: git clone issues with linux-socfpga.git - Added by Michael Williamson about 2 years ago

Also,

I just tested running the commands listed here with the following version of git. No issues....

What version of git are you using?

mikew@mikew-cyberpc:/tmp$ git clone git://support.criticallink.com/home/git/linux-socfpga.git
Cloning into 'linux-socfpga'...
remote: Counting objects: 7107980, done.
remote: Compressing objects: 100% (202/202), done.
remote: Total 7107980 (delta 134), reused 0 (delta 0)
Receiving objects: 100% (7107980/7107980), 1.14 GiB | 32.45 MiB/s, done.
Resolving deltas: 100% (5988831/5988831), done.
Updating files: 100% (56406/56406), done.
mikew@mikew-cyberpc:/tmp$ git --version
git version 2.25.1
mikew@mikew-cyberpc:/tmp$

RE: git clone issues with linux-socfpga.git - Added by Erkan Altan about 2 years ago

Hi Mike,
I tried it in Ubuntu via WSL and yes, it works.

My nonworking windows command window git version is:
git --version
git version 2.38.1.windows.1

I also tried running it via windows powershell and it failed as well.

Running it in WSL/Ubuntu is good enough for me. Thank you for your help.

    (1-3/3)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)