<?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: &amp;quot;Unhandled fault: Alignment Exception&amp;quot; Error booting Freescale 2.6.35 Kernel in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192395#M9880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes your approach seems the safest one. I just found out that the new Freescale kernel patch set (2011 December) has additional alignment issues (and other new issues regarding the IPU...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What kernel source base are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2012 14:24:10 GMT</pubDate>
    <dc:creator>sidebranch</dc:creator>
    <dc:date>2012-01-09T14:24:10Z</dc:date>
    <item>
      <title>"Unhandled fault: Alignment Exception" Error booting Freescale 2.6.35 Kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192389#M9874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've downloaded and compiled Freescale's 2.6.35 kernel from their opensource gitweb, but when I boot the kernel on my i.MX53QSB I get a series of 8&amp;nbsp;&lt;EM&gt;Unhandled fault: alignment exception&lt;/EM&gt; errors. &amp;nbsp;I've attached my complete boot output, but the first occurrence of the boot error is shown below:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;MMC read: dev # 0, block # 2048, count 6144 ... 6144 blocks read: OK&lt;BR /&gt;## Booting kernel from Legacy Image at 70800000 ...&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Image Name: &amp;nbsp; Linux-2.6.35.3&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Image Type: &amp;nbsp; ARM Linux Kernel Image (uncompressed)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Data Size: &amp;nbsp; &amp;nbsp;2917388 Bytes = 2.8 MiB&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Load Address: 70008000&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Entry Point: &amp;nbsp;70008000&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Verifying Checksum ... OK&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Loading Kernel Image ... OK&lt;BR /&gt;OK&lt;BR /&gt;&lt;BR /&gt;Starting kernel ...&lt;BR /&gt;&lt;BR /&gt;Linux version 2.6.35.3 (victory@ubuntu) (gcc version 4.5.2 (Sourcery G++ Lite 2011.03-41) ) #1 PREEMPT Wed Nov 30 11:30:54 CST 2011&lt;/P&gt;&lt;P&gt;CPU: ARMv7 Processor [412fc085] revision 5 (ARMv7), cr=10c53c7f&lt;/P&gt;&lt;P&gt;CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache&lt;/P&gt;&lt;P&gt;Machine: Freescale MX53 LOCO Board&lt;/P&gt;&lt;P&gt;Memory policy: ECC disabled, Data cache writeback&lt;/P&gt;&lt;P&gt;Built 1 zonelists in Zone order, mobility grouping on. &amp;nbsp;Total pages: 250880&lt;/P&gt;&lt;P&gt;Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p1 rw rootfstype=ext3 rootwait video=mxcdi0fb:RGB24,1024x768M@60&lt;/P&gt;&lt;P&gt;PID hash table entries: 4096 (order: 2, 16384 bytes)&lt;/P&gt;&lt;P&gt;Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)&lt;/P&gt;&lt;P&gt;Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)&lt;/P&gt;&lt;P&gt;Memory: 480MB 512MB = 992MB total&lt;/P&gt;&lt;P&gt;Memory: 998300k/998300k available, 17508k reserved, 0K highmem&lt;/P&gt;&lt;P&gt;Virtual kernel memory layout:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; vector &amp;nbsp;: 0xffff0000 - 0xffff1000 &amp;nbsp; ( &amp;nbsp; 4 kB)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; fixmap &amp;nbsp;: 0xfff00000 - 0xfffe0000 &amp;nbsp; ( 896 kB)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; DMA &amp;nbsp; &amp;nbsp; : 0xf9e00000 - 0xffe00000 &amp;nbsp; ( &amp;nbsp;96 MB)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; vmalloc : 0xe0800000 - 0xf4000000 &amp;nbsp; ( 312 MB)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; lowmem &amp;nbsp;: 0x80000000 - 0xe0000000 &amp;nbsp; (1536 MB)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; pkmap &amp;nbsp; : 0x7fe00000 - 0x80000000 &amp;nbsp; ( &amp;nbsp; 2 MB)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; modules : 0x7f000000 - 0x7fe00000 &amp;nbsp; ( &amp;nbsp;14 MB)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .init : 0x80008000 - 0x80033000 &amp;nbsp; ( 172 kB)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .text : 0x80033000 - 0x807e0000 &amp;nbsp; (7860 kB)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .data : 0x80804000 - 0x8085b4a0 &amp;nbsp; ( 350 kB)&lt;/P&gt;&lt;P&gt;SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1&lt;/P&gt;&lt;P&gt;Hierarchical RCU implementation.&lt;/P&gt;&lt;P&gt;.RCU-based detection of stalled CPUs is disabled.&lt;/P&gt;&lt;P&gt;.Verbose stalled-CPUs detection is disabled.&lt;/P&gt;&lt;P&gt;NR_IRQS:368MXC GPIO hardware&lt;/P&gt;&lt;P&gt;MXC IRQ initialized&lt;/P&gt;&lt;P&gt;MXC_Early serial console at MMIO 0x53fbc000 (options '115200')&lt;/P&gt;&lt;P&gt;bootconsole [ttymxc0] enabled&lt;/P&gt;&lt;P&gt;Console: colour dummy device 80x30&lt;/P&gt;&lt;P&gt;Calibrating delay loop... 799.53 BogoMIPS (lpj=3997696)&lt;/P&gt;&lt;P&gt;pid_max: default: 32768 minimum: 301&lt;/P&gt;&lt;P&gt;Mount-cache hash table entries: 512&lt;/P&gt;&lt;P&gt;CPU: Testing write buffer coherency: ok&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Unhandled fault: alignment exception (0x001) at 0x8079112a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Internal error: : 1 [#1] PREEMPT&lt;/P&gt;&lt;P&gt;last sysfs file:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Modules linked in:&lt;/P&gt;&lt;P&gt;CPU: 0 &amp;nbsp; &amp;nbsp;Not tainted &amp;nbsp;(2.6.35.3 #1)&lt;/P&gt;&lt;P&gt;PC is at devtmpfs_init+0xc/0xa4&lt;/P&gt;&lt;P&gt;LR is at driver_init+0x8/0x28&lt;/P&gt;&lt;P&gt;pc : [&amp;lt;8001dea4&amp;gt;] &amp;nbsp; &amp;nbsp;lr : [&amp;lt;8001de54&amp;gt;] &amp;nbsp; &amp;nbsp;psr: 80000013&lt;/P&gt;&lt;P&gt;sp : df039fd0 &amp;nbsp;ip : 00000000 &amp;nbsp;fp : 00000000&lt;/P&gt;&lt;P&gt;r10: 00000000 &amp;nbsp;r9 : 00000000 &amp;nbsp;r8 : 00000000&lt;/P&gt;&lt;P&gt;r7 : 00000013 &amp;nbsp;r6 : 800349fc &amp;nbsp;r5 : 800088f0 &amp;nbsp;r4 : 800321a8&lt;/P&gt;&lt;P&gt;r3 : 8079112a &amp;nbsp;r2 : 800a2218 &amp;nbsp;r1 : 00000000 &amp;nbsp;r0 : 8083f1fc&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 kernel&lt;/P&gt;&lt;P&gt;Control: 10c5387f &amp;nbsp;Table: 70004019 &amp;nbsp;DAC: 00000017&lt;/P&gt;&lt;P&gt;Process swapper (pid: 1, stack limit = 0xdf0382e8)&lt;/P&gt;&lt;P&gt;Stack: (0xdf039fd0 to 0xdf03a000)&lt;/P&gt;&lt;P&gt;9fc0: &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; &amp;nbsp; &amp;nbsp; 00000000 00000000 800a2218 00000000&lt;/P&gt;&lt;P&gt;9fe0: 800321a8 8001de54 800321a8 8000896c 00000000 800349fc 01207b65 89251006&lt;/P&gt;&lt;P&gt;[&amp;lt;8001dea4&amp;gt;] (devtmpfs_init+0xc/0xa4) from [&amp;lt;8001de54&amp;gt;] (driver_init+0x8/0x28&lt;/P&gt;&lt;P&gt;[&amp;lt;8001de54&amp;gt;] (driver_init+0x8/0x28) from [&amp;lt;8000896c&amp;gt;] (kernel_init+0x7c/0x168&lt;/P&gt;&lt;P&gt;[&amp;lt;8000896c&amp;gt;] (kernel_init+0x7c/0x168) from [&amp;lt;800349fc&amp;gt;] (kernel_thread_exit+0x0/0x8)&lt;/P&gt;&lt;P&gt;Code: 8083f1ec e92d401f e59f3080 e59f0080 (e5932000)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The kernel eventually stops displaying output and appears to hang. &amp;nbsp;Has anyone encountered this kind of error booting the Freescale kernel? &amp;nbsp;I'm at a lose right now since I don't know what angle to attack this problem from. &amp;nbsp;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2011 18:06:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192389#M9874</guid>
      <dc:creator>DonaldR_PooleJr</dc:creator>
      <dc:date>2011-11-30T18:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: "Unhandled fault: Alignment Exception" Error booting Freescale 2.6.35 Kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192390#M9875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update: It looks like the problem was with my cross-compile toolchain.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Technically, there is a bit called the "A-bit" in the Control Register (CR) of processor that controls how unaligned memory faults are handled: 0=strict alignment fault checking disabled, 1=strict alignment fault enabled. &amp;nbsp;The CodeSourcery 2011.03-41 version of the toolchain is built with "Unaligned access support" optimization, which assumes that the hardware (A-bit=0) will handle unaligned memory loads. &amp;nbsp;But, the linux kernel by default uses software (A-bit=1) handlers (traps) for unaligned memory access faults. &amp;nbsp;So, although the kernel was compiled and optimized to assume no strict alignment fault checking, it's still configured to set the "A-bit" to check for memory alignment faults. &amp;nbsp;I found all this out after reading the&amp;nbsp;&lt;EM&gt;Cortex-A8 Technical Reference Manual&lt;/EM&gt; and doing some googling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, I said all of that to say this: If you run into this problem and you are using the CodeSourcery 2011.03-41&amp;nbsp;tool-chain, you can either use and older version of the&amp;nbsp;tool-chain&amp;nbsp;or use a different&amp;nbsp;tool-chain&amp;nbsp;altogether. &amp;nbsp;I ended up using the Ubuntu's GNU C/C++ Compiler/Preprocessor for ARM found in ubuntu software center.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that this is able to help somebody if they encounter the same situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 23:15:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192390#M9875</guid>
      <dc:creator>DonaldR_PooleJr</dc:creator>
      <dc:date>2011-12-01T23:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: "Unhandled fault: Alignment Exception" Error booting Freescale 2.6.35 Kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192391#M9876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;CITE&gt;Donald R. Poole, Jr. said:&lt;/CITE&gt;&lt;/P&gt;&lt;BLOCKQUOTE cite="http://imxcommunity.org/forum/topics/unhandled-fault-alignment-exception-error-booting-freescale-2-6?groupUrl=imx53quickstartboard&amp;amp;page=1&amp;amp;commentId=4103961%3AComment%3A47840&amp;amp;x=1#4103961Comment47840"&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;&lt;P&gt;Update: It looks like the problem was with my cross-compile toolchain.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;The CodeSourcery 2011.03-41 version of the toolchain is built with "Unaligned access support" optimization,&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can disable this behaviour by building with -mno-unaligned-access e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- EXTRA_CFLAGS=-mno-unaligned-access&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's a good description of this here: &lt;A href="http://blog.galemin.com/tag/codesourcery/" target="_blank"&gt;http://blog.galemin.com/tag/codesourcery/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 09:08:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192391#M9876</guid>
      <dc:creator>Michael_McTerna</dc:creator>
      <dc:date>2012-01-06T09:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: "Unhandled fault: Alignment Exception" Error booting Freescale 2.6.35 Kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192392#M9877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Micheal. &amp;nbsp;I just came across that flag yesterday when I was reading through the changelog for codesourcery toolchain. &amp;nbsp;Wish I would've known earlier because it would've saved me a lot of time.&lt;BR /&gt; &lt;BR /&gt; &lt;CITE&gt;Michael McTernan said:&lt;/CITE&gt;&lt;/P&gt;&lt;BLOCKQUOTE cite="http://imxcommunity.org/forum/topics/unhandled-fault-alignment-exception-error-booting-freescale-2-6?groupUrl=imx53quickstartboard&amp;amp;commentId=4103961%3AComment%3A52782&amp;amp;xg_source=msg_com_gr_forum#4103961Comment52782"&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;&lt;P&gt;&lt;CITE&gt;Donald R. Poole, Jr. said:&lt;/CITE&gt;&lt;/P&gt;&lt;BLOCKQUOTE cite="http://imxcommunity.org/forum/topics/unhandled-fault-alignment-exception-error-booting-freescale-2-6?groupUrl=imx53quickstartboard&amp;amp;page=1&amp;amp;commentId=4103961%3AComment%3A47840&amp;amp;x=1#4103961Comment47840"&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;&lt;P&gt;Update: It looks like the problem was with my cross-compile toolchain.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;The CodeSourcery 2011.03-41 version of the toolchain is built with "Unaligned access support" optimization,&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can disable this behaviour by building with -mno-unaligned-access e.g.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- EXTRA_CFLAGS=-mno-unaligned-access&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's a good description of this here: &lt;A href="http://blog.galemin.com/tag/codesourcery/" rel="nofollow" target="_blank"&gt;http://blog.galemin.com/tag/codesourcery/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 14:48:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192392#M9877</guid>
      <dc:creator>DonaldR_PooleJr</dc:creator>
      <dc:date>2012-01-06T14:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: "Unhandled fault: Alignment Exception" Error booting Freescale 2.6.35 Kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192393#M9878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran into that problem also, I just read this forum posting much later, so I went of I solved it on my own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I first traced the bug down to the init function of devtmpfs (i.e. this is where the unaligned access occurs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So could you confirm (or deny) that you had enabled devtmpfs in the config (Freescale has it off by default AFAIK).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 20:29:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192393#M9878</guid>
      <dc:creator>sidebranch</dc:creator>
      <dc:date>2012-01-06T20:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: "Unhandled fault: Alignment Exception" Error booting Freescale 2.6.35 Kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192394#M9879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt; &lt;CITE&gt;Leon Woestenberg said:&lt;/CITE&gt;&lt;/P&gt;&lt;BLOCKQUOTE cite="http://imxcommunity.org/forum/topics/unhandled-fault-alignment-exception-error-booting-freescale-2-6?groupUrl=imx53quickstartboard&amp;amp;commentId=4103961%3AComment%3A52782&amp;amp;groupId=4103961%3AGroup%3A5816#4103961Comment52794"&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;&lt;P&gt;So could you confirm (or deny) that you had enabled devtmpfs in the config (Freescale has it off by default AFAIK).&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have that, so tried a build without CONFIG_DEVTMPFS set, and sadly that's not it, or at least not the only non-aligned access.&lt;/P&gt;&lt;P&gt;In my case, I find the problem really early on, as the boot output looks like this:&lt;/P&gt;&lt;PRE&gt;Uncompressing Linux... done, booting the kernel.&lt;/PRE&gt;&lt;P&gt;So I'll stick with EXTRA_CFLAGS=-mno-unaligned-access since it's more convenient than having yet another ARM tool chain installed &lt;SPAN class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;&lt;LI-EMOJI id="lia_grinning-face-with-smiling-eyes" title=":grinning_face_with_smiling_eyes:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note that this isn't a stock BSP kernel although it does have the Freescale patch set in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:45:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192394#M9879</guid>
      <dc:creator>Michael_McTerna</dc:creator>
      <dc:date>2020-10-29T09:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: "Unhandled fault: Alignment Exception" Error booting Freescale 2.6.35 Kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192395#M9880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes your approach seems the safest one. I just found out that the new Freescale kernel patch set (2011 December) has additional alignment issues (and other new issues regarding the IPU...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What kernel source base are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 14:24:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192395#M9880</guid>
      <dc:creator>sidebranch</dc:creator>
      <dc:date>2012-01-09T14:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: "Unhandled fault: Alignment Exception" Error booting Freescale 2.6.35 Kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192396#M9881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;CITE&gt;Leon Woestenberg said:&lt;/CITE&gt;&lt;/P&gt;&lt;BLOCKQUOTE cite="http://imxcommunity.org/forum/topics/unhandled-fault-alignment-exception-error-booting-freescale-2-6?groupUrl=imx53quickstartboard&amp;amp;page=1&amp;amp;commentId=4103961%3AComment%3A53528&amp;amp;x=1#4103961Comment53528"&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;yes your approach seems the safest one. I just found out that the new Freescale kernel patch set (2011 December) has additional alignment issues (and other new issues regarding the IPU...).&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;&lt;P&gt;Good to know - thanks!&amp;nbsp; I'm definitely sticking with the switch for now :-D&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE cite="http://imxcommunity.org/forum/topics/unhandled-fault-alignment-exception-error-booting-freescale-2-6?groupUrl=imx53quickstartboard&amp;amp;page=1&amp;amp;commentId=4103961%3AComment%3A53528&amp;amp;x=1#4103961Comment53528"&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;&lt;P&gt;What kernel source base are you using?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;DIV class="xg_user_generated"&gt;&lt;P&gt;3.0.0.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 14:32:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192396#M9881</guid>
      <dc:creator>Michael_McTerna</dc:creator>
      <dc:date>2012-01-09T14:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: "Unhandled fault: Alignment Exception" Error booting Freescale 2.6.35 Kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192397#M9882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Addendum: some kernels (at least 2.6.35.3 and 2.6.38 from the Freescale Quick Start Board BSP) override EXTRA_CFLAGS in the Makefiles, so needs an extra patch to make the kernel bootable when using a newer toolchain with EXTRA_CFLAGS=-mno-unaligned-access.&lt;/P&gt;&lt;P&gt;The main culprit seems to be in arch/arm/boot/compressed/Makefile:&lt;/P&gt;&lt;P&gt;-EXTRA_CFLAGS := -fpic -fno-builtin&lt;BR /&gt; -EXTRA_ASFLAGS := -Wa,-march=all&lt;BR /&gt; +ccflags-y := -fpic -fno-builtin&lt;BR /&gt; +asflags-y := -Wa,-march=all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 12:34:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/quot-Unhandled-fault-Alignment-Exception-quot-Error-booting/m-p/192397#M9882</guid>
      <dc:creator>Michael_McTerna</dc:creator>
      <dc:date>2012-08-17T12:34:28Z</dc:date>
    </item>
  </channel>
</rss>

