Sunday, August 29, 2010

CDROM continued

Today I tried with another type of CD-ROM (No Rock-Ridge, No Joliet):

$ isoinfo -d -i /dev/sr0
CD-ROM is in ISO 9660 format
System id:
Volume id: DIAMCD
Volume set id:
Publisher id:
Data preparer id:
Application id:
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 13057
NO Joliet present
NO Rock Ridge present

$ dmesg | grep -i dma
[ 0.000000] DMA 0x00000000 -> 0x00001000
[ 0.000000] DMA32 0x00001000 -> 0x00100000
[ 0.000000] DMA zone: 56 pages used for memmap
[ 0.000000] DMA zone: 105 pages reserved
[ 0.000000] DMA zone: 3838 pages, LIFO batch:0
[ 0.000000] DMA32 zone: 14280 pages used for memmap
[ 0.000000] DMA32 zone: 898747 pages, LIFO batch:31
[ 0.000000] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 1.058084] eth0: dma_rwctrl[76180000] dma_mask[64-bit]
[ 1.063427] mmc0: SDHCI controller on PCI [0000:03:01.1] using DMA
[ 1.138970] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x6fa0 irq 14
[ 1.138973] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x6fa8 irq 15
[ 1.292601] ata3: SATA max UDMA/133 cmd 0x6eb0 ctl 0x6eb8 bmdma 0x6ee0 irq 18
[ 1.292607] ata4: SATA max UDMA/133 cmd 0x6ec0 ctl 0x6ec8 bmdma 0x6ee8 irq 18
[ 1.324410] ata1.00: ATAPI: TSSTcorp DVD+/-RW TS-L632H, D400, max UDMA/33
[ 1.356282] ata1.00: configured for UDMA/33
[ 2.187232] ata3.00: ATA-8: ST9160411ASG, DE14, max UDMA/133
[ 2.244977] ata3.00: configured for UDMA/133
[33514.878118] ata1.00: configured for UDMA/33
[33517.003578] ata3.00: configured for UDMA/133
[33537.807952] ata1.00: configured for UDMA/33
[33538.418463] ata3.00: configured for UDMA/133


