# How to test Mender 2.0.0 in Existing Sumo?

**URL:** <https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499>\
**Category:** General Discussions\
**Tags:** yocto, sumo, nxp\
**Created:** [April 24, 2019, 11:52am UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499 "2019-04-24T11:52:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)\
**Post date:** [April 24, 2019, 11:52am UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/1 "2019-04-24T11:52:21Z")

</div>

Hi,

I have a Sumo branch with Mender 1.7.0 which is using for testing the Mender standalone mode.  
Now, I want to test the `update module` which is part of the Mender 2.0.0.

Could you please let me know how to upgrade to Mender 2.0.0 (to test the update module with Mender standalone) without changing the existing Sumo base (which have many board specific changes)?

Whether removing the meta-mender sources and adding it again as `git clone -b sumo git://github.com/mendersoftware/meta-mender` will fetch the latest base with update module support?

What could be the easiest method? 🤔

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [April 24, 2019, 11:53am UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/2 "2019-04-24T11:53:46Z")

</div>

Our normal workflow is to first update the latest stable branch with any updates, that means meta-mender/thud and overtime we try to backport to older branches e.g sumo and rocko. This is done “best effort wise” and timing could depend on many factors.

There is currently a PR to update meta-mender/sumo to include the beta release recipes, but this has not yet been merged.

You can take a look here,

> <https://github.com/mendersoftware/meta-mender/pull/713>

The is also one PR for rocko,

> <https://github.com/mendersoftware/meta-mender/pull/714/>

Please note that you need to add the following to e.g `local.conf` to enable the beta components,

```auto
PREFERRED_VERSION_pn-mender = "2.0.%"
PREFERRED_VERSION_pn-mender-artifact = "3.0.%"
PREFERRED_VERSION_pn-mender-artifact-native = "3.0.%"

```

---

<div class="post-metadata">

**Author:** ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)\
**Post date:** [April 24, 2019, 12:01pm UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/3 "2019-04-24T12:01:43Z")

</div>

The below entries can be applied to my sumo source only after the mentioned PR got merged into the sumo master branch and fetched into my sources right? Please correct me if I’m wrong.

```auto
PREFERRED_VERSION_pn-mender = "2.0.%"
PREFERRED_VERSION_pn-mender-artifact = "3.0.%"
PREFERRED_VERSION_pn-mender-artifact-native = "3.0.%"

```

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [April 24, 2019, 12:09pm UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/4 "2019-04-24T12:09:47Z")

</div>

> [@ajithpv](#):
>
> The below entries can be applied to my sumo source only after the mentioned PR got merged into the sumo master branch and fetched into my sources right?

This is correct.

---

<div class="post-metadata">

**Author:** ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)\
**Post date:** [April 24, 2019, 1:03pm UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/5 "2019-04-24T13:03:00Z")

</div>

