<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Zugschlusbeobachtungen (Entries tagged as usb)</title>
    <link>http://blog.zugschlus.de/</link>
    <description>Das persönliche Blog von Marc Haber</description>
    <dc:language>en</dc:language>
    <admin:errorReportsTo rdf:resource="mailto:mh+blog-zugschlus-de@zugschlus.de" />
    <generator>Serendipity 1.5.5 - http://www.s9y.org/</generator>
    <pubDate>Thu, 09 Oct 2008 09:51:45 GMT</pubDate>

    <image>
        <url>http://blog.zugschlus.de/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Zugschlusbeobachtungen - Das persönliche Blog von Marc Haber</title>
        <link>http://blog.zugschlus.de/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Produkt-Idee fuer die Installation von Betriebsstemen</title>
    <link>http://blog.zugschlus.de/archives/762-Produkt-Idee-fuer-die-Installation-von-Betriebsstemen.html</link>
            <category>Was uns fehlt</category>
    
    <comments>http://blog.zugschlus.de/archives/762-Produkt-Idee-fuer-die-Installation-von-Betriebsstemen.html#comments</comments>
    <wfw:comment>http://blog.zugschlus.de/wfwcomment.php?cid=762</wfw:comment>

    <slash:comments>5</slash:comments>
    <wfw:commentRss>http://blog.zugschlus.de/rss.php?version=2.0&amp;type=comments&amp;cid=762</wfw:commentRss>
    

    <author>mh+blog-zugschlus-de@zugschlus.de (Marc 'Zugschlus' Haber)</author>
    <content:encoded>
    &lt;p&gt;
Wie oft habe ich mir schon einen USB-Stick gewünscht, auf den man eine .IMG-Datei mit 1.44 MB Größe oder eine
.ISO-Datei ablegen kann und der sich dann, ggf. nach entsprechender Konfiguration, nicht als generische USB-Storage,
sondern als USB-Floppy oder USB-CD-ROM zeigt.
&lt;/p&gt;
&lt;p&gt;
Auf dieser Weise könnte man störrischer Software, z.B. den Desktop-Betriebssystemen des Marktführers oder
BIOS-Update-Tools des großen Serverherstellers mit zwei Buchstaben mit zeitgemäßer, platzsparender Hardware ein
Schnippchen schlagen und wäre nicht mehr genötigt, prähistorische Laufwerke in heutige PCs einzubauen und - noch
schlimmer - die dazu notwendigen, lächerlich kleinen und unzuverlässigen Medien weiterhin am Lager zu halten.
&lt;/p&gt;
  
    </content:encoded>

    <pubDate>Tue, 07 Oct 2008 22:02:23 +0200</pubDate>
    <guid isPermaLink="false">http://blog.zugschlus.de/archives/762-guid.html</guid>
    <category>idee</category>
<category>storage</category>
<category>usb</category>

</item>
<item>
    <title>Laden per USB? Fehlanzeige.</title>
    <link>http://blog.zugschlus.de/archives/743-Laden-per-USB-Fehlanzeige..html</link>
            <category>Telekommunikation</category>
    
    <comments>http://blog.zugschlus.de/archives/743-Laden-per-USB-Fehlanzeige..html#comments</comments>
    <wfw:comment>http://blog.zugschlus.de/wfwcomment.php?cid=743</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://blog.zugschlus.de/rss.php?version=2.0&amp;type=comments&amp;cid=743</wfw:commentRss>
    

    <author>mh+blog-zugschlus-de@zugschlus.de (Marc 'Zugschlus' Haber)</author>
    <content:encoded>
    &lt;p&gt;
Sandras Morotola RAZR macht es richtig: Es hat gar keinen eigenen Anschluß fürs Ladegerät mehr. Statt dessen hat das
Ladegerät einen Mini-USB-Stecker und wird in denselben Anschluß eingesteckt, mit dem man auch die Datenverbindung zum
PC herstellen kann. Und wie man es eigentlich auch erwartet, wird der Akku auch geladen, wenn eine Datenverbindung
gesteckt ist.
&lt;/p&gt;
&lt;p&gt;
Nicht so bei Nokia. Das E90 hat wie das RAZR einen Mini-USB-Port und ein mitgeliefertes USB-Kabel, das taugt aber nicht
zum Laden: Man hat diese Funktion wohl schlichtweg weggelassen, denn das E90 verhält sich akkuseitig bei eingestecktem
und verbundenem USB-Kabel genauso, als wäre es nicht verbunden.
&lt;/p&gt;
&lt;p&gt;
Dagegen hat die Elektrobucht USB-Ladekabel für Nokia-Telefone wachsen lassen. Also gleich für wenig Geld eins
bestellt. Funktioniert aber nicht. Und zwar in keiner der Kombinationen zwischen Notebook, &amp;#8220;richtigem&amp;#8221; PC,
beiden 6310 und dem E90. Entweder ist das Kabel kaputt oder es ist ein Placebo. Mist.
&lt;/p&gt;
&lt;p&gt;
Aber immerhin gibt es ein Ladegerät, das sowohl für das E90 als auch das zum Geburtstag vom Ehepaar A. aus M. bei N.
an der W. geschenkte Bluetooth-Headset bedienen kann.
&lt;/p&gt;
  
    </content:encoded>

    <pubDate>Sun, 03 Aug 2008 22:01:00 +0200</pubDate>
    <guid isPermaLink="false">http://blog.zugschlus.de/archives/743-guid.html</guid>
    <category>6310</category>
<category>akku</category>
<category>e90</category>
<category>nokia</category>
<category>usb</category>

