Monday, January 11, 2010

 

Self executing watchr script


watchr monitors a directory tree, and triggers a user defined action whenever an observed file is modified.

Example test.watchr:
watch("lib/(.*)") { system "rake" }
Signal.trap("INT") { run_tests }

This script executes rake test whenever a file in lib/ changes.
To start watchr run watchr test.watchr on command line.

In order to execute this script itself insert a shebang and do chmod a+x test.watchr:
#!/usr/bin/env watchr
watch("lib/(.*)") { system "rake" }
Signal.trap("INT") { run_tests }

Now you execute that script with ./test.watchr.

Nice, uh? :)

Tuesday, November 11, 2008

 

autotest notifications with Gnome's notify-send


Create the following files ($HOME/.autotest and $HOME/bin/notify_redgreen). Run autotest in your applications folder (e.g. rails or merb).

$HOME/.autotest:

module OSD
PATH = ENV['HOME'] + "/bin/notify_redgreen"

def self.notify(color, msg)
system "#{PATH} #{color} #{msg}"
end

Autotest.add_hook :red do |at|
notify(:red, at.results[/\d+ tests.*$/])
end

Autotest.add_hook :green do |at|
notify(:green, at.results[/\d+ tests.*$/])
end
end

$HOME/bin/notify_redgreen:

#!/bin/sh

OPTIONS="-t 2500"

case "$1" in
red)
OPTIONS="-u critical -i /usr/share/icons/gnome/scalable/emotes/face-angry.svg :-("
;;
green)
OPTIONS="-u normal -i /usr/share/icons/gnome/scalable/emblems/emblem-default.svg :-)"
;;
esac
shift

notify-send $OPTIONS "$*"


Screenshot


Labels:


Sunday, April 27, 2008

 

Terratec Hybrid Cinergy XS unter Debian mit dem 2.6.24 Kernel


Siehe Terratec Hybrid Cinergy XS auf gentoo
und patche mit:
http://mcentral.de/pipermail/em28xx/attachments/20080402/b43e9afe/v4l-dvb-kernel-Makefile-2.6.24.obj

Tuesday, February 05, 2008

 

S100 Innereien


dmesg