$ dmesg | grep ata
[ 0.000000] #0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000]
[ 0.000000] Memory: 4050432k/4718592k available (3060k kernel code, 526200k absent, 141960k reserved, 1869k data, 584k init)
[ 0.616317] Write protecting the kernel read-only data: 4192k
[ 1.114835] libata version 3.00 loaded.
[ 1.137438] ata_piix 0000:00:1f.1: version 2.13
[ 1.137447] ata_piix 0000:00:1f.1: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 1.137548] ata_piix 0000:00:1f.1: setting latency timer to 64
[ 1.137838] scsi0 : ata_piix
[ 1.138443] scsi1 : ata_piix
[ 1.138970] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x6fa0 irq 14
[ 1.138973] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x6fa8 irq 15
[ 1.139214] ata_piix 0000:00:1f.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[ 1.139219] ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
[ 1.147946] ata2: port disabled. ignoring.
[ 1.292026] ata_piix 0000:00:1f.2: setting latency timer to 64
[ 1.292064] scsi2 : ata_piix
[ 1.292117] scsi3 : ata_piix
[ 1.292601] ata3: SATA max UDMA/133 cmd 0x6eb0 ctl 0x6eb8 bmdma 0x6ee0 irq 18
[ 1.292607] ata4: SATA max UDMA/133 cmd 0x6ec0 ctl 0x6ec8 bmdma 0x6ee8 irq 18
[ 1.324410] ata1.00: ATAPI: TSSTcorp DVD+/-RW TS-L632H, D400, max UDMA/33
[ 1.356282] ata1.00: configured for UDMA/33
[ 2.100078] ata3.00: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 2.100094] ata3.01: SATA link down (SStatus 0 SControl 300)
[ 2.187232] ata3.00: ATA-8: ST9160411ASG, DE14, max UDMA/133
[ 2.187234] ata3.00: 312581808 sectors, multi 8: LBA48 NCQ (depth 0/32)
[ 2.244977] ata3.00: configured for UDMA/133
[ 2.640006] ata4.01: failed to resume link (SControl 0)
[ 2.640127] ata4.00: SATA link down (SStatus 0 SControl 300)
[ 2.640148] ata4.01: SATA link down (SStatus 0 SControl 0)
[ 25.813715] REISERFS (device dm-1): using ordered data mode
[33513.249602] ata_piix 0000:00:1f.2: PCI INT C disabled
[33513.264500] ata2: port disabled. ignoring.
[33513.264637] ata_piix 0000:00:1f.1: PCI INT A disabled
[33513.903915] ata_piix 0000:00:1f.1: restoring config space at offset 0xf (was 0x100, writing 0x105)
[33513.904027] ata_piix 0000:00:1f.2: restoring config space at offset 0xf (was 0x300, writing 0x30a)
[33513.904055] ata_piix 0000:00:1f.2: restoring config space at offset 0x9 (was 0x1, writing 0xeff1)
[33513.904087] ata_piix 0000:00:1f.2: restoring config space at offset 0x1 (was 0x2b00000, writing 0x2b00007)
[33514.010283] ata_piix 0000:00:1f.1: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[33514.010296] ata_piix 0000:00:1f.1: setting latency timer to 64
[33514.010361] ata1.00: _GTF evaluation failed (AE 0x1001)
[33514.010497] ata2: port disabled. ignoring.
[33514.010534] ata_piix 0000:00:1f.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[33514.010547] ata_piix 0000:00:1f.2: setting latency timer to 64
[33514.010593] ata3.00: _GTF evaluation failed (AE 0x1001)
[33514.878118] ata1.00: configured for UDMA/33
[33515.832158] ata4.01: failed to resume link (SControl 0)
[33515.832225] ata4.00: SATA link down (SStatus 4 SControl 300)
[33515.832255] ata4.01: SATA link down (SStatus 0 SControl 0)
[33516.904244] ata3.00: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[33516.904269] ata3.01: SATA link down (SStatus 4 SControl 300)
[33517.003578] ata3.00: configured for UDMA/133
[33536.782469] ata_piix 0000:00:1f.2: PCI INT C disabled
[33536.782550] ata2: port disabled. ignoring.
[33536.782609] ata_piix 0000:00:1f.1: PCI INT A disabled
[33537.229940] ata_piix 0000:00:1f.1: restoring config space at offset 0x1 (was 0x2880001, writing 0x2880005)
[33537.229973] ata_piix 0000:00:1f.2: restoring config space at offset 0x1 (was 0x2b00003, writing 0x2b00007)
[33537.325573] ata_piix 0000:00:1f.1: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[33537.325577] ata_piix 0000:00:1f.1: setting latency timer to 64
[33537.325597] ata1.00: _GTF evaluation failed (AE 0x1001)
[33537.325750] ata2: port disabled. ignoring.
[33537.325760] ata_piix 0000:00:1f.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[33537.325764] ata_piix 0000:00:1f.2: setting latency timer to 64
[33537.325779] ata3.00: _GTF evaluation failed (AE 0x1001)
[33537.807952] ata1.00: configured for UDMA/33
[33538.272305] ata3.00: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[33538.272325] ata3.01: SATA link down (SStatus 0 SControl 300)
[33538.418463] ata3.00: configured for UDMA/133
[33538.824217] ata4.01: failed to resume link (SControl 0)
[33538.824271] ata4.00: SATA link down (SStatus 0 SControl 300)
[33538.824295] ata4.01: SATA link down (SStatus 0 SControl 0)

$ sudo hdparm -I /dev/sr0

/dev/sr0:

ATAPI CD-ROM, with removable media
Model Number: TSSTcorp DVD+/-RW TS-L632H
Serial Number:
Firmware Revision: D400
Standards:
Supported: CD-ROM ATAPI-3 -4 -5 -6 -7
Configuration:
DRQ response: 50us.
Packet size: 12 bytes
Capabilities:
LBA, IORDY(can be disabled)
DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=383ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* Power Management feature set
* PACKET command feature set
* DEVICE_RESET command
* NOP cmd
HW reset results:
CBLID- below Vih
Device num = 0 determined by CSEL

Friday, August 27, 2010

integration-gdcm-2-0-16 pushed to master !

This is a big day today ! GDCM 2.x has been pushed to ITK, enjoy !

$ ssh git@itk.org stage ITK merge integration-gdcm-2-0-16
Fetching upstream master
Merge topic 'integration-gdcm-2-0-16'

448bcde Rename GDCMTargets to ITKTargets
5714c2f Handle case where zlib is the system one
b25d59f Make sure to include a C99 wrapper for MSVC compiler
92d15f9 trivial compilation fixes
4c73133 Make sure to use proper name mangling
4be1690 remove openjpeg version for now
3891f5f Need to define openjpeg version major
f2b6ec7 Need to export libs
8284318 updates so that things configure in cmake 2.8 on windows
b322034 Fix GDCM to handle older expat library.
0949e16 Final pass to make GDCM compile within ITK
99893f1 Remove any reference to GDCM 1.x, update to GDCM 2.x
f08de4d Backport cmakelist from previous ITK version
fdb6b18 Update JPEG library (IJG 8b release)
0f12009 Adding a patched GDCM 2.0.16 version
b5848c3 Remove old unsupported GDCM 1.2.x source

Removing Utilities/gdcm/.cvsignore
Removing Utilities/gdcm/CMake/gdcmTestFUNCTION.cxx
Removing Utilities/gdcm/ChangeLog
Removing Utilities/gdcm/DEVELOPPER
Removing Utilities/gdcm/Dicts/.cvsignore
Removing Utilities/gdcm/Dicts/ACUSON.dic
Removing Utilities/gdcm/Dicts/CMakeLists.txt
Removing Utilities/gdcm/Dicts/DicomDir.dic
Removing Utilities/gdcm/Dicts/DictGroupName.dic
Removing Utilities/gdcm/Dicts/ELSCINT.dic
Removing Utilities/gdcm/Dicts/GE-EchoPAC.dic
Removing Utilities/gdcm/Dicts/GEMS-Advance.dic
Removing Utilities/gdcm/Dicts/GEMS-Advantx.dic
Removing Utilities/gdcm/Dicts/GEMS-CR.dic
Removing Utilities/gdcm/Dicts/GEMS-DLX.dic
Removing Utilities/gdcm/Dicts/GEMS-Genie.dic
Removing Utilities/gdcm/Dicts/GEMS-HiSpeed.dic
Removing Utilities/gdcm/Dicts/GEMS-Infinia.dic
Removing Utilities/gdcm/Dicts/GEMS.dic
Removing Utilities/gdcm/Dicts/HITACHI-MR-pronto.dic
Removing Utilities/gdcm/Dicts/PHILIPS-EasyVision.dic
Removing Utilities/gdcm/Dicts/PHILIPS-Intera.dic
Removing Utilities/gdcm/Dicts/Papyrus.dic
Removing Utilities/gdcm/Dicts/ParseDict.py
Removing Utilities/gdcm/Dicts/README
Removing Utilities/gdcm/Dicts/SIEMENS-syngo.dic
Removing Utilities/gdcm/Dicts/SIEMENS.dic
Removing Utilities/gdcm/Dicts/SPI.dic
Removing Utilities/gdcm/Dicts/dicomAttributeTypes.dic
Removing Utilities/gdcm/Dicts/dicomGroupNameAbbreviations.dic
Removing Utilities/gdcm/Dicts/dicomTS.dic
Removing Utilities/gdcm/Dicts/dicomV3PhilipsIntera.dic
Removing Utilities/gdcm/Dicts/dicomVR.dic
Removing Utilities/gdcm/Dicts/gdcm.dic.in
Removing Utilities/gdcm/INSTALL
Removing Utilities/gdcm/README
Removing Utilities/gdcm/README.ITK.txt
Removing Utilities/gdcm/gdcm.spec.in
Removing Utilities/gdcm/gdcmConfigure.h.in
Removing Utilities/gdcm/src/.cvsignore
Removing Utilities/gdcm/src/CMakeLists.txt
Removing Utilities/gdcm/src/gdcm.h
Removing Utilities/gdcm/src/gdcmArgMgr.cxx
Removing Utilities/gdcm/src/gdcmArgMgr.h
Removing Utilities/gdcm/src/gdcmBase.cxx
Removing Utilities/gdcm/src/gdcmBase.h
Removing Utilities/gdcm/src/gdcmBinEntry.cxx
Removing Utilities/gdcm/src/gdcmBinEntry.h
Removing Utilities/gdcm/src/gdcmCommon.h
Removing Utilities/gdcm/src/gdcmContentEntry.cxx
Removing Utilities/gdcm/src/gdcmContentEntry.h
Removing Utilities/gdcm/src/gdcmDebug.cxx
Removing Utilities/gdcm/src/gdcmDebug.h
Removing Utilities/gdcm/src/gdcmDefaultDicts.cxx.in
Removing Utilities/gdcm/src/gdcmDicomDir.cxx
Removing Utilities/gdcm/src/gdcmDicomDir.h
Removing Utilities/gdcm/src/gdcmDicomDirElement.cxx
Removing Utilities/gdcm/src/gdcmDicomDirElement.h
Removing Utilities/gdcm/src/gdcmDicomDirImage.cxx
Removing Utilities/gdcm/src/gdcmDicomDirImage.h
Removing Utilities/gdcm/src/gdcmDicomDirMeta.cxx
Removing Utilities/gdcm/src/gdcmDicomDirMeta.h
Removing Utilities/gdcm/src/gdcmDicomDirObject.cxx
Removing Utilities/gdcm/src/gdcmDicomDirObject.h
Removing Utilities/gdcm/src/gdcmDicomDirPatient.cxx
Removing Utilities/gdcm/src/gdcmDicomDirPatient.h
Removing Utilities/gdcm/src/gdcmDicomDirSerie.cxx
Removing Utilities/gdcm/src/gdcmDicomDirSerie.h
Removing Utilities/gdcm/src/gdcmDicomDirStudy.cxx
Removing Utilities/gdcm/src/gdcmDicomDirStudy.h
Removing Utilities/gdcm/src/gdcmDicomDirVisit.cxx
Removing Utilities/gdcm/src/gdcmDicomDirVisit.h
Removing Utilities/gdcm/src/gdcmDict.cxx
Removing Utilities/gdcm/src/gdcmDict.h
Removing Utilities/gdcm/src/gdcmDictEntry.cxx
Removing Utilities/gdcm/src/gdcmDictEntry.h
Removing Utilities/gdcm/src/gdcmDictGroupName.cxx
Removing Utilities/gdcm/src/gdcmDictGroupName.h
Removing Utilities/gdcm/src/gdcmDictSet.cxx
Removing Utilities/gdcm/src/gdcmDictSet.h
Removing Utilities/gdcm/src/gdcmDirList.cxx
Removing Utilities/gdcm/src/gdcmDirList.h
Removing Utilities/gdcm/src/gdcmDocEntry.cxx
Removing Utilities/gdcm/src/gdcmDocEntry.h
Removing Utilities/gdcm/src/gdcmDocEntryArchive.cxx
Removing Utilities/gdcm/src/gdcmDocEntryArchive.h
Removing Utilities/gdcm/src/gdcmDocEntrySet.cxx
Removing Utilities/gdcm/src/gdcmDocEntrySet.h
Removing Utilities/gdcm/src/gdcmDocument.cxx
Removing Utilities/gdcm/src/gdcmDocument.h
Removing Utilities/gdcm/src/gdcmElementSet.cxx
Removing Utilities/gdcm/src/gdcmElementSet.h
Removing Utilities/gdcm/src/gdcmException.cxx
Removing Utilities/gdcm/src/gdcmException.h
Removing Utilities/gdcm/src/gdcmFile.cxx
Removing Utilities/gdcm/src/gdcmFile.h
Removing Utilities/gdcm/src/gdcmFileHelper.cxx
Removing Utilities/gdcm/src/gdcmFileHelper.h
Removing Utilities/gdcm/src/gdcmGlobal.cxx
Removing Utilities/gdcm/src/gdcmGlobal.h
Removing Utilities/gdcm/src/gdcmJPEGFragment.cxx
Removing Utilities/gdcm/src/gdcmJPEGFragment.h
Removing Utilities/gdcm/src/gdcmJPEGFragmentsInfo.cxx
Removing Utilities/gdcm/src/gdcmJPEGFragmentsInfo.h
Removing Utilities/gdcm/src/gdcmJpeg.cxx
Removing Utilities/gdcm/src/gdcmJpeg12.cxx
Removing Utilities/gdcm/src/gdcmJpeg16.cxx
Removing Utilities/gdcm/src/gdcmJpeg2000.cxx
Removing Utilities/gdcm/src/gdcmJpeg8.cxx
Removing Utilities/gdcm/src/gdcmJpegLS.cxx
Removing Utilities/gdcm/src/gdcmMpeg.cxx
Removing Utilities/gdcm/src/gdcmOrientation.cxx
Removing Utilities/gdcm/src/gdcmOrientation.h
Removing Utilities/gdcm/src/gdcmPixelReadConvert.cxx
Removing Utilities/gdcm/src/gdcmPixelReadConvert.h
Removing Utilities/gdcm/src/gdcmPixelWriteConvert.cxx
Removing Utilities/gdcm/src/gdcmPixelWriteConvert.h
Removing Utilities/gdcm/src/gdcmRLEFrame.cxx
Removing Utilities/gdcm/src/gdcmRLEFrame.h
Removing Utilities/gdcm/src/gdcmRLEFramesInfo.cxx
Removing Utilities/gdcm/src/gdcmRLEFramesInfo.h
Removing Utilities/gdcm/src/gdcmSQItem.cxx
Removing Utilities/gdcm/src/gdcmSQItem.h
Removing Utilities/gdcm/src/gdcmSeqEntry.cxx
Removing Utilities/gdcm/src/gdcmSeqEntry.h
Removing Utilities/gdcm/src/gdcmSerieHelper.cxx
Removing Utilities/gdcm/src/gdcmSerieHelper.h
Removing Utilities/gdcm/src/gdcmTS.cxx
Removing Utilities/gdcm/src/gdcmTS.h
Removing Utilities/gdcm/src/gdcmUtil.cxx
Removing Utilities/gdcm/src/gdcmUtil.h
Removing Utilities/gdcm/src/gdcmVR.cxx
Removing Utilities/gdcm/src/gdcmVR.h
Removing Utilities/gdcm/src/gdcmValEntry.cxx
Removing Utilities/gdcm/src/gdcmValEntry.h
Removing Utilities/gdcm/src/gdcmValidator.cxx
Removing Utilities/gdcm/src/gdcmValidator.h
Removing Utilities/itkjpeg/12/CMakeLists.txt
Removing Utilities/itkjpeg/16/CMakeLists.txt
Removing Utilities/itkjpeg/8/CMakeLists.txt
Removing Utilities/itkjpeg/mangle_jpeg12bits.h
Removing Utilities/itkjpeg/mangle_jpeg16bits.h
Removing Utilities/itkjpeg/mangle_jpeg8bits.h
Pushing upstream master
To ../../ITK.git
Deleting fully merged topic 'integration-gdcm-2-0-16' (448bcde) from stage.

Integrating GDCM 2.x to ITK (the hard way)

Let's start from the begining:

$ git clone git://itk.org/ITK.git

install hooks and pushurl...

$ git checkout -b integration-gdcm-2-0-16

git status reval I now on branch integration-gdcm-2-0-16

HACK HACK
$ git commit
...

Now in order to share code with Mark Roden. I decided to push to my github account:

$ git remote add perso git@github.com:malaterre/ITK.git
$ git push perso integration-gdcm-2-0-16

After a couple of exchange the branch was properly compiling on Linux/Win32/MacOSX.
I was ready to push GDCM 2.x to ITK. As suggested by Brad Lowekamp I pushed to stage first:

$ git remote add stage git://itk.org/stage/ITK.git
$ git config remote.stage.pushurl git@itk.org:stage/ITK.git
$ git fetch stage --prune
$ git checkout integration-gdcm-2-0-16
$ git push stage HEAD

one can then print it:

$ ssh git@itk.org stage ITK print

I pushed it also to gerrit for review.

$ git log gerrit/master..
$ git push gerrit HEAD:refs/for/master/integration-gdcm-2-0-16

This lead to some discussion with Brad King.

$ git add CMake/ExportConfiguration/CMakeLists.txt CMakeLists.txt
$ git commit
$ git push gerrit d2ee19d:refs/changes/24
Counting objects: 14, done.
Delta compression using up to 16 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 9.84 KiB, done.
Total 8 (delta 6), reused 0 (delta 0)
To malaterre@review.source.kitware.com:ITK
! [remote rejected] d2ee19d -> refs/changes/24 (squash commits first)
error: failed to push some refs to 'malaterre@review.source.kitware.com:ITK'

