<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting permission denied error while build bootloader in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Getting-permission-denied-error-while-build-bootloader/m-p/466462#M73524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have purchased board from OEM named &lt;EM&gt;myirtech&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Its MYD-C287 board with 256MB Nand Flash and 128MB DDR2 SDRAM. (&lt;A href="http://www.myirtech.com/list.asp?id=472" title="http://www.myirtech.com/list.asp?id=472"&gt;MYD-IMX28X Development Board | Freescale i.MX28 ARM9 Board, i.MX283, i.MX287-Welcome to MYIR&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this problem is regarding Bootloader compilation with &lt;EM&gt;elftosb&lt;/EM&gt; which I think is not dependent on board(I can be wrong here, correct me if).&lt;/P&gt;&lt;P&gt;And why permission error for &lt;EM&gt;elftosb.&lt;/EM&gt; As mentioned, I have provided &lt;EM&gt;chmod 777 -R &lt;/EM&gt;to parent directory which contains all Kernel, Bootloader, Toolchain, Tools, etc. directories. &lt;EM&gt;elftosb&lt;/EM&gt; is residing in Tools directory and have all required permissions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhavesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2016 10:14:33 GMT</pubDate>
    <dc:creator>bkpatel</dc:creator>
    <dc:date>2016-03-10T10:14:33Z</dc:date>
    <item>
      <title>Getting permission denied error while build bootloader</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Getting-permission-denied-error-while-build-bootloader/m-p/466460#M73522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using iMX287 board with &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;Linux-2.6.35.3&lt;/EM&gt;&lt;/SPAN&gt; Kernel. I am trying to build Bootloader &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;imx-bootlets-src-2.6.35.3-1.1.0&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In Make file it is failing while executing &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;elftosb -z -c ./linux.bd -o i$(ARCH)_linux.sb&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt; &lt;/EM&gt;where ARCH is defined as &lt;SPAN style="color: #e23d39;"&gt;imx28&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is snapshot of build. (command is &lt;EM&gt;make BOARD=iMX28_EVK)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;make[1]: Leaving directory `/home/bhavesh/LinuxEmb/Bootloader/imx-bootlets-src-2.6.35.3-1.1.0/power_prep'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;generating linux kernel boot stream image&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;by using the rootfs/boot/zImage&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;sed -i 's,[^ *]zImage.*;,\tzImage="zImage";,' linux.bd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;sed -i 's,[^ *]zImage.*;,\tzImage="zImage";,' linux_ivt.bd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;elftosb -z -c ./linux.bd -o imx28_linux.sb&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;make: execvp: elftosb: Permission denied&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #eb7a3d;"&gt;make: *** [gen_bootstream] Error 127&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with &lt;EM&gt;chmod 77 -R * &lt;/EM&gt;and &lt;EM&gt;sudo chown -R bhavesh:bhavesh ./ &lt;/EM&gt;to whole directory 'LinuxEmb' where everything is located. But still getting same issue.&lt;/P&gt;&lt;P&gt;if I run &lt;EM&gt;sudo make &lt;/EM&gt;for Bootloader than it is giving error for Assembly compiling as below:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;core/entry.S: Assembler messages:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;core/entry.S:26: Error: unknown pseudo-op: `.code'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;core/entry.S:31: Error: no such instruction: `stmdb sp!,{r4-r12,lr}'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;core/entry.S:34: Error: no such instruction: `ldr r4,entry_count'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;core/entry.S:35: Error: expecting operand after ','; got nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;core/entry.S:36: Error: no such instruction: `bne start_kernel'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;core/entry.S:42: Error: no such instruction: `bl try_to_resume'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;core/entry.S:49: Error: too many memory references for `add'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;core/entry.S:50: Error: too many memory references for `str'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;core/entry.S:53: Error: no such instruction: `ldmia sp!,{r4-r12,lr}'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody help me to solve this? Make file for Bootloader is attached for reference&lt;/P&gt;&lt;P&gt;If required I can also go for higher version of Kernel.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhavesh&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336252"&gt;Makefile.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 07:35:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Getting-permission-denied-error-while-build-bootloader/m-p/466460#M73522</guid>
      <dc:creator>bkpatel</dc:creator>
      <dc:date>2016-03-10T07:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting permission denied error while build bootloader</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Getting-permission-denied-error-while-build-bootloader/m-p/466461#M73523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhavesh,&lt;/P&gt;&lt;P&gt;Is the board you designed yourself or use the i.mx28 EVK from our company?&lt;/P&gt;&lt;P&gt;Have a nice day.&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 08:28:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Getting-permission-denied-error-while-build-bootloader/m-p/466461#M73523</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2016-03-10T08:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting permission denied error while build bootloader</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Getting-permission-denied-error-while-build-bootloader/m-p/466462#M73524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have purchased board from OEM named &lt;EM&gt;myirtech&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Its MYD-C287 board with 256MB Nand Flash and 128MB DDR2 SDRAM. (&lt;A href="http://www.myirtech.com/list.asp?id=472" title="http://www.myirtech.com/list.asp?id=472"&gt;MYD-IMX28X Development Board | Freescale i.MX28 ARM9 Board, i.MX283, i.MX287-Welcome to MYIR&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this problem is regarding Bootloader compilation with &lt;EM&gt;elftosb&lt;/EM&gt; which I think is not dependent on board(I can be wrong here, correct me if).&lt;/P&gt;&lt;P&gt;And why permission error for &lt;EM&gt;elftosb.&lt;/EM&gt; As mentioned, I have provided &lt;EM&gt;chmod 777 -R &lt;/EM&gt;to parent directory which contains all Kernel, Bootloader, Toolchain, Tools, etc. directories. &lt;EM&gt;elftosb&lt;/EM&gt; is residing in Tools directory and have all required permissions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhavesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 10:14:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Getting-permission-denied-error-while-build-bootloader/m-p/466462#M73524</guid>
      <dc:creator>bkpatel</dc:creator>
      <dc:date>2016-03-10T10:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting permission denied error while build bootloader</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Getting-permission-denied-error-while-build-bootloader/m-p/466463#M73525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhavesh,&lt;/P&gt;&lt;P&gt;I think you are using the LTIB. Here have you tried Remove and reinstall LTIB opt must creat /opt directory?&lt;/P&gt;&lt;P&gt;I see that you bought the board from &lt;EM&gt;myirtech. &lt;/EM&gt;I think you'd better ask their Technical Support team for help. As the board hardware and software designed by them and also have many customers, they may have met this question, and they can give fast reply.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Mark Correct&amp;nbsp; button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 08:37:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Getting-permission-denied-error-while-build-bootloader/m-p/466463#M73525</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2016-03-15T08:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting permission denied error while build bootloader</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Getting-permission-denied-error-while-build-bootloader/m-p/466464#M73526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;Resolved the issue.&lt;/P&gt;&lt;P&gt;Issue was &lt;EM&gt;/usr/bin/&lt;/EM&gt;&lt;EM&gt;elftosb &lt;/EM&gt;was not having permission to run, Whenever new ~bash command runs there were no permission applied to run for user other than admin (su).&lt;/P&gt;&lt;P&gt;So created script which will change permission for all required in su, apply owner permission to other user and than do build. And it is working as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhavesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 10:06:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Getting-permission-denied-error-while-build-bootloader/m-p/466464#M73526</guid>
      <dc:creator>bkpatel</dc:creator>
      <dc:date>2016-03-15T10:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting permission denied error while build bootloader</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Getting-permission-denied-error-while-build-bootloader/m-p/466465#M73527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhavesh,&lt;/P&gt;&lt;P&gt;I am very glad to hear your problem solved:smileyhappy:. Any new questions create new thread in our community.&lt;/P&gt;&lt;P&gt;Have a nice day&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 02:22:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Getting-permission-denied-error-while-build-bootloader/m-p/466465#M73527</guid>
      <dc:creator>Rita_Wang</dc:creator>
      <dc:date>2016-03-16T02:22:36Z</dc:date>
    </item>
  </channel>
</rss>