</item>
<item>
    <title>Klimaanlage, Alarmanlage, Löschanlage und USV an USB</title>
    <link>http://blog.zugschlus.de/archives/733-Klimaanlage,-Alarmanlage,-Loeschanlage-und-USV-an-USB.html</link>
            <category>Computer und Netze</category>
    
    <comments>http://blog.zugschlus.de/archives/733-Klimaanlage,-Alarmanlage,-Loeschanlage-und-USV-an-USB.html#comments</comments>
    <wfw:comment>http://blog.zugschlus.de/wfwcomment.php?cid=733</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://blog.zugschlus.de/rss.php?version=2.0&amp;type=comments&amp;cid=733</wfw:commentRss>
    

    <author>mh+blog-zugschlus-de@zugschlus.de (Marc 'Zugschlus' Haber)</author>
    <content:encoded>
    &lt;p&gt;
Viele Geräte der &amp;#8220;Haustechnik&amp;#8221; bzw. &amp;#8220;Infrastruktur&amp;#8221; (das können Klima, Lösch-, Alarmanlagen
oder USVs sein) melden Fehlerzustände mit einem potenzialfreien Alarmkontakt. Das klingt ziemlich hochtrabend, ist aber
in aller Regel nur ein simples Relais mit einem Schließerkontakt, das im Normalfall angezogen ist. Sprich, wenn
irgendwas passiert, fällt das Relais ab und der Kontakt geht auf. Bei dieser Schaltung werden auch Defekte im Relais
selbst oder Schäden an der Verkabelung erkannt; das ganze versagt also zur richtigen Seite.
&lt;/p&gt;
&lt;p&gt;
Ich habe in den letzten Monaten einige Zeit damit verbracht, ein Stück Hardware zu finden, was mir ermöglicht, den
Zustand eines potenzialfreien Alarmkontaktes in einen PC einzulesen und den Alarm mit Netzwerkmitteln (z.B. Nagios)
weiterzumelden.
&lt;/p&gt;
 &lt;p&gt;
Die zwei Rechner, an die ich das ankoppeln möchte, sind ein 1U-Server und ein Notebook. Beide Geräte haben gemeinsam,
dass sie keinen Gameport haben und auch PCI-Slots eher knapp sind (der Server hat zwar einen, der sollte aber für
andere Anwendungen frei bleiben). Bleibt die serielle Schnittstelle (die wohl in der nächsten Gerätegeneration auch
aussterben wird) und USB. Also USB.
&lt;/p&gt;
&lt;p&gt;
Als Ergebnis einer Diskussion im Usenet gab es die Empfehlung für das &lt;a
href=&quot;http://blog.zugschlus.de/exit.php?url=aHR0cDovL3d3dy5lbGVjdHJvbmljLXNvZnR3YXJlLXNob3AuY29tL3Byb2R1Y3RfaW5mby5waHA/cE5hbWU9dW5pdmVyc2VsbGVzLThrYW5hbC11c2ItaW50ZXJmYWNlLXAtMzYmY05hbWU9aGFyZHdhcmUtZGlnaXRhbC1pby1jLTJfMTI=&amp;amp;entry_id=733&quot;  onmouseover=&quot;window.status=&#039;http://www.electronic-software-shop.com/product_info.php?pName=universelles-8kanal-usb-interface-p-36&amp;amp;cName=hardware-digital-io-c-2_12&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;
title=&quot;externer Link zum Webshop von ABACOM&quot;&gt;universelle 8-Kanal-USB-Interface&lt;/a&gt; aus dem Webshop von ABACOM, was knapp
fünfzig Euro kostet.
&lt;/p&gt;
&lt;p&gt;
Das Ding hat zehn Schraubklemmen (GND, Vcc, Port 1 bis Port8), wobei jeder Port als digitaler Ausgang, als digitaler
Eingang, analoger Eingang und Temperatureingang (die dazu passenden Fühler kosten extra) verwendet werden kann. Die
Digitalausgänge sind mit 25 mA pro Kanal belastbar, ob das für ein Relais reicht weiß ich nicht. Ich habe zu lange
keine ernsthafte Elektronik mehr betrieben.
&lt;/p&gt;
&lt;p&gt;
Besondere Treiber sind nicht nötig, das Ding wird beim Einstecken sofort erkannt und als serielle Schnittstelle
erreichbar:
&lt;blockquote&gt;&lt;pre&gt;
Jul  3 09:29:47 scyw00225 kernel: usb 4-4.1: new full speed USB device using ehci_hcd and address 20
Jul  3 09:29:47 scyw00225 kernel: usb 4-4.1: configuration #1 chosen from 1 choice
Jul  3 09:29:47 scyw00225 kernel: usb 4-4.1: New USB device found, idVendor=0403, idProduct=6001
Jul  3 09:29:47 scyw00225 kernel: usb 4-4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul  3 09:29:47 scyw00225 kernel: usb 4-4.1: Product: DLP-IO8
Jul  3 09:29:47 scyw00225 kernel: usb 4-4.1: Manufacturer: DLP Design
Jul  3 09:29:47 scyw00225 kernel: usb 4-4.1: SerialNumber: 12345678
Jul  3 09:29:47 scyw00225 kernel: usbcore: registered new interface driver usbserial
Jul  3 09:29:47 scyw00225 kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
Jul  3 09:29:47 scyw00225 kernel: usbcore: registered new interface driver usbserial_generic
Jul  3 09:29:47 scyw00225 kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core
Jul  3 09:29:47 scyw00225 kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB Serial
Device
Jul  3 09:29:47 scyw00225 kernel: ftdi_sio 4-4.1:1.0: FTDI USB Serial Device converter detected
Jul  3 09:29:47 scyw00225 kernel: drivers/usb/serial/ftdi_sio.c: Detected FT232RL
Jul  3 09:29:47 scyw00225 kernel: usb 4-4.1: FTDI USB Serial Device converter now attached to ttyUSB0
Jul  3 09:29:47 scyw00225 kernel: usbcore: registered new interface driver ftdi_sio
Jul  3 09:29:47 scyw00225 kernel: drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver
&lt;/pre&gt;&lt;/blockquote&gt;
&lt;/p&gt;
&lt;p&gt;
Dann connected man mit 115k8n1 auf die neu erkannte serielle Schnittstelle und kann dort Einbuchstabenkommandos
hinschicken. Dabei wird durch das Kommando auch gleich der Port ausgewählt. Hier zum Beispiel die Kommandos für Port
1:
&lt;table&gt;
&lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;Digitalausgang HIGH&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Q&lt;/td&gt;&lt;td&gt;Digitalausgang LOW&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;A&lt;/td&gt;&lt;td&gt;Digitaleingang abfragen&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Z&lt;/td&gt;&lt;td&gt;Analogeingang abfragen&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;9&lt;/td&gt;&lt;td&gt;Temperatur abfragen&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/p&gt;
&lt;p&gt;
Das einzige was ich probiert habe ist der Digitaleingang. Der wird, wenn er in der Luft hängt, zuverlässig als LOW
erkannt, wobei ich natürlich nicht weiß, wie sich das verhält wenn da erstmal zwanzig Meter Anschlussleitung dran
hängen und irgendwas da hinein streut. Vielleicht nimmt man dafür am besten einen Pull-Down-Widerstand.
&lt;/p&gt;
&lt;p&gt;
Wenn man dem Gerät auf der seriellen Schnittstelle das &amp;#8220;A&amp;#8221; schickt, kommt sofort &amp;#8220;0&amp;#8221; oder (wenn
man den Eingang mit Vcc verbindet) &amp;#8220;1&amp;#8221; zurück. So soll es sein.
&lt;/p&gt;
&lt;p&gt;
Für den Anschluß eines Temperaturfühlers braucht&amp;#8217;s noch einen 4k7-Pullup-Widerstand.
&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Thu, 03 Jul 2008 11:09:14 +0200</pubDate>
    <guid isPermaLink="false">http://blog.zugschlus.de/archives/733-guid.html</guid>
    <category>alarmierung</category>
