From owner-freebsd-current Mon Feb 11 18:36:37 2002 Delivered-To: freebsd-current@freebsd.org Received: from newman2.bestweb.net (newman2.bestweb.net [209.94.102.67]) by hub.freebsd.org (Postfix) with ESMTP id DECAC37B4A3 for ; Mon, 11 Feb 2002 18:17:35 -0800 (PST) Received: from okeeffe.bestweb.net (okeefe.bestweb.net [209.94.100.110]) by newman2.bestweb.net (Postfix) with ESMTP id 2DEBD232FA; Mon, 11 Feb 2002 21:17:06 -0500 (EST) Received: by okeeffe.bestweb.net (Postfix, from userid 0) id 6A04F9F2DD; Mon, 11 Feb 2002 21:12:05 -0500 (EST) To: Georg.Koltermann@mscsoftware.com Cc: freebsd-current@freebsd.org, vsilyaev@mindspring.com Subject: Re: /dev/rtc not configured message when starting VMWare2 on Date: Sat, 09 Feb 2002 00:26:38 +0900 From: Munehiro Matsuda Message-Id: <20020212021205.6A04F9F2DD@okeeffe.bestweb.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: Georg-W Koltermann Date: Thu, 07 Feb 2002 11:04:22 +0100 ::Hi, :: ::since many weeks I get "/dev/rtc: device not configured" in -current ::when I start VMWare2. The VMWare2 port works fine otherwise. :: ::Yes, rtc-2001.09.16.1 is installed, and the module is loaded during ::startup. Hi, I have a hack^Wpatch that should fix your problem. Hope this helps, Haro =------------------------------------------------------------------------------ _ _ Munehiro (haro) Matsuda -|- /_\ |_|_| Business Incubation Dept., Kubota Corp. /|\ |_| |_|_| 1-3 Nihonbashi-Muromachi 3-Chome Chuo-ku Tokyo 103-8310, Japan Tel: +81-3-3245-3318 Fax: +81-3-3245-3315 Email: haro@kubota.co.jp --- ports/emulators/rtc/files/rtc.c.ctm Tue Dec 11 02:20:24 2001 +++ ports/emulators/rtc/files/rtc.c Sat Feb 9 00:23:10 2002 @@ -266,9 +266,30 @@ { int error; +#if __FreeBSD_version >= 500023 +dev_t dev; +struct rtc_softc *sc; + + if (rtc_sc!=NULL) + return (EINVAL); + + dev = make_dev(&rtc_cdevsw, 0, UID_ROOT, GID_WHEEL, 0644, DEVICE_NAME); + if (dev==NULL) + return (EINVAL); + + MALLOC(sc, struct rtc_softc*, sizeof(*sc), M_DEVBUF, M_WAITOK); + if (sc==NULL) + return (EINVAL); + + bzero(sc, sizeof(*sc)); + rtc_sc = sc; + dev->si_drv1 = sc; /* Link together */ + sc->dev = dev; +#else error = cdevsw_add(&rtc_cdevsw); if (error) return error; +#endif return error; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message