Skip to contentSkip to conversation

build success

parisc-linux Tor Arntsen 10 participants 13 messages Jun 9, 1999 – Jun 10, 1999

lore
Share & tools
lore
#0 lore raw

Alex deVries mailed me and said he used the default configs, so I just pressed return to all make config questions and hey presto it compiled (except for one thing, coming back to that).

Cross-compiling environment: SGI Octane, irix 6.5, self-built cross compiler and binutils (from CVS), linux kernel from cvs.

One little thing failed for me (people are obviously cross-compiling on Linux in general, I guess). There is no /bin/bash on SGI, it mostly lives in /usr/freeware/bin. The following patch fixed it for me (typical Perl portability hack):

------
Index: arch/parisc/hp//boot/boot_tools/createheader.sh
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/hp/boot/boot_tools/createheader.sh,v retrieving revision 1.1

createheader.sh +1 -1
diff -u -r1.1 createheader.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # This is a script that creates a header given the 
 # ipl and vmlinux file locations.

------

-Tor

#1 lore raw

[parisc-linux] Trying to get HP-UX working

Well I have the HP a hub and some cabling. The web console works great (cute hack) and it understands my subnetting although it came shipped on an IP address belonging to RIPE not HP or RFC1597 (duh)

I can't however get HP/UX to set up an interface

	194.168.151.23 netmask 255.255.255.224

which I really need to do. Also before I go and build all the sane tools so the box is usable has anyone already built a big tar file of HP/UX binaries of gcc/bash/fileutils etc ?

Alan

#2 lore raw

Re: [parisc-linux] Trying to get HP-UX working

Quoted 3 lines · Alan Cox

which I really need to do. Also before I go and build all the sane tools so the box is usable has anyone already built a big tar file of HP/UX binaries of gcc/bash/fileutils etc ?

here's the gnu directory taken from my HP-UX 10.20 machine at work. it includes the info/, man/, include/, etc directories, so let me know if you'd prefer just bin/. it's 11.5 MB gzipped right now. and go easy, i put it on my lowly P120 Debian machine... 8)

http://209.181.241.33/~oig/gnu.tar.gz

ryan

#3 lore raw

Re: [parisc-linux] Trying to get HP-UX working

Quoted 12 lines · Alan Cox
Quoted 4 lines

which I really need to do. Also before I go and build all the sane tools so the box is usable has anyone already built a big tar file of HP/UX binaries of gcc/bash/fileutils etc ?

here's the gnu directory taken from my HP-UX 10.20 machine at work. it includes the info/, man/, include/, etc directories, so let me know if you'd prefer just bin/. it's 11.5 MB gzipped right now. and go easy, i put it on my lowly P120 Debian machine... 8)

Are they static so that they will work without shared libraries?

Signature · 2 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)
#4 lore raw

Re: [parisc-linux] Trying to get HP-UX working

Quoted 3 lines · John David Anglin
Quoted 1 line

here's the gnu directory taken from my HP-UX 10.20 machine at work. it

Are they static so that they will work without shared libraries?

oops, no, they appear to be dynamic. at least, i assume that's what this means:

mercury:/usr/local/gnu/bin> chatr bash
bash:
shared executable
shared library dynamic path search:
SHLIB_PATH disabled second
embedded path disabled first Not Defined
internal name:
bash
shared library list:
dynamic /usr/lib/libc.1
shared library binding:
deferred
static branch prediction disabled
data page size: 4K
instruction page size: 4K
mercury:/usr/local/gnu/bin>

sorry, i didn't install them on this machine, and wasn't aware they weren't statically-linked. comes from being a non-kernel programmer and being a bit hasty to find something i could possibly help out with, i suppose!

ryan

#5 lore raw

Re: [parisc-linux] Trying to get HP-UX working

In reply to xomina
Quoted 6 lines

here's the gnu directory taken from my HP-UX 10.20 machine at work. it includes the info/, man/, include/, etc directories, so let me know if you'd prefer just bin/. it's 11.5 MB gzipped right now. and go easy, i put it on my lowly P120 Debian machine... 8)

