Linux on the HP 7270 Pavilion


Kernel and PCI Bus

I am running the stable Linux-2.0.25 kernel, with no other patches. On my system, the /proc filesystem contains the following reports:

# cat cpuinfo
processor       : 0
cpu             : 586
model           : Pentium 75+
vendor_id       : GenuineIntel
stepping        : 12
fdiv_bug        : no
hlt_bug         : no
fpu             : yes
fpu_exception   : yes
cpuid           : yes
wp              : yes
flags           : fpu vme de pse tsc msr mce cx8
bogomips        : 66.36
# cat pci
PCI devices found:
  Bus  0, device   8, function  0:
    VGA compatible controller: S3 Inc. ViRGE (rev 6).
      Medium devsel.  IRQ 255.  Master Capable.  Latency=64.  Min
      Gnt=4.Max Lat=255.
      Non-prefetchable 32 bit memory at 0xf8000000.
  Bus  0, device   7, function  1:
    IDE interface: Intel 82371SB Natoma/Triton II PIIX3 (rev 0).
      Medium devsel.  Fast back-to-back capable.  Master Capable.
      Latency=64.
      I/O at 0xffa0.
  Bus  0, device   7, function  0:
    ISA bridge: Intel 82371SB Natoma/Triton II PIIX3 (rev 1).
      Medium devsel.  Fast back-to-back capable.  Master Capable.  No
      bursts.
  Bus  0, device   0, function  0:
    Host bridge: Intel 82439HX Triton II (rev 1).
      Medium devsel.  Master Capable.  Latency=64.

IDE (Hard disk and CD-ROM drives)

The standard (2.4 GB) hard disk is device /dev/hda. It comes partitioned as follows:

Disk /dev/hda: 128 heads, 63 sectors, 624 cylinders
Units = cylinders of 8064 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
/dev/hda1   *        1        1      520  2096608+   6  DOS 16-bit >=32M
/dev/hda2          521      521      623   415296    5  Extended
/dev/hda5          521      521      623   415264+   6  DOS 16-bit >=32M
The 8X CD-ROM is device /dev/hdc.

System log messages:

ide: 430FX (Triton) on PCI bus 0 function 57
    ide0: BM-DMA at 0xffa0-0xffa7
    ide0 timing: (0xa307) sample_CLKs=3, recovery_CLKs=1
         master: fastDMA=on  PreFetch=on  IORDY=on  fastPIO=on 
         slave : fastDMA=off PreFetch=off IORDY=off fastPIO=off
    ide1: BM-DMA at 0xffa8-0xffaf
    ide1 timing: (0xa103) sample_CLKs=3, recovery_CLKs=3
         master: fastDMA=on  PreFetch=off IORDY=on  fastPIO=on 
         slave : fastDMA=off PreFetch=off IORDY=off fastPIO=off
hda: QUANTUM BIGFOOT2550A, 2457MB w/87kB Cache, LBA, CHS=624/128/63, DMA
hdc: GCD-R580B, ATAPI CDROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15

XFree86

The 7270 has an S3 ViRGE video chip and 2 MB of video memory. SuperProbe reports:

    
    First video: Super-VGA
    	    Chipset: S3 ViRGE (PCI Probed)
    	    Memory:  2048 Kbytes
    	    RAMDAC:  Generic 8-bit pseudo-color DAC
    		     (with 6-bit wide lookup tables (or in 6-bit mode))

The S3 ViRGE video chip was not supported by XFree86 until the 3.2 distribution, released on 30 October 1996. You may download XFree86 from ftp.XFree86.org/pub/XFree86 for example. Unpack and install the tar files according to the README file. For the 7270, you need the S3V server.

To enable the S3V server, /usr/X11R6/bin/X should point to XF86_S3V. On the Slackware 3.1 distribution, it does so via two symbolic links:

$cd /usr/X11R6/bin
$ls -l X
lrwxrwxrwx   1 root   root   16 Sep  8 20:53 X -> /var/X11R6/bin/X
$cd /var/X11R6/bin
$ls -l X
lrwxrwxrwx   1 root   root   23 Nov  3 21:25 X -> /usr/X11R6/bin/XF86_S3V

This XF86Config works for me:

Section "Files"
    RgbPath	"/usr/X11R6/lib/X11/rgb"
    FontPath	"/usr/X11R6/lib/X11/fonts/misc/"
    FontPath	"/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath	"/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath	"/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath	"/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "ServerFlags"
EndSection

Section "Keyboard"
    Protocol	"Standard"
    AutoRepeat	500 5
EndSection

Section "Pointer"
    Protocol	"PS/2"
    Device	"/dev/mouse"
    Emulate3Buttons
EndSection

Section "Monitor"
    Identifier	"SyncMaster"
    VendorName	"Samsung"
    ModelName	"SyncMaster 17GLs"
    Bandwidth	135
    HorizSync	30-82         # multisync
    VertRefresh	50-120        # multisync

    ModeLine  "640x480@73Hz"  31.5  640  664  704  832  480  489  492  520
    ModeLine  "800x600@72Hz"    50  800  856  976 1040  600  637  643  666
    ModeLine  "1024x768@70Hz"   75 1024 1048 1184 1328  768  771  777  806
EndSection

Section "Device"
    Identifier	"HP S3 ViRGE"
    VendorName	"HP"
    BoardName	"HP"
    Chipset	"S3_ViRGE"
    Option      "power_saver"
EndSection

Section "Screen"
    Driver	"accel"
    Device	"HP S3 ViRGE"
    Monitor	"SyncMaster"
    Subsection "Display"
        Depth	    8
        Modes	"1024x768@70Hz" "640x480@73Hz" "800x600@72Hz" 
        ViewPort    0 0
        Virtual     1280 1024
    EndSubsection
EndSection

Of course, you will have to adjust the monitor part to match your hardware. If the parameters are wrong, you can damage your monitor!

Here are the X startup messages:

XFree86 Version 3.2 / X Window System
(protocol Version 11, revision 0, vendor release 6100)
Release Date: Oct 26 1996
	If the server is older than 6-12 months, or if your card is newer
	than the above date, look for a newer version before reporting
	problems.  (see http://www.XFree86.Org/FAQ)
Operating System: Linux [ELF] 
Configured drivers:
  S3: accelerated server for S3 graphics adaptors (Patchlevel 0)
      s3_ViRGE
(using VT number 7)

XF86Config: /etc/XF86Config
(**) stands for supplied, (--) stands for probed/default values
(**) Mouse: type: PS/2, device: /dev/mouse, baudrate: 1200,
       3 button emulation (timeout: 50ms)
(**) S3: Graphics device ID: "HP S3 ViRGE"
(**) S3: Monitor ID: "SyncMaster"
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
(--) S3: PCI: ViRGE rev 6, Linear FB @ 0xf8000000
(**) S3: Option "power_saver"
(--) S3: card type: PCI
(--) S3: chipset:   ViRGE rev. 61
(**) S3: chipset driver: S3_ViRGE
(--) S3: videoram:  2048k
(--) S3: Ramdac type: s3_trio64
(--) S3: Ramdac speed: 135
(--) S3: Using Trio32/64 programmable clock (MCLK 50.114 MHz)
(--) S3: Maximum allowed dot-clock: 135.000 MHz
(**) S3: Mode "1024x768@70Hz": mode clock =  75.000
(**) S3: Mode "640x480@73Hz": mode clock =  31.500
(**) S3: Mode "800x600@72Hz": mode clock =  50.000
(--) S3: Using 6 bits per RGB value
(**) S3: Virtual resolution set to 1280x1024
(--) S3: Local bus LAW is 0xF80xxxxx
(--) S3: Using a banksize of 2048k, line width of 1280
PEX extension module not loaded
XIE extension module not loaded

I have noticed no problems so far. Many thanks to Harald Koenig <koenig@tat.physik.uni-tuebingen.de> and the rest of the S3V team!

I have not tried 15 or 16 bpp yet.


Svgalib

Svgalib supports the S3 ViRGE chipset, but only as a plain VGA. The svgalib startup probe reports:

svgalib: S3: Unknown chip id 31e1
Using VGA driver.

Sound

I don't have the sound working under Linux yet. If you have any luck on that score, please let me know.

Update

I moved my Linux work to another machine without ever getting the sound working on the HP 7270. However, I eventually got this message which suggests I should have persisted:

Date: Sun, 16 Jan 2000 19:22:40 -0500 (EST)
From: "Hill,Patrick" <hellspawn@neo.rr.com>>
X-Sender: hellspawn@viper.nailed.org
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi... a friend and I have managed to get sound working on the HP
7270... On the HP, we're running the current unstable version of Debian,
with kernel 2.2.13. To get it working, we enabled Sound Card Support
(obviously), OSS Sound Modules, Persistent DMA buffers, FM synthesizer
(YM3812/OPL-3) support, and Loopback MIDI device support in the kernel
configuration, and enabled Yamaha OPL3-SA1 audio controller as a module.
We didn't seem to have to do anything with the isapnp
configuration.... The card will also work using the ALSA drivers, by
compiling the Crystal Semiconductor and SB drivers, from what others have 
told us. :)

