<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">This is the section I am concerned about.<br>It is having trouble detecting my SATA Flash on the master port.<br><br><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US"><font size="2">Waiting for ide0 to become ready for reset... ok<br>
  Resetting ide0... ok<br>
  Testing for hda<br>
  ProbIDE: status=0x58, err=0x0<br>
  Testing for hda<br>
  ProbIDE: status=0x51, err=0x4<br>
  MASTER CHECK: master no  /* slave */ -- drive is 0<br>
  NO MASTER -- check slave!</font><br><br><font size="2">The SATA flash has been <span style="font-weight: bold;">really</span> picky.<br>My first guess is that I think the IDE device register setup might be the problem.<br></font></span></font>I am trying to understand why IDE_DH_CHS/IDE_DH_LBA are named the way they are? The
bits being set by these macros are legacy for setting a sector size and
should always be set to 1-0 according to everything I have read. Using IDE_DH_LBA instead of IDE_DH_CHS would set the right bits.<br><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US"><font size="2"><br>Current FILO:<br></font><font size="2">   cmd.device = IDE_DH_DEFAULT | IDE_DH_HEAD(0) | IDE_DH_CHS | info->slave;</font><br></span></font><br>Psedo code based on what Grub2 does: <br>   device_reg = 0xE0 | (slave)?slave_bits:master_bits<br><br>I believe this would be correct for FILO:<br>   cmd.device = IDE_DH_DEFAULT | IDE_DH_HEAD(0) | IDE_DH_LBA | info->slave<br><br>This of course is just a hunch at the moment. I won't be able to try it until Monday.<br><br>Thanks,<br>Dan Lykowski<br><br>--- On <b>Sat, 1/17/09, Wang, Qingpei <i><Qingpei.Wang@amd.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Wang,
 Qingpei <Qingpei.Wang@amd.com><br>Subject: Re: [coreboot] FILO and SATA on 690/600<br>To: "Dan Lykowski" <engineerguy3737@yahoo.com>, coreboot@coreboot.org, "Peter Stuge" <peter@stuge.se><br>Date: Saturday, January 17, 2009, 3:20 AM<br><br><div id="yiv361698494">


 
 

 

 

 

<style>
<!--
#yiv361698494  
 _filtered #yiv361698494 {font-family:SimSun;panose-1:2 1 6 0 3 1 1 1 1 1;}
 _filtered #yiv361698494 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
 _filtered #yiv361698494 {font-family:"Bookman Old Style";panose-1:2 5 6 4 5 5 5 2 2 4;}
 _filtered #yiv361698494 {font-family:SimSun;panose-1:2 1 6 0 3 1 1 1 1 1;}
#yiv361698494  
#yiv361698494 p.MsoNormal, #yiv361698494 li.MsoNormal, #yiv361698494 div.MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}
#yiv361698494 a:link, #yiv361698494 span.MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv361698494 a:visited, #yiv361698494 span.MsoHyperlinkFollowed
        {color:blue;text-decoration:underline;}
#yiv361698494 span.EmailStyle17
        {font-family:"Bookman Old Style";color:navy;font-weight:normal;font-style:normal;text-decoration:none none;}
 _filtered #yiv361698494 {margin:72.0pt 90.0pt 72.0pt 90.0pt;}
#yiv361698494 div.Section1
        {}
-->
</style>

<div class="Section1">

<p class="MsoNormal"><font size="3" color="navy" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: navy;" lang="EN-US">Hi,</span></font></p> 

<p class="MsoNormal"><font size="3" color="navy" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: navy;" lang="EN-US">Please
see below.</span></font></p> 

<p class="MsoNormal"><font size="3" color="navy" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: navy;" lang="EN-US">  </span></font></p> 

<p class="MsoNormal"><font size="3" color="navy" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: navy;" lang="EN-US">  </span></font></p> 

<div>

<p class="MsoNormal"><font size="2" color="black" face="Times New Roman"><span style="font-size: 10pt; color: black;" lang="EN-US">Jason Wang</span></font></p> 

<p class="MsoNormal"><font size="2" color="black" face="Times New Roman"><span style="font-size: 10pt; color: black;" lang="EN-US">BeiJing</span></font><font size="2" color="black"><span style="font-size: 10pt; color: black;" lang="EN-US"> Technology 
 Development Center</span></font><font size="2" color="black"><span style="font-size: 10pt; color: black;" lang="EN-US"></span></font></p> 

<p class="MsoNormal"><font size="2" color="black" face="Times New Roman"><span style="font-size: 10pt; color: black;" lang="EN-US">Advanced Micro Devices (AMD)</span></font></p> 

</div>

<p class="MsoNormal"><font size="3" color="navy" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: navy;" lang="EN-US">  </span></font></p> 

<div>

<div class="MsoNormal" style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US">

<hr tabindex="-1" size="2" width="100%" align="center">

</span></font></div>

<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;" lang="EN-US">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;" lang="EN-US">
coreboot-bounces@coreboot.org [mailto:coreboot-bounces@coreboot.org] <b><span style="font-weight: bold;">On Behalf Of </span></b>Dan Lykowski<br>
<b><span style="font-weight: bold;">Sent:</span></b> Saturday, January 17, 2009
2:59 PM<br>
<b><span style="font-weight: bold;">To:</span></b> coreboot@coreboot.org; Peter
Stuge<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [coreboot] FILO and
SATA on 690/600</span></font><span lang="EN-US"></span></p> 

</div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US">  </span></font></p> 