<category>hardware</category>
<category>usb</category>

</item>
<item>
    <title>Von Kompatibilitätslisten und USB-Sticks</title>
    <link>http://blog.zugschlus.de/archives/718-Von-Kompatibilitaetslisten-und-USB-Sticks.html</link>
            <category>tech-rants</category>
    
    <comments>http://blog.zugschlus.de/archives/718-Von-Kompatibilitaetslisten-und-USB-Sticks.html#comments</comments>
    <wfw:comment>http://blog.zugschlus.de/wfwcomment.php?cid=718</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://blog.zugschlus.de/rss.php?version=2.0&amp;type=comments&amp;cid=718</wfw:commentRss>
    

    <author>mh+blog-zugschlus-de@zugschlus.de (Marc 'Zugschlus' Haber)</author>
    <content:encoded>
    &lt;p&gt;
Ich habe mich endlich auf einen USB-Stick-Typ geeinigt, den ich in Zukunft bevorzugt verwenden möchte: Den SanDisk
Cruzer Micro. Zwar nicht besonders klein, aber auch nicht besonders groß, mit halbwegs günstigem Preis, und
zurückziehbarem USB-Verbinder. Das bedeutet, dass keine Kappe verloren gehen kann und das Ding auch robust genug ist
für das Schlüsselbund. Die dazugehörige &amp;#8220;U3-Software&amp;#8221;, die einem Windows ganz unkompliziert das
Kaffeekochen beibringen soll, ignoriere ich völlig und benutze die Sticks halt als wären es ganz normale USB-Sticks.
&lt;/p&gt;
&lt;p&gt;
Als USB-ZIP-Disk formatiert booten alle Rechner ganz prima von den Sticks. So gehört es sich ja auch. Nur gewisse
hp-Server zicken.
&lt;/p&gt;
 &lt;p&gt;