This was not quite right, I had to squash the last two commits:

$ git commit --amend
$ git push gerrit 1ddc92d:refs/changes/24
Counting objects: 14, done.
Delta compression using up to 16 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 9.85 KiB, done.
Total 8 (delta 6), reused 0 (delta 0)
To malaterre@review.source.kitware.com:ITK
! [remote rejected] 1ddc92d -> refs/changes/24 (squash commits first)
error: failed to push some refs to 'malaterre@review.source.kitware.com:ITK'

Still not ! I need to actually edit the word 'pick' and change it to 'squash':

$ git rebase -i HEAD~2
$ git push gerrit 448bcde:refs/changes/24
Counting objects: 62, done.
Delta compression using up to 16 threads.
Compressing objects: 100% (35/35), done.
Writing objects: 100% (38/38), 21.88 KiB, done.
Total 38 (delta 25), reused 0 (delta 0)
To malaterre@review.source.kitware.com:ITK
* [new branch] 448bcde -> refs/changes/24

Now that the change are on gerrit, push them to stage too:

$ git push stage HEAD
To git@itk.org:stage/ITK.git
! [rejected] HEAD -> integration-gdcm-2-0-16 (non-fast-forward)
error: failed to push some refs to 'git@itk.org:stage/ITK.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'Note about
fast-forwards' section of 'git push --help' for details.

