UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 61879

2014.2 - PetaLinux - Downloading From a Remote Git Repository Fails With "fatal: Operation not supported by protocol"

Description

When downloading source code from a remote Git repository, the download operation fails with errors similar to the following:

INFO: Fetching remote component linux-kernel
fatal: Operation not supported by protocol.
Unexpected end of command stream
ERROR: Failed to get linux-kernel from remote https://github.com/Xilinx/linux-xlnx.git!
ERROR: Failed to get remote component linux/kernel!
ERROR: Failed to get remote component linux/kernel!
ERROR: Failed to configure subcomponent linux/kernel for linux
ERROR: Failed to config subcomponents of linux!
ERROR: Failed to config component linux

Solution

PetaLinux 2014.2 has changed from previous versions and now uses the git archive operation when retrieving remote source code.  

GitHub does not support archiving when retrieving repositories. 

See this GitHub answer for more details: https://help.github.com/articles/can-i-archive-a-repository

A simple workaround is to perform a standard git clone operation of the repository to a known location.  

Once the clone is completed, it can be pointed to using the same remote feature in the PetaLinux 2014.2 menuconfig but specifying file://<path_on_disk> rather than http://<URL_OF_GIT_REPO>.

AR# 61879
Date Created 08/28/2014
Last Updated 08/29/2014
Status Active
Type General Article
Tools
  • PetaLinux
  • PetaLinux - 2014.2