Namentlich geht es um ältere Server vom Typ DL140, die zwar von echten Serverfans nicht als &amp;#8220;echte Server&amp;#8221;
bezeichnet werden, aber dennoch den Segen in Form von hp-Logo und -Preisschild tragen. Die Maschinen sind zwar
eigentlich als billiges austauschbares Element von Compute-Clustern etc konzipiert, aber aufgrund ihrer
Hardwareausstattung als Server für moderne Linuxe prädestiniert. So sind einige dieser Kisten inzwischen in meinem
Aufgabenbereich gelandet.
&lt;/p&gt;
&lt;p&gt;
Im Normalfall bootet der DL140 auch prima von einem als USB-ZIP formatierten Stick, wie es die allermeisten Rechner in
meinem Umfeld, die neu genug sind, auch tun. Nur von den SanDisk-Sticks wollen sie nicht. Und zwar wird der
SanDisk-Stick entweder gar nicht oder doppelt erkannt, und dann wird doch von der Platte gebootet. Leider wird der
Ende-des-Selbsttest-Screen nur einen Sekundenbruchteil lang angezeigt, so dass die Diagnose ein wenig schwer ist. Auch
ein BIOS-Update (dank memdisk auch in der von hp gewählten Form des Floppy-Images auch ohne Floppy halbwegs schmerzarm)
auf die aktuelle Version hilft nicht; das in manchen Foren empfohlene Entfernen der angeblich auf einer für
Normalsterbliche unsichtbaren &amp;#8220;Partition&amp;#8221; abgelegten U3-Software mit einem proprietären Windows-Tool bleibt
ebenfalls wirkungslos.
&lt;/p&gt;
&lt;p&gt;
Also muss der eigentlich in den höchsten Tönen gelobte hp-Support, der in den letzten Tagen für mich &lt;a
href=&quot;http://blog.zugschlus.de/exit.php?url_id=2326&amp;amp;entry_id=718&quot;  onmouseover=&quot;window.status=&#039;http://blog.zugschlus.de/archives/705-hp-Supportchat-voellig-unbrauchbar.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; title=&quot;Link zu einem anderen
Artikel dieses Blogs&quot;&gt;schon einmal versagt hat,&lt;/a&gt; noch einmal ans Werk. Da für Server kein Chat angeboten wird,
konservativer per Webformular.
&lt;/p&gt;
&lt;p&gt;
Das Webformular fragt alles mögliche bis zur Schuhgröße des letzten Technikers, unter anderem auch das installierte
Betriebssystem. Ich mache den Fehler, antworte wahrheitsgemäß &amp;#8220;Debian GNU/Linux 4.0&amp;#8221; und erkläre in der
&lt;strike&gt;EIngabebriefmarke&lt;/strike&gt;ausreichend groß dimensionierten Textarea meine technische Herausforderung.
&lt;/p&gt;
&lt;p&gt;
Die Antwort kommt auf dem Fuße innerhalb von wenigen Stunden: Debian GNU/Linux 4.0 sei nicht supported, und mein
USB-Stick steht nicht auf der Kompatibilitätsliste. Man werde deswegen den Fall schließen; und die Webseite, auf die
mein Ticket nun verweist, enthält praktischerweise weder eine Mögilchkeit zum Antworten noch eine, mit der das Ticket
wieder geöffnet werden kann. Der gestreckte Mittelfinger ist somit endgültig.
&lt;/p&gt;
&lt;p&gt;
Auf der Kompatibilitätsliste stehen natürlich nur USB-Sticks mit hp-Preisschild, und zwar ganze drei Stück aus der
Kollektion von 2004. Das halte ich für heute völlig unzureichend.
&lt;/p&gt;
&lt;p&gt;
Ich glaube, ich muss mal darüber bloggen, was Hardwarehersteller, Endkunden und ich unter &amp;#8220;Support&amp;#8221;
verstehen. Ich habe nämlich den  Verdacht, dass da drei ganz verschiedene Definitioen herauskommen.
&lt;/p&gt;
&lt;p&gt;
Ich erwarte von &amp;#8220;Support&amp;#8221;, dass der Hersteller sich die Wehwehchen seiner Kunden wenigstens so lange
anhört, bis jemand mit rudimentärem Sachverstand beurteilen kann, ob man es nicht mit einem offensichtlichen Hardware-
oder Firmwarefehler zu tun hat, wie es hier der Fall ist. Schließlich ist im konkreten Problem das auf der Festplatte
installierte Betriebssystem völlig irrelevant, weil nämlich der Rechner zum Zeitpunkt des Fehlers noch gar nicht
gebootet hat. Außerdem erwarte ich, dass der Hersteller wenigstens eine Datenbank bekannter Macken führt, damit er
seinem Kunden im Zweifel sagen kann, ob es sich um ein bekanntes Problem handelt oder ob es vielleicht einen Workaround
gibt.
&lt;/p&gt;
&lt;p&gt;
Ich erwarte ausdrücklich nicht, dass mir der Herstellersupport aus dem Kopf herbeten kann, wie man udev unter Arch
Linux dazu bringt, einen eingesteckten USB-Stick automatisch zu mounten und als Swapdevice einzurichten, aber ich
erwarte dass man mir konkrete technische Fragen zur Hardware auch dann beantwortet, wenn ich angegeben habe, dass auf
dem System ein Linux installiert ist.
&lt;/p&gt;
&lt;p&gt;
Außerdem finde ich es zum kotzen, dass hp auf der einen Seite große Töne spuckt, dass man Linux ja für soooooo
wichtig hält, Debian-Entwickler bezahlt, mit großem Tamtam auf jeder Linux-Messe vertreten ist und dann in der Praxis
die Anwender in dieser Form im Regen stehen lässt. &amp;#8220;Wir unterstützen Windows, Windows und Windows, und wenn wir
Linux sagen meinen wir Redhat&amp;#8221;. 
&lt;/p&gt;
&lt;p&gt;
Dass es sich bei der Macke des DL140 mit meinen SanDisk-Sticks um einen BIOS-Fehler handeln muss, wird daraus klar, dass
der DL140 von identisch partitionierten Sticks anderer Hersteller problemlos startet, und die SanDisk-Sticks von allen
mir bekannten anderen Rechnern ebenso problemlos geschluckt werden.
&lt;/p&gt;
&lt;p&gt;
Ach, was ist es so einfach, einen USB-Port so zu spezifizieren, dass nur eigene Devices unterstützt werden, und das
dann auch zur Verweigerung von Support zu enforcen. Warum nicht gleich eine proprietäre, schon mechanisch inkompatible
Spezialschnittstelle? Das sorgt wenigstens dafür, dass die Anwender auch das, was sonst problemlos funktionieren
würde, nicht benutzt, allerdings auch für schlechte Presse, weil so der Nichtsupport gleich auf den ersten Blick
offensichtlich ist. Wann geht es los, dass der Support verweigert wird, weil man das unterstützte Betriebssystem bei
der Installation vom CD-ROM-Laufwerk eines Fremdherstellers gebootet hat?
&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Wed, 11 Jun 2008 11:00:00 +0200</pubDate>
    <guid isPermaLink="false">http://blog.zugschlus.de/archives/718-guid.html</guid>
    <category>dienstleistung</category>
<category>hp</category>
<category>server</category>
<category>support</category>
<category>usb</category>

</item>
<item>
    <title>Serial Console Server for the Poor I</title>
    <link>http://blog.zugschlus.de/archives/707-Serial-Console-Server-for-the-Poor-I.html</link>
            <category>Computer und Netze</category>
    
    <comments>http://blog.zugschlus.de/archives/707-Serial-Console-Server-for-the-Poor-I.html#comments</comments>
    <wfw:comment>http://blog.zugschlus.de/wfwcomment.php?cid=707</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>http://blog.zugschlus.de/rss.php?version=2.0&amp;type=comments&amp;cid=707</wfw:commentRss>
    

    <author>mh+blog-zugschlus-de@zugschlus.de (Marc 'Zugschlus' Haber)</author>
    <content:encoded>
    &lt;p&gt;
