Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 May 1996 02:45:58 +0500 (BSD)
From:      Eugene Vekua <eugene@sanet.ge>
To:        freebsd-questions@freebsd.org
Subject:   Problem with kernel rebuilding... (locore.s)
Message-ID:  <Pine.BSF.3.91.960511014835.561A-100000@wks2.sanet.ge>

next in thread | raw e-mail | index | archive | help

Hi,

Our network use the FreeBSD 2.0.5,  some days ago I have needed  to 
use the ppp pseudo-device for pppd. The original kernel does not supports 
this pseudo device. I tried to rebuild kernel, but it didn't want to rebuild.
I followed the instruction from FreeBSD WWW Handbook but again no success. 
I still need to attach the ppp pseudo-device to my kernel.

If anyone can help me with advise, I will realy 
apprishiate this help.

Thank you.

Below is the GENERIC which I use for kernel rebuilding, and the mistake 
which I've got. As I understand the problem is with assembler source file 
locore.s but I have no enough expirience with assembler for edit it, and 
correct mistake, or may be I need to use additional key for compiler, I 
don't know I'm stuck.

--------------------------------------------------------------------

#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
#	GENERIC,v 1.45.2.3 1995/06/05 21:50:41 jkh Exp
#

machine		"i386"
cpu		"I586_CPU"
ident		EUGENE
maxusers	10

options		MATH_EMULATE		#Support for x87 emulation
options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		NFS			#Network Filesystem
options		MSDOSFS			#MSDOS Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3
options		BOUNCE_BUFFERS		#include support for DMA bounce buffers

config		kernel	root on wd0 

controller	isa0
controller	pci0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0

controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0

#Enable PS/2 mouse
device		psm0

device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr
device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr

# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.
device de0

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
pseudo-device	sl	1
# ijppp uses tun instead of ppp device
pseudo-device	ppp	1
pseudo-device	tun	1
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's

---------------------------------------------------------------------


/usr/src/sys/compile/EUGENE >make
cpp -DLOCORE -nostdinc -I. -I../../ -I../../sys/ -I../../include -DEUGENE 
-DI586_CPU -DBOUNCE_BUFFERS -DCOMPAT_43 -DPROCFS -DCD9660 -DMSDOSFS -DNFS 
-DFFS -DINET -DMATH-EMULATE -DKERNEL -Di386 -DLOAD_ADDRESS=0xF0100000 
../../i386/i386/locore.s | as -o locore.o
../../i386/i386/locore.s:Assembler messages:
../../i386/i386/locore.s:156: Error: Rest of line ignored. First ignored 
character is `b'.
../../i386/i386/locore.s:156: Error: invalid character '_' in opcode
../../i386/i386/locore.s:515: Error: operands givendon't match any known 
386 instruction
../../i386/i386/locore.s:516: Error: Unimplemented segment type 6 in 
parse_operand

 .... [Skiped]

Stop.

-                -
---              -----
-----            ----------
--------         ----------------
Eugene Vekua --- SA*Net Computer Network
                    <eugene@sanet.ge>





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960511014835.561A-100000>