All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] make linux-menuconfig
@ 2018-04-06 20:57 Bradley, Mike
  2018-04-06 23:58 ` Ricardo Martincoski
  2018-04-07 10:11 ` Yann E. MORIN
  0 siblings, 2 replies; 3+ messages in thread
From: Bradley, Mike @ 2018-04-06 20:57 UTC (permalink / raw)
  To: buildroot


Hello!

I'm trying to build for the Zynq 7000.  I need a particular tag.  Normally I can do:

% git clone https://github.com/Xilinx/linux-xlnx
% git checkout tags/zynq-soc-for-4.3

I'm trying to replicate this in buildroot with

% make nconfig

[cid:image001.png at 01D3CDC7.68197080]

Then
% make linux-menuconfig

But, it fails with:

Initialized empty Git repository in ...../buildroot-2016.11.3/output/build/.linux-zynq-soc-for-4.3.tar.gz.xSOjlD/linux-zynq-soc-for-4.3/.git/
remote: Counting objects: 812346, done.
remote: Compressing objects: 100% (317542/317542), done.
remote: Total 812346 (delta 664056), reused 602764 (delta 488026), pack-reused 0
Receiving objects: 100% (812346/812346), 639.34 MiB | 676 KiB/s, done.
Resolving deltas: 100% (664056/664056), done.
warning: Remote branch zynq-soc-for-4.3 not found in upstream origin, using HEAD instead
Could not fetch special ref 'zynq-soc-for-4.3'; assuming it is not special.

Unfortunately, debugging this is difficult, as each time I re-run "make linux-menuconfig" it starts the long download process again.  I see I have:

buildroot-2016.11.3> ls output/build/.
./                                     .linux-zynq-soc-for-4.3.tar.gz.6Hrdoh/ .linux-zynq-soc-for-4.3.tar.gz.xSOjlD/
../                                    .linux-zynq-soc-for-4.3.tar.gz.od7Dct/
.br2-external.in                       .linux-zynq-soc-for-4.3.tar.gz.Pu1bhX/

That is, it doesn't remember it has already downloaded the base repo.  But, the real issue, is somehow I'm not sure how to tell buildroot how to checkout a specific tag from the github.

Alternatively, I already have the kernel I need downloaded.  So, if I could just point to that somehow, it may suffice.  But, I'm trying to create a generic method I can pass to others, so, would be nice to do it from one area (e.g. have buildroot do it all).

Thanks,
-Mike


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180406/2da0c81a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 9943 bytes
Desc: image001.png
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180406/2da0c81a/attachment.png>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] make linux-menuconfig
  2018-04-06 20:57 [Buildroot] make linux-menuconfig Bradley, Mike
@ 2018-04-06 23:58 ` Ricardo Martincoski
  2018-04-07 10:11 ` Yann E. MORIN
  1 sibling, 0 replies; 3+ messages in thread
From: Ricardo Martincoski @ 2018-04-06 23:58 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, Apr 06, 2018 at 05:57 PM, Bradley, Mike wrote:

[snip]
> But, it fails with:
> 
> Initialized empty Git repository in ...../buildroot-2016.11.3/output/build/.linux-zynq-soc-for-4.3.tar.gz.xSOjlD/linux-zynq-soc-for-4.3/.git/
> remote: Counting objects: 812346, done.
> remote: Compressing objects: 100% (317542/317542), done.
> remote: Total 812346 (delta 664056), reused 602764 (delta 488026), pack-reused 0
> Receiving objects: 100% (812346/812346), 639.34 MiB | 676 KiB/s, done.
> Resolving deltas: 100% (664056/664056), done.
> warning: Remote branch zynq-soc-for-4.3 not found in upstream origin, using HEAD instead
> Could not fetch special ref 'zynq-soc-for-4.3'; assuming it is not special.

It succeeds here:

Buildroot 2016.11.3
git version 2.14.1

BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/Xilinx/linux-xlnx"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="zynq-soc-for-4.3"

>>> linux zynq-soc-for-4.3 Downloading
Doing shallow clone
Cloning into 'linux-zynq-soc-for-4.3'...
remote: Counting objects: 53876, done.
remote: Compressing objects: 100% (51004/51004), done.
remote: Total 53876 (delta 4351), reused 16173 (delta 2119), pack-reused 0
Receiving objects: 100% (53876/53876), 144.75 MiB | 972.00 KiB/s, done.
Resolving deltas: 100% (4351/4351), done.
Note: checking out 'e4a9288942392965bd5cfad93d9996b83c0dc4a6'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