I can see that, all checks have passed and changes are approved for Sumo (from the mentioned [PR for sumo](https://github.com/mendersoftware/meta-mender/pull/713)).

Hopefully, it will be merged soon for testing 🙂

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [April 25, 2019, 5:56pm UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/6 "2019-04-25T17:56:10Z")

</div>

It has been merged 🙂

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [April 26, 2019, 9:06am UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/7 "2019-04-26T09:06:39Z")

</div>

The sumo-v2019.04 and rocko-v2019-04 releases are now completed. You can find the complete Changelogs here:

for sumo: [https://docs.mender.io/development/release-information/release-notes-changelog#meta-mender-sumo-v201904](https://docs.mender.io/development/release-information/release-notes-changelog#meta-mender-sumo-v201904)

and for rocko: [https://docs.mender.io/development/release-information/release-notes-changelog#meta-mender-rocko-v201904](https://docs.mender.io/development/release-information/release-notes-changelog#meta-mender-rocko-v201904)

---

<div class="post-metadata">

**Author:** ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)\
**Post date:** [April 26, 2019, 11:13am UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/8 "2019-04-26T11:13:19Z")

</div>

Thank you @mirzak and @lluiscampos for the support.

I have fetched the source and added the entries to `conf` file as @mirzak suggested to take the beta components.

I got the below error while bitbaking the sumo source:

> | # [github.com/mendersoftware/mender-artifact/vendor/github.com/mendersoftware/go-liblzma](http://github.com/mendersoftware/mender-artifact/vendor/github.com/mendersoftware/go-liblzma)  
> | …/…/…/…/…/…/…/build/src/github.com/mendersoftware/mender-artifact/vendor/github.com/mendersoftware/go-liblzma/reader.go:9:18: fatal error: lzma.h: No such file or directory  
> | compilation terminated.

After couple of search and debugging, I found that this issue is already addressed by @mirzak in [PR](https://github.com/mendersoftware/meta-mender/pull/711) but, it is missing in the sumo branch.

After adding the `DEPENDS += "xz"` in `"meta-mender-core/recipes-mender/mender-artifact/mender-artifact_3.0.0b1.bb"`, this error got resolved and it build successfully.

I think it is better to add the above changes in the sumo 🙂

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [April 26, 2019, 11:32am UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/9 "2019-04-26T11:32:47Z")

</div>

Thank you @ajithpv for reporting! I will get it fixed in both sumo and rocko

---

<div class="post-metadata">

**Author:** ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)\
**Post date:** [April 26, 2019, 12:01pm UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/10 "2019-04-26T12:01:25Z")

</div>

@lluiscampos for Sumo, I have a [PR](https://github.com/mendersoftware/meta-mender/pull/722) 👍  
For Rocko, I didn’t tested but, I feel this is required 🙂

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [April 26, 2019, 12:07pm UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/11 "2019-04-26T12:07:55Z")

</div>

I am having a different problem now, my build gets stuck in fetch because the old branches have been removed. I think it works for you because you had it already downloaded.

This is my error:

```auto
ERROR: mender-2.0.0b1-r0 do_fetch: Fetcher failure: Unable to find revision 040a234aba2abb1b8d9351674892a1b0c7202fea in branch update_modules even from upstream
ERROR: mender-2.0.0b1-r0 do_fetch: Fetcher failure for URL: 'git://github.com/mendersoftware/mender;protocol=https;branch=update_modules'. Unable to fetch URL from any source.

```

So I will be fixing this in addition to the change on your PR.

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [April 26, 2019, 12:08pm UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/12 "2019-04-26T12:08:40Z")

</div>

And I bet it doesn’t work in thud nor in master right now. I working on it

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [April 26, 2019, 12:11pm UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/13 "2019-04-26T12:11:15Z")

</div>

You probably need to remove `branch` and instead add `nobranch=1`, as the SHA1 is a tag and the branch has been removed.

---

<div class="post-metadata">

**Author:** ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)\
**Post date:** [April 26, 2019, 12:15pm UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/14 "2019-04-26T12:15:19Z")

</div>

> [@lluiscampos](#):
>
> I think it works for you because you had it already downloaded.

I simply remove the meta-mender folder from sources and add it agian using `git clone -b sumo git://github.com/mendersoftware/meta-mender`. This worked for me when I tried earlier today.

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [April 26, 2019, 12:27pm UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/15 "2019-04-26T12:27:11Z")

</div>

Yes, but the source is cached in your yocto environment.

If you do `bitbake -c clean mender-artifact && bitbake mender-artifact` you will see what I mean 🙂

---

<div class="post-metadata">

**Author:** ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)\
**Post date:** [April 26, 2019, 12:28pm UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/16 "2019-04-26T12:28:14Z")

</div>

OK, I got your point now 🙂

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [April 26, 2019, 4:18pm UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/17 "2019-04-26T16:18:27Z")

</div>

I have merged your PR now and ported the change to `rocko` 👍

---

<div class="post-metadata">

**Author:** ![beruti](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/beruti/32/329_2.png) [@beruti](https://hub.mender.io/u/beruti)\
**Post date:** [November 1, 2019, 5:15pm UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/18 "2019-11-01T17:15:45Z")

</div>

Got a bit confused by this today. Also getting `fatal error: lzma.h: No such file or directory`. Is this now resolved in master? and if so can you point me to the commit?

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [November 4, 2019, 9:26am UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/19 "2019-11-04T09:26:33Z")

</div>

This should also have been solved on sumo,

> <https://github.com/mendersoftware/meta-mender/blob/master/meta-mender-core/recipes-mender/mender-artifact/mender-artifact_3.2.0.bb#L25>

---

<div class="post-metadata">

**Author:** ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)\
**Post date:** [November 4, 2019, 11:15am UTC](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499/20 "2019-11-04T11:15:35Z")

</div>

Are you using Sumo? 🤔

[Next page](https://hub.mender.io/t/how-to-test-mender-2-0-0-in-existing-sumo/499.md?page=2)
