* [parisc-linux] building SOM tools
@ 1999-09-13 20:32 Grant Grundler
1999-09-15 15:08 ` Grant Grundler
0 siblings, 1 reply; 7+ messages in thread
From: Grant Grundler @ 1999-09-13 20:32 UTC (permalink / raw)
To: parisc-linux
Grant Grundler wrote:
...
> 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>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] building SOM tools
1999-09-13 20:32 [parisc-linux] building SOM tools Grant Grundler
@ 1999-09-15 15:08 ` Grant Grundler
1999-09-15 21:21 ` [parisc-linux] 715/100 bootpd fails Grant Grundler
0 siblings, 1 reply; 7+ messages in thread
From: Grant Grundler @ 1999-09-15 15:08 UTC (permalink / raw)
To: parisc-linux
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.
Grant Grundler wrote:
> Grant Grundler wrote:
> ...
> > 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>
>
> ---------------------------------------------------------------------------
> To unsubscribe: send e-mail to parisc-linux-request@thepuffingroup.com with
> `unsubscribe' as the subject.
>
Grant Grundler
Communications Infrastructure Computer Operations
+1.408.447.7253
^ permalink raw reply [flat|nested] 7+ messages in thread
* [parisc-linux] 715/100 bootpd fails
1999-09-15 15:08 ` Grant Grundler
@ 1999-09-15 21:21 ` Grant Grundler
1999-09-15 21:56 ` Philipp Rumpf
1999-09-15 21:58 ` Grant Grundler
0 siblings, 2 replies; 7+ messages in thread
From: Grant Grundler @ 1999-09-15 21:21 UTC (permalink / raw)
To: parisc-linux
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] 715/100 bootpd fails
1999-09-15 21:21 ` [parisc-linux] 715/100 bootpd fails Grant Grundler
@ 1999-09-15 21:56 ` Philipp Rumpf
1999-09-15 22:26 ` Grant Grundler
1999-09-15 21:58 ` Grant Grundler
1 sibling, 1 reply; 7+ messages in thread
From: Philipp Rumpf @ 1999-09-15 21:56 UTC (permalink / raw)
To: Grant Grundler; +Cc: parisc-linux
> 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.
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.
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] 715/100 bootpd fails
1999-09-15 21:21 ` [parisc-linux] 715/100 bootpd fails Grant Grundler
1999-09-15 21:56 ` Philipp Rumpf
@ 1999-09-15 21:58 ` Grant Grundler
1 sibling, 0 replies; 7+ messages in thread
From: Grant Grundler @ 1999-09-15 21:58 UTC (permalink / raw)
To: parisc-linux
Grant Grundler wrote:
...
> My 715/100 (firmware 1.6, 64MB RAM, no disk) complains
> "ERROR: Cannot load IPL, error detected"
...
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] 715/100 bootpd fails
1999-09-15 21:56 ` Philipp Rumpf
@ 1999-09-15 22:26 ` Grant Grundler
1999-09-15 22:52 ` Grant Grundler
0 siblings, 1 reply; 7+ messages in thread
From: Grant Grundler @ 1999-09-15 22:26 UTC (permalink / raw)
To: Philipp Rumpf; +Cc: parisc-linux
Philipp Rumpf wrote:
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [parisc-linux] 715/100 bootpd fails
1999-09-15 22:26 ` Grant Grundler
@ 1999-09-15 22:52 ` Grant Grundler
0 siblings, 0 replies; 7+ messages in thread
From: Grant Grundler @ 1999-09-15 22:52 UTC (permalink / raw)
To: Philipp Rumpf, parisc-linux
Sorry....typo was mine.
Grant Grundler wrote:
...
> 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.
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1999-09-15 22:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-13 20:32 [parisc-linux] building SOM tools Grant Grundler
1999-09-15 15:08 ` Grant Grundler
1999-09-15 21:21 ` [parisc-linux] 715/100 bootpd fails Grant Grundler
1999-09-15 21:56 ` Philipp Rumpf
1999-09-15 22:26 ` Grant Grundler
1999-09-15 22:52 ` Grant Grundler
1999-09-15 21:58 ` Grant Grundler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox