Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Oct 1998 20:24:35 +0200
From:      Panos GEVROS <P.Gevros@cs.ucl.ac.uk>
To:        net@FreeBSD.ORG
Cc:        p.gevros@cs.ucl.ac.uk
Subject:   kernel compiled remotely + installed over NFS -> net i/f problem
Message-ID:  <2094.907615475@cs.ucl.ac.uk>

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

bizzare..
the story is rather long but there may be people interested 
i still don't know why this happens, and i wish there is an easy answer.
Cheers,
Panos



Background
this appeared sometime ago in this list under ("Re: network problem") and was 
about a problem with an ethernet interface (ed0) which was 'going to sleep' 
and connections freezed, pings stopped etc. and when i kick it (send/tcpdump) 
everything resumes till the next time (soon)


Fix
it appeared not to be a H/w problem after all
..what fixed  was just compiling a kernel locally.
i brought the src-sys and rebuilt the kernel _locally_ and now it is working 
fine (the _same_ kernel config file!)


Story
the "problematic" kernel had "past" which  
appeared in freebsd-questions ("Re: mounting sources and building kernels") a 
couple of weeks ago (in brief: i  was compiling on a 'server' machine which 
had the sources then mounting /usr/src on the machine which had the problem 
and did 'make install' )


this is how i bult the kernel that was causing the problem:
---------------------------------------------------------------
is it possible to have all sources in only one "server" machine and  use it to 
upgrade another "remote" by letting the "remote" mount the "server"? 
(i NFS export /usr/src -maproot=root on the server)

i have upgraded the system from 2.2.6 -> 2.2.7 by 'makebuildworld' once on the 
server and then 
on the "remote" :
        mount server:/usr/src /usr/src
        cd /usr/src
        make installworld
that seemed to have worked...


i have difficulty with building a kernel like this though,
on the "remote"!!:
        mount server:/usr/src /usr/src
        cd /usr/src/sys/i386/conf
        /usr/sbin/config REMOTE-KERNEL
        cd ../../compile/REMOTE-KERNEL
        make depend
        make ... ...

                Error 1 at vnode_if.c (first file to cc)
in fact i receive several 'warnings' at vnode_if.c  all like this :

vnode_if.c:640: warning: excess elements in struct initializerafter 
`vop_vfree_desc`
*** Error code 1

if i build the kernel on the "server" 
and  on the "remote" just 'mount' 'cd' in the REMOTE-KERNEL compile directory 
do 'make install' then it does not complain.
BUT THIS KERNEL had the ed0 sideffect.

i'd be very interested to know why this happens?


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2094.907615475>