Image Map Image Map
Results 1 to 9 of 9

Thread: Failing on new Kernel for BSD2.11

  1. #1

    Default Failing on new Kernel for BSD2.11

    Hi Folks,

    i try to compile a new 2.11BSD Kernel on SIMH for my 11/73 ... the GENERIC without modification compile well.

    But when i change INET to YES ... i got this error:

    cc -O -DKERNEL -DGENERIC -DINET -DSOFUB_MAP -I. -I../h -o netbind ../conf/netbind.c
    ld -q -r -d -X -i -o unix.o scb.o mch_backup.o mch_click.o mch_copy.o mch_csv.o mch_dump.o mch_dzpdma.o mch_KScall.o mch_profile.o mch_start.o mch_trap.o mch_vars.o mch_xxx.o conf.o ioconf.o boot.o br.o cons.o dh.o dhu.o dhv.o dr.o dz.o hk.o ht.o init_sysent.o kern_clock.o kern_descrip.o kern_mman.o kern_proc.o kern_prot.o kern_prot2.o kern_subr.o kern_synch.o lp.o machdep.o ra.o ram.o rk.o rl.o rx.o si.o subr_rmap.o sys_inode.o sys_kern.o tm.o ts.o tty.o tty_conf.o tty_subr.o tty_tb.o ufs_alloc.o ufs_bio.o ufs_fio.o ufs_inode.o ufs_namei.o vm_proc.o vm_sched.o vm_swap.o xp.o quota_subr.o -Z sys_generic.o ufs_syscalls.o vfs_vnops.o -Z kern_acct.o kern_exec.o kern_exit.o kern_fork.o kern_resource.o -Z kern_time.o sys_process.o ufs_mount.o ufs_subr.o uipc_syscalls.o -Z dkbad.o kern_sig.o mem.o subr_xxx.o trap.o tty_pty.o tty_tty.o -Z quota_kern.o quota_ufs.o quota_sys.o ufs_bmap.o sys_pipe.o -Z clock.o dn.o init_main.o kern_pdp.o machdep2.o subr_prf.o syscalls.o subr_log.o toy.o vm_swp.o -Z ufs_disksubr.o ufs_dsort.o ufs_syscalls2.o kern_sig2.o -Z mch_fpsim.o kern_sysctl.o kern_xxx.o ingreslock.o vm_text.o -Z tmscp.o tmscpdump.o -Z -Z -Z -Z -Z -Z -Y enable34.o vers.o -lkern param.o
    ld:/xp.o: text overflow
    *** Exit 4

    Stop.
    I guess there are to much .o for the linker(ld) ???

  2. #2
    Join Date
    Dec 2012
    Location
    Colorado
    Posts
    216
    Blog Entries
    1

    Default

    I think there is a different makefile for the net kernel, did you start with that? Did you adjust the overlay segment allocation of .o files? Have a look at this old newsgroup article and see if this helps:

    https://groups.google.com/forum/#!ms...comp.bugs.2bsd

  3. #3
    Join Date
    Dec 2010
    Location
    Seattle, WA
    Posts
    2,015

    Default

    Looking at some notes I have when I ran into this issue a few years ago it looks like I moved subr_prf.o from OV6 and subr_log.o from OV7 into OV5 in the kernel Makefile (maybe based on the sample CURLY configuration?) in the network enabled kernel configuration I built. This may or may not work for your configuration depending on all of the various configuration options and you may need to shuffle things around differently to get all of the overlays to fit.

    Code:
    CONF=	scb.o \
    	mch_backup.o mch_click.o mch_copy.o mch_csv.o \
    	mch_dump.o mch_dzpdma.o mch_KScall.o mch_profile.o \
    	mch_start.o mch_trap.o mch_vars.o mch_xxx.o conf.o ioconf.o boot.o
    
    NCONF=	net_copy.o net_csv.o \
    	net_mbuf.o net_scb.o net_SKcall.o net_trap.o net_xxx.o
    
    BASE=	br.o cons.o dh.o dhu.o dhv.o dr.o dz.o hk.o ht.o init_sysent.o \
    	kern_clock.o kern_descrip.o kern_mman.o kern_proc.o kern_prot.o \
    	kern_prot2.o kern_subr.o kern_synch.o lp.o machdep.o ra.o ram.o \
    	rk.o rl.o rx.o si.o subr_rmap.o sys_inode.o sys_kern.o \
    	tm.o ts.o tty.o tty_conf.o tty_subr.o tty_tb.o ufs_alloc.o \
    	ufs_bio.o ufs_fio.o ufs_inode.o ufs_namei.o \
    	vm_proc.o vm_sched.o vm_swap.o xp.o quota_subr.o
    OV1=	sys_generic.o ufs_syscalls.o vfs_vnops.o
    OV2=	kern_acct.o kern_exec.o kern_exit.o kern_fork.o kern_resource.o
    OV3=	kern_time.o sys_process.o ufs_mount.o ufs_subr.o uipc_syscalls.o
    OV4=	dkbad.o kern_sig.o mem.o subr_xxx.o trap.o tty_pty.o tty_tty.o
    OV5=	quota_kern.o quota_ufs.o quota_sys.o ufs_bmap.o	\
    	sys_pipe.o subr_prf.o subr_log.o
    # OV6 gets the (hopefully) never used routines
    OV6=	clock.o dn.o init_main.o kern_pdp.o machdep2.o syscalls.o \
    	toy.o vm_swp.o
    OV7=	ufs_disksubr.o ufs_dsort.o ufs_syscalls2.o kern_sig2.o
    OV8=	mch_fpsim.o kern_sysctl.o kern_xxx.o ingreslock.o vm_text.o
    OV9=	tmscp.o tmscpdump.o

  4. #4
    Join Date
    Sep 2019
    Location
    Zurich, CH
    Posts
    157

    Default

    You can check which overlay is too big by just do a size on the image.
    But it is usually overlay 6 which is too big, and I usually move toy.o to ov9 instead.

    I think we should fix this in the distribution so that people don't hit this one. Thanks for reminding me...

  5. #5
    Join Date
    Dec 2012
    Location
    Colorado
    Posts
    216
    Blog Entries
    1

    Default

    Be sure to remove any devices from your kernel configuration that you don't need.
    Here are the makefile definitions from my 11/73:

    CONF= scb.o \
    mch_backup.o mch_click.o mch_copy.o mch_csv.o \
    mch_dump.o mch_dzpdma.o mch_KScall.o mch_profile.o \
    mch_start.o mch_trap.o mch_vars.o mch_xxx.o conf.o ioconf.o boot.o

    NCONF= net_copy.o net_csv.o \
    net_mbuf.o net_scb.o net_SKcall.o net_trap.o net_xxx.o

    BASE= br.o cons.o dh.o dhu.o dhv.o dr.o dz.o hk.o ht.o init_sysent.o \
    kern_clock.o kern_descrip.o kern_mman.o kern_proc.o kern_prot.o \
    kern_prot2.o kern_subr.o kern_synch.o lp.o machdep.o ra.o ram.o \
    rk.o rl.o rx.o si.o subr_rmap.o sys_inode.o sys_kern.o \
    tm.o ts.o tty.o tty_conf.o tty_subr.o tty_tb.o ufs_alloc.o \
    ufs_bio.o ufs_fio.o ufs_inode.o ufs_namei.o \
    vm_proc.o vm_sched.o vm_swap.o xp.o quota_subr.o
    OV1= sys_generic.o ufs_syscalls.o vfs_vnops.o
    OV2= kern_acct.o kern_exec.o kern_exit.o kern_fork.o kern_resource.o
    OV3= kern_time.o sys_process.o ufs_mount.o ufs_subr.o uipc_syscalls.o
    OV4= dkbad.o kern_sig.o mem.o subr_xxx.o trap.o tty_pty.o tty_tty.o
    OV5= quota_kern.o quota_ufs.o quota_sys.o ufs_bmap.o \
    sys_pipe.o
    # OV6 gets the (hopefully) never used routines
    OV6= clock.o dn.o init_main.o kern_pdp.o machdep2.o subr_prf.o syscalls.o \
    subr_log.o toy.o
    OV7= vm_swp.o ufs_disksubr.o ufs_dsort.o ufs_syscalls2.o kern_sig2.o
    OV8= mch_fpsim.o kern_sysctl.o kern_xxx.o ingreslock.o vm_text.o
    OV9= tmscp.o tmscpdump.o

  6. #6

    Default

    Hmm, im not sure if this error:

    ufs_syscalls2.o kern_sig2.o -Z mch_fpsim.o kern_sysctl.o kern_xxx.o ingreslock.o vm_text.o -Z tmscp.o tmscpdump.o -Z -Z -Z -Z -Z -Z -Y enable34.o vers.o -lkern param.o
    ld:Xp.o: text overflow
    *** Exit 4
    is the same like this:

    vm_sched.o vm_text.o -Z kern_pdp.o kern_xxx.o ufs_syscalls2.o ufs_subr.o rk.o sys_pipe.o kern_sig2.o toy.o subr_log.o -Z -Z -Z -Z -Z -Z -Y vers.o -lkern param.o
    ld: too big for type 431
    *** Exit 2
    The ld: too big for type 431 is clear to me - overlay shuffle.

    Bur this is courious: ld:Xp.o: text overflow

    What do you think?

    Regards Henrik

  7. #7
    Join Date
    Dec 2012
    Location
    Colorado
    Posts
    216
    Blog Entries
    1

    Default

    Can you post the contents of the configuration file you are using?

  8. #8
    Join Date
    Sep 2019
    Location
    Zurich, CH
    Posts
    157

    Default

    The output of "size unix" would also be interesting...

  9. #9

    Default

    Thks for the input.

    After some googeling, i found this: http://www.dnull.com/bsd/oldnews/bsdnew62161.html

    This helps me alot.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •