Skip to contentSkip to conversation

building SOM tools

parisc-linux Grant Grundler 2 participants 7 messages Sep 13, 1999 – Sep 15, 1999

lore
Share & tools
lore
#0 lore raw

Grant Grundler wrote:
...

Quoted 5 lines

Sigh...I thought the object files were supposed to be SOM until I saw the following in the binutils/gas/configure:

      parisc-*-linux*)         fmt=elf em=linux ;;

Should I change this to "som"?

I changed my local copy of configure as proposed above. I removed /linux/parisc-linux/bin from my $PATH. This doesn't build "out of the box" either... Anyone have fixes for this not committed to the CVS tree?

grundler <429> ./configure --prefix=/linux --host=hppa1.1-hp-hpux11.00 --target=parisc-linux
grundler <430> make
...
cc -g -o as-new app.o as.o atof-generic.o bignum-copy.o cond.o depend.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o output-file.o read.o sb.o stabs.o subsegs.o symbols.o write.o tc-hppa.o obj-som.o atof-ieee.o ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a ../libiberty/libiberty.a /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (app.o) was detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
bfd_som_set_subsection_attributes (code)
bfd_som_set_section_attributes (code)
hppa_som_gen_reloc_type (code)
bfd_som_attach_aux_hdr (code)
bfd_som_set_symbol_type (code)
make[1]: *** [as-new] Error 1
make[1]: Leaving directory `/linux/binutils/gas'
make: *** [all-gas] Error 2
grundler <431>

#1 lore raw

Hello folks,

I also tried configuring for "--target=hppa1.1-hp-hpux10.20". That results in the same symbols missing ("/usr/ccs/bin/ld:
Unsatisfied symbols:"...). Any hints on what next?

TIA,
grant

ps. The actual line changed in gas/configure is the "hppa-*-linux" case
of "${generic_target}" switch (case) statement.
The "parisc-*-linux" case is dead code and can be removed since the switch is on $generic_target and not $target.

Quoted 37 lines · Grant Grundler

Grant Grundler wrote:
...

Quoted 5 lines

Sigh...I thought the object files were supposed to be SOM until I saw the following in the binutils/gas/configure:

      parisc-*-linux*)         fmt=elf em=linux ;;

Should I change this to "som"?

I changed my local copy of configure as proposed above. I removed /linux/parisc-linux/bin from my $PATH. This doesn't build "out of the box" either... Anyone have fixes for this not committed to the CVS tree?

grundler <429> ./configure --prefix=/linux --host=hppa1.1-hp-hpux11.00 --targ
et=parisc-linux
grundler <430> make
...
cc -g -o as-new app.o as.o atof-generic.o bignum-copy.o cond.o depend.o ecoff
.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o
input-file.o input-scrub.o listing.o literal.o macro.o messages.o output-f
ile.o read.o sb.o stabs.o subsegs.o symbols.o write.o tc-hppa.o obj-som.o a tof-ieee.o ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a ../libiberty /libiberty.a
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (app.o) was detect
ed. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
bfd_som_set_subsection_attributes (code) bfd_som_set_section_attributes (code)
hppa_som_gen_reloc_type (code)
bfd_som_attach_aux_hdr (code)
bfd_som_set_symbol_type (code)
make[1]: *** [as-new] Error 1
make[1]: Leaving directory `/linux/binutils/gas'
make: *** [all-gas] Error 2
grundler <431>

Quoted 4 lines

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

Grant Grundler
Communications Infrastructure Computer Operations
+1.408.447.7253

#2 lore raw

[parisc-linux] 715/100 bootpd fails

Hi again,

Building "Image" but can't boot it via bootpd.
Here's what I've worked through so far...ideas?

My 715/100 (firmware 1.6, 64MB RAM, no disk) complains
"ERROR: Cannot load IPL, error detected"

from either a 11.00 or 10.20 bootpd host.
"sea lan" at the target "BCH" (aka BOOT_ADMIN) shows both hosts. I think bootpd is configured "close enough" and the target box is finding both bootpd servers and "Image" on each. I did have a problem with public read permission on one host but fixed that.

I downloaded Image-19990705 from the puffin.external.hp.com depot and got the same result. So it's probably not a tools issue. :^/ Building mkImage with "cc" might make a difference - but I doubt it. I also doubt the mkImages changes I posted earlier today matter either.

"file Image" tells me Image is a lif file.
But "lifls" says it's not. The contradiction is a bit annoying. Can someone cook the makefile to use lifinit/lifcp instead of mkImage.c? I'm not sure it's possible but would be good if we could.

I'll try a different box (712/80) and see what that says. I have a scratch disk on this box and could try dumping "Image" to disk to see if it's a problem with how Image is built or how the bootp server is transmitting data to the target.

Someone locally suggested UDP checksum had to be either on or off. Anyone know about this (and if so, how to set/clear it appriopriately)?

The rest is just FYI.

grant

grundler <417>make Image
make -C arch/parisc/boot Image
make[1]: Entering directory `/linux/linux/arch/parisc/boot'
make[2]: Entering directory `/linux/linux/arch/parisc/boot/boot_code'
ld -nostdlib -N -H -R0x500000 ipl_s.o ipl_c.o rom_interface.o cache.o -o ipl
ld: (Warning) Linker features were used that may not be supported in future releases. The +vallcompatwarnings option can be used to display more details, and the ld(1) man page contains additional information. This warning can be suppressed with the +vnocompatwarnings option. strip ipl
make[2]: Leaving directory `/linux/linux/arch/parisc/boot/boot_code'
./mkImage boot_code/ipl ../../../vmlinux Image
Image 'Image' created.
Added IPL 'boot_code/ipl', 4084 pad bytes, checksum 0x098B99B2.
IPL will be relocated at run-time to 0x00500000.
Added Linux-SOM-Kernel '../../../vmlinux', 1060kB, entry-point at 0xC0010000.
Bootable Linux-Image 'Image' is ready to go !
chmod a+rw Image # better change that in mkImage.c-source...
make[1]: Leaving directory `/linux/linux/arch/parisc/boot'

grundler <419>file /linux/linux/arch/parisc/boot/Image
/linux/linux/arch/parisc/boot/Image: lif file
grundler <420>lifls /linux/linux/arch/parisc/boot/Image
lifls: Can't list /linux/linux/arch/parisc/boot/Image; not a LIF volume

[ 11.00 and 10.20 agree on this result - grant ]

grundler <421>tail /etc/bootptab

lego02b:\
        hd=/linux/linux/arch/parisc/boot:\
        bf=Image:\
        ba:bs:\
        vm=auto:\
        ht=ethernet:\
        ha=0800095F7A88:\
        sm=255.255.248.0:\
        ip=15.16.122.147

grundler <422>uname -a
HP-UX rock B.11.00 A 9000/800 2016163551 two-user license grundler <423>model
9000/800/D390

Grant Grundler
Communications Infrastructure Computer Operations
+1.408.447.7253

#3 lore raw

Re: [parisc-linux] 715/100 bootpd fails

Quoted 6 lines

Building "Image" but can't boot it via bootpd.
Here's what I've worked through so far...ideas?

My 715/100 (firmware 1.6, 64MB RAM, no disk) complains
"ERROR: Cannot load IPL, error detected"

Quoted 6 lines

from either a 11.00 or 10.20 bootpd host.
"sea lan" at the target "BCH" (aka BOOT_ADMIN) shows both hosts. I think bootpd is configured "close enough" and the target box is finding both bootpd servers and "Image" on each. I did have a problem with public read permission on one host but fixed that.

My guess is your bootpd / tftpd does not work properly. Just as it might help, here is my configuration:

/etc/bootptab:
puffin:ha=0010830329ee:ip=10.10.0.95:sm=255.255.0.0:bf=/tftpboot/kernel-puffin:td=/tftpboot/ herring:ha=08000987F208:ip=10.10.0.96:sm=255.255.0.0:bf=/tftpboot/kernel-herring:td=/tftpboot/

tftpd is started from inetd, inetd.conf line is:
tftp dgram udp wait nobody /usr/sbin/tcpd in.tftpd /tftpboot