http://209.181.241.33/~oig/gnu.tar.gz

Grabbing. You win an official hero point

#6 lore raw

Re: [parisc-linux] Trying to get HP-UX working

In reply to Alan Cox
Quoted 5 lines

Well I have the HP a hub and some cabling. The web console works great (cute hack) and it understands my subnetting although it came shipped on an IP address belonging to RIPE not HP or RFC1597 (duh)

Quoted 7 lines

I can't however get HP/UX to set up an interface

	194.168.151.23 netmask 255.255.255.224

which I really need to do. Also before I go and build all the sane tools so the box is usable has anyone already built a big tar file of HP/UX binaries of gcc/bash/fileutils etc ?

There's alot of stuff on the HP-UX Porting center; we've got a mirror here at hpux.cae.wisc.edu, there's also a UK one at http://hpux.csc.liv.ac.uk

-Erik

Quoted 8 lines

Alan

---------------------------------------------------------------------------
To unsubscribe: send e-mail to [email protected] with `unsubscribe' as the subject.

#7 lore raw

Re: [parisc-linux] Trying to get HP-UX working

In reply to Alan Cox

Alan Cox writes...

Quoted 3 lines

I can't however get HP/UX to set up an interface

	194.168.151.23 netmask 255.255.255.224

Are you getting errors or do you just need to know where to make changes? If it's the former, post the errors and maybe someone can help. If its the latter, you probably want to edit /etc/rc.config.d/netconf

Quoted 2 lines

which I really need to do. Also before I go and build all the sane tools so the box is usable has anyone already built a big tar file of HP/UX

binaries

Quoted 1 line

of gcc/bash/fileutils etc ?

I think it would be nice for all the developers to be sync'ed up and using the latest tools. Right?

Does it make sense to go one step further and package them in either HP's SD depot format or alternatively RPM(and provide RPM on HP-UX)? I have some SD experience and could automate the packaging if needed.

Another, somewhat larger, option would be to produce a custom HP-UX image for the people working on the port. We can slap that image on bootable CDs for distribution. Rebuilding a system from one of these CD's only takes about 20 minutes. The image could be rebuilt fairly easily if it needed to be updated. I can also help with this if needed.

What does everyone think?

Thanks,

--

Matt Taggart       Technical Consulting Lab
[email protected]  Workstation Systems Division
Ft Collins, CO     Hewlett Packard
#8 lore raw

Re: [parisc-linux] Trying to get HP-UX working

Quoted 7 lines
Quoted 3 lines

I can't however get HP/UX to set up an interface

	194.168.151.23 netmask 255.255.255.224

Are you getting errors or do you just need to know where to make changes? If it's the former, post the errors and maybe someone can help. If its the latter, you probably want to edit /etc/rc.config.d/netconf

Umm webconsole doesnt support cut/paste

ifconfig lan0 194.168.151.23 netmask 255.255.255.224
ifconfig: ioctl (SIOCSIFNETMASK): bad value

Which is kind of a problem

Quoted 5 lines

for distribution. Rebuilding a system from one of these CD's only takes about 20 minutes. The image could be rebuilt fairly easily if it needed to be updated. I can also help with this if needed.

What does everyone think?

A set of GNU tools for HP/UX in a easy format is probably going to make many HP/UX users happy too - SCO has the "skunkware" CD which is basically a GNU brain transplant or SCO and is a similar idea.

Alan

#9 lore raw

Re: [parisc-linux] Trying to get HP-UX working

Quoted 8 lines · Alan Cox
Quoted 7 lines
Quoted 3 lines

I can't however get HP/UX to set up an interface

	194.168.151.23 netmask 255.255.255.224

Are you getting errors or do you just need to know where to make changes? If it's the former, post the errors and maybe someone can help. If its the latter, you probably want to edit /etc/rc.config.d/netconf

Quoted 6 lines

Umm webconsole doesnt support cut/paste

ifconfig lan0 194.168.151.23 netmask 255.255.255.224
ifconfig: ioctl (SIOCSIFNETMASK): bad value

Which is kind of a problem

Alan - this is from man ifconfig on HP-UX 10.20:

Supernets
A supernet is a collection of smaller networks. Supernetting is a technique of using the netmask to aggregate a collection of smaller networks into a supernet. This technique is particularly useful for class C networks. A Class C network can only have 254 hosts. This can be too restrictive for some companies. For these companies, a netmask that only contains a portion of the network part can be applied to the hosts in these class C networks to form a supernet. This supernet netmask should be applied to those interfaces that connect to the supernet using the ifconfig command. For example, a host can configure its interface to connect to a class C supernet, 192.6, by configuring an IP address of 192.6.1.1 and a netmask of 255.255.0.0 to its interface.

And this is the example on HP-UX 10.20:

# ifconfig lan0 191.1.1.1 netmask 255.255.255.224
# ifconfig lan0
lan0: flags=862<BROADCAST,NOTRAILERS,RUNNING,MULTICAST>
        inet 191.1.1.1 netmask ffffffe0 broadcast 191.1.1.31
# ifconfig lan0 192.1.1.1 netmask 255.255.255.224
ifconfig: ioctl (SIOCSIFADDR): Can't assign requested address
# ifconfig lan0 192.1.1.1
# ifconfig lan0
lan0: flags=862<BROADCAST,NOTRAILERS,RUNNING,MULTICAST>
        inet 192.1.1.1 netmask ffffff00 broadcast 192.1.1.255

I can only say - 'This is HP :-)'. Their ideas are sometimes strange for me. :-).

gucio

Signature · 2 lines
gucio -> Piotr Strzyżewski
E-mail: [email protected]
#10 lore raw

Re: [parisc-linux] Trying to get HP-UX working

In reply to Matt Taggart
Quoted 3 lines · Matt Taggart

Does it make sense to go one step further and package them in either HP's SD depot format or alternatively RPM(and provide RPM on HP-UX)? I have some SD experience and could automate the packaging if needed.

Just for reference, the samba 2.0.x source has packaging scripts for HP-UX. I figured out how to build HP-UX packages from that example. (It's pretty easy, although when you get done, building the package isn't as simple as "rpm -ba" or "rpm --rebuild".)

Steve

Signature · 3 lines
[email protected]           | Linux Users of Central Illinois
(217)698-1694             | Meetings the 4th Tuesday of every month
Steven Pritchard          | http://www.luci.org/ for more info
#11 lore raw

Re: [parisc-linux] Trying to get HP-UX working

In reply to Alan Cox
Quoted 3 lines · Alan Cox

I can't however get HP/UX to set up an interface

	194.168.151.23 netmask 255.255.255.224

You'll need to tell it to allow for subnet zero (RFC1878)

on pre 11.x:

# nettune -s ip_check_subnet_addr 0

on 11.x:

# ndd -set /dev/ip ip_check_subnet_addr 0

--
Fredrik Soderblom, Sr Technical Consultant
Phone: (int) +46-8-4442140, Fax: (int) +46-8-4442447
Internet: [email protected], URL: http://people.hp.se/frso
Hewlett-Packard Sverige AB, Box 19, S-164 93 Kista, Sweden
PGPprint: AE 74 BF 05 24 C3 18 99 33 9D A6 18 96 03 8A 29

#12 lore raw
In reply to Tor Arntsen
Quoted 4 lines · Tor Arntsen

Alex deVries mailed me and said he used the default configs, so I just pressed return to all make config questions and hey presto it compiled (except for one thing, coming back to that).

Ack. I'm having problems hitting 'reply all'.

createheader.sh line 1

Quoted 2 lines
createheader.sh +1 -1
-#!/bin/bash
+#!/usr/bin/env bash

I've changed this to /bin/sh, and that's committed now.

- Alex