Subject: Re: Can't build kernel
To: Blaz Zupan <blaz.zupan@uni-mb.si>
From: Michael L. Hitch <osymh@gemini.oscs.montana.edu>
List: amiga-dev
Date: 06/03/1995 10:16:57
On May 28, 10:34pm, Blaz Zupan wrote:
> Also does anybody have any problems with the floppy driver? As far
> as I can tell there were no important changes since the 1.0 version
> but the -current driver simply hangs when it tries to access the floppy
> (the drive light goes on and then nothing happens, the whole machine
> hangs).
The -current kernel won't work with the floppy character device. The
fix has not made it into the -current source tree yet. [It's working
on my system because I have it fixed, and I was looking at the wrong
source file when I thought it had been fixed in -current.]
The appropriate fix is:
diff -cr /usr/src/sys/arch/amiga/amiga/conf.c sys/arch/amiga/amiga/conf.c
*** /usr/src/sys/arch/amiga/amiga/conf.c Tue Apr 25 04:15:53 1995
--- sys/arch/amiga/amiga/conf.c Sat May 13 19:29:38 1995
***************
*** 183,189 ****
--- 183,191 ----
cdev_mouse_init(NMOUSE,ms), /* 15: /dev/mouse0 /dev/mouse1 */
cdev_view_init(NVIEW,view), /* 16: /dev/view00 /dev/view01 ... */
cdev_tty_init(NMFCS,mfcs), /* 17: MultiFaceCard III serial */
+ #define fdopen Fdopen /* conflicts with fdopen() in kern_descrip.c */
cdev_disk_init(NFD,fd), /* 18: floppy disk */
+ #undef fdopen
cdev_disk_init(NVND,vnd), /* 19: vnode disk driver */
cdev_tape_init(NST,st), /* 20: SCSI tape */
cdev_fd_init(1,fd), /* 21: file descriptor pseudo-dev */
Michael
--
Michael L. Hitch INTERNET: osymh@montana.edu
Computer Consultant
Office of Systems and Computing Services
Montana State University Bozeman, MT USA