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

[pbsd-mg2] cross compiler



 | pcic0: controller 1 (Intel 82365SL Revision 1) has socket A only
 | trap: TLB miss (load or instr. fetch) in kernel mode
 | status=0x2, cause=0x8, epc=0x8010e070, vaddr=0xc007d834
 | pid=0 cmd= usp=0x0 ksp=0x80157928
 | Stopped in  at  0x8010e070:     lw      v0,52(v0)
 | db> 
 | 
 | > ちなみに バイナリキット=NetBSD-1.3 のは、 
 | > gcc version 2.7.2.1
 | > です。

 鈴木さんのクロスコンパイラでコンパイルし終わってから
bcu_vrip.o	pcic_vrgiu.o	vr.o		vrgiu_vrip.o	vrkiu.o
com_vrip.o	rtc_vrip.o	vrgiu.o		vrip.o
だけを素のGNUのbinutils-2.9.1.0.19.tar.gzとegcs-1.1.2.tar.gzから

binutils-2.9.1.0.19:
# ../configure --prefix=/usr/local --target=mipsel-elf --host=i586--freebsd --build=i586--freebsd
# make
# make install

egcs-1.1.2:
(gccディレクトリで)
# ../configure --prefix=/usr/local --target=mipsel-elf --host=i586--freebsd --build=i586--freebsd --with-gnu-as --with-gnu-ld 
# make LANGUAGES=c
(mips16ライブラリの生成で無限ループしてしまうのでMakefileからCROSS_LIBGCC1 = libgcc1-asm.aをコメントアウトして)
# make LANGUAGES=c install -k

で作ったコンパイラとリンカでリコンパイルしてみたところ、pcic0 at vrgiu0でブートしました。(dmesgは下のです)
ただ、このコンパイラ(mipsel-elf-gcc -mips3 -msoft-float -D__NO_LEADING_UNDERSCORES__)で全部コンパイルすると、
pbsdboot後、画面の上1/3が真っ黒になった後止まってしまいます...

 僕の使っている、consoleまわりのパッチを 
ftp://f77.nop.or.jp/users/uch/NetBSD/hpcmips/conshack-990711.patch.gz
に置いてあります。boot時もboot後もキーボードが使えてもますが、あんまりよくないです。

p0 addr 0xb000100-0xd00Copyright (c) 1996, 1997, 1998, 1999
    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.3I (GENERIC2) #5: Sun Jul 11 02:21:46 JST 1999
    uch@r3000.rfe.nop.or.jp:/work/netbsd/work/sys/arch/hpcmips/compile/GENERIC2
NEC VR4100
real mem  = 8388608
avail mem = 5890048
using 204 buffers containing 835584 bytes of memory
../../../../arch/hpcmips/vr/vr.c(132): vr_bus_reset() not implemented.
mainbus0 (root)
cpu0 at mainbus0: cpu0: NEC VR4100 CPU Rev. 5.0 with software emulated floating point Rev. 0.0
cpu0: L1 cache: 16kb/16b Instruction, 8kb/16b Data, direct mapped
cpu0: No L2 cache
vrip0 at mainbus0
com0 at vrip0 addr 0xc000000-0xc000007 intr 9: ns16550a, working fifo
vrrtc0 at vrip0 addr 0xb0000c0-0xd0000bf intr 2
vrgiu0 at vrip0 addr 0xb000100-0xd0000ff intr 8
pcic0 at vrgiu0 addr 0x140003e0-0x140003de intr 9
pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B
pcic0: controller 1 (Intel 82365SL Revision 1) has socket A only
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
wdc0 at pcmcia1 function 0 port 0x14000000-0x1400000f
wd0 at wdc0 channel 0 drive 0: <Hitachi CV 6.1.2>
wd0: drive supports 1-sector pio transfers, lba addressing
wd0: 61MB, 984 cyl, 4 head, 32 sec, 512 bytes/sect x 125952 sectors

pcmcia2 at pcic0 controller 1 socket 0
vrbcu0 at vrip0 addr 0xb000000-0xcffffff
vrkiu0 at vrip0 addr 0xb000180-0xd00017f intr 7(98, 0): console

../../../../arch/hpcmips/vr/vr.c(132): vr_bus_reset() not implemented.
boot device: wd0
root on wd0a dumps on wd0b
WARNING: old BSD partition ID!
WARNING: preposterous clock chip time
 -- CHECK AND RESET THE DATE!
root file system type: ffs
---
UCHIYAMA Yasushi
uch@nop.or.jp