The serial port is still &lt;u&gt;the&lt;/u&gt; way to access network components out of band. It is slow, but reliable, and
remarkably well standardized. It does not have technical whiz-bangs that can fail when one needs things to just work.
That makes it the natural way to access critical infrastructure and still being sure that this access vector still works
when most other things are down.
&lt;/p&gt;
&lt;p&gt;
Every communication link has two sides, so there is a market for devices with a network link and a bigger number of
serial ports to connect the actual devices to. Commercial vendors have a broad choice of serial console servers. Most of
them, especially the small products with five to ten ports, are quite expensive, so I have been investigating how do
build a serial console server with el cheapo hardware.
&lt;/p&gt;
 &lt;p&gt;
USB comes to mind here, of course.
&lt;/p&gt;
&lt;p&gt;
&lt;div class=&quot;serendipity_imageComment_right&quot; style=&quot;width: 68px&quot;&gt;&lt;div class=&quot;serendipity_imageComment_img&quot;&gt;&lt;a
class=&#039;serendipity_image_link&#039; href=&#039;http://blog.zugschlus.de/uploads/serial-USB.jpg&#039;&gt;&lt;!-- s9ymdb:77 --&gt;&lt;img class=&quot;serendipity_image_right&quot; width=&quot;68&quot; height=&quot;90&quot; src=&quot;http://blog.zugschlus.de/uploads/serial-USB.serendipityThumb.jpg&quot; alt=&quot;&quot;  /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div
class=&quot;serendipity_imageComment_txt&quot;&gt;Picture of the fully equipped USB hub&lt;/div&gt;&lt;/div&gt;The hardware side is actually
quite easy: A seven-port USB hub, and seven USB-to-serial adaptors (using the widely-deployed Prolific PL2303) are
easily purchased for well below a hundred Euros, and naively connected. In my test setup, connected to the hp compaq
nc8000 that my blog readers should know only too well by now, the hub does not even need to have its power supply
connected. The notebook can power the hub and the seven adaptors just fine.
&lt;/p&gt;
&lt;p&gt;
When the &lt;a href=&quot;http://blog.zugschlus.de/exit.php?url_id=2320&amp;amp;entry_id=707&quot;  onmouseover=&quot;window.status=&#039;http://blog.zugschlus.de/archives/704-Automatic-initialization-of-a-Option-3G-Datacard.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot;
title=&quot;link to the UMTS init article in this blog&quot;&gt;UMTS card&lt;/a&gt; is plugged in, the ttyUSBx device nodes appear in the
order of plugging in the devices. When the system is booted, the order is not very predictable, so one needs - again -
udev to give predictable device node names.
&lt;/p&gt;
&lt;p&gt;
udevinfo is an important tool to obtain the data set of an USB device which is available to match a device and to act
appropriately when it is connected. udevinfo sorts the devices into a tree and shows the relationship of the devices,
which device is &amp;#8220;behind&amp;#8221; which other device from the system&amp;#8217;s point of view. udevinfo&amp;#8217;s output
starts at the leaf of the device tree and shows the information for each node up the tree until its root is reached.
&lt;/p&gt;
&lt;p&gt;
One pitfall is that one can only match against the leaf and &lt;u&gt;_one_&lt;/u&gt; other node more up the tree. So you cannot do
matches like &amp;#8220;the pl2303-based device connected to port 3 on hub 2-3 will be designated USBserial3&amp;#8221;. If you
try this, your rule will silently be ignored. This is a major turn-off in udev&amp;#8217;s implementation. I didn&amp;#8217;t
try it on sid, but etch definetely shows this behavior. So one can only match like &amp;#8220;the tty on the USB subsystem
connected to port 3 on hub 2-3 will be designated USBserial3&amp;#8221;, but that&amp;#8217;s probably as good as it&amp;#8217;ll
get.
&lt;/p&gt;
&lt;p&gt;
The cause for my hub having only seven ports clearly shows itself when one looks at the udevinfo outputs of the fully
equipped USB hub: The adapters are connected to ports 1, 2, 3, 4.1, 4.2, 4.3 and 4.4. The seven-port hub is actually two
four-port hubs in a single case, with the second one connected to the first one&amp;#8217;s port 4. This reflects itself, of
course, in the udev rules necessary to address the adapters by the hub port they&amp;#8217;re plugged in:

&lt;blockquote&gt;&lt;pre&gt;
SUBSYSTEM==&amp;#8220;tty&amp;#8221;, SUBSYSTEMS==&amp;#8220;usb&amp;#8221;, DRIVERS==&amp;#8220;usb&amp;#8221;, \
   KERNELS==&amp;#8220;&amp;#x2a;-*.1&amp;#8221;, \
   SYMLINK=&amp;#8220;USBserial1&amp;#8221;

SUBSYSTEM==&amp;#8220;tty&amp;#8221;, SUBSYSTEMS==&amp;#8220;usb&amp;#8221;, DRIVERS==&amp;#8220;usb&amp;#8221;, \
   KERNELS==&amp;#8220;&amp;#x2a;-*.2&amp;#8221;, \
   SYMLINK=&amp;#8220;USBserial2&amp;#8221;

SUBSYSTEM==&amp;#8220;tty&amp;#8221;, SUBSYSTEMS==&amp;#8220;usb&amp;#8221;, DRIVERS==&amp;#8220;usb&amp;#8221;, \
   KERNELS==&amp;#8220;&amp;#x2a;-*.3&amp;#8221;, \
   SYMLINK=&amp;#8220;USBserial3&amp;#8221;

SUBSYSTEM==&amp;#8220;tty&amp;#8221;, SUBSYSTEMS==&amp;#8220;usb&amp;#8221;, DRIVERS==&amp;#8220;usb&amp;#8221;, \
   KERNELS==&amp;#8220;&amp;#x2a;-*.4.1&amp;#8221;, \
   SYMLINK=&amp;#8220;USBserial4&amp;#8221;

SUBSYSTEM==&amp;#8220;tty&amp;#8221;, SUBSYSTEMS==&amp;#8220;usb&amp;#8221;, DRIVERS==&amp;#8220;usb&amp;#8221;, \
   KERNELS==&amp;#8220;&amp;#x2a;-*.4.2&amp;#8221;, \
   SYMLINK=&amp;#8220;USBserial5&amp;#8221;

SUBSYSTEM==&amp;#8220;tty&amp;#8221;, SUBSYSTEMS==&amp;#8220;usb&amp;#8221;, DRIVERS==&amp;#8220;usb&amp;#8221;, \
   KERNELS==&amp;#8220;&amp;#x2a;-*.4.3&amp;#8221;, \
   SYMLINK=&amp;#8220;USBserial6&amp;#8221;

SUBSYSTEM==&amp;#8220;tty&amp;#8221;, SUBSYSTEMS==&amp;#8220;usb&amp;#8221;, DRIVERS==&amp;#8220;usb&amp;#8221;, \
   KERNELS==&amp;#8220;&amp;#x2a;-*.4.4&amp;#8221;, \
   SYMLINK=&amp;#8220;USBserial7&amp;#8221;
&lt;/pre&gt;&lt;/blockquote&gt;
These rules will only work for a similary structured hub that is &lt;u&gt;directly&lt;/u&gt; connected to the notebook. If there are
more hubs in between the &amp;#8220;final&amp;#8221; hub and the host, the address matched against in the KERNELS matches are
going to have a different structure. In the test setup, the first two parts of the address needed to be wildcarded since
these addresses keep changing when the host is booted or the hub plugged out and in. So I guess that these udev rules
are probably going to fail miserably when more hubs and/or USB-to-serial adaptors are connected.
&lt;/p&gt;
&lt;p&gt;
But if one does not do too many changes, things are just fine, and it is possible to put numbers on the USB hub ports
and be sure that the USB-to-serial adaptor connected to port 4 is going to be /dev/USBserial4 in the host system. I
tried plugging in and out the adaptors in random order, unplugged and plugged the hub itself, booted the host, and the
relationship between the port and the device node was stable.
&lt;/p&gt;
&lt;p&gt;
If you have an USB 2.0 hub connected to an USB 2.0 port of the host, you might see error messages like
&amp;#8220;pl2303_open - failed submitting interrupt urb, error -28&amp;#8221; in your log, while the serial ports plagued by
this message are not going to work. This is due to an issue in the USB 2.0 code in the kernel (see the thread starting
with &lt;a href=&quot;http://blog.zugschlus.de/exit.php?url_id=2349&amp;amp;entry_id=707&quot;  onmouseover=&quot;window.status=&#039;http://lkml.indiana.edu/hypermail/linux/kernel/0812.0/00546.html&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; title=&quot;external link to a threading
archive of linux-kernel&quot;&gt;my message on linux-kernel)&lt;/a&gt;, Greg KH says that running USB 1.1 devices behind a USB 2.0 hub
is a very difficult thing to do. A possible remedy is using an USB 1.1 hub, which is quite hard to obtain these days.
But one can also unload the EHCI driver, disabling USB 2.0 completely, or do
&lt;blockquote&gt;
echo P &amp;gt;/sys/class/usb_host/usb_hostB/companion
&lt;/blockquote&gt;
to force port P of the EHCI controller on Bus B to run at low/full speed (so, Alan Stern says in the linux-kernel
thread). After a few tries, I found out that my test notebook needs P=1 and B=1 for the correct port. If you have found
the correct port, you&amp;#8217;ll see your devices disconnect and reconnect below the USB 1.1 root hub in lsusb and the urb
error messages should be gone.
&lt;/p&gt;
&lt;p&gt;
In the test environment, I only tested one adapter at a time, but all these tests were successful as well. I guess that
many more of these adaptors will eventually need a powered USB hub, but with seven adaptors on a single hub, the power
from the USB host is sufficient to live without extra power on the hub. And, I guess, there is some hard limit for the
number of USB adapters being used, and some soft limit when managing the ports and adapters is going to get harder. But,
I think that a site in need of more than, say, sixteen serial ports on the console server can afford a
&amp;#8220;real&amp;#8221; console server from one of the major vendors, which can be accessed via ethernet, UMTS, ISDN and
whatever you can think of.
&lt;/p&gt;
&lt;p&gt;
This concludes the hardware part of my serial console server for the poor. Tomorrow, I&amp;#8217;ll blog about the software
side needed on the host to allow the serial ports to be accessed from the network while still being reasonably secure.
The next article will involve ssh, /etc/passwd shells, /etc/shells, a small perl script, ser2net and telnet. And, shell
escape is the cue word for grey hairs sprouting on my head.
&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Tue, 03 Jun 2008 23:41:47 +0200</pubDate>
    <guid isPermaLink="false">http://blog.zugschlus.de/archives/707-guid.html</guid>
    <category>console</category>
<category>debian-english</category>
<category>english</category>
<category>pl2303</category>
<category>serial</category>
<category>udev</category>
<category>usb</category>