<4>Linux version 2.4.31 (root@box) (gcc version 2.95.4 20011002 (Debian prerelease)) #6 SMP Fri Oct 21 15:15:54 EDT 2005
<6>BIOS-provided physical RAM map:
<4> BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
<4> BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
<4> BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
<4> BIOS-e820: 0000000000100000 - 0000000007ed0000 (usable)
<4> BIOS-e820: 0000000007ed0000 - 0000000007edf000 (ACPI data)
<4> BIOS-e820: 0000000007edf000 - 0000000007f00000 (ACPI NVS)
<5>0MB HIGHMEM available.
<5>126MB LOWMEM available.
<4>On node 0 totalpages: 32464
<4>zone(0): 4096 pages.
<4>zone(1): 28368 pages.
<4>zone(2): 0 pages.
<6>ACPI: RSDP (v000 ACPIAM ) @ 0x000f5610
<6>ACPI: RSDT (v001 A M I OEMRSDT 0x06000514 MSFT 0x00000097) @ 0x07ed0000
<6>ACPI: FADT (v002 A M I OEMFACP 0x06000514 MSFT 0x00000097) @ 0x07ed0200
<6>ACPI: OEMB (v001 A M I AMI_OEM 0x06000514 MSFT 0x00000097) @ 0x07edf040
<6>ACPI: DSDT (v001 0AHMM 0AHMM107 0x00000107 INTL 0x02002026) @ 0x00000000
<4>Kernel command line: ramdisk_size=100000 lang=us vga=794 frugal ssh lang=de
<4>Found and enabled local APIC!
<6>Initializing CPU#0
<4>Detected 730.907 MHz processor.
<4>Console: colour VGA+ 80x25
<4>Calibrating delay loop... 1458.17 BogoMIPS
<6>Memory: 124532k/129856k available (1386k kernel code, 4936k reserved, 567k data, 144k init, 0k highmem)
<6>Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
<6>Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
<6>Mount cache hash table entries: 512 (order: 0, 4096 bytes)
<6>Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
<4>Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
<6>CPU: L1 I cache: 16K, L1 D cache: 16K
<6>CPU: L2 cache: 256K
<6>Intel machine check architecture supported.
<6>Intel machine check reporting enabled on CPU#0.
<7>CPU: After generic, caps: 0383fbff 00000000 00000000 00000000
<7>CPU: Common caps: 0383fbff 00000000 00000000 00000000
<6>Enabling fast FPU save and restore... done.
<6>Enabling unmasked SIMD FPU exception support... done.
<6>Checking 'hlt' instruction... OK.
<6>Checking for popad bug... OK.
<4>ACPI: IRQ9 SCI: Level Trigger.
<4>POSIX conformance testing by UNIFIX
<4>mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
<4>mtrr: detected mtrr type: Intel
<6>CPU: L1 I cache: 16K, L1 D cache: 16K
<6>CPU: L2 cache: 256K
<6>Intel machine check reporting enabled on CPU#0.
<7>CPU: After generic, caps: 0383fbff 00000000 00000000 00000000
<7>CPU: Common caps: 0383fbff 00000000 00000000 00000000
<4>CPU0: Intel Mobile Intel(R) Celeron(TM) CPU 733MHz stepping 04
<4>per-CPU timeslice cutoff: 731.53 usecs.
<5>SMP motherboard not detected.
<4>enabled ExtINT on CPU#0
<4>ESR value before enabling vector: 00000000
<4>ESR value after enabling vector: 00000000
<4>Using local APIC timer interrupts.
<4>calibrating APIC timer ...
<4>..... CPU clock speed is 730.9394 MHz.
<4>..... host bus clock speed is 132.8979 MHz.
<4>cpu: 0, clocks: 1328979, slice: 664489
<4>CPU0
<4>Waiting on wait_init_idle (map = 0x0)
<4>All processors have done init_idle
<6>ACPI: Subsystem revision 20040326
<6>PCI: PCI BIOS revision 2.10 entry at 0xf0031, last bus=1
<6>PCI: Using configuration type 1
<6>ACPI: Interpreter enabled
<6>ACPI: Using PIC for interrupt routing
<6>ACPI: System [ACPI] (supports S0 S1 S3 S4 S5)
<6>ACPI: PCI Root Bridge [PCI0] (00:00)
<4>PCI: Probing PCI hardware (bus 00)
<6>PCI: Ignoring BAR0-3 of IDE controller 00:1f.1
<4>Transparent bridge - Intel Corp. 82801BA/CA/DB/EB PCI Bridge
<7>ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
<7>ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P1._PRT]
<4>ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
<4>ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
<4>ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
<4>ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 *7 9 10 11 12 14 15)
<4>ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
<4>ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
<4>ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
<4>ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 *9 10 11 12 14 15)
<6>PCI: Probing PCI hardware
<4>ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
<4>ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 7
<4>ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 5
<4>ACPI: PCI Interrupt Link [LNKH] enabled at IRQ 9
<4>ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
<6>PCI: Using ACPI for IRQ routing
<6>isapnp: Scanning for PnP cards...
<6>isapnp: No Plug & Play device found
<6>Linux NET4.0 for Linux 2.4
<6>Based upon Swansea University Computer Society NET3.039
<4>Initializing RT netlink socket
<4>Starting kswapd
<5>VFS: Disk quotas vdquot_6.5.1
<4>pty: 256 Unix98 ptys configured
<4>floppy0: no floppy controllers found
<4>RAMDISK driver initialized: 16 RAM disks of 100000K size 1024 blocksize
<6>Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
<6>ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
<6>ICH4: IDE controller at PCI slot 00:1f.1
<4>PCI: Enabling device 00:1f.1 (0005 -> 0007)
<6>ICH4: chipset revision 2
<6>ICH4: not 100% native mode: will probe irqs later
<6> ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:pio, hdb:pio
<6> ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:pio, hdd:pio
<4>ide: late registration of driver.
<6>SCSI subsystem driver Revision: 1.00
<3>kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
<3>kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
<6>Initializing Cryptographic API
<6>NET4: Linux TCP/IP 1.0 for NET4.0
<6>IP Protocols: ICMP, UDP, TCP, IGMP
<6>IP: routing cache hash table of 512 buckets, 4Kbytes
<6>TCP: Hash tables configured (established 8192 bind 8192)
<6>NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
<5>RAMDISK: Compressed image found at block 0
<6>Freeing initrd memory: 836k freed
<4>EXT2-fs warning: checktime reached, running e2fsck is recommended
<4>VFS: Mounted root (ext2 filesystem).
<6>scsi0 : SCSI host adapter emulation for IDE ATAPI devices
<6>usb.c: registered new driver usbdevfs
<6>usb.c: registered new driver hub
<7>PCI: Setting latency timer of device 00:1d.7 to 64
<6>ehci_hcd 00:1d.7: Intel Corp. 82801DB USB2
<6>ehci_hcd 00:1d.7: irq 9, pci mem c8831400
<6>usb.c: new USB bus registered, assigned bus number 1
<6>ehci_hcd 00:1d.7: enabled 64bit PCI DMA
<7>PCI: cache line size of 32 is not supported by device 00:1d.7
<6>ehci_hcd 00:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
<6>hub.c: USB hub found
<6>hub.c: 6 ports detected
<6>usb-uhci.c: $Revision: 1.275 $ time 14:05:13 Aug 18 2005
<6>usb-uhci.c: High bandwidth mode enabled
<7>PCI: Setting latency timer of device 00:1d.0 to 64
<6>usb-uhci.c: USB UHCI at I/O 0xe000, IRQ 11
<4>usb-uhci.c: Detected 2 ports
<6>usb.c: new USB bus registered, assigned bus number 2
<6>hub.c: USB hub found
<6>hub.c: 2 ports detected
<7>PCI: Setting latency timer of device 00:1d.1 to 64
<6>usb-uhci.c: USB UHCI at I/O 0xe080, IRQ 7
<4>usb-uhci.c: Detected 2 ports
<6>usb.c: new USB bus registered, assigned bus number 3
<6>hub.c: USB hub found
<6>hub.c: 2 ports detected
<7>PCI: Setting latency timer of device 00:1d.2 to 64
<6>usb-uhci.c: USB UHCI at I/O 0xe400, IRQ 5
<4>usb-uhci.c: Detected 2 ports
<6>usb.c: new USB bus registered, assigned bus number 4
<6>hub.c: USB hub found
<6>hub.c: 2 ports detected
<6>usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
<6>Initializing USB Mass Storage driver...
<6>usb.c: registered new driver usb-storage
<6>USB Mass Storage support registered.
<6>hub.c: new USB device 00:1d.7-1, assigned address 2
<6>scsi1 : SCSI emulation for USB Mass Storage devices
<4> Vendor: Kingston Model: DataTraveler2.0 Rev: 1.00
<4> Type: Direct-Access ANSI SCSI revision: 02
<4>Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
<4>SCSI device sda: 1956735 512-byte hdwr sectors (1002 MB)
<4>sda: Write Protect is off
<6>Partition check:
<6> sda: sda1 sda2
<7>WARNING: USB Mass Storage data integrity not assured
<7>USB Mass Storage device found at 2
<6>hub.c: new USB device 00:1d.0-2, assigned address 2
<4>usb.c: USB device 2 (vend/prod 0x46d/0xc313) is not claimed by any active driver.
<4>Unable to identify CD-ROM format.
<4>VFS: Can't find ext2 filesystem on dev sd(8,1).
<4>Unable to identify CD-ROM format.
<4>cloop: Initializing cloop v2.01
<6>cloop: loaded (max 128 devices)
<4>cloop: /cdrom/KNOPPIX/KNOPPIX: 1833 blocks, 65536 bytes/block, largest block is 65552 bytes.
<7>ISO 9660 Extensions: RRIP_1991A
<6>Freeing unused kernel memory: 144k freed
<6>Real Time Clock Driver v1.10f
<6>ACPI: Power Button (FF) [PWRF]
<6>ACPI: Processor [CPU1] (supports C1, 8 throttling states)
<6>Linux Kernel Card Services 3.1.22
<6> options: [pci] [cardbus] [pm]
<6>Intel ISA PCIC probe: not found.
<6>Databook TCIC-2 PCMCIA probe: not found.
<4>usbdevfs: remount parameter error
<6>usb.c: registered new driver hiddev
<6>usb.c: registered new driver hid
<6>input: USB HID v1.10 Keyboard [LITEON Technology USB Multimedia Keyboard] on usb2:2.0
<6>input: USB HID v1.10 Device [LITEON Technology USB Multimedia Keyboard] on usb2:2.1
<6>hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik
<6>hid-core.c: USB HID support drivers
<6>Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled
<6>ttyS00 at 0x03f8 (irq = 4) is a 16550A
<6>ttyS01 at 0x02f8 (irq = 3) is a 16550A
<3>hw_random: RNG not detected
<6>Loaded prism54 driver, version 1.2
<6>8139too Fast Ethernet driver 0.9.26
<6>eth1: RealTek RTL8139 at 0xc8914c00, 00:02:ff:00:fa:e7, IRQ 10
<7>eth1: Identified 8139 chip type 'RTL-8100B/8139D'
<6>Intel 810 + AC97 Audio, version 1.01, 11:54:44 Aug 29 2005
<7>PCI: Setting latency timer of device 00:1f.5 to 64
<6>i810: Intel ICH4 found at IO 0xec00 and 0xe800, MEM 0xffa7fc00 and 0xffa7f800, IRQ 10
<6>i810: Intel ICH4 mmio at 0xc8924c00 and 0xc8926800
<6>i810_audio: Primary codec has ID 0
<6>i810_audio: Audio Controller supports 6 channels.
<6>i810_audio: Defaulting to base 2 channel mode.
<6>i810_audio: Resetting connection 0
<6>i810_audio: Connection 0 with codec id 0
<6>ac97_codec: AC97 Audio codec, id: ALG32 (ALC650)
<4>i810_audio: AC'97 codec 0, new EID value = 0x05c7
<4>i810_audio: AC'97 codec 0, DAC map configured, total channels = 6
<7>eth0: resetting device...
<7>eth0: uploading firmware...
<4>Registering unionfs 1.0.14
<4>EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
<6>mice: PS/2 mouse device common for all mice
<3>prism54: request_firmware() failed for 'isl3890'
<3>eth0: could not upload firmware ('isl3890')
<3>eth0: islpci_reset: failure
<6>eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
<6>eth1: link up, 100Mbps, full-duplex, lpa 0x45E1


