Unable to download Kernel Source Code from Toradex Git repositary [ Apalis iMX6 ]

Hi,

I am trying to download the Toradex Linux source. Following this link.

I am using below mentioned command:

git clone -b toradex_4.1-2.0.x-imx git://git.toradex.com/linux-toradex.git

I tried from another system also but gets struck around 24% to 35 %.

Is there any place from where we could download the files in single tar?

or

Please do let me know if i missed any point.

We want to continue our linux development & currently struck here.

Check if your company firewall/gateway inhibit the git protocol. If yes, you can use HTTP or HTTPS instead.

e.g.

git clone -b toradex_4.1-2.0.x-imx https://git.toradex.com/linux-toradex.git

Is there any place from where we could download the files in single tar ?

Unfortunately, no.

Hi Bhuvan , I tried both way i.e git & https , but the problem still persist. Could you please suggest any other way of getting the source code.

It got strucked at 36%

14:56:28@ ~ git clone -b toradex_4.1-2.0.x-imx git://git.toradex.com/linux-toradex.git

Cloning into ‘linux-toradex’… remote: Counting objects: 5569199, done. remote: Compressing objects: 100% (836551/836551), done. Receiving objects: 36% (2004912/5569199), 739.21 MiB | 1.66 MiB/s

Dear Bhuvan ,
I tried with https but the problem still is observed.
Also it looks like the branch is empty for linux at the given git link .
Please find the snapshot.
alt text

Hi Toradex Team , Could you please help us on getting the required APALIS iMX6 source code . Please do let me know if i am missing any aspect.

I have spend complete day trying different options ( GIT / HTTP / HTTPS ) on different PC . But the problem is still there .

thanks

I don’t see any issue/something missing, may be some n/w glitches ? Is your internet connection reliable ? I cloned at my end again to re-check, it worked fine as expected.

Bhuvan ,
Thanks for replying back .

Just to test the network reliability i created an standard poky installation on test pc …it downloaded packages properly …
Since i am unable to get the kernel source code i am not in position to progress on my other
development aspects.

Could there be any other way to get the source code , as for past two days i am trying with the git link .

@bhuvan.tx actually mixed up a Linux kernel branch with a U-Boot boot loader git URI which would result in the following error message:

fatal: Remote branch toradex_4.1-2.0.x-imx not found in upstream origin

Either try the following for the U-Boot boot loader:

git clone -b 2016.11-toradex https://git.toradex.com/u-boot-toradex.git

Or the following for the Linux kernel:

git clone -b toradex_4.1-2.0.x-imx https://git.toradex.com/linux-toradex.git

@marcel thanks! for correcting my typo, I edited my answer to avoid confusion.

Max ,
Thanks a lot for the pointer , the steps worked .

Bhuvan / Marcel ,
Thanks for supporting .

Hi

Clone works also here nicely.
I assume you checked that your disk has enough space left?

Since you seem to have an Openembedded build on you machine you could try to first clone from the local copy OE has in its download directory, then add the remote on git.toradex.com and fetch only the likely small differences from there.

$ git clone --origin local --no-checkout <path to OE download directory>/downloads/git2/git.toradex.com.linux-toradex.git linux-toradex
Cloning into 'linux-toradex'...
done.
$ cd linux-toradex/
$ git remote add origin git://git.toradex.com/linux-toradex.git
$ git fetch origin
remote: Counting objects: 54, done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 19 (delta 17), reused 0 (delta 0)
Unpacking objects: 100% (19/19), done.
From git://git.toradex.com/linux-toradex
 * [new branch]      colibri    -> origin/colibri
   ...
$ git checkout -b toradex_4.1-2.0.x-imx origin/toradex_4.1-2.0.x-imx
Checking out files: 100% (50082/50082), done.
Branch toradex_4.1-2.0.x-imx set up to track remote branch toradex_4.1-2.0.x-imx from origin.
Switched to a new branch 'toradex_4.1-2.0.x-imx'
$ git remote remove local

Max

Hi, now I have problems cloning linux-toradex.

I tried both git and https protocol:

$ git clone git://git.toradex.com/linux-toradex.git
Klone nach 'linux-toradex' ...
remote: Counting objects: 5582668, done.
remote: Compressing objects: 100% (841718/841718), done.
remote: Total 5582668 (delta 4705646), reused 5579041 (delta 4702142)
Empfange Objekte: 100% (5582668/5582668), 1.14 GiB | 6.08 MiB/s, done.
Löse Unterschiede auf: 100% (4705646/4705646), done.
Prüfe Konnektivität ... Fertig.
warning: Externer HEAD bezieht sich auf eine nicht existierende Referenz und kann nicht ausgecheckt werden.

$ rm -rf linux-toradex/

$ git clone https://git.toradex.com/linux-toradex.git
Klone nach 'linux-toradex' ...
Prüfe Konnektivität ... Fertig.
warning: Externer HEAD bezieht sich auf eine nicht existierende Referenz und kann nicht ausgecheckt werden.

For https there is no progress information at all - I wonder if this is correct?

In both cases, as you see, git is unable to checkout a valid reference.

Can anybody help? Thanks.

You are very welcome.

Hi

You have to add the branch you want to have initially checked out or git will not checkout anything after the download of the repo completed.

Please have a look here for what branch to checkout and the git clone command with an initial branch.

Max

Hi Max,

thanks for your answer.

We had problems cloning from bitbake two days ago and while trying to reproduce I just noted the “external head” warning. Today bitbake is fetching fine, so I guess everything is good.

For https there is no progress information at all - I wonder if this is correct?

Unfortunately this is the case which is why HTTP/HTTPS is only ever recommended should you have company firewall related limitations.

In both cases, as you see, git is unable to checkout a valid reference.

This is most likely just because you missed specifying which branch to be checked out and our Linux kernel (and U-Boot for that matter) repos do not contain a default master branch as you really do need to know which module you plan to target and select the resp. proper branch.

HI Marcel,

I tried to clone linux kernel from the git repository by specifying the kernel branch. But unfortunately i found the clone does not work.

log

cc@cc:~/tmp$  git clone -b toradex_4.1-2.0.x-imx https://git.toradex.com/linux-toradex.git
Cloning into 'linux-toradex'...

it was not cloning from past hours. what would be the fault.

Best Regards,
valleru

The issue really must lay on your side as I just successfully completed such a clone operation:

tester@testseat1:~$ git clone -b toradex_4.1-2.0.x-imx https://git.toradex.com/linux-toradex.git
Cloning into 'linux-toradex'...


Checking connectivity... done.
Checking out files: 100% (50141/50141), done.