title: ALIX 2D13, linux kernel error "serial number revalidation" using Compact Flash and Harddisk
body: <p>i'm building a linux based firmare for an alix 2d13 using crosstools-ng, for the toolchain, buildroot, for the root filesystem, and vanilla kernel ... for the kernel.</p>
  
  <p>I need to use compact flash and harddisk but, when i connect them to the alix, i get a really weird error:</p>
  
  <pre><code>[    1.072380] ata1.00: CFA: CF Card, Ver2.34, max UDMA/100
  [    1.077738] ata1.00: 7880544 sectors, multi 0: LBA
  [    1.082670] ata1.00: limited to UDMA/33 due to 40-wire cable
  [    1.096260] ata1.00: serial number mismatch '6EB10703040700582043' != '6EB1p703040700582043'
  [    1.104738] ata1.00: revalidation failed (errno=-19)
  [    1.109740] ata1.00: limiting speed to UDMA/33:PIO3
  .
  .
  .
  [    6.209775] ata1.00: serial number mismatch '6EB10703040700582043' != '6EB1p703040700582043'
  [    6.218324] ata1.00: revalidation failed (errno=-19)
  [    6.222235] ata1.00: disabled
  </code></pre>
  
  <p>All works fine if i detach the harddisk from alix. hdparm output is:</p>
  
  <pre><code>Model=CF Card                                 , FwRev=Ver2.34 , SerialNo=6EB10703040700582043
  Config={ HardSect NotMFM Fixed DTR&gt;10Mbs }
  RawCHS=7818/16/63, TrkSize=32256, SectSize=512, ECCbytes=4
  BuffType=(2) DualPort, BuffSize=1kB, MaxMultSect=1, MultSect=?1?
  CurCHS=7818/16/63, CurSects=7880544, LBA=yes, LBAsects=7880544
  IORDY=yes, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
  PIO modes:  pio0 pio1 pio2 pio3 pio4
  DMA modes:  mdma0 mdma1 mdma2
  UDMA modes: udma0 udma1 *udma2
  AdvancedPM=no
  </code></pre>
  
  <p>And alix configuration is
      (C) CHS mode <em>L</em> LBA mode <em>W</em> HDD wait <em>V</em> HDD slave <em>U</em> UDMA enable</p>
  
  <p>I tried using pata_amd and pata_cs5536 but the result is the same.</p>
  
  <p>Full kernel output is here
  <a href="http://pastebin.com/7wcvEdRG" rel="nofollow">http://pastebin.com/7wcvEdRG</a></p>