/proc/cpuinfo



processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 11
model name : Mobile Intel(R) Celeron(TM) CPU 733MHz
stepping : 4
cpu MHz : 730.907
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips : 1458.17



lspci




00:00.0 Host bridge: Intel Corporation 82830 830 Chipset Host Bridge (rev 04)
Subsystem: Unknown device 7065:8086
Flags: bus master, fast devsel, latency 0
Memory at (32-bit, prefetchable)
Capabilities:

00:02.0 VGA compatible controller: Intel Corporation 82830 CGC [Chipset Graphics Controller] (rev 04) (prog-if 00 [VGA controller])
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at f0000000 (32-bit, prefetchable) [size=128M]
Memory at ffa80000 (32-bit, non-prefetchable) [size=512K]
Capabilities:

00:02.1 Display controller: Intel Corporation 82830 CGC [Chipset Graphics Controller]
Flags: bus master, fast devsel, latency 0
Memory at e8000000 (32-bit, prefetchable) [size=128M]
Memory at ff980000 (32-bit, non-prefetchable) [size=512K]
Capabilities:

00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02) (prog-if 00 [UHCI])
Subsystem: Intel Corporation Unknown device 24c0
Flags: bus master, medium devsel, latency 0, IRQ 11
I/O ports at e000 [size=32]
Kernel modules: usb-uhci, uhci

