On Sun, Mar 19, 2023 at 3:50 PM Bo YU <[email protected]> wrote:

> Hi,
> On Sat, Mar 18, 2023 at 09:29:34AM +0000, Alexander Kanavin wrote:
> >   When the slow download is happening, can you please check (e.g. from a
> >   process listing), which server specifically is being accessed and with
> >   which command? Just to be sure where the problem is.
>
> Thanks for tips. I downloaded linux-yocto about 3 days but failed and
> one night to download it after just sent the mail.
>
> I suspected the accessing to git://git.yoctoproject.org/linux-yocto.git
> is very slow under my network. So I think there is one way to replace
>
> ```
> SRC_URI =
> "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH}
> <http://git.yoctoproject.org/linux-yocto.git;name=machine;branch=$%7BKBRANCH%7D>
> ;
> \
> git://
> git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.1;destsuffix=${KMETA}
> <http://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.1;destsuffix=$%7BKMETA%7D>
> "
> ```
>
> Or use another bb file to download linux-yocto kernel with mirror I
> mentioned. But I am fail to try this.
>

You can and should use PREMIRROR like with any other source fetched by
bitbake fetcher.

Use BB_GENERATE_MIRROR_TARBALLS, then rsync your downloads directory
(exclude .done, bad-checksum files and git2, svn, ... dirs) to some shared
location on your network and you have a good starting PREMIRROR to use in
all the builds, so you don't ever need to re-download everything again.
Update your PREMIRROR with rsync after succesful build (every time or from
time to time).

You can also share whole DL_DIR directly, but that has small risk, that if
fetcher fails to update e.g. linux-yocto due to temporary network glitch,
it will remove whole git clone from the DL_DIR and start again, while with
PREMIRROR it will start from the tarball stored there. So it's useful to
combine both (PREMIRROR updated after successful builds and shared DL_DIR
if you have many builders with fast access to the same NFS/CIFS share).

Cheers,
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59469): https://lists.yoctoproject.org/g/yocto/message/59469
Mute This Topic: https://lists.yoctoproject.org/mt/97675021/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to