$ tftp localhost
tftp> get kernel-puffin
Received 1039957 bytes in 1.2 seconds
tftp> get kernel-herring
Received 1039957 bytes in 1.1 seconds
tftp> 
# bootpd -d9
bootpd: info(6):   bootptab mtime: Thu Jul  8 16:27:42 1999
bootpd: info(6):   reading "/etc/bootptab"
bootpd: info(6):   read 2 entries (2 hosts) from "/etc/bootptab"
bootpd: info(6):   recvd pkt from IP addr 0.0.0.0
bootpd: info(6):   bootptab mtime: Thu Jul  8 16:27:42 1999
bootpd: info(6):   request from Ethernet address 00:10:83:03:29:EE
bootpd: info(6):   found 10.10.0.95 (puffin)
bootpd: info(6):   bootfile="/tftpboot/kernel-puffin"
bootpd: info(6):   vendor magic field is 99.130.83.99
bootpd: info(6):   sending reply (with RFC1048 options)
bootpd: info(6):   setarp 10.10.0.95 - 00:10:83:03:29:EE

I have no idea how to translate all that to HP/UX.

Quoted 4 lines

grundler <421>tail /etc/bootptab

lego02b:\
        hd=/linux/linux/arch/parisc/boot:\
        bf=Image:\

appropriate permissions on this ? is tftpd started with / as root (not /tftpboot as usual) ?

Philipp Rumpf

#4 lore raw

Re: [parisc-linux] 715/100 bootpd fails

Quoted 2 lines · Philipp Rumpf

My guess is your bootpd / tftpd does not work properly. Just as it might help, here is my configuration:

Yup - that was right.

I got a call from another parisc-linux "lurker" and the configuration for HP-UX is

/etc/inetd.conf:
tftp dgram udp wait root /usr/lbin/tftpd tftpd \

                /linux/linux/arch/parisc/boot \
                /home/tftpd

bootps dgram udp wait root /usr/lbin/bootpd bootpd -d3

[ the -d3 could be omitted ]

and /etc/bootptab:

lego02b:\
        hn:\
        sm=255.255.248.0:\
        vm=rfc1048:\
        ht=ether:\
        ha=0800095F7A88:\
        ip=15.16.122.147
        bf=/linux/linux/arch/parisc/boot/Image

We didn't specify "gw=xxx" since my host and target are on the same subnet. Hope this helps others as well...

thanks again philip,
grant

Grant Grundler
Communications Infrastructure Computer Operations
+1.408.447.7253

#5 lore raw

Re: [parisc-linux] 715/100 bootpd fails

Sorry....typo was mine.

Grant Grundler wrote:
...

Quoted 8 lines

and /etc/bootptab:

lego02b:\
        hn:\
        sm=255.255.248.0:\
        vm=rfc1048:\
        ht=ether:\
        ha=0800095F7A88:\
        ip=15.16.122.147

wants ":\" appended or bootpd won't pick up the next line.

Quoted 4 lines

bf=/linux/linux/arch/parisc/boot/Image

We didn't specify "gw=xxx" since my host and target are on the same subnet. Hope this helps others as well...

grant

#6 lore raw

Re: [parisc-linux] 715/100 bootpd fails

In reply to Grant Grundler

Grant Grundler wrote:
...

Quoted 2 lines

My 715/100 (firmware 1.6, 64MB RAM, no disk) complains
"ERROR: Cannot load IPL, error detected"

...

Quoted 4 lines

I'll try a different box (712/80) and see what that says. I have a scratch disk on this box and could try dumping "Image" to disk to see if it's a problem with how Image is built or how the bootp server is transmitting data to the target.

Looks like the latter though I don't like lifls complaining about it.

The 712/80 can load/run Image from disk but immediately dumps me back into "BOOT_ADMIN" prompt when trying via the lan. I don't even get an error messages - darn computer is probably just to fast for me to read it....I'll switch to a serial console. Anybody wants the console output for the 712/80, let me know.

grant

Grant Grundler
Communications Infrastructure Computer Operations
+1.408.447.7253