I just happened to be reading your page, and didn't know if you were still
having problems with it, but if you are, that should fix it. :)

Take care...
                       -- Pat Hill

Mouse

The 7270 comes with a PS/2 compatible mouse, which works with X and gpm. The mouse handler gpm can be started with these lines in your rc.local file:

if [ -x /usr/bin/gpm ]
then
 echo "Running gpm..."
 /usr/bin/gpm -t ps2
fi

See also section XFree86.


Modem

The 7270 has an internal 28.8 kb Plug-n-Play modem. I first got it to work by booting Win95, then using loadlin to start Linux. Eventually, I succeeded with just the Linux boot by installing isapnptools-1.8.tgz.

I put this into /etc/isapnp.conf:

(READPORT 0x0203)
(ISOLATE)
(IDENTIFY *)
(CONFIGURE ROK0010/0 (LD 0
 (IO 0 (BASE 0x02f8))
 (INT 0 (IRQ 3 (MODE +L)))
(ACT Y)))
I added this to /etc/rc.d/rc.local:

if [ -x /sbin/isapnp ]
then
  echo "Configuring PnP modem..."
  /sbin/isapnp /etc/isapnp.conf
  /bin/setserial  /dev/cua1 uart 16550
fi
isapnp prints the following message:

Configuring PnP modem...
Board 1 has Identity f2 00 00 00 00 10 00 eb 49:  ROK0010 Serial No 0 [checksum f2]
According to pnpdump, the modem is the only PnP card.

Ports

The boot messages for the serial ports are as follows:

Serial driver version 4.13 with no serial options enabled
tty00 at 0x03f8 (irq = 4) is a 16550A
tty01 at 0x02f8 (irq = 3) is a 16550A
tty02 at 0x03e8 (irq = 4) is a 16550A
After setting the modem up as above, setserial reports the following configuration:

# setserial -ag /dev/cua[1-3]
/dev/cua1, Line 1, UART: 16550, Port: 0x02f8, IRQ: 3
        Baud_base: 115200, close_delay: 50, divisor: 0
        Flags: spd_normal skip_test

/dev/cua2, Line 2, UART: 16550A, Port: 0x03e8, IRQ: 4
        Baud_base: 115200, close_delay: 50, divisor: 0
        Flags: spd_normal skip_test

/dev/cua3, Line 3, UART: unknown, Port: 0x02e8, IRQ: 3
        Baud_base: 115200, close_delay: 50, divisor: 0
        Flags: spd_normal

Benchmarks

