<?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 Linux flash driver fails on M54455EVB when booting from the Intel flash in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linux-flash-driver-fails-on-M54455EVB-when-booting-from-the/m-p/204808#M9626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This EVB has two flash chips, a small Atmel and a larger Intel. The deafult arrangement is to boot u-boot from the Atmel chip, which boots a Linix kernel from the Intel chip which would then mount a root filesystem from the Intel chip. That all works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The board can be switched so that it boots from the Intel chip instead. I'm trying to get it to work in this mode beacause i) our eventual custom hardware will only have 1 chip, ii) I want to mess with boot setting from Linux application, so I only deal with a single flash chip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have programmed u-boot (configured for Intel flash) into the Intel flash, it boots and can boot the Linux kernel, but the Linux kernel fails when the MTD driver tries to do a CFI probe for the flash chip. With the board set for the Atmel bootloader it works fine. It's the same kernel and boot command line in both cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both u-boots can see both flash chips, the only difference is which is bank 1 and which is bank 2 is swapped around. The memory addresses of the flashes are the same in both cases, so the system shouldnt look any different to the kernel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Here is what happens:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;-&amp;gt; flinfo&lt;BR /&gt;&lt;BR /&gt;Bank # 1: CFI conformant FLASH (8 x 8)&amp;nbsp; Size: 16 MB in 128 Sectors&lt;BR /&gt;&amp;nbsp; Intel Extended command set, Manufacturer ID: 0x89, Device ID: 0x18&lt;BR /&gt;&amp;nbsp; Erase timeout: 4096 ms, write timeout: 1 ms&lt;BR /&gt;&amp;nbsp; Buffer write timeout: 2 ms, buffer size: 32 bytes&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Sector Start Addresses:&lt;BR /&gt;&amp;nbsp; 00000000&amp;nbsp;&amp;nbsp; RO&amp;nbsp;&amp;nbsp; 00020000&amp;nbsp;&amp;nbsp; RO&amp;nbsp;&amp;nbsp; 00040000&amp;nbsp;&amp;nbsp; RO&amp;nbsp;&amp;nbsp; 00060000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00080000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; 000A0000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 000C0000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 000E0000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00100000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00120000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;Bank # 2: CFI conformant FLASH (8 x 8)&amp;nbsp; Size: 512 kB in 11 Sectors&lt;BR /&gt;&amp;nbsp; AMD Legacy command set, Manufacturer ID: 0x1F, Device ID: 0x13&lt;BR /&gt;&amp;nbsp; Erase timeout: 16384 ms, write timeout: 2 ms&lt;BR /&gt;&amp;nbsp; Buffer write timeout: 5 ms, buffer size: 32 bytes&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Sector Start Addresses:&lt;BR /&gt;&amp;nbsp; 04000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04004000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04006000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04008000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04010000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On boot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;physmap platform flash device: 01000000 at 00000000&lt;BR /&gt;physmap-flash physmap-flash.0: map_probe failed&lt;BR /&gt;Unable to handle kernel NULL pointer dereference at virtual address 00000000&lt;BR /&gt;Oops: 00000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when u-boot is from the Atmel flash it works fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;physmap platform flash device: 01000000 at 00000000&lt;BR /&gt;physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank&lt;BR /&gt;&amp;nbsp;Intel/Sharp Extended Query Table at 0x0031&lt;BR /&gt;Using buffer write method&lt;BR /&gt;cfi_cmdset_0001: Erase suspend on write enabled&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2009 17:34:51 GMT</pubDate>
    <dc:creator>jon</dc:creator>
    <dc:date>2009-08-04T17:34:51Z</dc:date>
    <item>
      <title>Linux flash driver fails on M54455EVB when booting from the Intel flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linux-flash-driver-fails-on-M54455EVB-when-booting-from-the/m-p/204808#M9626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This EVB has two flash chips, a small Atmel and a larger Intel. The deafult arrangement is to boot u-boot from the Atmel chip, which boots a Linix kernel from the Intel chip which would then mount a root filesystem from the Intel chip. That all works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The board can be switched so that it boots from the Intel chip instead. I'm trying to get it to work in this mode beacause i) our eventual custom hardware will only have 1 chip, ii) I want to mess with boot setting from Linux application, so I only deal with a single flash chip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have programmed u-boot (configured for Intel flash) into the Intel flash, it boots and can boot the Linux kernel, but the Linux kernel fails when the MTD driver tries to do a CFI probe for the flash chip. With the board set for the Atmel bootloader it works fine. It's the same kernel and boot command line in both cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both u-boots can see both flash chips, the only difference is which is bank 1 and which is bank 2 is swapped around. The memory addresses of the flashes are the same in both cases, so the system shouldnt look any different to the kernel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Here is what happens:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;-&amp;gt; flinfo&lt;BR /&gt;&lt;BR /&gt;Bank # 1: CFI conformant FLASH (8 x 8)&amp;nbsp; Size: 16 MB in 128 Sectors&lt;BR /&gt;&amp;nbsp; Intel Extended command set, Manufacturer ID: 0x89, Device ID: 0x18&lt;BR /&gt;&amp;nbsp; Erase timeout: 4096 ms, write timeout: 1 ms&lt;BR /&gt;&amp;nbsp; Buffer write timeout: 2 ms, buffer size: 32 bytes&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Sector Start Addresses:&lt;BR /&gt;&amp;nbsp; 00000000&amp;nbsp;&amp;nbsp; RO&amp;nbsp;&amp;nbsp; 00020000&amp;nbsp;&amp;nbsp; RO&amp;nbsp;&amp;nbsp; 00040000&amp;nbsp;&amp;nbsp; RO&amp;nbsp;&amp;nbsp; 00060000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00080000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; 000A0000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 000C0000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 000E0000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00100000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 00120000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;Bank # 2: CFI conformant FLASH (8 x 8)&amp;nbsp; Size: 512 kB in 11 Sectors&lt;BR /&gt;&amp;nbsp; AMD Legacy command set, Manufacturer ID: 0x1F, Device ID: 0x13&lt;BR /&gt;&amp;nbsp; Erase timeout: 16384 ms, write timeout: 2 ms&lt;BR /&gt;&amp;nbsp; Buffer write timeout: 5 ms, buffer size: 32 bytes&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Sector Start Addresses:&lt;BR /&gt;&amp;nbsp; 04000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04004000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04006000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04008000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 04010000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On boot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;physmap platform flash device: 01000000 at 00000000&lt;BR /&gt;physmap-flash physmap-flash.0: map_probe failed&lt;BR /&gt;Unable to handle kernel NULL pointer dereference at virtual address 00000000&lt;BR /&gt;Oops: 00000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when u-boot is from the Atmel flash it works fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;physmap platform flash device: 01000000 at 00000000&lt;BR /&gt;physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank&lt;BR /&gt;&amp;nbsp;Intel/Sharp Extended Query Table at 0x0031&lt;BR /&gt;Using buffer write method&lt;BR /&gt;cfi_cmdset_0001: Erase suspend on write enabled&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 17:34:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linux-flash-driver-fails-on-M54455EVB-when-booting-from-the/m-p/204808#M9626</guid>
      <dc:creator>jon</dc:creator>
      <dc:date>2009-08-04T17:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Linux flash driver fails on M54455EVB when booting from the Intel flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linux-flash-driver-fails-on-M54455EVB-when-booting-from-the/m-p/204809#M9627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was fixed several months ago -- I put the fixes in while I still worked at freescale.&amp;nbsp; It's been a long time and I'm a bit fuzzy on the changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Contact FSL Tech Support and they should be able to tell you the solution.&amp;nbsp; I think I generated a patch against the shipping bsp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Kurt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 23:04:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linux-flash-driver-fails-on-M54455EVB-when-booting-from-the/m-p/204809#M9627</guid>
      <dc:creator>jkmahan</dc:creator>
      <dc:date>2009-08-04T23:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Linux flash driver fails on M54455EVB when booting from the Intel flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linux-flash-driver-fails-on-M54455EVB-when-booting-from-the/m-p/204810#M9628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks Kurt, I've logged a support request to see whether a patch is available.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 15:02:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linux-flash-driver-fails-on-M54455EVB-when-booting-from-the/m-p/204810#M9628</guid>
      <dc:creator>jon</dc:creator>
      <dc:date>2009-08-06T15:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Linux flash driver fails on M54455EVB when booting from the Intel flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linux-flash-driver-fails-on-M54455EVB-when-booting-from-the/m-p/204811#M9629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Solution to this (from tech support) is to configure the&amp;nbsp;NOR Flash Base Address in the&amp;nbsp;Platform dependent setup part of the kernel to&amp;nbsp;0x04000000.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2009 17:40:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Linux-flash-driver-fails-on-M54455EVB-when-booting-from-the/m-p/204811#M9629</guid>
      <dc:creator>jon</dc:creator>
      <dc:date>2009-08-07T17:40:01Z</dc:date>
    </item>
  </channel>
</rss>

