9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: koishi@gein.vistech.net
To: 9FANS@CSE.PSU.EDU
Subject: [9fans] Re: CD install fails, floppy install OK
Date: Sun, 29 May 2005 01:58:31 -0400	[thread overview]
Message-ID: <05052901583114.246005b3.156244@gein.vistech.net> (raw)

Status update:
I tried installing with booting from the floppy, but trying to use
the CD as the source to copy the distribution from, got similar
diskWriteRaw errors.

But finally, I found a fix. Thanks to vt3 for the hint!
If I do:
  echo 'dma off' >/dev/sdC0/ctl #The harddisk
*or*:
  echo 'dma off' >/dev/sdD0/ctl #The CD
or both, the installation is successful. If I disable DMA on the HD, I get
this warning at about every 2 seconds in the "copydist" stage:
  entire cache is busy, 1498 dirty -- waking flush thread
  cache is okay again
but this seems harmless.

Another thing I noticed is that after booting the CD, this is printed:
  init: starting /bin/rc
  echo: write error: bad process or channel control request
but everything continues OK.

It seems only either the HD or the CD can have DMA on, not both.
The reason this problem never showed up before for me seems to be the
FreeBSD sysctl hw.ata.atapi_dma which defaults to 0, so bsd didn't try
to use DMA for the CD drive. atacontrol(8) thinks the drives support DMA.
The HD is "QUANTUM FIREBALLP AS20.5/A1Y.1500",
the CD is "HL-DT-ST GCE-8480B/1.03" and it may be useful to print a warning
or switch off dma for the cd if these two drives are detected.

Thanks
--
Varga Peter



                 reply	other threads:[~2005-05-29  5:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=05052901583114.246005b3.156244@gein.vistech.net \
    --to=koishi@gein.vistech.net \
    --cc=9FANS@CSE.PSU.EDU \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).