Archive for August 2005

 
 

Still some USB problems with Gentoo 2.6.12-r9

Now, that my USB transfer speed issue with the Gentoo 2.6.12 Linux kernel is settled, I’m still having problems with my noname cardreader, which works perfectly with kernel 2.6.11.

Here is the dmesg-output, after my memory stick was plugged into the the USB-connector. This is how it should be (usb-storage already loaded during the boot process of the system.)

usb 1-6: new high speed USB device using ehci_hcd and address 8
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 8
usb-storage: waiting for device to settle before scanning
  Vendor: LEXAR     Model: JUMPDRIVE PRO     Rev: 0
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
sda: Write Protect is off
sda: Mode Sense: 6b 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
sda: Write Protect is off
sda: Mode Sense: 6b 00 00 00
sda: assuming drive cache: write through
 sda: sda1
Attached scsi removable disk sda at scsi4, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi4, channel 0, id 0, lun 0,  type 0
usb-storage: device scan complete

In particular notice the line, where “sda: sda1” is displayed. The partition on the stick is correctly recognized. And the following is the dmesg-output, once the cardreader was plugged in.

usb 1-6: new high speed USB device using ehci_hcd and address 7
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
  Vendor: ICSI      Model: CF Card           Rev: 1.1D
  Type:   Direct-Access                      ANSI SCSI revision: 00
Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi3, channel 0, id 0, lun 0,  type 0
  Vendor: ICSI      Model: MS Card           Rev: 1.1D
  Type:   Direct-Access                      ANSI SCSI revision: 00
Attached scsi removable disk sdb at scsi3, channel 0, id 0, lun 1
Attached scsi generic sg1 at scsi3, channel 0, id 0, lun 1,  type 0
  Vendor: ICSI      Model: SD Card           Rev: 1.1D
  Type:   Direct-Access                      ANSI SCSI revision: 00
Attached scsi removable disk sdc at scsi3, channel 0, id 0, lun 2
Attached scsi generic sg2 at scsi3, channel 0, id 0, lun 2,  type 0
  Vendor: ICSI      Model: SM Card           Rev: 1.1D
  Type:   Direct-Access                      ANSI SCSI revision: 00
Attached scsi removable disk sdd at scsi3, channel 0, id 0, lun 3
Attached scsi generic sg3 at scsi3, channel 0, id 0, lun 3,  type 0
usb-storage: device scan complete

There is no equivalent output for the partition, which should have been recognized. And now for the interesting bit. I unplugged the cardreader, removed the usb-storage-module with the command modprobe -r usb-storage and reinserted the cardreader.

usb 1-6: new high speed USB device using ehci_hcd and address 9
Initializing USB Mass Storage driver...
scsi5 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 9
usb-storage: waiting for device to settle before scanning
  Vendor: ICSI      Model: CF Card           Rev: 1.1D
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sda: 259584 512-byte hdwr sectors (133 MB)
sda: Write Protect is off
sda: Mode Sense: 43 00 00 08
sda: assuming drive cache: write through
SCSI device sda: 259584 512-byte hdwr sectors (133 MB)
sda: Write Protect is off
sda: Mode Sense: 43 00 00 08
sda: assuming drive cache: write through
 sda: sda1
Attached scsi removable disk sda at scsi5, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi5, channel 0, id 0, lun 0,  type 0
  Vendor: ICSI      Model: MS Card           Rev: 1.1D
  Type:   Direct-Access                      ANSI SCSI revision: 00
Attached scsi removable disk sdb at scsi5, channel 0, id 0, lun 1
Attached scsi generic sg1 at scsi5, channel 0, id 0, lun 1,  type 0
  Vendor: ICSI      Model: SD Card           Rev: 1.1D
  Type:   Direct-Access                      ANSI SCSI revision: 00
Attached scsi removable disk sdc at scsi5, channel 0, id 0, lun 2
Attached scsi generic sg2 at scsi5, channel 0, id 0, lun 2,  type 0
  Vendor: ICSI      Model: SM Card           Rev: 1.1D
  Type:   Direct-Access                      ANSI SCSI revision: 00
Attached scsi removable disk sdd at scsi5, channel 0, id 0, lun 3
Attached scsi generic sg3 at scsi5, channel 0, id 0, lun 3,  type 0
usb-storage: device scan complete

Here I’m seeing the correct recognition of the partition on the CF-card and I can perfectly mount the file system.

Not really satisfactory, but there is at least a workaround (reloading of usb-storage). Tomorrow I’m will retest this scenario on the PC in my company, which is a P4 with Intel chipset to see if the behaviour is different. Just for complettness sake, here is the lsusb -v output of the cardreader:

Bus 001 Device 009: ID 0dda:2001 Integrated Circuit Solution, Inc.
cannot get string descriptor 1, error = Broken pipe(32)
cannot get string descriptor 2, error = Broken pipe(32)
cannot get string descriptor 3, error = Broken pipe(32)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0dda Integrated Circuit Solution, Inc.
  idProduct          0x2001
  bcdDevice            1.1d
  iManufacturer           1
  iProduct                2
  iSerial                 3
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4
    bmAttributes         0x80
    MaxPower              500mA
cannot get string descriptor 5, error = Broken pipe(32)
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize        512
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize        512
        bInterval               0
  Language IDs: (length=4)
     0409 English(US)

Successfully updated to WordPress 1.5.2

WordPress 1.5.2 was just released and I successfully updated to this version, but I did the update with a self created patch file. I unpacked the WP 1.5.1.3 and 1.5.2 into two directories and created a patch file by running the command “diff -b -w -u -r <wp-1.5.13-dir> <wp-1.5.2-dir>“. This file was created by the process.