</item>
<item>
    <title>Universal boot stick for Debian, grml and the Debian installer</title>
    <link>http://blog.zugschlus.de/archives/648-Universal-boot-stick-for-Debian,-grml-and-the-Debian-installer.html</link>
            <category>Debian</category>
    
    <comments>http://blog.zugschlus.de/archives/648-Universal-boot-stick-for-Debian,-grml-and-the-Debian-installer.html#comments</comments>
    <wfw:comment>http://blog.zugschlus.de/wfwcomment.php?cid=648</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://blog.zugschlus.de/rss.php?version=2.0&amp;type=comments&amp;cid=648</wfw:commentRss>
    

    <author>mh+blog-zugschlus-de@zugschlus.de (Marc 'Zugschlus' Haber)</author>
    <content:encoded>
    &lt;p&gt;
For various reasons, I have the kernel and the initrd that my notebook needs to boot Linux on an USB stick. I recently
added the &lt;a href=&quot;http://blog.zugschlus.de/exit.php?url=aHR0cDovL3d3dy5kZWJpYW4ub3JnL2RldmVsL2RlYmlhbi1pbnN0YWxsZXIv&amp;amp;entry_id=648&quot;  onmouseover=&quot;window.status=&#039;http://www.debian.org/devel/debian-installer/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; title=&quot;external link to the Debian Installer&quot;&gt;Debian
Installer&lt;/a&gt; and &lt;a href=&quot;http://blog.zugschlus.de/exit.php?url_id=2287&amp;amp;entry_id=648&quot;  onmouseover=&quot;window.status=&#039;http://www.grml.org/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; title=&quot;external link to grml&quot;&gt;grml&lt;/a&gt; to the stick to allow additional
uses of the stick.
&lt;/p&gt;
 &lt;p&gt;
Usually, USB sticks are formated with FAT32 and when they&amp;#8217;re used to boot Linux, &lt;a
href=&quot;http://blog.zugschlus.de/exit.php?url_id=2288&amp;amp;entry_id=648&quot;  onmouseover=&quot;window.status=&#039;http://packages.debian.org/syslinux&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; title=&quot;external Link to Syslinux&quot;&gt;Syslinux&lt;/a&gt; or some derivative is used.
&lt;/p&gt;
&lt;p&gt;
I do it differently on my boot stick, most prominently because I&amp;#8217;d like to have Unixoid privileges on the stick,
and because I&amp;#8217;d like to continue using grub. So, my stick is formatted as ext3, and feels like an additional hard
disk.
&lt;/p&gt;
&lt;p&gt;
Booting from an USB stick is sometimes tricky. I have made the best experiences with formatting the USB stick as an USB
ZIP, which basically means having 64 heads, 32 sectors and a single partition in the &lt;u&gt;fourth&lt;/u&gt; primary partition
slot. This can be done using mkdiskimage and is documented on Debian in /usr/share/doc/syslinux/usbkey.doc. Partitioning
and generation of the file system is as straightforward as is installing grub using the standard, documented methods for
hard disks.
&lt;/p&gt;
&lt;p&gt;
I tried using grub 2, but have found it not sufficiently well-documented and stable to be used in this kind of critical
environment. I am therefore still using grub-legacy despite the fact that the grub maintainers have ceased fixing
grub-legacy bugs some months ago, refering to the pending release of grub 2.
&lt;/p&gt;
&lt;p&gt;
I use &lt;a href=&quot;http://blog.zugschlus.de/exit.php?url_id=2289&amp;amp;entry_id=648&quot;  onmouseover=&quot;window.status=&#039;http://packages.debian.org/unison&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; title=&quot;external link to the unison package page&quot;&gt;unison&lt;/a&gt; to keep
/boot on the stick in sync with /boot of the Linux system, which is on a crypted filesystem on the hard disk and thus
unuseable until the system has booted. The hard disk /boot thus serves only as installation target and sync source so
that the stick does not need to be plugged in during upgrades. update-grub is configured so that running it creates a
menu.lst which can be used from the stick. This concludes booting the production system from the stick.
&lt;/p&gt;
&lt;p&gt;
For the other systems, I have decided not to put them in the &amp;#8220;default&amp;#8221; boot menu from menu.lst, but instead
include foo.lst files to the root of the stick, and when I need them, shell out from the grub menu to a command line by
pressing &amp;#8220;c&amp;#8221; and then pulling in the new grub config file with the &amp;#8220;configfile /foo.lst&amp;#8221;
command.
&lt;/p&gt;
&lt;p&gt;
grml is my favorite rescue system. I use it all the time once a system starts acting up. One of its biggest advantages
is its extremely flexible bootup process. That made it predestined to be the rescue system on my USB boot stick. grml is
currently making a transition to a new build environment, which has had the side effect that the boot process has
changed in some details. grml-small, the 60 MB variant that I had been using before, has been discontinued and replaced
by grml-medium, a 170 MB variant which does definetely not fit any more on a business card CD, but 128 MB USB sticks
have become relatively seldom.
&lt;/p&gt;
&lt;p&gt;
For both grml flavours, all one needs to do is mount the .iso file loopback, copy the file&amp;#8217;s contents to a
subdirectory of the boot stick, and to drop this menu file to the stick:
&lt;pre&gt;
&lt;code&gt;
title           grml-small
root            (hd0,3)
kernel          /grml-small/boot/isolinux/linux26 toram grml_dir=/grml-small/GRML/ grml_name=GRML ramdisk_size=100000
init=/etc/init lang=us BOOT_IMAGE=grml
initrd          /grml-small/boot/isolinux/minirt26.gz

