hsu@imspw6.UUCP (Chou Hsu) (04/22/88)
Hi, We are trying to upgrade UREP to 3.2 under Ultrix 2.2 running on VAX 11/785. We encountered problems and couldn't make it. Followings are the steps we did. Would some one tell me how to solve it. 1. Added "device dup0 at uba0 csr 0160050 vector duprint dupxint" to /sys/conf/NOTE file. 2. Added "dup 54" to /sys/conf/devices.vax 3. Deleted "vaxif/if_dup.c optional dup device-driver Binary" from /sys/conf/files.vax to avoid duplicate declaration of dupprobe(), dupopen(), dupclose(),... to vaxuba/dup.c. 4. Added "vaxuba/dup.c optional dup device-driver NotBinary Unsupported" to /sys/conf/files.vax. 5. Copied urep3.2/4.2dup.c to /sys/vaxuba/dup.c. 6. Copied urep3.2/*.h file to corresponding directory. 7. Added urep3.2/CONF.c to /sys/vax/conf.c 8. Added "dupopen, dupclose, dupread, dupwrite, /* 54 */ nodev, nodev, nodev, 0, seltrue, nodev, 0 " to cdevsw[] of /sys/vax/conf.c. 9. Config NOTE 10. make depend 11. make vmunix 12. mknod dup0 c 54 0 /* make device /dev/dup0 */ 13. chmod 666 /dev/dup0 14. cp vmunix /vmunix 15. Shutdown system 16. Reboot system with new vmunix "dup0 at uba0 csr 160050 vec 300, ipl 15" printed on console. 17. started daemon 18. netexec -W gwuvm start error message "Can't open /dev/dup0" 19. cat > /dev/dup0 /* check device */ "No such device or address" 20. Checked README.ULTRIX and mail from Alan Crosswell > Date: 5 Apr 88 22:30:41 GMT > From: Alan Crosswell <ccicpg!felix!zemon@UUNET.UU.NET> > Organization: Columbia University > Subject: Re: Urep under Ultrix 2.? > Sender: info-ultrix-arpa-request@UCBVAX.BERKELEY.EDU > To: comp-unix-ultrix@UCBVAX.BERKELEY.EDU > > I sent this info to Dave so it may already be some where with the 3.2 > distribution.... You simply remove the local declaration of "register > int br,cvec" in the dupprobe() routine. Br and cvec are now global ^^^^^^^^^^^^^^^^^^^^^^^^^^ > variables rather than a magic trick as in 4BSD (assembler code that ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > "knows" that the C compiler allocates particular registers in a > particular order for register ints). > > Alan Crosswell 21. Deleted "register int br, cvec; " from /sys/vaxuba/dup.c. 22. Config NOTE; cd /sys/NOTE; make depend; make vmunix got compile error message: "dup.c: line 173 "cvec" undefined" 23. Added "int cvec;" to /sys/vaxuba/dup.c before main() to make it as global variable according to Alan's mail. 24. Successfully generated dup.o to BINARY.vax/dup.o 25. linked vmunix and got following error message: loading vmunix Undefined: _spl6 _spl0 Stop. Thanks in advance! -- Yung-Chou Hsu path : uunet!imspw6!hsu