Subject: Re: binutils & kernel compile
To: None <port-powerpc@NetBSD.ORG>
From: Kazuki Sakamoto <sakamoto@cec.co.jp>
List: port-powerpc
Date: 12/15/1997 19:00:27
thorpej@nas.nasa.gov wrote:

 > I noticed this, too... Interesting to note, I _could_ boot some of the
 > 2.8.1 kernels in PSIM if I linked them w/ certain flags (please don't
 > ask me to remember them :-)

I tried to use new binutils unintentionally.
<URL:ftp://ftp.yggdrasil.com/private/hjl/binutils-2.8.1.0.18.tar.gz>
NetBSD/powerpc was used with PSIM.

================made by binutils-2.8.1.0.15================
% psim -f tree ofwboot.elf
>> NetBSD/powerpc OpenFirmware Boot, Revision 1.3
>> (sakamoto@saturn100, Fri Dec 12 20:10:05 JST 1997)
Booting ofdisk0/netbsd
877164@0x100000+112660@0x1d626c 
 start=0x100000
warning: released chunks within region 0x4000..0x5160f
cpu 1, cia 0x1bba68: double interrupt - MSR[RI] bit clear when attempting to deliver interrupt, cia=0x1bba68, msr=0x1030; srr0=0x1bfd14(cia), srr1=0x89032(msr); trap-vector=0x700, trap-msr=0x1000
ofwboot.elf: Caught signal -1 at address 0x1bba68

================made by binutils-2.8.1.0.18================
% psim -f tree ofwboot.elf
>> NetBSD/powerpc OpenFirmware Boot, Revision 1.3
>> (sakamoto@saturn100, Fri Dec 12 20:10:05 JST 1997)
Booting ofdisk0/netbsd
877760@0x100000+112656@0x1d64c0 
 start=0x100000
warning: released chunks within region 0x4000..0x5160f
IPKDB: No interface found!
Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.3A (GENERIC) #0: Sun Dec 14 18:16:03 JST 1997
    sakamoto@saturn100:/usr/local/Be/cvs/src/sys/arch/powerpc/compile/GENERIC
CPU: Version 0 (Revision 0)
real mem = 4194304
avail mem = 2617344
using 51 buffers containing 208896 bytes of memory
ofroot0 (root) (gpl,clayton)
ofbus0 at ofroot0 (cpus)
cpu at ofbus0 not configured
ofbus1 at ofroot0 (pci)
ofbus2 at ofbus1 (ide)
ofdisk0 at ofbus2 (cdrom)
ofdisk1 at ofbus2 (cdrom)
ofcons0 at ofbus1 (com)
boot device: ofdisk0
root on ofdisk0c dumps on ofdisk0b
mountroot: trying ffs...
mountroot: trying nfs...
mountroot: trying msdos...
mountroot: trying cd9660...
root file system type: cd9660
init: copying out flags `-s' 3
init: copying out path `/sbin/init' 11
Jan  1 00:00:08 init: /etc/spwd.db: No such file or directory
Enter pathname of shell or RETURN for sh: 

# ls
ls
altroot dev     home    netbsd  sbin    sys     usr
bin     etc     mnt     root    stand   tmp     var
# ^Cofwboot.elf: Caught signal 2 at address 0x100158
%
========================================================

For this reason, we should use binutils-2.8.1.0.18 or latest version.
Though it isn't tried, I will be able to use with port bebox.

Kazuki Sakamoto
sakamoto@cec.co.jp