title           grml-medium
root            (hd0,3)
kernel          /grml-medium/boot/grmlmedium/linux26 live-media-path=/grml-medium/live/ toram=grml-medium.squashfs
lang=us boot=live noeject noprompt keyboard=de
initrd          /grml-medium/boot/grmlmedium/initrd.gz
&lt;/code&gt;
&lt;/pre&gt;
Since grml-medium works reasonably well, I do not expect to need grml-small very often any more.
&lt;/p&gt;
&lt;p&gt;
The Debian Installer guys have published an initrd which can browse nearly arbitrary media for an debian-installer .iso
file, mount it and install from that image. I have made use of that feature to allow Debian to be installed from my boot
stick. /d-i holds a current debian-testing-i386-netinst.iso, and vmlinux and initrd.gz from &lt;a
href=&quot;http://blog.zugschlus.de/exit.php?url_id=2290&amp;amp;entry_id=648&quot;  onmouseover=&quot;window.status=&#039;http://ftp.nl.debian.org/debian/dists/testing/main/installer-i386/current/images/hd-media/&#039;;return true;&quot; onmouseout=&quot;window.status=&#039;&#039;;return true;&quot; title=&quot;external link
to a Debian repository&quot;&gt;http://ftp.nl.debian.org/debian/dists/testing/main/installer-i386/current/images/hd-media/.&lt;/a&gt;
With that, this d-i.lst:
&lt;pre&gt;
&lt;code&gt;
title debian installer
root (hd0,3)
kernel /d-i/vmlinuz
initrd /d-i/initrd.gz
&lt;/code&gt;
&lt;/pre&gt;
does the trick and boots up the Installer, ready to start.
&lt;/p&gt;
&lt;p&gt;
I guess that it would be easily possible to include these grub config stanzas to the default menu.lst, including grml
and the Installer into the main grub menu, but I deliberately decided not to have these options directly in the menu for
the time being.
&lt;/p&gt;
&lt;p&gt;
It is always amazing how flexible today&amp;#8217;s systems have become when it comes to boot Linux. For both rescue and
installation, this is needed, and the respective authors have done a remarkable job.
&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Wed, 19 Mar 2008 23:27:00 +0100</pubDate>
    <guid isPermaLink="false">http://blog.zugschlus.de/archives/648-guid.html</guid>
    <category>boot</category>
<category>debian</category>
<category>debian-english</category>
<category>english</category>
<category>grml</category>
<category>grub</category>
<category>installation</category>
<category>usb</category>

</item>
<item>
    <title>Booting from USB stick on older hardware</title>
    <link>http://blog.zugschlus.de/archives/575-Booting-from-USB-stick-on-older-hardware.html</link>
            <category>tech-rants</category>
    
    <comments>http://blog.zugschlus.de/archives/575-Booting-from-USB-stick-on-older-hardware.html#comments</comments>
    <wfw:comment>http://blog.zugschlus.de/wfwcomment.php?cid=575</wfw:comment>

    <slash:comments>5</slash:comments>
    <wfw:commentRss>http://blog.zugschlus.de/rss.php?version=2.0&amp;type=comments&amp;cid=575</wfw:commentRss>
    

    <author>mh+blog-zugschlus-de@zugschlus.de (Marc 'Zugschlus' Haber)</author>
    <content:encoded>
    &lt;p&gt;
I spent the better part of the weekend with trying to get an older Athlon XP mainboard to boot grub from an USB stick.
Unfortunately, without success.
&lt;/p&gt;
 &lt;p&gt;
Since a few months, my notebook boots Windows XP when it is booted naively. Only if the correct USB stick is plugged in
on boot, the Debian system that I work with comes up. The USB stick has grub, a kernel and an initrd which is used to
boot and unlock the crypto file systems (crypted LVs) on the disk and can be removed once the system has booted.
&lt;/p&gt;
&lt;p&gt;
I wanted to use the same scheme for a &amp;#8220;newly built&amp;#8221; new desktop from old parts. Unfortunately, this was much
harder than I expected.
&lt;/p&gt;
&lt;p&gt;
Since a few years, I use the USB-ZIP format for USB sticks that need to boot. It has shown that this format has the best
chance to successfully boot. For more information about this format and about how to build it, see
/usr/share/syslinux/README.usbkey on any recent Debian system with syslinux installed.
&lt;/p&gt;
&lt;p&gt;
My grml USB stick that I always have on me is formatted like this, and the &amp;#8220;new&amp;#8221; desktop boots it just fine.
The boot stick for my notebook is an USB-ZIP as well, only that its primary partition is not FAT, but ext3.
Unfortunately, the BIOS of the &amp;#8220;new&amp;#8221; desktop seems to refuse booting grub. Neither my notebook&amp;#8217;s stick
nor the new stick even come to the &amp;#8220;loading stage x&amp;#8221; output of grub, let alone to the menu. syslinux works
fine, and both sticks boot just fine on my notebook and on a qemu on the &amp;#8220;new&amp;#8221; desktop.
&lt;/p&gt;
&lt;p&gt;
Since the grub command line has saved me multiple times in the past, I didn&amp;#8217;t really like the idea of having to
use syslinux, and decided to boot the &amp;#8220;new&amp;#8221; desktop conventionally from hard disk without the use of an USB
boot stick. Until I got this far, the complete saturday and the better part of sunday was wasted. Darn.
&lt;/p&gt;
&lt;p&gt;
This reminds me of a mainboard from 2002 (incidentally from the same vendor), which checked whether the first hard disk
had an active primary partition on it before it even tried to execute the MBR code. If no primary partition was found
(which was common case with the partitioning scheme that I used back then which only had logical drives - this was
before I discovered LVM), the BIOS gave the error message &amp;#8220;Not found active primary partition&amp;#8221; (sic!) and
refused to boot. Stupid programmers trying to outsmart the sysadmins of their products. But at least, the error message
was reasonably clear back then.
&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Sun, 30 Sep 2007 23:23:32 +0200</pubDate>
    <guid isPermaLink="false">http://blog.zugschlus.de/archives/575-guid.html</guid>
    <category>boot</category>
<category>debian</category>
<category>debian-english</category>
<category>grub</category>
<category>hardware</category>
<category>syslinux</category>
<category>usb</category>

</item>

</channel>
</rss>