<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, 22 Aug 2018, 20:02 Martin Jansa, &lt;<a href="mailto:martin.jansa@gmail.com">martin.jansa@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Your 1st parameter is wrong, compare again with the example I gave you (don&#39;t include &quot;brcm/&quot; path in 1st param, because you want the symlink to point to just brcmfmac43430-sdio.AP6212.txt like you did in the version after cd).</div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">That doesn&#39;t work either. I tried it with the same result, but didn&#39;t send a log of it. That works for you?</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div dir="ltr">On Wed, Aug 22, 2018 at 7:11 PM Ryan Harkin &lt;<a href="mailto:ryan.harkin@linaro.org" target="_blank" rel="noreferrer">ryan.harkin@linaro.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This is curious!<br><div class="gmail_extra"><br><div class="gmail_quote">On 22 August 2018 at 17:56, Martin Jansa <span dir="ltr">&lt;<a href="mailto:martin.jansa@gmail.com" target="_blank" rel="noreferrer">martin.jansa@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span class="m_5050295636052634530m_8590662322490689065gmail-"><span style="color:rgb(80,0,80)">cd ${D}${nonarch_base_libdir}/fir</span><span style="color:rgb(80,0,80)">mware/brcm/ ; ln -sf brcmfmac43430-sdio.AP6212.txt brcmfmac43430-sdio.txt</span><br><div><span style="color:rgb(80,0,80)"><br></span></div></span><div><span style="color:rgb(80,0,80)">is the same as</span></div><div><span style="color:rgb(80,0,80)"><br></span></div><div><span style="color:rgb(80,0,80)">ln -sf </span><span style="color:rgb(80,0,80)">brcmfmac43430-sdio.AP6212.txt </span><span style="color:rgb(80,0,80)">${D}${nonarch_base_libdir}/fir</span><span style="color:rgb(80,0,80)">mware/brcm/</span><span style="color:rgb(80,0,80)">brcmfmac43430-sdio.txt</span></div></div></blockquote><div><br></div><div>On my system, this is what happens when I&#39;m in the root of the linux-firmware repo:<br></div><div><br></div><div style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">$ ls -al brcm/*.txt<br></div><div style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">-rw-rw-r-- 1 ryan ryan 875 Aug 22 18:08 brcm/brcmfmac43430-sdio.AP6212.txt</div><div style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">-rw-rw-r-- 1 ryan ryan 831 Aug 21 14:48 brcm/brcmfmac43430-sdio.MUR1DX.txt</div><br class="m_5050295636052634530m_8590662322490689065gmail-Apple-interchange-newline"><div>$ ln -sf brcm/brcmfmac43430-sdio.AP6212.txt brcm/brcmfmac43430-sdio.txt<br></div><div><br></div><div>$ ls -al brcm/*.txt<br></div><div>-rw-rw-r-- 1 ryan ryan 875 Aug 22 18:08 brcm/brcmfmac43430-sdio.AP6212.txt</div><div>-rw-rw-r-- 1 ryan ryan 831 Aug 21 14:48 brcm/brcmfmac43430-sdio.MUR1DX.txt</div><div>lrwxrwxrwx 1 ryan ryan  34 Aug 22 18:08 brcm/brcmfmac43430-sdio.txt -&gt; brcm/brcmfmac43430-sdio.AP6212.txt</div><div><br></div><div>And the file is not valid.</div><div><br></div><div>$ cat brcm/brcmfmac43430-sdio.txt</div><div>cat: brcm/brcmfmac43430-sdio.txt: No such file or directory</div><div><br></div><div>So perhaps I&#39;m doing something wrong. I tried your suggestion originally and it didn&#39;t work for me. Maybe I made a typo or something?</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="m_5050295636052634530m_8590662322490689065gmail-HOEnZb"><div class="m_5050295636052634530m_8590662322490689065gmail-h5"><br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 22, 2018 at 6:47 PM Ryan Harkin &lt;<a href="mailto:ryan.harkin@linaro.org" target="_blank" rel="noreferrer">ryan.harkin@linaro.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 22 August 2018 at 17:41, Martin Jansa <span dir="ltr">&lt;<a href="mailto:martin.jansa@gmail.com" target="_blank" rel="noreferrer">martin.jansa@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">The &quot;cd ${D}${nonarch_base_libdir}/firmware/brcm/&quot; doesn&#39;t seem to be needed, just include the path in 2nd ln parameter.</div></blockquote><div><br></div><div>I don&#39;t think that works, or at least, it doesn&#39;t work for me, so I may be doing something wrong. I&#39;m also copying the example used in the do_install() a few lines up as I figured that would be the preferred style for this recipe.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="m_5050295636052634530m_8590662322490689065gmail-m_5502182029538994976m_-6311599830852990523HOEnZb"><div class="m_5050295636052634530m_8590662322490689065gmail-m_5502182029538994976m_-6311599830852990523h5"><br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 22, 2018 at 6:30 PM Ryan Harkin &lt;<a href="mailto:ryan.harkin@linaro.org" target="_blank" rel="noreferrer">ryan.harkin@linaro.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The Linux kernel currently expects a single NVRAM file for BCM43430<br>
named brcmfmac43430-sdio.txt.<br>
<br>
Allow the machine to specify an override to link its module specific<br>
NVRAM to the filename expected by the kernel.<br>
<br>
Signed-off-by: Ryan Harkin &lt;<a href="mailto:ryan.harkin@linaro.org" target="_blank" rel="noreferrer">ryan.harkin@linaro.org</a>&gt;<br>
---<br>
 meta/recipes-kernel/linux-firmware/<a href="http://linux-firmware_git.bb" rel="noreferrer noreferrer" target="_blank">linux-firmware_git.bb</a> | 12 ++++++++++++<br>
 1 file changed, 12 insertions(+)<br>
<br>
diff --git a/meta/recipes-kernel/linux-firmware/<a href="http://linux-firmware_git.bb" rel="noreferrer noreferrer" target="_blank">linux-firmware_git.bb</a> b/meta/recipes-kernel/linux-firmware/<a href="http://linux-firmware_git.bb" rel="noreferrer noreferrer" target="_blank">linux-firmware_git.bb</a><br>
index 8c54f28..b647abc 100644<br>
--- a/meta/recipes-kernel/linux-firmware/<a href="http://linux-firmware_git.bb" rel="noreferrer noreferrer" target="_blank">linux-firmware_git.bb</a><br>
+++ b/meta/recipes-kernel/linux-firmware/<a href="http://linux-firmware_git.bb" rel="noreferrer noreferrer" target="_blank">linux-firmware_git.bb</a><br>
@@ -226,6 +226,18 @@ do_install() {<br>
        ( cd ${D}${nonarch_base_libdir}/firmware ; ln -sf ti-connectivity/* . )<br>
 }<br>
<br>
+# Adding bcm43430-nvram-{module type} to MACHINEOVERRIDES will create a<br>
+# softlink for the module specific NVRAM file to the filename expected<br>
+# by the Linux kernel<br>
+FILES_${PN}-bcm43430-nvram_append_bcm43430-nvram-mur1dx = &quot; ${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.txt&quot;<br>
+do_install_append_bcm43430-nvram-mur1dx() {<br>
+       ( cd ${D}${nonarch_base_libdir}/firmware/brcm/ ; ln -sf brcmfmac43430-sdio.MUR1DX.txt brcmfmac43430-sdio.txt)<br>
+}<br>
+FILES_${PN}-bcm43430-nvram_append_bcm43430-nvram-ap6212 = &quot;${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.txt&quot;<br>
+do_install_append_bcm43430-nvram-ap6212() {<br>
+       ( cd ${D}${nonarch_base_libdir}/firmware/brcm/ ; ln -sf brcmfmac43430-sdio.AP6212.txt brcmfmac43430-sdio.txt)<br>
+}<br>
+<br>
<br>
 PACKAGES =+ &quot;${PN}-ralink-license ${PN}-ralink \<br>
              ${PN}-mt7601u-license ${PN}-mt7601u \<br>
-- <br>
2.7.4<br>
<br>
</blockquote></div>
</div></div></blockquote></div><br></div></div>
</blockquote></div>
</div></div></blockquote></div><br></div></div>
</blockquote></div>
</blockquote></div></div></div>