Port-powerpc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NetBSD/be init does not work



I made cross-compile environment of NetBSD/powerpc(NetBSD/be)
on NetBSD/i386, refer to 
<URL:http://www.flame.org/mlist/netbsd/port-powerpc/msg00111.shtml>.

When libc.a was compiled, there was a problem. 

 > + exec make -f /usr/local/Be/usr/share/mk/sys.mk -f Makefile
 > creating accept.o
 > : Assembler messages:
 > :2: Error: Unrecognized opcode: `bnlsr'
 > *** Error code 1

Though I tried to see source of binutils, it didn't find that
'bnlsr' was said. I rewrote `bnlsr' of src/lib/libc/arch/powerpc/SYS.h
to `bnslr', and compiled.
# I chose 'bnslr' though I didn't know it well :-)

I compiled /sbin/init. Then, tried to boot NetBSD/be.
/sbin/init seems to exec only a little.
"Process (pid 1) got signal 11" occured infinity.

Does this influence the following?

<URL:http://www.flame.org/mlist/netbsd/port-powerpc/msg00114.shtml>
Jason Thorpe wrote:
 > Some time ago, you may recall that I was planning on releasing a
 > cross-compiled snapshot of NetBSD/powerpc, plus toolchain diffs.
 > Unfortunately, that was delayed; I went to boot the snapshot floppy
 > image, and lo and behold, init wouldn't start ... Around the time this
 > happened, by Real Job(tm) schedule began to get ... well, much more
 > packed.  There wasn't a lot of time for scouring locore.S and pmap.c
 > looking for the bugs...


== boot log ==============================================================
connected
[ preserving 104056 bytes of netbsd symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.2E (GENERIC) #50: Mon Jul 14 00:10:09 GMT 1997
    
sakamoto%ariel.cec.co.jp@localhost:/be/src/NetBSD/sys970523/arch/be/compile/GENERIC
CPU: PowerPC 603e (Revision 400)
real memory  = 83886080 (81920K bytes)
avail memory = 75792384 (74016K bytes)
using 1024 buffers containing 4194304 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0
pchb0: Motorola product 0x0001 (rev. 0x24)
pcib0 at pci0 dev 11 function 0
pcib0: Intel 82378IB PCI-ISA Bridge (System I/O) (rev. 0x43)
Symbios Logic 53c810 (SCSI mass storage, revision 0x02) at pci0 dev 12 function 
0 not configured
S3 Trio32/64 (VGA display) at pci0 dev 14 function 0 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
lpt0 at isa0 port 0x378-0x37b irq 7
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
wd0 at wdc0 drive 0: <TOSHIBA MK1824FCV>
wd0: 335MB, 682 cyl, 16 head, 63 sec, 512 bytes/sec
wd0: using 1-sector 16-bit pio transfers, chs addressing
ed0 at isa0 port 0x300-0x31f irq 5
ed0: address 00:40:33:91:5b:37, type NE2000 (16-bit)
pc0 at isa0 port 0x60-0x6f irq 1: mono
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 1: 1.44MB 80 cyl, 2 head, 18 sec
biomask 4040 netmask 4060 ttymask 40e2
ticks_per_sec = -8200
ticks_per_sec = 8250000
hz = 100
boot device: <unknown>
root device: ed0                                <- input
file system (default generic): nfs              <- input
nfs_boot: using network interface 'ed0'
nfs_boot: client_addr=0xc0a80102
nfs_boot: server_addr=0xc0a80101
nfs_boot: hostname=bebox
root on ariel:/usr/home/be/root
root time: 0x33c5398f
WARNING: file system time much less than clock time
swap on ariel:/usr/home/be/swap
swap size: 0x2000 (blocks)
init: copying out flags `-s' 3
init: copying out path `/sbin/init' 11
exc_isi|exc_user srr1=0x4000d032 at 0x40074
exc_dsi|exc_user=0xa7988 dsisr=0x42000000 at 0x400b0
exc_dsi|exc_user=0xa9674 dsisr=0xa000000 at 0x400d8
exc_isi|exc_user srr1=0x4000d032 at 0x43460
exc_dsi|exc_user=0xacd34 dsisr=0x42000000 at 0x434d0
exc_isi|exc_user srr1=0x4000d032 at 0x64814
exc_isi|exc_user srr1=0x4000d032 at 0x4ec80
exc_isi|exc_user srr1=0x4000d032 at 0x5912c
exc_isi|exc_user srr1=0x4000f032 at 0x5e794
exc_dsi|exc_user=0x6737c dsisr=0x42000000 at 0x5e7b8
trapsignal
Stopped at      Debugger+0x10:  lwz r0, r1, 0x14,
db> ps
  pid proc     addr     uid  ppid  pgrp  flag stat em  comm         wchan
    2 0xe048fe00 0xed089000   0     0     0  000204  3  netbsd  pagedaemon   th
rd_sleep 0xd5d20
    1 0xe048a100 0xed085000   0     0     0  004004  2  netbsd  init
    0 0xdb3b0 0x104000   0    -1     0  000204  3  netbsd  swapper   scheduler 0
xdb3b0
db> c
Process (pid 1) got signal 11
exc_dsi|exc_user=0x6737c dsisr=0x42000000 at 0x5e7b8
trapsignal
Stopped at      Debugger+0x10:  lwz r0, r1, 0x14,
db> ~
[EOT]
====================================================================

Please teach to me if you notice something.

Kazuki Sakamoto
sakamoto%cec.co.jp@localhost



Home | Main Index | Thread Index | Old Index