<table class="MsoNormalTable" border="0" cellpadding="0" cellspacing="0">
 <tbody><tr>
  <td style="padding: 0cm;" valign="top">
  <p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US">Peter,<br>
  I will test it when I get in to work on Monday. <br>
  <br>
  I was able to get a HDD to be detected. My SATA flash is still being
  stubborn.<br>
  <br>
  Here is my log: (Without Peters Patch)<br>
  boot eax = 0x2badb002<br>
  boot ebx = 0xf3400<br>
  boot arg = 0xf3400<br>
  Current location: 0x100000-0x49e117<br>
  Relocating to 0x37c61000-0x37fff117... ok<br>
  00:13.0 4387:1002.0 OHCI controller<br>
  00:13.1 4388:1002.1 OHCI controller<br>
  00:13.2 4389:1002.2 OHCI controller<br>
  00:13.3 438a:1002.3 OHCI controller<br>
  00:13.4 438b:1002.4 OHCI controller<br>
  00:13.5 4386:1002.5 EHCI controller<br>
  Not supported.<br>
  ERROR: No such CMOS option (boot_devices)<br>
  Press <Enter> for default menu.lst (hda1:/boot/filo/menu.lst), or
  <Esc> for prompt...<br>
  menu: hda1:/boot/filo/menu.lst<br>
  <br>
  dev=hda1, path=/boot/filo/default<br>
  Scanning for: SATA<br>
  ...<br>
  found PCI IDE controller 1002:4380<br>
  prog_if=0x8f<br>
  primary channel: native PCI mode<br>
  cmd_base=0x3020 ctrl_base=0x3060<br>
  init_controller: drive 0<br>
  Waiting for ide0 to become ready for reset... ok<br>
  Resetting ide0... ok<br>
  Testing for hda<br>
  ProbIDE: status=0x58, err=0x0<br>
  Testing for hda<br>
  ProbIDE: status=0x51, err=0x4<br>
  MASTER CHECK: master no  /* slave */ -- drive is 0<br>
  NO MASTER -- check slave!<br>
  Testing for hda<br>
  ProbLBA mode, sectors=156301488<br>
  Init device params... ok<br>
  hda: LBA 80GB: WDC WD800JD-22JNA0<br>
  SLAVE ONLY CHECK: slave yes<br>
  Partition 1 start 64260 length 16787925<br>
  Unknown filesystem type.<font color="navy"><span style="color: navy;"></span></font></span></font></p> 
  <p class="MsoNormal"><font size="3" color="navy" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: navy;" lang="EN-US">[Jason, Wang] if seems that filo can not detect the the filesystem
  type.</span></font></p> 
  <p class="MsoNormal"><font size="3" color="navy" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: navy;" lang="EN-US">Did hda1 is an ext2 or ext3 filesystem</span></font></p> 
  <p class="MsoNormal"><font size="3" color="navy" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: navy;" lang="EN-US">Change the filo config.h MENULST_FILE to the correct path of your
  linux boot path. And try again</span></font></p> 
  <p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US"><br>
  dev=hda1, path=/boot/filo/menu.lst<br>
  already open<br>
  Could not open menu.lst file 'hda1:/boot/filo/menu.lst'. <br>
  Entering command line.<br>
  <b><i><font color="navy"><span style="color: navy; font-weight: bold; font-style: italic;">[Jason, Wang] </span></font></i></b><font color="navy"><span style="color: navy;">please make sure that the /boot/filo/menu.lst exist</span></font><br>
  Thanks,<br>
  Dan Lykowski<br>
  <br>
  --- On <b><span style="font-weight: bold;">Sat, 1/17/09, Peter Stuge <i><span style="font-style: italic;"><peter@stuge.se></span></i></span></b> wrote:<font color="navy"><span style="color: navy;"></span></font></span></font></p> 
  <p class="MsoNormal" style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US"><br>
  From: Peter Stuge <peter@stuge.se><br>
  Subject: Re: [coreboot] FILO and SATA on 690/600<br>
  To: coreboot@coreboot.org<br>
  Date: Saturday, January 17, 2009, 1:09 AM<br>
  <br>
  <br>
  -----Inline Attachment Follows-----</span></font></p> 
  <div>
  <p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US">Dan Lykowski wrote:<br>
  > Has anyone been able to boot a SATA drive using FILO on a 690/600<br>
  > platform?<br>
  > I keep getting IDE timeouts on detection.<br>
  <br>
  I would be interested in debug output from filo-0.5, e.g. r52, with<br>
  <a rel="nofollow" target="_blank" href="http://stuge.se/filo.r52.ide_ext2_pio4_debug6.patch">http://stuge.se/filo.r52.ide_ext2_pio4_debug6.patch</a>
  applied and both<br>
  DEBUG_PCI = 1 and DEBUG_IDE = 1 in Config. Please also set<br>
  USE_GRUB = 0 to make the interface easier to work with.<br>
  <br>
  <br>
  //Peter<br>
  <br>
  --<br>
  coreboot mailing list: <a rel="nofollow">coreboot@coreboot.org</a><br>
  <a rel="nofollow" target="_blank" href="http://www.coreboot.org/mailman/listinfo/coreboot">http://www.coreboot.org/mailman/listinfo/coreboot</a></span></font></p> 
  </div>
  </td>
 </tr>
</tbody></table>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-US">  </span></font></p> 

</div>

 

</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">--<br>coreboot mailing list: <a ymailto="mailto:coreboot@coreboot.org" href="/mc/compose?to=coreboot@coreboot.org">coreboot@coreboot.org</a><br><a href="http://www.coreboot.org/mailman/listinfo/coreboot" target="_blank">http://www.coreboot.org/mailman/listinfo/coreboot</a></div></blockquote></td></tr></table><br>