00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02) (prog-if 00 [UHCI])
Subsystem: Intel Corporation Unknown device 24c0
Flags: bus master, medium devsel, latency 0, IRQ 7
I/O ports at e080 [size=32]
Kernel modules: usb-uhci, uhci

00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02) (prog-if 00 [UHCI])
Subsystem: Intel Corporation Unknown device 24c0
Flags: bus master, medium devsel, latency 0, IRQ 5
I/O ports at e400 [size=32]
Kernel modules: usb-uhci, uhci

00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 02) (prog-if 20 [EHCI])
Subsystem: Intel Corporation Unknown device 24c0
Flags: bus master, medium devsel, latency 0, IRQ 9
Memory at ffa7f400 (32-bit, non-prefetchable) [size=1K]
Capabilities:
Kernel modules: ehci-hcd

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: ff700000-ff7fffff
Kernel modules: i810_rng, hw_random

00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02)
Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02) (prog-if 8a [Master SecP PriP])
Subsystem: Intel Corporation Unknown device 24c0
Flags: bus master, medium devsel, latency 0, IRQ 5
I/O ports at
I/O ports at
I/O ports at
I/O ports at
I/O ports at ffa0 [size=16]
Memory at 10000000 (32-bit, non-prefetchable) [size=1K]

00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 02)
Subsystem: Intel Corporation Unknown device 24c0
Flags: medium devsel, IRQ 10
I/O ports at e480 [size=32]

00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
Subsystem: Intel Corporation Unknown device 24c0
Flags: bus master, medium devsel, latency 0, IRQ 10
I/O ports at e800 [size=256]
I/O ports at ec00 [size=64]
Memory at ffa7fc00 (32-bit, non-prefetchable) [size=512]
Memory at ffa7f800 (32-bit, non-prefetchable) [size=256]
Capabilities:
Kernel modules: i810_audio

01:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 64, IRQ 10
I/O ports at d800 [size=256]
Memory at ff7fdc00 (32-bit, non-prefetchable) [size=256]
Capabilities:
Kernel modules: 8139too

01:07.0 Network controller: Intersil Corporation ISL3890 [Prism GT/Prism Duette]/ISL3886 [Prism Javelin/Prism Xbow] (rev 01)
Subsystem: Z-Com, Inc. XG-600 and clones Wireless Adapter
Flags: bus master, medium devsel, latency 64, IRQ 7
Memory at ff7fe000 (32-bit, non-prefetchable) [size=8K]
Capabilities:
Kernel modules: prism54

Thursday, December 27, 2007

 

Sitecom Wireless Network USB Adapter 54 g unter gentoo


Mal wieder ein kleines Erfolgserlebnis auf gentoo:
Der Sitecom Wirless Network USB adapter 54g WL-168 v1 hat Realtek in sich - und zwar RTL8187. Folgender Patch wird noch benötigt. Danach funktioniert der Treiber einwandfrei.

Kernel: Linux leni 2.6.23-gentoo-r3 #1 SMP Thu Dec 27 19:09:07 CET 2007 i686 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux

Hier die Ausgabe von lsusb -v:
Bus 002 Device 003: ID 0df6:000d Sitecom Europe B.V.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0df6 Sitecom Europe B.V.
idProduct 0x000d
bcdDevice 1.00
iManufacturer 1 Manufacturer_Realtek_RTL8187_
iProduct 2 RTL8187ireless_LAN_Adapter
iSerial 3 000CF63895C8
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 Wireless Network Card
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 0 (Defined at Interface level)
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 5 Bulk-IN,Bulk-OUT,Bulk-OUT
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)

 

Terratec Hybrid Cinergy XS auf gentoo


Geschafft! Der DVB-T Stick funktioniert nun auf unter gentoo.

Die Erleuchtung kam hierher:
http://konstantin.filtschew.de/blog/2006/11/30/howto-hauppauge-hvr-900-dvb-t-tuner-unter-linux-nutzen-2/
Einfach die expirementellen Treiber nutzen!

Warum ich das hier schreibe? Damit google es besser findet - das nächste Mal ;)

Hier ein paar Infos für google:

Kernel: Linux leni 2.6.23-gentoo-r3 #2 SMP Sat Dec 8 22:49:00 CET 2007 i686 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux

usb 2-5: new high speed USB device using ehci_hcd and address 2
usb 2-5: configuration #1 chosen from 1 choice
em28xx v4l2 driver version 0.0.1 loaded
em28xx new video device (0ccd:0042): interface 0, class 255
em28xx: device is attached to a USB 2.0 bus
em28xx: you're using the experimental/unstable tree from mcentral.de
em28xx: there's also a stable tree available but which is limited to
em28xx: linux <=2.6.19.2
em28xx: it's fine to use this driver but keep in mind that it will move
em28xx: to http://mcentral.de/hg/~mrec/v4l-dvb-kernel as soon as it's
em28xx: proved to be stable
em28xx #0: Alternate settings: 8
em28xx #0: Alternate setting 0, max size= 0
em28xx #0: Alternate setting 1, max size= 0
em28xx #0: Alternate setting 2, max size= 1448
em28xx #0: Alternate setting 3, max size= 2048
em28xx #0: Alternate setting 4, max size= 2304
em28xx #0: Alternate setting 5, max size= 2580
em28xx #0: Alternate setting 6, max size= 2892
em28xx #0: Alternate setting 7, max size= 3072
input: em2880/em2870 remote control as /class/input/input7
em28xx-input.c: remote control handler attached
attach_inform: eeprom detected.
em28xx #0: i2c eeprom 00: 1a eb 67 95 cd 0c 42 00 50 12 5c 03 6a 32 9c 34
em28xx #0: i2c eeprom 10: 00 00 06 57 46 07 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 20: 46 00 01 00 f0 10 31 00 b8 00 14 00 5b 00 00 00
em28xx #0: i2c eeprom 30: 00 00 20 40 20 6e 02 20 10 01 00 00 00 00 00 00
em28xx #0: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 32 03 43 00 69 00
em28xx #0: i2c eeprom 70: 6e 00 65 00 72 00 67 00 79 00 20 00 48 00 79 00
em28xx #0: i2c eeprom 80: 62 00 72 00 69 00 64 00 20 00 54 00 20 00 55 00
em28xx #0: i2c eeprom 90: 53 00 42 00 20 00 58 00 53 00 00 00 34 03 54 00
em28xx #0: i2c eeprom a0: 65 00 72 00 72 00 61 00 54 00 65 00 63 00 20 00
em28xx #0: i2c eeprom b0: 45 00 6c 00 65 00 63 00 74 00 72 00 6f 00 6e 00
em28xx #0: i2c eeprom c0: 69 00 63 00 20 00 47 00 6d 00 62 00 48 00 00 00
em28xx #0: i2c eeprom d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
EEPROM ID= 0x9567eb1a
Vendor/Product ID= 0ccd:0042
AC97 audio (5 sample rates)
500mA max power
Table at 0x06, strings=0x326a, 0x349c, 0x0000
tuner 4-0061: chip found @ 0xc2 (em28xx #0)
attach inform (default): detected I2C address c2
/usr/src/v4l-dvb-experimental/v4l/tuner-core.c: setting tuner callback
tuner 0x61: Configuration acknowledged
/usr/src/v4l-dvb-experimental/v4l/tuner-core.c: setting tuner callback
/usr/src/v4l-dvb-experimental/v4l/xc3028-tuner.c: attach request!
/usr/src/v4l-dvb-experimental/v4l/tuner-core.c: xc3028 tuner successfully loaded
attach_inform: tvp5150 detected.
tvp5150 4-005c: tvp5150am1 detected.
Loading base firmware: xc3028_init0.i2c.fw
Loading default analogue TV settings: xc3028_BG_PAL_A2_A.i2c.fw
xc3028-tuner.c: firmware 2.7
ANALOG TV REQUEST
em28xx #0: V4L2 VBI device registered as /dev/vbi0
em28xx #0: V4L2 device registered as /dev/video1
em28xx #0: Found Terratec Hybrid XS
em28xx audio device (0ccd:0042): interface 1, class 1
em28xx audio device (0ccd:0042): interface 2, class 1
usbcore: registered new interface driver em28xx
em2880-dvb.c: DVB Init
Loading base firmware: xc3028_8MHz_init0.i2c.fw
Loading specific dtv settings: xc3028_DTV8_2633.i2c.fw
xc3028-tuner.c: firmware 2.7
Sending extra call for Digital TV!
/usr/src/v4l-dvb-experimental/v4l/xc3028-tuner.c: attach request!
DVB: registering new adapter (em2880 DVB-T)
DVB: registering frontend 0 (Zarlink ZL10353 DVB-T)...
Em28xx: Initialized (Em2880 DVB Extension) extension

Thursday, December 20, 2007

 

Schichtsalat


Rezept für einen Schichtsalat. Die folgenden Zutaten in dieser Reihenfolge in eine Schüssel geben und eine Nacht im Kühlschrank ziehen lassen:
  • 1 Glas Selleriesalat
  • 6 Eier in Scheiben
  • 2 Päkchen Kochschinken gewürfelt
  • 1,5 Dose Mais
  • 1,5 Dose Ananas
  • 5 kleine Äpfel gerasspelt
  • 1,5 Glas Mircale Wip Mayonaise
  • 1 Stange Poree (kurz vorm Servieren)
Vor dem Servieren nicht vermengen.

Friday, May 05, 2006

 

dnscache on a hetzner root server using Debian


How to run dnscache on a hetzner root server using Debian.
  1. Install daemontools
  2. Install djbdns
    $ apt-get install djbdns-installer
    $ get-djbdns
    $ build-djbdns
    $ /etc/init.d/djbdns stop # stop it
    $ rm /etc/init.d/djbdns # remove it
    $ update-rc.d -f djbdns remove # remove startup links

  3. Setup dnscache (user setup was already done by Debian)
    $ dnscache-conf dnscache dnslog /service/dnscache

  4. Configure hetzner's nameservers as "root name servers"
    $ cat <<EOF > /service/dnscache/root/servers/@
    213.133.98.98
    213.133.99.99
    213.133.100.100
    EOF

  5. Set FORWARDONLY option
    $ echo 1 > /service/dnscache/env/FORWARDONLY

  6. Restart dnscache
    $ svc -t /service/dnscache

  7. Edit your resolv.conf
    $ echo "nameserver 127.0.0.1" > /etc/resolv.conf">

  8. Use it and watch it
    $ dnsip kde.org
    $ tail -f /service/dnscache/log/main/current

Enjoy!

This page is powered by Blogger. Isn't yours?