Since I’m fortunate enough to have SSH access to my web site, I was able to quickly rsync the WP directory from the web site to my local backup directory, make an additional backup, patch WP with the command “patch -l -N -p1 -b -Vsimple” with the above patch file and rsynced the WP directory back. The patch applied cleanly, although I have the plugins AuthImage and IImage Browser installed.

This was an update with really very minimal hassle.

Gentoo Linux 2.6.12-r6 and slow USB transfers

After looking through the Gentoo forums for a couple of weeks for an explanation for the low USB transfer rates, I’ve finally found this message with some additional links included (this , this, this and this link).

I couldn’t really believe it at first, but apparently mounting an USB stick without the sync options is indeed the solution. Mounting a stick with the sync can reach the maximum number of writes for a NVRAM cell pretty fast, in particular for the area, where the FAT resides. It appears, that for this reason, that there were made some changes to FAT/VFAT file system code.

Holland Urlaub 2005

Freitag, 22. Juli 2005

Anreisetag. Aufbruch in Paderborn ca. 11:30 Uhr. Pause und Mittagessen in Anholt, dann Weiterfahrt. Ankunft Citta Romana ca. 17:00 Uhr.

Die Anreise verlief ohne größere Komplikationen. Wir wären allerdings besser dem Routenvorschlag der Citta Romana gefolgt, als dem Vorschlag des ADAC. Der ADAC hat uns durch Hellevoetsluis gelotst. Allerdings war die Durchgangsstraße gerade aufgrund von Bauarbeiten gesperrt, sodass wir die Baustelle manuell mit Hilfe eine Stadtplans umschiffen mussten. Mit etwas vor und zurück sind wir dann aber doch angekommen.

Das Haus, das wir dann bezogen haben, war mehr als geräumig für 5 Personen. Es war allerdings doch sehr hellhörig, obwohl es massiv aus Beton bzw. Stein gebaut war. Es war auf jeden Fall mindestens so hellhörig wie unser Ferienhaus aus Holz im Hunsrück.

Samstag, 23. Juli 2005

Jara’s Geburtstag.

Sonntag, 24. Juli 2005

Erste Erkundung des Hafenbereichs von Hellevoetsluis.

Dienstag, 26. Juli 2005

Ausflug nach Rockanje und an die westlichste Spitze des Hafens von Rotterdam, wo in erster Linie Ölverarbeitung angesiedelt ist und man gut die Einfahrt der Schiffe in den Rotterdamer Hafen beobachten kann.

Donnerstag, 28. Juli 2005

Besuch des Rotterdamer Zoos.

Sonntag, 31, Juli 2005

Ausflug entlang der N27, Port Zeeland (großer Centerparcs Ferienpark), Delta-Wehre, Neeltje Jans.

Montag, 1. August 2005

Ausflug nach Rotterdam inkl. einer Hafenrundfahrt und Bummeln durch die Fussgängerzone.

Dienstag, 2. August 2005

Besuch von Neeltje Jans.

Donnerstag, 4. August 2005

Besuch des Wochenmarktes von Middelburg, dann abends Koffer packen.

Freitag 5. August 2005

9:30 Uhr Antritt der Rückreise mit Zwischenstopp in Anholt. Ca. 17:00 Uhr Ankunft in Paderborn. Die Fahrt durch das Ruhrgebiet verlief etwas zäh.

An den nicht explizit erwähnten Tagen war Abhängen, Lesen und Besuche des Ministrandes in der Nähe der Citta Romani mit Drachensteigen lassen angesagt. Die Lebenshaltungskosten waren etwas höher als in Paderborn. Ein Abendessen im Restaurant der Citta Romana war auch nicht teuerer als im Landal-Park im Hunsrück in den letzten Herbstferien. Die Eintrittspreise für den Rotterdamer Zoo und Neeltje Jans habe ich allerdings als recht hoch empfunden. Es fehlen mir allerdings auch die direkten Vergleiche. Für Neeltje Jans waren durch Vergünstigung über Citta Romana pro Person 12 Euro fällig, ohne die Vergünstigung wären es 15 Euro gewesen. Für unsere Familie wären das dann 75 Euro gewesen. Die Eintrittspreise für den Zoo bewegten sich in denselben Regionen.

Ich hatte mir allerdings nicht genug zum Lesen mit genommen. Harry Potter Band 6 hat nur 4,5 Tage gehalten, obwohl in Englisch und ca. 600 Seiten lang. Die mitgenommenen Fachbücher haben mich nicht so wirklich gefesselt. “Stylin with CSS” habe ich nur halb gelesen. Zum Glück habe ich in Hellevoitsluis einen englischsprachigen Henning Mankel Krimi gefunden, der mich dann im wesentlichen gerettet hat.

Zurück aus dem Urlaub

Nach 1610 km mit einem Durchschnittsverbrauch von 8,6 l/100km sind wir heute Nachmittag von unserem 2 wöchigen Urlaub aus Holland zurückgekehrt. 2 Wochen komplett ohne Internetverbindung und sonstiger Computerhackerei (Ok, ich habe die Bilder von den CF-Karten der Kameras auf dem Laptop gespeichert oder den MP3-Spieler neu betankt, aber sonst nichts).

2 Wochen im holländischen Zeeland in der Anlage Citta Romana. Ich bin jetzt hoffentlich erholt genug, um den Rest des Jahres anzugehen. Der Urlaub und auch Holland bzw. die Niederlande allgemein haben mir jedenfalls gut gefallen, sodass es bestimmt nochmal zu einem weiteren Urlaub in Holland kommt.

Zu eigenen Erinnerung werde ich hier in den nächsten Tagen noch die interessantesten Tagesereignisse einfügen.