Hum, something happen during the squash that made the push non-trivial on stage.

Meanwhile, let's push to my github account:

$ git push perso integration-gdcm-2-0-16

Thanks to Brad L., I tried it again:

$ git checkout integration-gdcm-2-0-16
$ git log master..
$ git push -f stage integration-gdcm-2-0-16
$ ssh git@itk.org stage ITK print
$ ssh git@itk.org stage ITK merge integration-gdcm-2-0-16

Finally all set ! Thanks to Brad K. and Brad L. !

References:
* http://www.itk.org/Wiki/ITK/Gerrit
* http://www.itk.org/Wiki/ITK/Git#Topic_Stage
* http://www.itk.org/Wiki/ITK/Git#Pushing

Wednesday, August 25, 2010

CDROM issues continued

When I boot into 2.6.32-bpo.3-amd64 kernel, here what I now get with my data CDROM:

$ dmesg | grep hda
[ 2.281372] hda: TSSTcorp DVD+/-RW TS-L632H, ATAPI CD/DVD-ROM drive
[ 2.952062] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[ 2.958189] hda: UDMA/33 mode selected
[ 64.499940] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 64.500372] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 64.500701] hda: possibly failed opcode: 0xa0
[ 74.350439] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 74.350871] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 74.351201] hda: possibly failed opcode: 0xa0
[ 80.871294] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 80.871310] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 80.871319] hda: possibly failed opcode: 0xa0
[ 87.392223] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 87.392239] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 87.392248] hda: possibly failed opcode: 0xa0
[ 93.913269] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 93.913286] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 93.913295] hda: possibly failed opcode: 0xa0
[ 93.913303] hda: DMA disabled
[ 93.960162] hda: ATAPI reset complete

