<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>relationship sdk-zephyr and zephyhrproject/zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77257/relationship-sdk-zephyr-and-zephyhrproject-zephyr</link><description>Hi, 
 
 Please excuse me if I ask some stupid questions I am new to wesr and have only used git simply over the last few years. These questions stem from trying to get percepio tracealyzer working with sdk 1.6.0 and nrf5340. Primary question is what is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Jul 2021 13:34:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77257/relationship-sdk-zephyr-and-zephyhrproject-zephyr" /><item><title>RE: relationship sdk-zephyr and zephyhrproject/zephyr</title><link>https://devzone.nordicsemi.com/thread/319204?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 13:34:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c11b0f5f-6b08-4fe9-9d91-9e7070e5f7ed</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Owain,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="owain"]I don&amp;#39;t know the specific commits related to Segger RTT and Tracealyszr I need. So is there anything particularly risky in just creating a new branch from v2.6.0-rc1-ncs1 and merging from the head of the v2.6-branch and pciking up all changes?&lt;br /&gt;&lt;br /&gt;I did just try this and it showed some conflicts; which repdicably I am not qualified to resolve.[/quote]
&lt;p&gt;This might not be the path of least resistance, as you figured out.&lt;/p&gt;
&lt;p&gt;If you know the change that fixed the behavior you&amp;#39;re after, I can help you out to integrate the specific fix.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="owain"]I should just try and find the relevent commits and cherry pick as you suggest?&lt;br /&gt;I shall ask Torbjorn at percepio.[/quote]
&lt;p&gt;&amp;nbsp;Yes, this would greatly help to narrow it down.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: relationship sdk-zephyr and zephyhrproject/zephyr</title><link>https://devzone.nordicsemi.com/thread/319183?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 12:46:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9915819-3efe-481e-8a71-75d17539e08b</guid><dc:creator>OwainIncus</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know the specific commits related to Segger RTT and Tracealyszr I need. So is there anything particularly risky in just creating a new branch from v2.6.0-rc1-ncs1 and merging from the head of the v2.6-branch and pciking up all changes?&lt;br /&gt;&lt;br /&gt;I did just try this and it showed some conflicts; which repdicably I am not qualified to resolve.&lt;br /&gt;&lt;br /&gt;I should just try and find the relevent commits and cherry pick as you suggest?&lt;br /&gt;I shall ask Torbjorn at percepio.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Owain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: relationship sdk-zephyr and zephyhrproject/zephyr</title><link>https://devzone.nordicsemi.com/thread/319141?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 11:34:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47082f6c-1684-4793-a6f2-a5224bf4e5cc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Owain,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Please excuse me if I ask some stupid questions I am new to wesr and have only used git simply over the last few years.&lt;br /&gt;These questions stem from trying to get percepio tracealyzer working with sdk 1.6.0 and nrf5340.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Primary question is what is the relationship between the nordic sdk-zephyr repo and the atual zephyproject repo?[/quote]
&lt;p&gt;First off, this is not a &amp;quot;dumb question&amp;quot; - it&amp;#39;s a very valid one.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;sdk-zephyr is our fork of zephyr, but it is not forked github-wise &amp;quot;directly&amp;quot; from the zephyrproject-rtos/zephyr repo.&lt;/p&gt;
&lt;p&gt;We manually keep up-to-date with upstream zephyr by sync&amp;#39;ing using git, and then doing an &amp;quot;upmerge&amp;quot; pull-request to sdk-zephyr.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Certain features on github are proprietary to github, like pull-requests, and comparing forks is also one of these things. Doing it directly with &amp;quot;git&amp;quot; does not necessarily mean that the github webui is able to figure it out.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;I have dining philosophers running on devkit and now want to lay with tracealyzer to actually see the system visualisations. I have used Tracealyzer on several FreeRtos based dprodjects in the past where it has proved to be a very impressive and indispensable tool.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;OK to crux of mater; it does not work using the 1,6,0 sdk-zephyr repo; now I have been told I &amp;quot;just&amp;quot; need to merge changes from the zephyrproject/zephyr repo on github; as the code in the sdk-zephyr is not working. So I thought nordic sdk-zephyr is just a nordic github fork of the zephyrproject github repo; and hence should be a straight forward merge via github and should be listed as a fork.&lt;br /&gt;&lt;br /&gt;But looking at git hub I am unable to compare the two forks as they are not listed as related in the drop downs for the github fork compare. So the nordic repo is not a dirct github fork?&lt;br /&gt;Comment for nordic repo says &amp;quot;&lt;span&gt;NCS downstream of&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr"&gt;https://github.com/zephyrproject-rtos/zephyr&lt;/a&gt;&amp;quot;; but github does not show the relationship.&lt;br /&gt;&lt;br /&gt;Then how are these kept in sync? Do I just have to point my local git to the actual zephyproject remote and just merge from the appropriate branch?&lt;br /&gt;&lt;br /&gt;Is or is not the noridc repo a direct github fork of the zephyrproject?&lt;br /&gt;If not &amp;quot;why not&amp;quot;?&lt;/p&gt;[/quote]
&lt;p&gt;We deviate between upstream zephyr wrt. multi-image builds, and that we link in other repositories (like NCS).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can manually add upstream zephyr as a remote in your ncs installation:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cd path/to/ncs/zephyr
git remote add upstream https://github.com/zephyrproject-rtos/zephyr
git fetch upstream

# list your remote using &amp;#39;git remote -v&amp;#39;&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then cherry pick certain fixes if you&amp;#39;d like.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What changes do you specifically need?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If its a specific PR you want to apply, you can take the URL and add &amp;quot;.diff&amp;quot; to download it, for instance if you want to apply this one:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/36799"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/36799&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You just add .patch or .diff at the end:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/36799.diff"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/36799.diff&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then you can try to apply it using &amp;quot;cd ..\ncs\zephyr &amp;amp;&amp;amp; git apply path\to\pr.diff&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>