Thursday, November 4, 2010

warning: unable to rmdir my/module: Directory not empty

I am getting a bizarre behavior with git:

#!/bin/sh

# master
cd /tmp
mkdir test
cd test
git init
touch README
git add README
git commit -mREADME

# submodule
cd ..
mkdir module
cd module
git init
touch MODULE
git add MODULE
git commit -mMODULE

cd ../test
git submodule add file:///tmp/module my/module
git commit -a -m"adding submodule"

# empty branch
git symbolic-ref HEAD refs/heads/newbranch
rm .git/index
git clean -fdx
touch EMPTY
git add EMPTY
git commit -a -mEMPTY

# update
git checkout master
git submodule init
git submodule update
git checkout newbranch

Friday, October 8, 2010

pwc and skype

[100633.242228] pwc: Failed to set video mode SIF@50 fps; return code = -22
[100642.710544] pwc: Failed to set video mode SIF@63 fps; return code = -22
[100649.890737] pwc: Failed to set video mode SIF@40 fps; return code = -22
[100654.041901] pwc: Failed to set video mode SIF@39 fps; return code = -22
[100656.221977] pwc: Failed to set video mode SIF@35 fps; return code = -22
[100658.172058] pwc: Failed to set video mode SIF@32 fps; return code = -22
[100659.687089] pwc: Failed to set video mode SIF@31 fps; return code = -22
[100830.459603] pwc: Failed to set video mode VGA@30 fps; return code = -22
[100849.941231] pwc: Failed to set video mode VGA@30 fps; return code = -22
[100926.560735] pwc: Failed to set video mode VGA@30 fps; return code = -22
[105968.313335] pwc: isoc_init() submit_urb 0 failed with error -28
[105968.313340] pwc: isoc_init() submit_urb 1 failed with error -28
[105968.335135] pwc: Failed to set video mode VGA@30 fps; return code = -22
[105968.503135] pwc: isoc_init() submit_urb 0 failed with error -28
[105968.503139] pwc: isoc_init() submit_urb 1 failed with error -28
[105968.659149] pwc: isoc_init() submit_urb 0 failed with error -28
[105968.659156] pwc: isoc_init() submit_urb 1 failed with error -28

Wednesday, September 15, 2010

svn-all-fast-export

svn-all-fast-export --identity-map ../authors.txt --rules ../config /home/mathieu/tmp/git/svneverever/gdcm


$ git branch -a ~/tmp/git/svneverever/dummy/gdcm
gdcm-2-0
gdcm-2-0-10
gdcm-2-0-11
gdcm-2-0-12
gdcm-2-0-13
gdcm-2-0-14
gdcm-2-0-15
gdcm-2-0-16
* master

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

svn2git

/var/lib/gems/1.8/bin/svn2git http://gdcm.svn.sourceforge.net/svnroot/gdcm/ --exclude Sandbox --exclude documentation

$ git tag -l ~/tmp/git/migrate
gdcm-2-0-10
gdcm-2-0-11
gdcm-2-0-12
gdcm-2-0-13
gdcm-2-0-14
gdcm-2-0-15
gdcm-2-0-16
gdcm-2-0-4
gdcm-2-0-5
gdcm-2-0-6
gdcm-2-0-7
gdcm-2-0-8
gdcm-2-0-9

$ git branch -a ~/tmp/git/migrate
gdcm-2-0
* master
trunk@1097
remotes/gdcm-2-0
remotes/trunk
remotes/trunk@1097

Thursday, September 9, 2010

Shared Folder in VirtualBox and git

I think this is a bad idea, the file do not seems to be stored the same way...

$ git status
# On branch nightly-master
# Changed but not updated:
# (use "git add ..." to update what will be committed)
# (use "git checkout -- ..." to discard changes in working directory)
#
# modified: CMake/pre-commit
# modified: Code/Numerics/cvsrmvend
# modified: Documentation/cvspasswd.exe
# modified: Examples/SearchScript.sh
# modified: Testing/Code/install_test.sh.in
# modified: Utilities/Dart/AllowContinuous.sh.in
# modified: Utilities/Dart/BuildContinuous.sh.in
# modified: Utilities/Dart/BuildContinuousWithCTest.sh.in
# modified: Utilities/Dart/ChangedSince.csh.in
# modified: Utilities/Dart/NewSince.csh.in
# modified: Utilities/Dart/PreventContinuous.sh.in
# modified: Utilities/Doxygen/cvsVersionFilter.sh
# modified: Utilities/Doxygen/vxl_doxy.pl
# modified: Utilities/KWStyle/doAllStyle.csh.in
# modified: Utilities/gdcm/Source/DataDictionary/ParseDicts.py
# modified: Utilities/gdcm/Source/DataDictionary/txt2xml.py
# modified: Utilities/gdcm/Source/InformationObjectDefinition/ParseAttributes.py
# modified: Utilities/gdcm/Wrapping/Csharp/doxy2swig.py
# modified: Utilities/gdcm/Wrapping/Python/TestWrap.py
# modified: Utilities/gdcm/Wrapping/Python/doxy2swig.py
# modified: Utilities/itktiff/dist/newalpha
# modified: Utilities/itktiff/dist/newversion
# modified: Utilities/kwsys/kwsysDateStamp.py
# modified: Utilities/kwsys/kwsysHeaderDump.pl
# modified: Utilities/nifti/Testing/nifti_regress_test/@show.diffs
# modified: Utilities/nifti/Testing/nifti_regress_test/@test
# modified: Utilities/nifti/Testing/nifti_regress_test/cmake_testscripts/comment_test.sh
# modified: Utilities/nifti/Testing/nifti_regress_test/cmake_testscripts/dci_test.sh
# modified: Utilities/nifti/Testing/nifti_regress_test/cmake_testscripts/dsets_test.sh
# modified: Utilities/nifti/Testing/nifti_regress_test/cmake_testscripts/dts_test.sh
# modified: Utilities/nifti/Testing/nifti_regress_test/cmake_testscripts/fetch_data_test.sh
# modified: Utilities/nifti/Testing/nifti_regress_test/cmake_testscripts/mod_header_test.sh
# modified: Utilities/nifti/Testing/nifti_regress_test/cmake_testscripts/newfiles_test.sh
# modified: Utilities/nifti/Testing/nifti_regress_test/commands/c06.add.ext
# modified: Utilities/nifti/fsliolib/imcp
# modified: Utilities/nifti/fsliolib/imglob
# modified: Utilities/nifti/fsliolib/imln
# modified: Utilities/nifti/fsliolib/immv
# modified: Utilities/nifti/fsliolib/imrm
# modified: Utilities/nifti/fsliolib/imtest
# modified: Utilities/nifti/fsliolib/remove_ext
# modified: Utilities/vxl/config/cmake/DSPTemplates/mex/configure
# modified: Utilities/vxl/config/cmake/DSPTemplates/mex/install-sh
# modified: Utilities/vxl/v3p/netlib/libf2c/comptry.bat
# modified: Utilities/vxl/v3p/netlib/libf2c/scomptry.bat
# modified: Utilities/vxl/vcl/generic/zap.pl
# modified: Utilities/vxl/vcl/iso/generate.sh
# modified: Validation/StatisticalClustering/Code/BrainWeb.experiment.sh
# modified: Validation/StatisticalClustering/Code/IBSR.experiment.sh
# modified: Wrapping/CSwig/BasicFiltersA/MakeConsistentWrappedClasses.sh
# modified: Wrapping/CSwig/Tcl/itkwish
# modified: Wrapping/CSwig/pythonfiles.sh.in
# modified: Wrapping/WrapITK/Python/Tests/extras.py
# modified: Wrapping/WrapITK/Python/Tests/filterCoverage.py
# modified: Wrapping/WrapITK/Python/Tests/findSegfaults.py
# modified: Wrapping/WrapITK/Python/Tests/getNameOfClass.py
# modified: Wrapping/WrapITK/Python/Tests/module2module.py
# modified: Wrapping/WrapITK/Python/Tests/simple_pipeline.py
# modified: Wrapping/WrapITK/Python/Tests/template.py
# modified: Wrapping/WrapITK/Python/Tests/typemaps.py
# modified: Wrapping/WrapITK/Tcl/itkwish.in
#
no changes added to commit (use "git add" and/or "git commit -a")

