<?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: imx6s - Can the toolchain use soft-float ? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6s-Can-the-toolchain-use-soft-float/m-p/517785#M84100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Quentin Chang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a couple of threads referring to a similar symptom. In most cases this error appears when compiling using CC and not $CC as the $CC variable should contain the complete cross compiler command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please review these threads to see if what you are seeing is similar and let us know if they helped?&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/499896"&gt;https://community.nxp.com/message/499896&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/633989"&gt;https://community.nxp.com/message/633989&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2016 23:50:54 GMT</pubDate>
    <dc:creator>gusarambula</dc:creator>
    <dc:date>2016-06-10T23:50:54Z</dc:date>
    <item>
      <title>imx6s - Can the toolchain use soft-float ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6s-Can-the-toolchain-use-soft-float/m-p/517784#M84099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sirs,&lt;/P&gt;&lt;P&gt;I am using FSL Yocto toolchain (fsl-yocto-L3.14.52_1.1.0-ga) to build a chip driver which will be used on i.MX6 solo platform.&lt;/P&gt;&lt;P&gt;The build process is stopped due the following error.&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;/opt/fsl-imx-x11/3.14.52-1.1.0/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory&lt;/P&gt;&lt;P&gt;# include &amp;lt;gnu/stubs-soft.h&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/P&gt;&lt;P&gt;compilation terminated.&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;I know it due to that I didn't add "-mfloat-abi=hard -mfpu=neon" to the makefile.&lt;/P&gt;&lt;P&gt;My question is may I build my driver with "-mfpu=vfp -mfloat-abi=soft" ?&lt;/P&gt;&lt;P&gt;Is FSL provides the the option or toolchain for this requirement ?&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 15:54:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6s-Can-the-toolchain-use-soft-float/m-p/517784#M84099</guid>
      <dc:creator>quentinchang</dc:creator>
      <dc:date>2016-06-09T15:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: imx6s - Can the toolchain use soft-float ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6s-Can-the-toolchain-use-soft-float/m-p/517785#M84100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Quentin Chang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a couple of threads referring to a similar symptom. In most cases this error appears when compiling using CC and not $CC as the $CC variable should contain the complete cross compiler command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please review these threads to see if what you are seeing is similar and let us know if they helped?&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/499896"&gt;https://community.nxp.com/message/499896&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/633989"&gt;https://community.nxp.com/message/633989&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 23:50:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6s-Can-the-toolchain-use-soft-float/m-p/517785#M84100</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2016-06-10T23:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: imx6s - Can the toolchain use soft-float ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6s-Can-the-toolchain-use-soft-float/m-p/517786#M84101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gusarambula,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your reply.&lt;/P&gt;&lt;P&gt;In fact, I have modified the Makefile (adding "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;-mfloat-abi=hard -mfpu=neon")&lt;/SPAN&gt; of the driver and built it successfully.&lt;/P&gt;&lt;P&gt;I also modified the kernel defconfig as below&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;CONFIG_VFP=y&lt;/P&gt;&lt;P&gt;CONFIG_VFPv3=y&lt;/P&gt;&lt;P&gt;CONFIG_NEON=y&lt;/P&gt;&lt;P&gt;CONFIG_KERNEL_MODE_NEON=y&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I got "Segmentation fault" when I tried to insert this module.&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;root@imx6qsabresd:/tmp# insmod linux-kernel-bde.ko&lt;/P&gt;&lt;P&gt;linux_kernel_bde: module license 'Proprietary' taints kernel.&lt;/P&gt;&lt;P&gt;Disabling lock debugging due to kernel taint&lt;/P&gt;&lt;P&gt;BUG: FP instruction issued in kernel mode with FP unit disabled&lt;/P&gt;&lt;P&gt;Internal error: Oops - undefined instruction: 0 [#1] PREEMPT SMP ARM&lt;/P&gt;&lt;P&gt;Modules linked in: linux_kernel_bde(PO+)&lt;/P&gt;&lt;P&gt;CPU: 1 PID: 519 Comm: insmod Tainted: P&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O 3.14.52-1.1.0_ga+g5f6f0a5 #2&lt;/P&gt;&lt;P&gt;task: a86f8900 ti: a88e4000 task.ti: a88e4000&lt;/P&gt;&lt;P&gt;PC is at _pgalloc+0x328/0x3d8 [linux_kernel_bde]&lt;/P&gt;&lt;P&gt;LR is at _raw_spin_unlock+0x24/0x50&lt;/P&gt;&lt;P&gt;pc : [&amp;lt;7f001a60&amp;gt;]&amp;nbsp;&amp;nbsp;&amp;nbsp; lr : [&amp;lt;80746270&amp;gt;]&amp;nbsp;&amp;nbsp;&amp;nbsp; psr: 80070013&lt;/P&gt;&lt;P&gt;sp : a88e5ca0&amp;nbsp; ip : 80291890&amp;nbsp; fp : 80a95ec4&lt;/P&gt;&lt;P&gt;r10: a4000000&amp;nbsp; r9 : 00000084&amp;nbsp; r8 : 80b4c540&lt;/P&gt;&lt;P&gt;r7 : 800a80e8&amp;nbsp; r6 : 02000000&amp;nbsp; r5 : 00000021&amp;nbsp; r4 : a8c52080&lt;/P&gt;&lt;P&gt;r3 : a4080000&amp;nbsp; r2 : 00080000&amp;nbsp; r1 : 00000002&amp;nbsp; r0 : 00000000&lt;/P&gt;&lt;P&gt;Flags: Nzcv&amp;nbsp; IRQs on&amp;nbsp; FIQs on&amp;nbsp; Mode SVC_32&amp;nbsp; ISA ARM&amp;nbsp; Segment user&lt;/P&gt;&lt;P&gt;Control: 10c53c7d&amp;nbsp; Table: 389b404a&amp;nbsp; DAC: 00000015&lt;/P&gt;&lt;P&gt;Process insmod (pid: 519, stack limit = 0xa88e4238)&lt;/P&gt;&lt;P&gt;Stack: (0xa88e5ca0 to 0xa88e6000)&lt;/P&gt;&lt;P&gt;5ca0: a8a8f000 8092f6d0 7f0056f8 80746270 00000012 8073b9a8 0003eb50 00034484&lt;/P&gt;&lt;P&gt;5cc0: 00000000 000000fa 802bdeac 802bec2c 00000000 00000000 00000000 00001000&lt;/P&gt;&lt;P&gt;5ce0: 7f007df0 00000000 00000000 00000000 7f007df0 7f007df0 02000000 8001b22c&lt;/P&gt;&lt;P&gt;5d00: 00000000 7f007c98 7f0056f8 7f0024b4 02000000 7f007df0 7f007df0 00000000&lt;/P&gt;&lt;P&gt;5d20: 00000000 7f007df0 802bec2c 7f00328c 60070013 80a8a0b0 a8001e80 a88e4000&lt;/P&gt;&lt;P&gt;5d40: a87fdd00 80400040 a864fb80 80910e70 80910e72 00000002 a88e5df4 00000000&lt;/P&gt;&lt;P&gt;5d60: a8001f00 000000d0 a88e4000 2aca5000 000050c9 00000000 800df02c 800d735c&lt;/P&gt;&lt;P&gt;5d80: 800df460 a864fc80 00000100 0000007f a800d400 00000001 a8a85f5c 8036e334&lt;/P&gt;&lt;P&gt;5da0: 00000000 0000001c a864fc80 800df460 00003571 a864fc80 a864fc80 7f007bc0&lt;/P&gt;&lt;P&gt;5dc0: 00000100 00000000 a8040100 a864fc80 00000000 800df4d0 800df02c 800df460&lt;/P&gt;&lt;P&gt;5de0: a864fc80 a88e5df0 800df5c4 a87fdd00 a864fc80 00000000 7f008a2c 7f008a2c&lt;/P&gt;&lt;P&gt;5e00: a88b9780 00000001 a88b9788 7f007c98 00000000 7f00d088 7f007bc0 00000001&lt;/P&gt;&lt;P&gt;5e20: a88e4030 7f00d000 7f007ca4 8000889c a8a85f40 8040003e abc6fa40 a88e4030&lt;/P&gt;&lt;P&gt;5e40: 80a86cdc abc6fa40 00000000 8040003e 00000000 8040003f 00000001 80a92804&lt;/P&gt;&lt;P&gt;5e60: a88e4030 00000001 7f007ce0 8040003e 0000000f a8a85f40 2aca5000 800d68ec&lt;/P&gt;&lt;P&gt;5e80: 80a8a0ac a88e5f58 00000001 7f007ca4 a88b9780 00000001 a88b9788 7f007c98&lt;/P&gt;&lt;P&gt;5ea0: 7f007ce0 8008a830 7f007ca4 00007fff 80087b38 00000000 a8a85f00 00000000&lt;/P&gt;&lt;P&gt;5ec0: a88e5f58 7f007ca4 a88e4028 c0de2606 00000000 a88e5f60 0000023f a88e5f8c&lt;/P&gt;&lt;P&gt;5ee0: a8a85f40 000000d2 000002d2 8000e6e4 a88e4000 7f00466c 00000013 00000000&lt;/P&gt;&lt;P&gt;5f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000&lt;/P&gt;&lt;P&gt;5f20: 00000000 00000000 00000000 00000000 01174058 0000e61c 01174058 01174008&lt;/P&gt;&lt;P&gt;5f40: 00000080 8000e6e4 a88e4000 00000000 00000000 8008ae48 c0dd5000 0000e61c&lt;/P&gt;&lt;P&gt;5f60: c0dde550 c0dde42f c0de0e40 00008b38 0000a6a8 00000000 00000000 00000000&lt;/P&gt;&lt;P&gt;5f80: 0000001e 0000001f 00000017 00000014 0000000f 00000000 0000e61c 7eb95f0c&lt;/P&gt;&lt;P&gt;5fa0: 00000043 8000e560 0000e61c 7eb95f0c 01174058 0000e61c 01174008 7eb95e14&lt;/P&gt;&lt;P&gt;5fc0: 0000e61c 7eb95f0c 00000043 00000080 0009579c 7eb95f0c 000957cc 00000000&lt;/P&gt;&lt;P&gt;5fe0: 7eb95c58 7eb95c48 00018550 76e65420 60070010 01174058 3ae7bf6b ea4fbffd&lt;/P&gt;&lt;P&gt;unwind: Index not found 7f001a60&lt;/P&gt;&lt;P&gt;Code: e7933009 e0833002 e15a0003 2affffe9 (eddb0b00)&lt;/P&gt;&lt;P&gt;---[ end trace a36eb6057765a90d ]---&lt;/P&gt;&lt;P&gt;note: insmod[519] exited with preempt_count 1&lt;/P&gt;&lt;P&gt;Segmentation fault&lt;/P&gt;&lt;P&gt;root@imx6qsabresd:/tmp#&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, I have no idea why kernel shows "FP unit disabled"&lt;/P&gt;&lt;P&gt;BUG: FP instruction issued in kernel mode with FP unit disabled&amp;nbsp; &amp;lt;-----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's why I want to try another floating pointoptions (soft) to compile my driver.&lt;/P&gt;&lt;P&gt;This is my first time using i.MX series CPU.&lt;/P&gt;&lt;P&gt;Do you have any suggestion about this problem ?&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Quentin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jun 2016 13:48:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6s-Can-the-toolchain-use-soft-float/m-p/517786#M84101</guid>
      <dc:creator>quentinchang</dc:creator>
      <dc:date>2016-06-12T13:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: imx6s - Can the toolchain use soft-float ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6s-Can-the-toolchain-use-soft-float/m-p/517787#M84102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Quentin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you fixed this issue yet? I have same issue, just different CPU that I am using the LS1021.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yuqian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 07:12:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6s-Can-the-toolchain-use-soft-float/m-p/517787#M84102</guid>
      <dc:creator>yuqianli</dc:creator>
      <dc:date>2018-04-12T07:12:36Z</dc:date>
    </item>
  </channel>
</rss>