Checking out files: 100% (50821/50821), done.
Could not fetch special ref 'zynq-soc-for-4.3'; assuming it is not special.
>>> linux zynq-soc-for-4.3 Extracting


[snip]
> Alternatively, I already have the kernel I need downloaded.  So, if I could just point to that somehow, it may suffice.  But, I'm trying to create a generic method I can pass to others, so, would be nice to do it from one area (e.g. have buildroot do it all).
[Side note: It is usual in mailing lists to use text only messages, with lines
wrapped at a reasonable column when it makes sense, i.e. around 80.]

Is this alternative method good for you?

[*] Linux Kernel
      Kernel version (Custom tarball)  --->
($(call github,Xilinx,linux-xlnx,zynq-soc-for-4.3)/linux-zynq-soc-for-4.3.tar.gz) URL

Inspired by: http://patchwork.ozlabs.org/patch/893965/


Regards,
Ricardo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] make linux-menuconfig
  2018-04-06 20:57 [Buildroot] make linux-menuconfig Bradley, Mike
  2018-04-06 23:58 ` Ricardo Martincoski
@ 2018-04-07 10:11 ` Yann E. MORIN
  1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2018-04-07 10:11 UTC (permalink / raw)
  To: buildroot

Mike, All,

[please, use plain-text email, reading HTML code is not nice...]
[some people are reading this with a text-to-speech or a braille reader]

On 2018-04-06 20:57 +0000, Bradley, Mike spake thusly:
> % git clone [1]https://github.com/Xilinx/linux-xlnx
> % git checkout tags/zynq-soc-for-4.3

Why are you explicitly prefixing with 'tags/'?

> Initialized empty Git repository in
> ???../buildroot-2016.11.3/output/build/.linux-zynq-soc-for-4.3.tar.gz.xSOjlD/linux-zynq-soc-for-4.3/.git/

Buildroot 2016.11 is getting pretty old now. You should upgrade.

> remote: Counting objects: 812346, done.
> remote: Compressing objects: 100% (317542/317542), done.
> remote: Total 812346 (delta 664056), reused 602764 (delta 488026), pack-reused 0
> Receiving objects: 100% (812346/812346), 639.34 MiB | 676 KiB/s, done.
> Resolving deltas: 100% (664056/664056), done.
> warning: Remote branch zynq-soc-for-4.3 not found in upstream origin, using HEAD instead
> Could not fetch special ref 'zynq-soc-for-4.3'; assuming it is not special.

Those messages are perfectly expected.

And for me, the download does work when using the current Buildroot
master:

$ cat my_defconfig
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/Xilinx/linux-xlnx"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="zynq-soc-for-4.3"
BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y

$ make clean
$ make linux-menuconfig
[--SNIP--]
>>> linux zynq-soc-for-4.3 Downloading
Initialised empty Git repository in /home/ymorin/dev/buildroot/O/yem-dl/linux/git/.git/
Doing a shallow fetch
remote: Counting objects: 53876, done.
remote: Compressing objects: 100% (51004/51004), done.
remote: Total 53876 (delta 4351), reused 16173 (delta 2119), pack-reused 0
Receiving objects: 100% (53876/53876), 144.75 MiB | 5.18 MiB/s, done.
Resolving deltas: 100% (4351/4351), done.
From https://github.com/Xilinx/linux-xlnx
 * tag               zynq-soc-for-4.3 -> FETCH_HEAD
Could not fetch special ref 'zynq-soc-for-4.3'; assuming it is not special.
WARNING: no hash file for linux-zynq-soc-for-4.3.tar.gz
>>> linux zynq-soc-for-4.3 Extracting
[--SNIP--]

I also tested (just for the sake of losing time) on 2016.11.3, and it
also works as expected:

>>> linux zynq-soc-for-4.3 Downloading
Doing shallow clone
Cloning into 'linux-zynq-soc-for-4.3'...
remote: Counting objects: 53876, done.
remote: Compressing objects: 100% (51004/51004), done.
remote: Total 53876 (delta 4351), reused 16173 (delta 2119), pack-reused 0
Receiving objects: 100% (53876/53876), 144.75 MiB | 5.32 MiB/s, done.
Resolving deltas: 100% (4351/4351), done.
Checking connectivity... done.
Note: checking out 'e4a9288942392965bd5cfad93d9996b83c0dc4a6'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

Checking out files: 100% (50821/50821), done.
Could not fetch special ref 'zynq-soc-for-4.3'; assuming it is not special.
>>> linux zynq-soc-for-4.3 Extracting

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-07 10:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-06 20:57 [Buildroot] make linux-menuconfig Bradley, Mike
2018-04-06 23:58 ` Ricardo Martincoski
2018-04-07 10:11 ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.