Tuesday, September 7, 2010

getting webex to work on debian lenny 64 bits

answer:

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

error: Untracked working tree file

$ git pull --rebase
First, rewinding head to replay your work on top of it...
error: Untracked working tree file 'Utilities/gdcm/Utilities/gdcmjpeg/Jfif.txt' would be overwritten by merge.
could not detach HEAD


git reset --hard
git reset --hard ORIG_HEAD
git reset --soft HEAD^
git reset --hard
git checkout -f master
git clean -n -d
git clean -d Utilities/gdcm/Source/InformationObjectDefinition/Part3.xml
git clean -f -d Utilities/gdcm/Source/InformationObjectDefinition/Part3.xml
git clean -f -d Utilities/gdcm/Source/MediaStorageAndFileFormat/TODO.txt
git clean -f -d Utilities/gdcm/TODO
git clean -f -d Utilities/gdcm/Utilities/gdcmjpeg/Jfif.txt
git clean -f -d Utilities/gdcm/Utilities/gdcmjpeg/install.doc
git clean -f -d Utilities/gdcm/Utilities/gdcmjpeg/libjpeg.doc
git clean -f -d Utilities/gdcm/Utilities/gdcmjpeg/usage.doc
git rebase --skip

Monday, September 6, 2010

pwc: isoc_init() submit_urb 1 failed with error -28

I was getting weird messages in dmesg when using my webcam and skype:

[33436.084317] pwc: Philips PCVC730K (ToUCam Fun)/PCVC830 (ToUCam II) USB webcam detected.
[33436.576534] pwc: Registered as /dev/video0.
[33436.578372] input: PWC snapshot button as /devices/pci0000:00/0000:00:1a.1/usb2/2-1/input/input16
[33453.856189] usb 2-2: new full speed USB device using uhci_hcd and address 8
[33454.081814] usb 2-2: New USB device found, idVendor=047f, idProduct=0ca1
[33454.081822] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[33454.081828] usb 2-2: Product: Plantronics Headset
[33454.081833] usb 2-2: Manufacturer: Plantronics
[33454.081838] usb 2-2: SerialNumber: 00500-0429034410003-V060000A
[33454.082045] usb 2-2: configuration #1 chosen from 1 choice
[33454.184941] input: Plantronics Plantronics Headset as /devices/pci0000:00/0000:00:1a.1/usb2/2-2/2-2:1.3/input/input17
[33454.185190] generic-usb 0003:047F:0CA1.0003: input,hidraw0: USB HID v1.00 Device [Plantronics Plantronics Headset] on usb-0000:00:1a.1-2/input3
[35364.690746] pwc: isoc_init() submit_urb 0 failed with error -28
[35364.690754] pwc: isoc_init() submit_urb 1 failed with error -28
[35364.871851] pwc: isoc_init() submit_urb 0 failed with error -28
[35364.871861] pwc: isoc_init() submit_urb 1 failed with error -28
[35365.033814] pwc: isoc_init() submit_urb 0 failed with error -28
[35365.033833] pwc: isoc_init() submit_urb 1 failed with error -28
[35365.213861] pwc: isoc_init() submit_urb 0 failed with error -28
[35365.213873] pwc: isoc_init() submit_urb 1 failed with error -28
[35523.151863] pwc: isoc_init() submit_urb 0 failed with error -28
[35523.151871] pwc: isoc_init() submit_urb 1 failed with error -28
[35528.483086] pwc: isoc_init() submit_urb 0 failed with error -28
[35528.483105] pwc: isoc_init() submit_urb 1 failed with error -28


The solution I found was simply:

setpwc -c 3

$ setpwc -p
setpwc v1.2, (C) 2003-2006 by folkert@vanheusden.com
Current device: Philips 730 webcam
VIDIOCPWCPROBE returns: Philips 730 webcam - 730
Serial number: 0169000099000000
Resolution (x, y): 320, 240
Offset: 0, 0
Framerate: 10
Brightness: 32256
Hue: 65535
Colour: 32441
Contrast: 32768
Whiteness: 32768
Palette: YUV 4:2:0 Planar
Compression preference: 3
Automatic gain control: -23770
Whitebalance mode: auto
Blinking of LED is not supported by the combination
of your webcam and the driver.
Sharpness: -1
Backlight compensation mode: off
Anti-flicker mode: off
Noise reduction mode: 1
Pan/tilt range is not supported by the combination
of your webcam and the driver.
Get pan/tilt position is not supported by the combination
of your webcam and the driver.


I take that back this seems to only fix the symptoms. A better solution will be:

http://www.lavrsen.dk/foswiki/bin/view/PWC/FrequentlyAskedQuestionsPWC#Applications_hang_when_the_camer

Applications hang when the camera is connected through a USB hub or active extension cable
Indications: dmesg shows an error message like this:
pwc isoc_init() submit_urb 0 failed with error -12
pwc isoc_init() submit_urb 1 failed with error -12

This could be due to a problem with the enhanced host controller interface (EHCI) driver, try using the universal driver instead. Check which usb controller driver you are using (this is assuming your drivers are modules):
lsmod | grep usbcore
You should see something like
usbcore 107384 6 uhci_hcd,pwc,snd_usb_audio,snd_usb_lib,usbhid
If your *_hcd driver is ehci_hcd you could try swapping it for the uhci_hcd by doing this (as root):
rmmod ehci_hcd && modprobe uhci_hcd
Try reconnecting the hub or extension cable, cross your fingers and fire up your favorite webcam application.


This also seems confirmed with:

http://lists.openwall.net/linux-kernel/2010/03/13/408

Friday, September 3, 2010

rmmod -f pwc

don't ever do that ! when reconnecting the usb webcam, I got:

Message from syslogd@dhcp-67-183 at Sep  3 17:25:05 ...
 kernel:[32033.949742] general protection fault: 0000 [#1] SMP

Message from syslogd@dhcp-67-183 at Sep  3 17:25:05 ...
 kernel:[32033.949746] last sysfs file: /sys/devices/pci0000:00/0000:00:1a.1/usb2/2-2/2-2:1.0/video4linux/video1/uevent

Message from syslogd@dhcp-67-183 at Sep  3 17:25:05 ...
 kernel:[32033.949850] Stack:

Message from syslogd@dhcp-67-183 at Sep  3 17:25:05 ...
 kernel:[32033.949860] Call Trace:

Message from syslogd@dhcp-67-183 at Sep  3 17:25:05 ...
 kernel:[32033.949888] Code: eb 39 48 8d 6b 08 48 89 ef e8 34 af 29 e0 48 c7 c7 20 62 f8 a0 e8 47 7d 37 e0 48 8b 03 31 db 48 8b 40 40 48 85 c0 74 13 4c 89 e7 <ff> d0 85 c0 89 c3 74 08 48 89 ef e8 6e ae 29 e0 89 d8 5b 5d 41

cdrom hall of horror

Trying to copy a cdrom from a macmini g4:

[  276.200659] cdrom: This disc doesn't have any tracks I recognize!
[  449.319874] hdb: command error: status=0x51 { DriveReady SeekComplete Error }
[  449.319886] hdb: command error: error=0x50 { LastFailedSense=0x05 }
[  449.319892] hdb: possibly failed opcode: 0xa0
[  449.322229] end_request: I/O error, dev hdb, sector 0
[  449.322239] Buffer I/O error on device hdb, logical block 0
[  449.322797] hdb: command error: status=0x51 { DriveReady SeekComplete Error }
[  449.322805] hdb: command error: error=0x50 { LastFailedSense=0x05 }
[  449.322811] hdb: possibly failed opcode: 0xa0
[  449.325165] end_request: I/O error, dev hdb, sector 0
[  449.325171] Buffer I/O error on device hdb, logical block 0
[  467.504752] attempt to access beyond end of device
[  467.504763] hdb: rw=0, want=68, limit=4
[  467.504770] isofs_fill_super: bread failed, dev=hdb, iso_blknum=16, block=16

Thursday, September 2, 2010

0001:10:12.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)

