This post details the steps I took to get my Netgear WG311 card working, how I got TV-out working with my PVR-350 in under 30 minutes, and how I got a second hard drive working without LVM.
My computer hardware:
AMD Athlon 750 MHz
512 MB RAM
Creative Labs RIVA TNT 16MB AGP
Hauppauge WinTV-PVR 350
Seagate 200GB IDE HD (hde)
Maxtor 30GB IDE HD (hda)
Sound Blaster Live!
Netgear WG311 Wireless G adapter
Creative Labs 8x DVD-ROM
Abit KA7-100 Motherboard
The following instructions are for NTSC only. I would assume there are only minor changes
that would need to be made for PAL users.
0. Download the latest madwifi drives and burn them to a CD-RW. I downloaded the following file:
madwifi2003-0802.gz
1. Install R2V2 using the auto-install selection
Before I could log into X and start the MythTV setup, I needed internet access so I did the following to get my WG311 card working:
2. Before logging onto X terminal, press CTRL+ALT+F1. Log in as root. Mount /dev/cdrom to /mnt/test. Copy /mnt/test/madwifi-20030802.gz to /var/tmp. Unzip and untar madwifi-20030802.gz. Go into the madwifi-20030802 directory and do the following:
Code:
make
make install
3. Edit /etc/network/interfaces by adding the following line at the end of the file.
Code:
iface ath0 inet dhcp
4. Edit /etc/resolv.conf by adding this line to the end of the file.
Code:
nameserver 192.168.0.1
5. Reboot
6. Log into X terminal and complete setup
I wanted TV out for X and Live TV so I did the following:
7. Press CTRL+ALT+F1. Log in as root. Rename /etc/X11/XF86Config-4 to /etc/X11/XF86Config-4.original. Copy /etc/X11/XF86Config-4.pvr350-tvout.sample to /etc/X11/XF86Config-4.
8. Edit the new /etc/X11/XF86Config-4 so your mouse will work. My XF86Config-4 is shown below. Yours may be different depending on how your mouse is hooked up.
Code:
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "TV Screen"
InputDevice "PS/2 Mouse" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "ServerFlags"
Option "AllowMouseOpenFail" "true"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/PEX"
# Additional fonts: Locale, Gimp, TTF...
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
# FontPath "/usr/X11R6/lib/X11/fonts/latin2/75dpi"
# FontPath "/usr/X11R6/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/ttf/western"
FontPath "/usr/share/fonts/ttf/decoratives"
FontPath "/usr/share/fonts/truetype"
FontPath "/usr/share/fonts/truetype/openoffice"
FontPath "/usr/share/fonts/truetype/ttf-bitstream-vera"
FontPath "/usr/share/fonts/latex-ttf-fonts"
FontPath "/usr/X11R6/lib/X11/fonts/defoma/CID"
FontPath "/usr/X11R6/lib/X11/fonts/defoma/TrueType"
EndSection
Section "Module"
Load "ddc" # ddc probing of monitor
# Load "GLcore"
Load "dbe"
Load "v4l"
Load "extmod"
# Load "glx"
Load "bitmap" # bitmap-fonts
Load "speedo"
Load "type1"
Load "freetype"
Load "record"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Serial Mouse"
Driver "mouse"
Option "Protocol" "Microsoft"
Option "Device" "/dev/ttyS0"
Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "70"
Option "SendCoreEvents" "true"
EndSection
Section "InputDevice"
Identifier "PS/2 Mouse"
Driver "mouse"
Option "Protocol" "auto"
Option "ZAxisMapping" "4 5"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "true"
Option "Emulate3Timeout" "70"
Option "SendCoreEvents" "true"
EndSection
Section "Monitor"
Identifier "NTSC Monitor"
HorizSync 30-68
VertRefresh 50-120
Mode "720x480"
# D: 34.563 MHz, H: 37.244 kHz, V: 73.897 Hz
DotClock 34.564
HTimings 720 752 840 928
VTimings 480 484 488 504
Flags "-HSync" "-VSync"
EndMode
EndSection
Section "Device"
Identifier "Hauppauge PVR 350 iTVC15 Framebuffer"
Driver "fbdev"
### change fb1 to whatever number you got in the previous section
Option "fbdev" "/dev/fb1"
### change the busid to whatever is reported by lspci. Note that
### output of lspci is hex, so add a preceding "0x" to the BusID
BusID "0:0x08:0"
EndSection
Section "Screen"
Identifier "TV Screen"
Device "Hauppauge PVR 350 iTVC15 Framebuffer"
Monitor "NTSC Monitor"
DefaultDepth 24
DefaultFbbpp 32
Subsection "Display"
Depth 24
FbBpp 32
Modes "720x480"
EndSubsection
EndSection
Section "DRI"
Mode 0666
EndSection
9. Edit /etc/mythtv/modules/ivtv to look like the one below:
Code:
alias char-major-81 videodev
alias char-major-61 lirc_i2c
options ivtv debug=1
options tuner type=2
options msp3400 once=1 simple=1
options saa7127 enable_output=1 output_select=0
add below ivtv msp3400 saa7115 saa7127 tuner
add above ivtv lirc_dev lirc_i2c ivtv-fb
10. Make the following changes to solve the black screen with sound problem:
Code:
rm -f /dev/fb0autodetect
rm -f /dev/fb1
mknod /dev/fb1 c 29 1
chmod 666 fb1
chown root:tty /dev/fb1
11. Reboot. If everything went correctly you should have video out for X and be able to watch Live TV at the same time.
Next, I added a 200GB hard drive, which in my case became /dev/hde. I wanted to use hde for my myth partition, since it had so much space so I performed the following:
12.
Code:
fdisk /dev/hde
<create my massive partition>
mkfs.ext3 /dev/hde1
13.
Code:
mkdir /mnt/newdisk
mount -t ext3 /dev/hde1 /mnt/newdisk
cp -r -p /myth/* /mnt/newdisk
umount /mnt/newdisk
rm -fr /mnt/newdisk
14. Edit /etc/fstab. Change the line that defines the /myth partion as being /dev/hdaX to /dev/hde1 (or whatever your second hard drive partition is)
15. Reboot. /dev/hde1 is now mounted as /myth and I have 200GB of space for recordings.[/code]
If anyone has any hints or tips on how to setup the rest of the wireless options for the WG311 card, such as the wireless mode, wireless essid, wireless rate, etc. I would like to hear them.