The Linux Benchmarks Homepage compares the performance of various Linux boxes on the basis of the BYTE Unix Benchmark. The Index values for the 7270 (32MB RAM, Linux-2.0.24-ELF, version 3.11 of the benchmark recompiled with gcc-2.7.2 -O) are:
TEST                                        BASELINE     RESULT      INDEX

Arithmetic Test (type = double)               2541.7    29371.2       11.6
Dhrystone 2 without register variables       22366.3   209608.1        9.4
Execl Throughput Test                           16.5      173.8       10.5
File Copy  (30 seconds)                        179.0     3803.0       21.2
Pipe-based Context Switching Test             1318.5    39927.6       30.3
Shell scripts (8 concurrent)                     4.0       51.3       12.8
                                                                 =========
     SUM of  6 items                                                  95.8
     AVERAGE                                                          16.0
Hard disk benchmark:

#hdparm -t /dev/hda
 Timing buffer-cache reads:   32 MB in  0.84 seconds =38.10 MB/sec
 Timing buffered disk reads:  16 MB in  2.93 seconds = 5.46 MB/sec
 Estimating raw driver speed: 16 MB in  2.51 seconds = 6.37 MB/sec        
CD-ROM benchmark:

#hdparm -t /dev/hdc
 Timing buffer-cache reads:   32 MB in  0.83 seconds =38.55 MB/sec
 Timing buffered disk reads:  16 MB in 13.68 seconds = 1.17 MB/sec
 Estimating raw driver speed: 16 MB in 13.27 seconds = 1.21 MB/sec     

Upgrading Memory

The 7270 has slots for four 72 pin SIMMs. It comes standard with two 8 MB SIMMs installed, for a total of 16 MB. They have to be installed in pairs.

The Pavilion computer is not designed to be easily serviced. However, it can be done if care is taken. Here is how I did it:

The first step is to open the case, which is not self-evident. However, there are instructions in the user manual. The back cover is held by plastic clips at the top. Pull straight away from the case at the top, letting it hinge down to a 45 degree angle, then detach the catches at the bottom. You will find three small screws which fasten the cover on. Remove the screws, pull the cover straight back by a centimeter, then lift it off.

Be sure you ground yourself by touching the bare metal of the case before touching anything inside. Touch the case again if you do anything that might create a static charge (like sliding across an upholstered chair, or walking across a carpet).

The ISA and PCI adapter slots are on a separate board from the mother board. To access the memory slots, you have to remove this daughter board. It is connected to the mother board with a big connecter approximately in the center of the board, and several screws. Remove all the ISA and PCI cards and the screws, and pull the daughter board straight away from the mother board. I found it necessary to remove one of the I/O card slot covers (the one nearest the big connector) so I could use a screwdriver to pry up on the daughter board. Use care!

There are some ribbon cables which interfere somewhat with the two empty memory slots. However, I was able to get the SIMMs installed without disconnecting the ribbon cables. Incidently, my SIMMs were quite symmetric, with chips on both sides. However, there was a small shoulder on one end of each SIMM, and the slots are keyed. The shoulder goes toward the front of the computer.

While you have the computer open, notice that there is room for a lot of internal drives, including two 2.5 inch bays on top of the power supply.

More instructions for hardware upgrades are included in HP's on-line documentation (available within Windows 95).


Mysteries

At first, a big HP logo was displayed for the first thirty seconds or so after turning the computer on. Now, I'm getting nothing displayed (a black screen). I've no idea what changed.

I have not figured out how to access sound from Linux.


Acknowledgement

This page is modeled after the Linux on the Toshiba T400CDT Notebook page by Christian Burger.


Send comments, questions, suggestions to: Jim Van Zandt <jrvz at comcast dot net>

DISCLAIMER: There is no guarantee that the information on this page is accurate. I have no connection to Hewlett Packard. For official information, see HP's site, in particular their specifications for the 7270.


home

Last modified: 2003-11-13

Valid HTML 4.01!