compiling linux driver to run on HPUX

Thread Tools Search this Thread
Operating Systems HP-UX compiling linux driver to run on HPUX
# 1  
Old 11-07-2002
compiling linux driver to run on HPUX


a friend of mine gave me an old HP B180 Unix Workstation with HPUX, the only problem with that, the onboard graphicsbaord doesn´t work anymore. I want to buy a new PCI Graphicsboard (350RAMDAC), but they only have Linux drivers going with the card.

Question: Is it possible to compile a Linux driver and make it work on a HPUX system?

# 2  
Old 11-07-2002
Re: compiling linux driver to run on HPUX

Originally posted by hilbi
Question: Is it possible to compile a Linux driver and make it work on a HPUX system?
No way. You will need to write a new driver.

Also, old HP hardware appears on EBAY from time to time. You may be able to find another old system that you can cannibalize.
# 3  
Old 11-07-2002
Hold on Perderabo!

I'm not entirely sure your quick reply is 100 percent correct.

Linux drivers are written for GCC compilers. GCC compilers can create HP-UX binaries depending on the OS. See this link:*-hp-hpux*

In the past, I have compiled lots of Linux code on HP-UX after installing a GCC environment on HP-UX, and I think that there are a few Linux/GCC drivers will port if written in GCC.

Now, that brings us to the question of version of HP-UX and OS; and as far as an old HP B180 Unix Workstation with HPUX, it might be possible if it is running a version of HP-UX that is GCC compatible.

Then again, I have no idea what version of HP-UX the B180 might have, or what RISC processor.... is it a version that is compatible with GCC?

Complete list here:

Note: in 'the old days' when I used to write and compile code, one of my first tasks with a new client was to set up a GCC (platform neutral) development environment (for HP, Sun, IRIX, AIX, etc.) so I could use a much broader (and cheaper!) code base and lots of libs!!!

General GCC info here:
# 4  
Old 11-07-2002
Many C programs will compile just fine on HP-UX, but devices are very much different and rely on machine-specific code.

I tried very briefly and very fruitlessly a while back to use Linux device drivers to get some hardware running on HP-UX. Not to say it's not possible, but I would doubt it very very much - the kernel and the hardware are too different to simply port - it'd take a rewrite.

(Livin Free, please see my note at the end of the post below. Neo)
# 5  
Old 11-07-2002
Yes, I agree that device drivers are hardware specific but there are devices drivers that will port. I agree with Perderabo and LivinFree that we cannot simply compile without some (perhaps a lot!) of code modification. See these links for more info:

The Linux (kernel version 2.2) to HP-UX, Network Device Driver Porting Guide compares the Linux and HP-UX driver environments and provides detailed instructions on porting a networking device driver from Linux to HP-UX. Code snippets are used to illustrate bus access, memory mapping, interrupt handling, etc. in the HP-UX environment. The porting guide also provides sample HP-UX and Linux device drivers for PCI Fast Ethernet card based on Intel's 21143 chipset.
After reading the references below, I am starting to think that porting drivers from Linux to HPUX is a LOT OF WORK (just like Perderabo said!!) :

Here is another link from HP:,1882,00.html

Here is another excellent HP link with a "linux to hpux device driver porting guide" in PDF format:

A lot of work .... !!!!!

Sorry LivinFree, perhaps your post about eBay was not off topic Smilie I'm a bit sensitive to off-topic posts (by moderators) because of recent feedback on this subject.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Compiling FORTRAN into Linux

Hello, I use Linux on Ubuntu 12.04. I have a fortran script with extension .f and I want to compile it to an executable file in linux. I have used this command: f77 -o snp_hwe.exe snp_hwe.f But I receive this error: (.text+0x18): undefined reference to `main' collect2: ld returned 1... (1 Reply)
Discussion started by: Homa
1 Replies

2. Hardware

Difference between platform driver,codec driver and Machine driver

In general terms what are the differences platform driver,codec driver and Machine driver? (1 Reply)
Discussion started by: rupeshkp728
1 Replies

3. UNIX for Advanced & Expert Users

Compiling git in HPUX 11.31 itanium

Hello, Would you know the steps on how to compile git command in HPUX? (1 Reply)
Discussion started by: SystemAddict
1 Replies

4. Programming

compiling old C program in Linux.

Hello, I am writing to ask for support about compiling an very old but famous C-progam for genetics study called MapMaker/QTL, and the source code is available from MIT: program was originally designed for systems like SunOS... (1 Reply)
Discussion started by: yifangt
1 Replies

5. UNIX for Dummies Questions & Answers

Linux driver installation and so on.

I find Linux drivers to be the most elusive topic that there is and have enough questions about them that could fill a guide or tutorial if there was one. From what I can gather drivers are installed by one of three ways. 1- Recompile the kernel to include a driver that is included in the... (2 Replies)
Discussion started by: theKbStockpiler
2 Replies

6. Programming

Compiling virtual network adapter driver problem (net_device struct)

Hi, I found on page very useful sample of virtual driver (not connected to real hardware). I try to compile it with no effect. So: I got fresh Ubuntu 9.10 (kernel 2.6.31-14) My source is saved in networkAdapter.c file in /usr/src/myModules directory. I... (21 Replies)
Discussion started by: Chrisdot
21 Replies

7. Programming

Compiling Objective-C 2.0 under Linux

Hello all, I am new to programming and currently I am taking a swing at Objective-C. I easily compile my programs on my Macintosh, and have compiled some Objective-C programs on my linux box. The problem I am having is when I try to use features demonstrated in the book Programming in... (4 Replies)
Discussion started by: inquen
4 Replies

8. UNIX for Dummies Questions & Answers

Need Book for Linux Basics and Linux device driver.

hai friend, I am new to Linux, i need a book for Linux basic and Linux device driver .. plz send the book name and author(Easy to learn and mostly used by programmers) and also send the link if it is available in Net... Thank you. ... (0 Replies)
Discussion started by: sundar.lsr
0 Replies

9. Programming

Porting From Linux To Hpux

Gents, i'm a senior applications developer and need to port a Linux server application ( no additional / special libraries or unique header files ) to a HPUX enviroment. Any chance to compile it on the Linux using flags to create an HPUX binary with gcc? (8 Replies)
Discussion started by: anak0nda
8 Replies

10. UNIX for Advanced & Expert Users

modem driver for linux

how to get modem driver for linux on intel netvista a22p model?please help.Thanks.:( (2 Replies)
Discussion started by: xinubhaskar
2 Replies
Login or Register to Ask a Question