I finally found some time to finish setting up my macmini g4. The wireless is working thanks to b43 module:

[   20.478909] phy0: Selected rate control algorithm 'minstrel'
[   20.479976] Registered led device: b43-phy0::tx
[   20.495164] snd-aoa-fabric-layout: can use this codec
[   20.509480] Registered led device: b43-phy0::rx
[   20.521241] Registered led device: b43-phy0::radio
[   20.544612] Broadcom 43xx driver loaded [ Features: PMLS, Firmware-ID: FW13 ]
[   39.247346] loop: module loaded
[   39.568904] SCSI subsystem initialized
[   40.817292] Adding 1507320k swap on /dev/mapper/macminig4-swap_1.  Priority:-1 extents:1 across:1507320k
[   42.004386] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   42.120237] b43 ssb0:0: firmware: requesting b43/ucode5.fw
[   42.247622] b43 ssb0:0: firmware: requesting b43/pcm5.fw
[   42.275428] b43 ssb0:0: firmware: requesting b43/b0g0initvals5.fw
[   42.303721] b43 ssb0:0: firmware: requesting b43/b0g0bsinitvals5.fw
[   42.444230] b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
[   42.513304] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   45.728382] wlan0: deauthenticating from 22:22:91:55:b4:b4 by local choice (reason=3)
[   45.728550] wlan0: direct probe to AP 22:22:91:55:b4:b4 (try 1)
[   45.731249] wlan0: direct probe responded
[   45.731255] wlan0: authenticate with AP 22:22:91:55:b4:b4 (try 1)
[   45.732898] wlan0: authenticated
[   45.732918] wlan0: associate with AP 22:22:91:55:b4:b4 (try 1)
[   45.735164] wlan0: RX AssocResp from 22:22:91:55:b4:b4 (capab=0x411 status=0 aid=2)
[   45.735169] wlan0: associated
[   45.735895] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   55.159832] lp: driver loaded but no devices found
[   55.844212] wlan0: no IPv6 routers present

Wednesday, September 1, 2010

Sunday, August 29, 2010

CDROM issues continued (3)

And last but not least, let's try on a 2.6.26 kernel:

[ 2.894527] hda: TSSTcorp DVD+/-RW TS-L632H, ATAPI CD/DVD-ROM drive
[ 3.570555] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[ 3.576477] hda: UDMA/33 mode selected
[ 3.654373] hda: ATAPI 24X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache
[ 68.540929] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 68.540929] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 74.954821] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 74.954821] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 81.367947] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 81.367947] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 87.831755] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 87.831768] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 87.831785] hda: DMA disabled
[ 87.831820] hda: ide_intr: huh? expected NULL handler on exit
[ 87.880110] hda: ATAPI reset complete
[ 94.296130] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 94.296130] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 100.718518] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 100.718518] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 107.140043] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 107.140043] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 107.140043] hda: ide_intr: huh? expected NULL handler on exit
[ 107.189034] hda: ATAPI reset complete
[ 107.189929] end_request: I/O error, dev hda, sector 52232
[ 107.189929] Buffer I/O error on device hda, logical block 13058

[ 87.831755] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 87.831768] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 87.831776] ide: failed opcode was: unknown
[ 87.831785] hda: DMA disabled
[ 87.831820] hda: ide_intr: huh? expected NULL handler on exit
[ 87.880110] hda: ATAPI reset complete
[ 94.296130] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 94.296130] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 94.296130] ide: failed opcode was: unknown
[ 100.718518] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 100.718518] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 100.718518] ide: failed opcode was: unknown
[ 107.140043] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 107.140043] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 107.140043] ide: failed opcode was: unknown
[ 107.140043] hda: ide_intr: huh? expected NULL handler on exit
[ 107.189034] hda: ATAPI reset complete
[ 107.189929] end_request: I/O error, dev hda, sector 52232
[ 107.189929] Buffer I/O error on device hda, logical block 13058
[ 158.638538] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 158.638538] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 158.638538] ide: failed opcode was: unknown
[ 165.051933] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 165.051933] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 165.051933] ide: failed opcode was: unknown
[ 171.470541] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 171.470541] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 171.470541] ide: failed opcode was: unknown
[ 177.883469] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 177.883469] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 177.883469] ide: failed opcode was: unknown
[ 177.883469] hda: ide_intr: huh? expected NULL handler on exit
[ 177.930216] hda: ATAPI reset complete
[ 184.407701] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 184.407701] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 184.407701] ide: failed opcode was: unknown
[ 190.818317] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 190.818317] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 190.818317] ide: failed opcode was: unknown
[ 197.234275] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 197.234275] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 197.234275] ide: failed opcode was: unknown
[ 197.234275] hda: ide_intr: huh? expected NULL handler on exit
[ 197.281415] hda: ATAPI reset complete
[ 197.281455] end_request: I/O error, dev hda, sector 52232
[ 197.281455] Buffer I/O error on device hda, logical block 13058
[ 203.750607] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 203.750607] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 203.750607] ide: failed opcode was: unknown
[ 210.166259] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 210.166259] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 210.166259] ide: failed opcode was: unknown
[ 216.584419] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 216.584419] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 216.584419] ide: failed opcode was: unknown
[ 222.996571] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 222.996571] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 222.996571] ide: failed opcode was: unknown
[ 222.996571] hda: ide_intr: huh? expected NULL handler on exit
[ 223.045693] hda: ATAPI reset complete
[ 229.517745] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 229.517745] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 229.517745] ide: failed opcode was: unknown
[ 235.930494] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 235.930494] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 235.930494] ide: failed opcode was: unknown
[ 242.350137] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 242.350137] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 242.350137] ide: failed opcode was: unknown
[ 242.350137] hda: ide_intr: huh? expected NULL handler on exit
[ 242.396978] hda: ATAPI reset complete
[ 242.396978] end_request: I/O error, dev hda, sector 52232
[ 242.396978] Buffer I/O error on device hda, logical block 13058
[ 248.866872] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 248.866872] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 248.866872] ide: failed opcode was: unknown
[ 255.276325] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 255.276325] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 255.276325] ide: failed opcode was: unknown
[ 261.694523] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 261.694523] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 261.694523] ide: failed opcode was: unknown
[ 268.110361] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 268.110361] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 268.110361] ide: failed opcode was: unknown
[ 268.110361] hda: ide_intr: huh? expected NULL handler on exit
[ 268.159360] hda: ATAPI reset complete
[ 274.628009] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 274.628009] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 274.628009] ide: failed opcode was: unknown
[ 281.053299] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 281.053299] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 281.053299] ide: failed opcode was: unknown
[ 287.466803] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 287.466803] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 287.466803] ide: failed opcode was: unknown
[ 287.466803] hda: ide_intr: huh? expected NULL handler on exit
[ 287.512050] hda: ATAPI reset complete
[ 287.513049] end_request: I/O error, dev hda, sector 52232
[ 287.513159] Buffer I/O error on device hda, logical block 13058
[ 293.913999] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 293.913999] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 293.913999] ide: failed opcode was: unknown
[ 300.333884] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 300.333884] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 300.333884] ide: failed opcode was: unknown
[ 306.747007] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 306.747007] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 306.747007] ide: failed opcode was: unknown
[ 313.162273] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 313.162273] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 313.162273] ide: failed opcode was: unknown
[ 313.162273] hda: ide_intr: huh? expected NULL handler on exit
[ 313.210635] hda: ATAPI reset complete
[ 319.613191] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 319.613191] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 319.613191] ide: failed opcode was: unknown
[ 326.027742] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 326.027755] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 326.027762] ide: failed opcode was: unknown
[ 332.437543] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 332.437543] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 332.437543] ide: failed opcode was: unknown
[ 332.437543] hda: ide_intr: huh? expected NULL handler on exit
[ 332.484741] hda: ATAPI reset complete
[ 332.488306] end_request: I/O error, dev hda, sector 52232
[ 332.488306] Buffer I/O error on device hda, logical block 13058
[ 338.885902] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 338.885902] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 338.885902] ide: failed opcode was: unknown
[ 345.294652] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 345.294652] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 345.294652] ide: failed opcode was: unknown
[ 351.714020] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 351.714020] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 351.714020] ide: failed opcode was: unknown
[ 358.137733] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 358.137733] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 358.137733] ide: failed opcode was: unknown
[ 358.137733] hda: ide_intr: huh? expected NULL handler on exit
[ 358.184012] hda: ATAPI reset complete
[ 364.659168] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 364.659168] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 364.659168] ide: failed opcode was: unknown
[ 371.076186] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 371.076186] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 371.076186] ide: failed opcode was: unknown
[ 377.489537] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 377.489537] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 377.489537] ide: failed opcode was: unknown
[ 377.489537] hda: ide_intr: huh? expected NULL handler on exit
[ 377.537534] hda: ATAPI reset complete
[ 377.539175] end_request: I/O error, dev hda, sector 52232
[ 377.539285] Buffer I/O error on device hda, logical block 13058
[ 384.009554] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 384.009554] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 384.009554] ide: failed opcode was: unknown
[ 390.424616] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 390.424616] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 390.424616] ide: failed opcode was: unknown
[ 396.838799] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 396.838799] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 396.838799] ide: failed opcode was: unknown
[ 403.247601] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 403.247601] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 403.247601] ide: failed opcode was: unknown
[ 403.247601] hda: ide_intr: huh? expected NULL handler on exit
[ 403.298849] hda: ATAPI reset complete
[ 409.771459] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 409.771459] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 409.771459] ide: failed opcode was: unknown
[ 416.194910] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 416.194910] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 416.194910] ide: failed opcode was: unknown
[ 422.613719] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 422.613719] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 422.613719] ide: failed opcode was: unknown
[ 422.613719] hda: ide_intr: huh? expected NULL handler on exit
[ 422.664778] hda: ATAPI reset complete
[ 422.664752] end_request: I/O error, dev hda, sector 52232
[ 422.664752] Buffer I/O error on device hda, logical block 13058
[ 431.731609] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
[ 431.731609] hda: cdrom_decode_status: error=0x40 { LastFailedSense=0x04 }
[ 431.731609] ide: failed opcode was: unknown
[ 438.146648] hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }

Hum... I guess 2.6.32 is an improvement at least it did return at some point.

CDROM continued

Let's try on another machine with the same CD-ROM:

[ 84.611911] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 84.611918] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 84.611925] Info fld=0x3302, ILI
[ 84.611928] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 84.611937] end_request: I/O error, dev sr0, sector 52232
[ 84.611943] Buffer I/O error on device sr0, logical block 13058
[ 84.643826] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 84.643833] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 84.643839] Info fld=0x3302, ILI
[ 84.643842] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 84.643850] end_request: I/O error, dev sr0, sector 52232
[ 84.643855] Buffer I/O error on device sr0, logical block 13058
[ 84.675548] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 84.675555] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 84.675562] Info fld=0x3302, ILI
[ 84.675565] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 84.675574] end_request: I/O error, dev sr0, sector 52232
[ 84.675581] Buffer I/O error on device sr0, logical block 13058
[ 84.707171] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 84.707177] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 84.707184] Info fld=0x3302, ILI
[ 84.707187] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 84.707195] end_request: I/O error, dev sr0, sector 52232
[ 84.707201] Buffer I/O error on device sr0, logical block 13058
[ 84.738352] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 84.738359] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 84.738365] Info fld=0x3302, ILI
[ 84.738368] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 84.738377] end_request: I/O error, dev sr0, sector 52232
[ 84.738383] Buffer I/O error on device sr0, logical block 13058
[ 84.769564] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 84.769570] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 84.769577] Info fld=0x3302, ILI
[ 84.769579] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 84.769587] end_request: I/O error, dev sr0, sector 52232
[ 84.769593] Buffer I/O error on device sr0, logical block 13058
[ 84.800483] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 84.800489] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 84.800496] Info fld=0x3302, ILI
[ 84.800499] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 84.800515] end_request: I/O error, dev sr0, sector 52232
[ 84.800521] Buffer I/O error on device sr0, logical block 13058
[ 84.936257] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 84.936263] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 84.936270] Info fld=0x3301, ILI
[ 84.936273] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 84.936281] end_request: I/O error, dev sr0, sector 52224
[ 84.936286] Buffer I/O error on device sr0, logical block 13056
[ 84.936290] Buffer I/O error on device sr0, logical block 13057
[ 84.941214] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 84.941221] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 84.941227] Info fld=0x3302, ILI
[ 84.941230] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 84.941238] end_request: I/O error, dev sr0, sector 52232
[ 84.941243] Buffer I/O error on device sr0, logical block 13058
[ 84.945967] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 84.945973] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 84.945979] Info fld=0x3302, ILI
[ 84.945982] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 84.945990] end_request: I/O error, dev sr0, sector 52232

$ apt-cache policy linux-image-2.6.30-2-amd64
linux-image-2.6.30-2-amd64:
Installed: 2.6.30-8
Candidate: 2.6.30-8
Version table:
*** 2.6.30-8 0
100 /var/lib/dpkg/status
$ sudo hdparm -I /dev/sr0

/dev/sr0:

ATAPI CD-ROM, with removable media
Model Number: HL-DT-ST DVD-RAM GH10L
Serial Number: M00822A2333
Firmware Revision: FC09
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5
Standards:
Likely used CD-ROM ATAPI-1
Configuration:
DRQ response: 50us.
Packet size: 12 bytes
Capabilities:
LBA, IORDY(can be disabled)
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* PACKET command feature set
* DEVICE_RESET command
* NOP cmd
Removable Media Status Notification feature set
* SATA-I signaling speed (1.5Gb/s)
* Phy event counters
* Software settings preservation

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 !

Wednesday, August 18, 2010

zsh: Input/output error: /bin/su

I was trying to login on a remote machine using ssh. Here is what I was getting:

$ ssh nas
Linux dhcp-67-184 2.6.32-bpo.3-amd64 #1 SMP Mon Mar 15 13:49:35 UTC 2010 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have new mail.
Last login: Mon Aug 16 16:43:07 2010 from dhcp-67-216.isc.ens-lyon.fr
/usr/bin/X11/xauth: error in locking authority file /home/mpiuser/.Xauthority

$ ls
/bin/ls: cannot access 2: Permission denied
/bin/ls: cannot access l1: Permission denied

$ /bin/su
zsh: Input/output error: /bin/su

After a reboot it looked like reiserfs was lost


[ 27.720130] i801_smbus 0000:00:1f.3: PCI INT C -> GSI 20 (level, low) -> IRQ 20
[ 401.812703] REISERFS (device dm-1): Removing [208 28805 0x0 SD]..done
[ 401.812794] REISERFS (device dm-1): Removing [208 28720 0x0 SD]..done
[ 401.812840] REISERFS (device dm-1): Removing [208 28666 0x0 SD]..done
[ 401.830679] REISERFS (device dm-1): Removing [4 25190 0x0 SD]..done
[ 401.851085] REISERFS (device dm-1): Removing [147 12708 0x0 SD]..done
[ 401.851348] REISERFS (device dm-1): Removing [3999 10729 0x0 SD]..done
[ 401.870350] REISERFS (device dm-1): Removing [163 10652 0x0 SD]..done
[ 401.870437] REISERFS (device dm-1): Removing [163 10651 0x0 SD]..done
[ 401.870487] REISERFS (device dm-1): Removing [163 10649 0x0 SD]..done
[ 401.893311] REISERFS (device dm-1): Removing [163 10647 0x0 SD]..done
[ 401.893442] REISERFS (device dm-1): Removing [163 10645 0x0 SD]..done
[ 401.893485] REISERFS (device dm-1): Removing [163 10644 0x0 SD]..done
[ 401.894101] REISERFS (device dm-1): Removing [163 10643 0x0 SD]..done
[ 401.894360] REISERFS (device dm-1): Removing [163 10642 0x0 SD]..done
[ 401.894399] REISERFS (device dm-1): Removing [163 10639 0x0 SD]..done
[ 401.894441] REISERFS (device dm-1): Removing [163 10634 0x0 SD]..done
[ 401.894486] REISERFS (device dm-1): Removing [163 10633 0x0 SD]..done
[ 401.894527] REISERFS (device dm-1): Removing [163 10630 0x0 SD]..done
[ 401.894569] REISERFS (device dm-1): Removing [163 10627 0x0 SD]..done
[ 401.894619] REISERFS (device dm-1): There were 19 uncompleted unlinks/truncates. Completed
[ 402.415653] loop: module loaded

