# Sources for release 15, legato 21

**URL:** <https://forum.legato.io/t/sources-for-release-15-legato-21/6376>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [December 17, 2022, 1:46am UTC](https://forum.legato.io/t/sources-for-release-15-legato-21/6376 "2022-12-17T01:46:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunil.somarajan](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sunil.somarajan](https://forum.legato.io/u/sunil.somarajan)\
**Post date:** [December 17, 2022, 1:46am UTC](https://forum.legato.io/t/sources-for-release-15-legato-21/6376/1 "2022-12-17T01:46:17Z")

</div>

Hi,

I have used leaf to obtain sources for FX30-CATM (Release 15.0.5.002 + Legato 21.05.0) but this is failing a compile. I had all kinds of issues with repo tool but finally got leaf getsrc legato and leaf getsrc swi-linux to complete. Yocto Build fails

RROR: linux-msm-4.14.253-r1 do\_patch: Applying patch ‘0001-tty-serial-Enable-IOCTL-command-to-get-and-set-UART1.patch’ on target directory ‘/home/epuser/work/legato\_21/swi-linux-src/build\_bin/tmp/work-shared/swi-mdm9x28-wp/kernel-source’  
Command Error: ‘quilt --quiltrc /home/epuser/work/legato\_21/swi-linux-src/build\_bin/tmp/work/swi\_mdm9x28\_wp-poky-linux-gnueabi/linux-msm/4.14.253-r1/recipe-sysroot-native/etc/quiltrc push’ exited with 0 Output:  
Applying patch 0001-tty-serial-Enable-IOCTL-command-to-get-and-set-UART1.patch  
can’t find file to patch at input line 27  
Perhaps you used the wrong -p or --strip option?

Is there any alternative location where I can download the complete linux sources from ?

Any help with the error above ?

Sunil

---

<div class="post-metadata">

**Author:** ![sunil.somarajan](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sunil.somarajan](https://forum.legato.io/u/sunil.somarajan)\
**Post date:** [December 17, 2022, 1:55am UTC](https://forum.legato.io/t/sources-for-release-15-legato-21/6376/2 "2022-12-17T01:55:28Z")

</div>

never mind. The issue was due to mach-qcom being absent. mach-msm was a symbolic link to mach-qcom but leaf fails for this and I had removed the symbolic link. Having both mach-qcom and mach-msm directories helped resolved.

My earlier question still stands.

Where can I download the linux sources for R15 beta releases ?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [December 17, 2022, 4:24am UTC](https://forum.legato.io/t/sources-for-release-15-legato-21/6376/3 "2022-12-17T04:24:21Z")

</div>

you can see this document as example for WP76 for downloading yocto source from Github:

> **[Git Repository](https://forum.sierrawireless.com/t/git-repository/24389/10)**
>
> I follow this document and I don’t see problem to download from github: Example on downloading WP76 yocto source from Github.docx (90.5 KB) owner@CNHKG-EX-001367:~/Yocto/WP76/R16\_test$ git config --global user.name "username"...

Here is the official document:

> **[GitHub - Legato Docs](https://docs.legato.io/latest/toolsGitHub.html)**
>
> legato™ is an open source Linux-based embedded platform designed to simplify connected IoT application development

Here is the link in github for FX30-catM

> **[manifest/products/fx30-catm/releases at master · legatoproject/manifest](https://github.com/legatoproject/manifest/tree/master/products/fx30-catm/releases)**
>
> master/products/fx30-catm/releases

---

<div class="post-metadata">

**Author:** ![sunil.somarajan](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sunil.somarajan](https://forum.legato.io/u/sunil.somarajan)\
**Post date:** [December 19, 2022, 4:53pm UTC](https://forum.legato.io/t/sources-for-release-15-legato-21/6376/4 "2022-12-19T16:53:50Z")

</div>

Thank you.  
I followed instructions to use repo (instead of leaf getsrc)  
repo init -u ssh://git@github.com/legatoproject/manifest -m products/fx30-catm/releases/Release15.0.5.002.xml -g default,-cache,proprietary  
and followed by repo sync.

It is missing the meta-columbia\* directory which I saw was present after running  
leaf getsrc swi-linux.

To summarize,

I used Ubuntu 16.04  
leaf getsrc swi-linux works but only after fixing errors thrown by repo tool  
using repo and the manifest will also work but it is missing one directory that is critical to the build

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [December 20, 2022, 12:40am UTC](https://forum.legato.io/t/sources-for-release-15-legato-21/6376/5 "2022-12-20T00:40:48Z")

</div>

> > leaf getsrc swi-linux works but only after fixing errors thrown by repo tool

Do you mean you can download and compile successfully now?

---

<div class="post-metadata">

**Author:** ![sunil.somarajan](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sunil.somarajan](https://forum.legato.io/u/sunil.somarajan)\
**Post date:** [December 20, 2022, 1:30am UTC](https://forum.legato.io/t/sources-for-release-15-legato-21/6376/6 "2022-12-20T01:30:03Z")

</div>

yes I can download via leaf. But on 16.04 it throws errors in the repo tool. I had to manually copy the repo tool (newer version) and then try again. I also am able to compile.
