stux2000 / plan9front

Automatically exported from code.google.com/p/plan9front
0 stars 0 forks source link

r400 - dvd cd-rw doesn't work #157

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the dvd/cd drive doesn't work. don't know why yet.

an "sdE1" dir appears in /dev containing raw and ctl files, but the contents of 
an iso was not accessible.

Original issue reported on code.google.com by tereniao...@gmail.com on 14 Nov 2012 at 10:17

GoogleCodeExporter commented 9 years ago
in /sys/src/9/pc/sdiahci.c, function iaverify() change the
last return line as follows:

- return 1;
+ return scsiverify(u);

i dont have a sata cdrom drive, so i cannot test this.

Original comment by cinap_le...@felloff.net on 26 Nov 2012 at 8:50

GoogleCodeExporter commented 9 years ago
in any case, try enable some debugging:

echo ahci debug >/dev/sdctl
echo ahci aprint >/dev/sdctl

Original comment by cinap_le...@felloff.net on 26 Nov 2012 at 8:53

GoogleCodeExporter commented 9 years ago
run atazz on the drive.

try "signature".  what does that return?
see idpuis(2) for expected values.  if that corresponds to Pspinup
try "set features power-up in standby device spin-up" (hope i typed
that correctly).

the version of sdahci i'm using does handle this, but i never was convinced
there were no bugs.

- erik

Original comment by cinap_le...@felloff.net on 1 Dec 2012 at 4:11

GoogleCodeExporter commented 9 years ago
commited (partial) fix in red872c9fa8c0

Original comment by cinap_le...@felloff.net on 2 Dec 2012 at 12:44

GoogleCodeExporter commented 9 years ago

Original comment by cinap_le...@felloff.net on 2 Dec 2012 at 9:31