Friday, August 13, 2010

partman-reiserfs, is now priority extra !

reiserfs (optional; not available on all architectures)

Support for the Reiser file system is no longer available by default. When the installer is running at medium or low debconf priority it can be enabled by selecting the partman-reiserfs component. Only version 3 of the file system is supported.

Ref: http://www.debian.org/releases/testing/i386/ch06s03.html.en#di-partition

Wednesday, August 11, 2010

paraview 3.8.1 packaging for debian

I am working on paraview packaging, I think I am pretty close, but still I do not know how to fix this one:

dh_pysupport -pparaview
chmod a-x /home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/usr/share/pyshared/paraview/*.py
chmod a-x /home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/usr/share/pyshared/paraview/vtk/*.py
rm -r debian/paraview/usr/lib/paraview/doc
dh_strip -pparaview
dh_compress -pparaview -X .adp -X .pdf
dh_fixperms -pparaview
dh_makeshlibs -pparaview -n
dh_installdeb -pparaview
dh_perl -pparaview
dh_shlibdeps -pparaview -l/home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/usr/lib/paraview -l/home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/usr/lib/python/site-packages/paraview/python/
dpkg-shlibdeps: warning: couldn't find library libpqComponents.so needed by debian/paraview/usr/lib/paraview/libpqApplicationComponents.so (its RPATH is '').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dpkg-shlibdeps: warning: couldn't find library libQtPython.so needed by debian/paraview/usr/lib/paraview/libpqApplicationComponents.so (its RPATH is '').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dpkg-shlibdeps: warning: couldn't find library libpqCore.so needed by debian/paraview/usr/lib/paraview/libpqApplicationComponents.so (its RPATH is '').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dpkg-shlibdeps: warning: couldn't find library libQtTesting.so needed by debian/paraview/usr/lib/paraview/libpqApplicationComponents.so (its RPATH is '').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dpkg-shlibdeps: warning: couldn't find library libpqWidgets.so needed by debian/paraview/usr/lib/paraview/libpqApplicationComponents.so (its RPATH is '').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dpkg-shlibdeps: warning: couldn't find library libvtkPVServerManagerPythonD.so needed by debian/paraview/usr/lib/paraview/libpqApplicationComponents.so (its RPATH is '').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dpkg-shlibdeps: warning: couldn't find library libvtkPVServerCommonPythonD.so needed by debian/paraview/usr/lib/paraview/libpqApplicationComponents.so (its RPATH is '').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dpkg-shlibdeps: failure: couldn't find library libvtkIOPythonD.so.pv3.8 needed by debian/paraview/usr/lib/paraview/libpqApplicationComponents.so (its RPATH is '').
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to set LD_LIBRARY_PATH.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/paraview.substvars debian/paraview/usr/bin/pvbatch debian/paraview/usr/bin/kwProcessXML debian/paraview/usr/bin/vtkWrapClientServer debian/paraview/usr/bin/paraview debian/paraview/usr/bin/pvpython debian/paraview/usr/bin/pvrenderserver debian/paraview/usr/bin/pvserver debian/paraview/usr/bin/pvdataserver debian/paraview/usr/lib/paraview/libQVTK.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkPVCommandOptions.so debian/paraview/usr/lib/paraview/pvbatch debian/paraview/usr/lib/paraview/libvtkImagingPython.so debian/paraview/usr/lib/paraview/libvtkexoIIc.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkFilteringPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkIOCS.so debian/paraview/usr/lib/paraview/libvtkGraphicsCS.so debian/paraview/usr/lib/paraview/kwProcessXML-real debian/paraview/usr/lib/paraview/libvtkPVServerCommonCS.so debian/paraview/usr/lib/paraview/libvtkVolumeRenderingPython.so debian/paraview/usr/lib/paraview/libvtkPVServerCommonPython.so debian/paraview/usr/lib/paraview/libvtkIOPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkRenderingPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkInfovisCS.so debian/paraview/usr/lib/paraview/libvtkPVServerManagerPythonD.so debian/paraview/usr/lib/paraview/libvtkInfovisPython.so debian/paraview/usr/lib/paraview/libNIfTIReader.so debian/paraview/usr/lib/paraview/libvtkQtChart.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkFiltering.so.pv3.8 debian/paraview/usr/lib/paraview/libSurfaceLIC.so debian/paraview/usr/lib/paraview/libpqCore.so debian/paraview/usr/lib/paraview/libvtkGraphicsPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/libicet_mpi.so debian/paraview/usr/lib/paraview/libvtkCommonPython.so debian/paraview/usr/lib/paraview/libvtkCharts.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkWidgetsPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkViewsPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/libQtTesting.so debian/paraview/usr/lib/paraview/libvtkRenderingPython.so debian/paraview/usr/lib/paraview/libNIfTIWriter.so debian/paraview/usr/lib/paraview/libvtkPVFiltersCS.so debian/paraview/usr/lib/paraview/smTestDriver debian/paraview/usr/lib/paraview/libicet_strategies.so debian/paraview/usr/lib/paraview/libvtkImaging.so.pv3.8 debian/paraview/usr/lib/paraview/libMapReduceMPI.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkPVPython.so debian/paraview/usr/lib/paraview/libvtkImagingCS.so debian/paraview/usr/lib/paraview/libvtkNetCDF.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkPVServerCommonPythonD.so debian/paraview/usr/lib/paraview/libvtkPVFiltersPythonD.so debian/paraview/usr/lib/paraview/libvtkGeovisPython.so debian/paraview/usr/lib/paraview/paraview debian/paraview/usr/lib/paraview/sqldrivers/libqsqlite.so debian/paraview/usr/lib/paraview/sqldrivers/libqsqlmysql.so debian/paraview/usr/lib/paraview/libVPIC.so debian/paraview/usr/lib/paraview/libvtkViewsPython.so debian/paraview/usr/lib/paraview/libvtksqlite.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkproj4.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkImagingPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/pvpython debian/paraview/usr/lib/paraview/libvtkGenericFilteringPython.so debian/paraview/usr/lib/paraview/libvtkVolumeRendering.so.pv3.8 debian/paraview/usr/lib/paraview/pvrenderserver debian/paraview/usr/lib/paraview/pvserver debian/paraview/usr/lib/paraview/libvtkViewsCS.so debian/paraview/usr/lib/paraview/libicet.so debian/paraview/usr/lib/paraview/libvtkWidgetsPython.so debian/paraview/usr/lib/paraview/libvtksys.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkDICOMParser.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkmetaio.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkGeovisPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/libpqApplicationComponents.so debian/paraview/usr/lib/paraview/libvtkInfovis.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkIOPython.so debian/paraview/usr/lib/paraview/libvtkPVServerCommon.so debian/paraview/usr/lib/paraview/libpqWidgets.so debian/paraview/usr/lib/paraview/libvtkClientServer.so debian/paraview/usr/lib/paraview/libvtkXdmfCS.so debian/paraview/usr/lib/paraview/libvtkGraphicsPython.so debian/paraview/usr/lib/paraview/libvtkCommonPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkVolumeRenderingPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkXdmf.so debian/paraview/usr/lib/paraview/libvtkCommon.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkVolumeRenderingCS.so debian/paraview/usr/lib/paraview/libvtkRendering.so.pv3.8 debian/paraview/usr/lib/paraview/MPIPython.so debian/paraview/usr/lib/paraview/libvtkalglib.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkHybridPython.so debian/paraview/usr/lib/paraview/libvtkParallelPython.so debian/paraview/usr/lib/paraview/libAnalyzeReader.so debian/paraview/usr/lib/paraview/libvtkPVServerManagerPython.so debian/paraview/usr/lib/paraview/libvtkFilteringCS.so debian/paraview/usr/lib/paraview/libvtkGeovis.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkParallelCS.so debian/paraview/usr/lib/paraview/libvtkHybridPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/pvdataserver debian/paraview/usr/lib/paraview/libvtkChartsPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkViews.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkPVFilters.so debian/paraview/usr/lib/paraview/libvtkGenericFiltering.so.pv3.8 debian/paraview/usr/lib/paraview/libAnalyzeWriter.so debian/paraview/usr/lib/paraview/libvtkXdmfPython.so debian/paraview/usr/lib/paraview/libvtkPVServerManager.so debian/paraview/usr/lib/paraview/libvtkWidgets.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkftgl.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkCommonCS.so debian/paraview/usr/lib/paraview/libvtkInfovisPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/libKWCommon.so debian/paraview/usr/lib/paraview/libpqComponents.so debian/paraview/usr/lib/paraview/libvtkIO.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkWidgetsCS.so debian/paraview/usr/lib/paraview/libvtkGenericFilteringCS.so debian/paraview/usr/lib/paraview/libvtkPVFiltersPython.so debian/paraview/usr/lib/paraview/libH5PartReader.so debian/paraview/usr/lib/paraview/libvtkGraphics.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkHybridCS.so debian/paraview/usr/lib/paraview/libvtkGenericFilteringPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/libCosmo.so debian/paraview/usr/lib/paraview/libvtkRenderingCS.so debian/paraview/usr/lib/paraview/libSierraPlotTools.so debian/paraview/usr/lib/paraview/libvtkFilteringPython.so debian/paraview/usr/lib/paraview/libvtkHybrid.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkParallel.so.pv3.8 debian/paraview/usr/lib/paraview/libvtkPVPythonInterpretor.so debian/paraview/usr/lib/paraview/libvtkChartsPython.so debian/paraview/usr/lib/paraview/libQtPython.so debian/paraview/usr/lib/paraview/libvtkParallelPythonD.so.pv3.8 debian/paraview/usr/lib/paraview/libXdmf.so debian/paraview/usr/lib/paraview/libvtkverdict.so.pv3.8 returned exit code 2
make: *** [binary-predeb-IMPL/paraview] Error 9
dpkg-buildpackage: failure: fakeroot debian/rules binary gave error exit status 2


once I pass this one, I need to figure out how to fix this one:

-- Installing: /home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/lib/paraview/libH5PartReader.so
-- Installing: /home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/lib/paraview/libAnalyzeReader.so
-- Installing: /home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/lib/paraview/libAnalyzeWriter.so
-- Installing: /home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/lib/paraview/libNIfTIReader.so
-- Installing: /home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/lib/paraview/libNIfTIWriter.so
-- Installing: /home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/usr/bin/paraview
-- Installing: /home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/lib/paraview/paraview
-- !!!!Installing /usr//lib/paraview/libQtCore.so
tar: libQtCore.so.4.6.3: Cannot open: Permission denied
tar: libQtCore.so.4.6: Cannot create symlink to `libQtCore.so.4.6.3': Permission denied
tar: libQtCore.so.4: Cannot create symlink to `libQtCore.so.4.6.3': Permission denied
tar: libQtCore.so: Cannot create symlink to `libQtCore.so.4.6.3': Permission denied
tar: Error exit delayed from previous errors
-- !!!!Installing /usr//lib/paraview/libQtGui.so
tar: libQtGui.so.4.6.3: Cannot open: Permission denied
tar: libQtGui.so.4.6: Cannot create symlink to `libQtGui.so.4.6.3': Permission denied
tar: libQtGui.so.4: Cannot create symlink to `libQtGui.so.4.6.3': Permission denied
tar: libQtGui.so: Cannot create symlink to `libQtGui.so.4.6.3': Permission denied
tar: Error exit delayed from previous errors
-- !!!!Installing /usr//lib/paraview/libQtNetwork.so
tar: libQtNetwork.so.4.6: Cannot create symlink to `libQtNetwork.so.4.6.3': Permission denied
tar: libQtNetwork.so.4.6.3: Cannot open: Permission denied
tar: libQtNetwork.so.4: Cannot create symlink to `libQtNetwork.so.4.6.3': Permission denied
tar: libQtNetwork.so: Cannot create symlink to `libQtNetwork.so.4.6.3': Permission denied
tar: Error exit delayed from previous errors
-- !!!!Installing /usr//lib/paraview/libQtXml.so
tar: libQtXml.so.4.6.3: Cannot open: Permission denied
tar: libQtXml.so.4.6: Cannot create symlink to `libQtXml.so.4.6.3': Permission denied
tar: libQtXml.so.4: Cannot create symlink to `libQtXml.so.4.6.3': Permission denied
tar: libQtXml.so: Cannot create symlink to `libQtXml.so.4.6.3': Permission denied
tar: Error exit delayed from previous errors
-- !!!!Installing /usr//lib/paraview/libQtSql.so
tar: libQtSql.so.4.6: Cannot create symlink to `libQtSql.so.4.6.3': Permission denied
tar: libQtSql.so.4.6.3: Cannot open: Permission denied
tar: libQtSql.so.4: Cannot create symlink to `libQtSql.so.4.6.3': Permission denied
tar: libQtSql.so: Cannot create symlink to `libQtSql.so.4.6.3': Permission denied
tar: Error exit delayed from previous errors
-- !!!!Installing /usr//lib/paraview/libQtHelp.so
tar: libQtHelp.so.4.6: Cannot create symlink to `libQtHelp.so.4.6.3': Permission denied
tar: libQtHelp.so.4.6.3: Cannot open: Permission denied
tar: libQtHelp.so.4: Cannot create symlink to `libQtHelp.so.4.6.3': Permission denied
tar: libQtHelp.so: Cannot create symlink to `libQtHelp.so.4.6.3': Permission denied
tar: Error exit delayed from previous errors
-- !!!!Installing /usr//lib/paraview/libQtWebKit.so
tar: libQtWebKit.so.4.6.3: Cannot open: Permission denied
tar: libQtWebKit.so.4.6: Cannot create symlink to `libQtWebKit.so.4.6.3': Permission denied
tar: libQtWebKit.so.4: Cannot create symlink to `libQtWebKit.so.4.6.3': Permission denied
tar: libQtWebKit.so: Cannot create symlink to `libQtWebKit.so.4.6.3': Permission denied
tar: Error exit delayed from previous errors
-- !!!!Installing /usr//lib/paraview/libQtCLucene.so
tar: libQtCLucene.so.4.6.3: Cannot open: Permission denied
tar: libQtCLucene.so.4.6: Cannot create symlink to `libQtCLucene.so.4.6.3': Permission denied
tar: libQtCLucene.so.4: Cannot create symlink to `libQtCLucene.so.4.6.3': Permission denied
tar: libQtCLucene.so: Cannot create symlink to `libQtCLucene.so.4.6.3': Permission denied
tar: Error exit delayed from previous errors
-- !!!!Installing /usr//lib/paraview/libphonon.so
tar: libphonon.so.4.4.0: Cannot open: Permission denied
tar: libphonon.so.4: Cannot create symlink to `libphonon.so.4.4.0': Permission denied
tar: libphonon.so: Cannot create symlink to `libphonon.so.4': Permission denied
tar: Error exit delayed from previous errors
-- !!!!Installing /usr//lib/paraview/libQtXmlPatterns.so
tar: libQtXmlPatterns.so.4.6: Cannot create symlink to `libQtXmlPatterns.so.4.6.3': Permission denied
tar: libQtXmlPatterns.so.4.6.3: Cannot open: Permission denied
tar: libQtXmlPatterns.so.4: Cannot create symlink to `libQtXmlPatterns.so.4.6.3': Permission denied
tar: libQtXmlPatterns.so: Cannot create symlink to `libQtXmlPatterns.so.4.6.3': Permission denied
tar: Error exit delayed from previous errors
-- !!!!Installing /usr//lib/paraview/libQtDBus.so
tar: libQtDBus.so.4.6.3: Cannot open: Permission denied
tar: libQtDBus.so.4.6: Cannot create symlink to `libQtDBus.so.4.6.3': Permission denied
tar: libQtDBus.so.4: Cannot create symlink to `libQtDBus.so.4.6.3': Permission denied
tar: libQtDBus.so: Cannot create symlink to `libQtDBus.so.4.6.3': Permission denied
tar: Error exit delayed from previous errors
-- Installing: /home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/lib/paraview/sqldrivers
-- Installing: /home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/lib/paraview/sqldrivers/libqsqlmysql.so
-- Installing: /home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/lib/paraview/sqldrivers/libqsqlite.so
-- Installing libavcodec.so
tar: libavcodec.so.52.20.1: Cannot open: Permission denied
tar: libavcodec.so.52: Cannot create symlink to `libavcodec.so.52.20.1': Permission denied
tar: libavcodec.so: Cannot create symlink to `libavcodec.so.52.20.1': Permission denied
tar: Error exit delayed from previous errors
-- Installing libavformat.so
tar: libavformat.so.52.31.0: Cannot open: Permission denied
tar: libavformat.so.52: Cannot create symlink to `libavformat.so.52.31.0': Permission denied
tar: libavformat.so: Cannot create symlink to `libavformat.so.52.31.0': Permission denied
tar: Error exit delayed from previous errors
-- Installing libavutil.so
tar: libavutil.so.49: Cannot create symlink to `libavutil.so.49.15.0': Permission denied
tar: libavutil.so.49.15.0: Cannot open: Permission denied
tar: libavutil.so: Cannot create symlink to `libavutil.so.49.15.0': Permission denied
tar: Error exit delayed from previous errors
-- Installing libswscale.so
tar: libswscale.so.0: Cannot create symlink to `libswscale.so.0.7.1': Permission denied
tar: libswscale.so.0.7.1: Cannot open: Permission denied
tar: libswscale.so: Cannot create symlink to `libswscale.so.0.7.1': Permission denied
tar: Error exit delayed from previous errors
-- Installing: /home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/debian/paraview/lib/paraview/.plugins
make[1]: Leaving directory `/home/mathieu/debian/debian-science/packages/paraview/trunk/ParaView-3.8.1/obj-x86_64-linux-gnu'

Monday, August 9, 2010

BCM4306 802.11b/g Wireless LAN Controller

[ 2867.512848] firmware: requesting b43/ucode5.fw
[ 2867.533778] b43-phy0 ERROR: Firmware file "b43/ucode5.fw" not found or load failed.
[ 2867.533790] b43-phy0 ERROR: You must go to http://linuxwireless.org/en/users/Drivers/b43#devicefirmware and download the latest firmware (version 4).

If you see this, simply follow instructions from:

http://wiki.debian.org/bcm43xx#b43andb43legacy

$ sudo aptitude install b43-fwcutter wireless-tools
$ sudo modprobe b4

You should then see in dmesg:

[ 2989.676732] input: b43-phy0 as /class/input/input43
[ 2989.712889] firmware: requesting b43/ucode5.fw
[ 2989.782452] firmware: requesting b43/pcm5.fw
[ 2989.833275] firmware: requesting b43/b0g0initvals5.fw
[ 2989.889185] firmware: requesting b43/b0g0bsinitvals5.fw
[ 2990.092695] b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
[ 2992.174225] Registered led device: b43-phy0::tx
[ 2992.174256] Registered led device: b43-phy0::rx
[ 2992.174282] Registered led device: b43-phy0::radio
[ 2992.225487] ADDRCONF(NETDEV_UP): wlan0: link is not ready

sudo lsusb -d 05ac:0205 -vvx

Bus 004 Device 003: ID 05ac:0205 Apple, Inc. Extended Keyboard [Mitsumi]
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x05ac Apple, Inc.
  idProduct          0x0205 Extended Keyboard [Mitsumi]
  bcdDevice            1.22
  iManufacturer           1 Mitsumi Electric
  iProduct                3 Apple Extended USB Keyboard
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           59
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower               50mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode           13 International (ISO)
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      65
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode           13 International (ISO)
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     110
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval             255
Device Status:     0x0000
  (Bus Powered)

cat /proc/cpuinfo

processor : 0
cpu  : 7447A, altivec supported
clock  : 1416.666661MHz
revision : 0.2 (pvr 8003 0102)
bogomips : 83.20
timebase : 41620997
platform : PowerMac
model  : PowerMac10,1
machine  : PowerMac10,1
motherboard : PowerMac10,1 MacRISC3 Power Macintosh 
detected as : 287 (Mac mini)
pmac flags : 00000010
L2 cache : 512K unified
pmac-generation : NewWorld

First steps on my mac mini g4

$ sudo lshw
macminig4
    description: Computer
    product: Mac mini
    vendor: Copyright 1983-2004 Apple Computer, Inc. All Rights Reserved
    serial: TYXYM5306NSTYX
    width: 32 bits
  *-core
       description: Motherboard
       physical id: 0
       clock: 166MHz
       capabilities: powermac10_1 macrisc3 power_macintosh
     *-firmware
          product: OpenFirmware 3
          physical id: 0
          logical name: /proc/device-tree
          capabilities: bootinfo
     *-memory
          description: System memory
          physical id: 1
          size: 512MiB
        *-bank
             description: DDR SDRAM
             product: PC3200U-30330
             physical id: 0
             version: 2000,05 27,09
             serial: M1U51264DS8HC3G-5T
             slot: DIMM0/J11
             size: 512MiB
     *-cpu
          description: CPU
          product: 7447A, altivec supported
          physical id: 2
          bus info: cpu@0
          version: 0.2 (pvr 8003 0102)
          size: 1416MHz
          clock: 166MHz
          capabilities: altivec performance-monitor
        *-cache:0
             description: L1 Cache
             physical id: 0
             size: 32KiB
        *-cache:1
             description: L2 Cache (unified)
             physical id: 1
             size: 512KiB
             clock: 1416MHz (0.7ns)
     *-pci:0
          description: Host bridge
          product: UniNorth 2 AGP
          vendor: Apple Computer Inc.
          physical id: 100
          bus info: pci@0000:00:0b.0
          version: 00
          width: 32 bits
          clock: 66MHz
          configuration: driver=agpgart-uninorth latency=16 module=uninorth_agp
        *-display
             description: VGA compatible controller
             product: RV280 [Radeon 9200]
             vendor: ATI Technologies Inc
             physical id: 10
             bus info: pci@0000:00:10.0
             version: 01
             width: 32 bits
             clock: 66MHz
             capabilities: agp agp-2.0 pm vga_controller bus_master cap_list
             configuration: driver=radeonfb latency=255 mingnt=8 module=radeonfb
     *-pci:1
          description: Host bridge
          product: UniNorth 2 PCI
          vendor: Apple Computer Inc.
          physical id: 101
          bus info: pci@0001:10:0b.0
          version: 00
          width: 32 bits
          clock: 66MHz
          configuration: latency=16
        *-network
             description: Network controller
             product: BCM4306 802.11b/g Wireless LAN Controller
             vendor: Broadcom Corporation
             physical id: 12
             bus info: pci@0001:10:12.0
             version: 03
             width: 32 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: driver=b43-pci-bridge latency=16 module=ssb
        *-generic
             product: KeyLargo/Intrepid Mac I/O
             vendor: Apple Computer Inc.
             physical id: 17
             bus info: pci@0001:10:17.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master
             configuration: driver=macio latency=16
           *-ide
                description: IDE Channel 0
                physical id: 1
                bus info: ide@1
                logical name: ide1
                clock: 33MHz
        *-usb:0 UNCLAIMED
             description: USB Controller
             product: KeyLargo/Intrepid USB
             vendor: Apple Computer Inc.
             physical id: 18
             bus info: pci@0001:10:18.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: ohci
             configuration: latency=0 maxlatency=86 mingnt=3
        *-usb:1 UNCLAIMED
             description: USB Controller
             product: KeyLargo/Intrepid USB
             vendor: Apple Computer Inc.
             physical id: 19
             bus info: pci@0001:10:19.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: ohci
             configuration: latency=0 maxlatency=86 mingnt=3
        *-usb:2
             description: USB Controller
             product: KeyLargo/Intrepid USB
             vendor: Apple Computer Inc.
             physical id: 1a
             bus info: pci@0001:10:1a.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: ohci bus_master
             configuration: driver=ohci_hcd latency=16 maxlatency=86 mingnt=3 module=ohci_hcd
           *-usbhost
                product: OHCI Host Controller
                vendor: Linux 2.6.26-2-powerpc ohci_hcd
                physical id: 1
                bus info: usb@1
                logical name: usb1
                version: 2.06
                capabilities: usb-1.10
                configuration: driver=hub slots=2 speed=12.0MB/s
              *-usb
                   description: Keyboard
                   product: Bluetooth HCI MacBookPro (HID mode)
                   vendor: Apple, Inc.
                   physical id: 1
                   bus info: usb@1:1
                   version: 15.86
                   capabilities: usb-2.00
                   configuration: driver=usbhid maxpower=100mA speed=12.0MB/s
        *-usb:3
             description: USB Controller
             product: USB
             vendor: NEC Corporation
             physical id: 1b
             bus info: pci@0001:10:1b.0
             version: 43
             width: 32 bits
             clock: 33MHz
             capabilities: pm ohci bus_master cap_list
             configuration: driver=ohci_hcd latency=16 maxlatency=42 mingnt=1 module=ohci_hcd
           *-usbhost
                product: OHCI Host Controller
                vendor: Linux 2.6.26-2-powerpc ohci_hcd
                physical id: 1
                bus info: usb@2
                logical name: usb2
                version: 2.06
                capabilities: usb-1.10
                configuration: driver=hub slots=3 speed=12.0MB/s
              *-usb
                   description: USB hub
                   product: Hub in Apple Extended USB Keyboard
                   vendor: Mitsumi Electric
                   physical id: 1
                   bus info: usb@2:1
                   version: 1.22
                   capabilities: usb-1.10
                   configuration: driver=hub maxpower=50mA slots=3 speed=12.0MB/s
                 *-usb:0
                      description: Keyboard
                      product: Apple Extended USB Keyboard
                      vendor: Mitsumi Electric
                      physical id: 1
                      bus info: usb@2:1.1
                      version: 1.22
                      capabilities: usb-1.10
                      configuration: driver=usbhid maxpower=50mA speed=12.0MB/s
                 *-usb:1
                      description: Mouse
                      product: USB Optical Mouse
                      vendor: Primax Electronics, Ltd
                      physical id: 2
                      bus info: usb@2:1.2
                      version: 2.00
                      capabilities: usb-2.00
                      configuration: driver=usbhid maxpower=100mA speed=1.5MB/s
        *-usb:4
             description: USB Controller
             product: USB
             vendor: NEC Corporation
             physical id: 1b.1
             bus info: pci@0001:10:1b.1
             version: 43
             width: 32 bits
             clock: 33MHz
             capabilities: pm ohci bus_master cap_list
             configuration: driver=ohci_hcd latency=16 maxlatency=42 mingnt=1 module=ohci_hcd
           *-usbhost
                product: OHCI Host Controller
                vendor: Linux 2.6.26-2-powerpc ohci_hcd
                physical id: 1
                bus info: usb@3
                logical name: usb3
                version: 2.06
                capabilities: usb-1.10
                configuration: driver=hub slots=2 speed=12.0MB/s
        *-usb:5
             description: USB Controller
             product: USB 2.0
             vendor: NEC Corporation
             physical id: 1b.2
             bus info: pci@0001:10:1b.2
             version: 04
             width: 32 bits
             clock: 33MHz
             capabilities: pm ehci bus_master cap_list
             configuration: driver=ehci_hcd latency=16 maxlatency=34 mingnt=16 module=ehci_hcd
           *-usbhost
                product: EHCI Host Controller
                vendor: Linux 2.6.26-2-powerpc ehci_hcd
                physical id: 1
                bus info: usb@4
                logical name: usb4
                version: 2.06
                capabilities: usb-2.00
                configuration: driver=hub slots=5 speed=480.0MB/s
     *-pci:2
          description: Host bridge
          product: UniNorth 2 Internal PCI
          vendor: Apple Computer Inc.
          physical id: 102
          bus info: pci@0002:20:0b.0
          version: 00
          width: 32 bits
          clock: 66MHz
          configuration: latency=16
        *-generic
             product: UniNorth/Intrepid ATA/100
             vendor: Apple Computer Inc.
             physical id: d
             bus info: pci@0002:20:0d.0
             version: 00
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master
             configuration: driver=ide-pmac latency=32
           *-ide
                description: IDE Channel 0
                physical id: 0
                bus info: ide@0
                logical name: ide0
                clock: 33MHz
              *-disk
                   description: ATA Disk
                   product: ST9808210A
                   vendor: Seagate
                   physical id: 0
                   bus info: ide@0.0
                   logical name: /dev/hda
                   version: 3.04
                   serial: 3LF1QH95
                   size: 74GiB (80GB)
                   capacity: 74GiB (80GB)
                   capabilities: ata dma lba iordy smart security pm apm partitioned partitioned:mac
                   configuration: apm=off smart=on
                 *-volume:0
                      description: Apple partition map
                      physical id: 1
                      bus info: ide@0.0,1
                      logical name: /dev/hda1
                      capacity: 31KiB
                 *-volume:1
                      description: Apple Bootstrap
                      physical id: 2
                      bus info: ide@0.0,2
                      logical name: /dev/hda2
                      size: 974KiB
                      capacity: 977KiB
                      capabilities: bootable hfs initialized
                      configuration: created=2010-08-09 12:16:17 filesystem=hfs label=bootstrap modified=2010-08-09 12:16:18 state=clean
                 *-volume:2
                      description: Apple UNIX SVR2
                      vendor: Linux
                      physical id: 3
                      bus info: ide@0.0,3
                      logical name: /dev/hda3
                      logical name: /boot
                      version: 1.0
                      serial: 331213d0-516a-4ba3-9a9b-5711d7668919
                      size: 244MiB
                      capacity: 244MiB
                      capabilities: large_files huge_files recover ext2 initialized
                      configuration: filesystem=ext2 modified=2010-08-09 12:18:06 mount.fstype=ext2 mount.options=rw,errors=continue mounted=2010-08-09 12:18:06 state=mounted
                 *-volume:3
                      description: Linux LVM
                      physical id: 4
                      bus info: ide@0.0,4
                      logical name: /dev/hda4
                      serial: gAjmpy-CTY2-N9Us-3SCV-WZSS-j5nE-CqIWJ4
                      size: 74GiB
                      capacity: 74GiB
                      capabilities: multi lvm2
              *-cdrom
                   description: DVD writer
                   product: MATSHITADVD-R UJ-845C
                   physical id: 1
                   bus info: ide@0.1
                   logical name: /dev/hdb
                   version: DPP9
                   capabilities: packet atapi cdrom removable nonmagnetic dma lba iordy audio cd-r cd-rw dvd dvd-r
                   configuration: mode=udma4 status=open
        *-firewire
             description: FireWire (IEEE 1394)
             product: UniNorth 2 FireWire
             vendor: Apple Computer Inc.
             physical id: e
             bus info: pci@0002:20:0e.0
             version: 81
             width: 32 bits
             clock: 33MHz
             capabilities: pm ohci bus_master cap_list
             configuration: driver=ohci1394 latency=64 maxlatency=24 mingnt=12 module=ohci1394
        *-network
             description: Ethernet interface
             product: UniNorth 2 GMAC (Sun GEM)
             vendor: Apple Computer Inc.
             physical id: f
             bus info: pci@0002:20:0f.0
             logical name: eth0
             version: 80
             serial: 00:14:51:09:e1:34
             size: 100MB/s
             capacity: 100MB/s
             width: 32 bits
             clock: 66MHz
             capabilities: bus_master ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
             configuration: autonegotiation=on broadcast=yes driver=sungem driverversion=0.98 duplex=full ip=192.168.0.19 latency=16 link=yes maxlatency=64 mingnt=64 module=sungem multicast=yes port=MII speed=100MB/s
  *-network DISABLED
       description: Wireless interface
       physical id: 1
       logical name: wlan0
       serial: 00:11:24:a3:d8:ad
       capabilities: ethernet physical wireless
       configuration: broadcast=yes multicast=yes wireless=IEEE 802.11