$ dmesg | grep -i dma
[ 0.000000] DMA 0x00000000 -> 0x00001000
[ 0.000000] DMA32 0x00001000 -> 0x00100000
[ 0.000000] DMA zone: 56 pages used for memmap
[ 0.000000] DMA zone: 105 pages reserved
[ 0.000000] DMA zone: 3838 pages, LIFO batch:0
[ 0.000000] DMA32 zone: 14280 pages used for memmap
[ 0.000000] DMA32 zone: 898747 pages, LIFO batch:31
[ 0.000000] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 1.449793] ide0: BM-DMA at 0x6fa0-0x6fa7
[ 2.006308] eth0: dma_rwctrl[76180000] dma_mask[64-bit]
[ 2.170774] mmc0: SDHCI controller on PCI [0000:03:01.1] using DMA
[ 2.958189] hda: UDMA/33 mode selected
[ 3.213194] ata1: SATA max UDMA/133 cmd 0x6eb0 ctl 0x6eb8 bmdma 0x6ee0 irq 18
[ 3.213204] ata2: SATA max UDMA/133 cmd 0x6ec0 ctl 0x6ec8 bmdma 0x6ee8 irq 18
[ 4.088357] ata1.00: ATA-8: ST9160411ASG, DE14, max UDMA/133
[ 4.150205] ata1.00: configured for UDMA/133
[ 93.913303] hda: DMA disabled


$ sudo hdparm /dev/hda

/dev/hda:
IO_support = 0 (default)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
HDIO_GETGEO failed: Inappropriate ioctl for device


$ sudo hdparm -i /dev/hda

/dev/hda:

Model=TSSTcorp DVD+/-RW TS-L632H, FwRev=D400, SerialNo=
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=on/off, tPIO={min:383,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
Drive conforms to: unknown:

* signifies the current active mode

debian-installer: Lenny fails to install on system with USB and SATA disks

I finally found a bug associated to my initial post:

[Boot order / Grub / USB installer]
http://lists.debian.org/debian-user/2010/06/msg00308.html

I believe this is related to:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580340

Hopefully this will be solved for squeeze !

Saturday, August 21, 2010

CD-ROM media are not detected automatically

I finally took the time to investigate a little more the issue with CD-ROM on my debian machine,


[ 4959.729350] sr 0:0:0:0: [sr0] Unhandled sense code
[ 4959.729358] sr 0:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 4959.729367] sr 0:0:0:0: [sr0] Sense Key : Hardware Error [current]
[ 4959.729376] sr 0:0:0:0: [sr0] Add. Sense: Timeout on logical unit
[ 4959.729387] sr 0:0:0:0: [sr0] CDB: Read(10): 28 00 00 01 87 68 00 00 01 00
[ 4959.729405] end_request: I/O error, dev sr0, sector 400800
[ 4959.729416] Buffer I/O error on device sr0, logical block 100200
[ 4966.208399] sr 0:0:0:0: [sr0] Unhandled sense code
[ 4966.208407] sr 0:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 4966.208415] sr 0:0:0:0: [sr0] Sense Key : Hardware Error [current]
[ 4966.208425] sr 0:0:0:0: [sr0] Add. Sense: Timeout on logical unit
[ 4966.208436] sr 0:0:0:0: [sr0] CDB: Read(10): 28 00 00 01 87 68 00 00 01 00
[ 4966.208454] end_request: I/O error, dev sr0, sector 400800
[ 4966.208464] Buffer I/O error on device sr0, logical block 100200
and found out the following debian bug report:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=583949

Will see..

Thursday, August 19, 2010

Setting up of postfix on debian

For some reason I stopped being able to deliver emails from my postfix installation:

Aug 19 14:23:18 gotlib postfix/smtp[7669]: certificate verification failed for smtp.gmail.com[209.85.229.109]:587: untrusted issuer /C=US/O=Equifax/OU=Equifax Secure Certificate Authority

This one seems to be easily solved by:

sudo cp /usr/share/ca-certificates/mozilla/Equifax_Secure_CA.crt /etc/postfix/cacert.pem

The following was a bit more tricky:

Aug 19 14:23:19 gotlib postfix/smtp[7669]: A6E401E4A1: to=, relay=smtp.gmail.com[209.85.229.109]:587, delay=0.74, delays=0.01/0/0.73/0, dsn=4.7.1, status=deferred (SASL authentication failed; server smtp.gmail.com[209.85.229.109] said: 535-5.7.1 Username and Password not accepted. Learn more at ?535 5.7.1 http://mail.google.com/support/bin/answer.py?answer=14257 k6sn951170rej.1)

I went to the above link, then followed to:

http://www.google.com/accounts/DisplayUnlockCaptcha

It seems everything is back to normal !


One more thing, to flush all email stored in /var/spool/postfix/deferred, simply type:

postfix flush

I love postfix !