From owner-freebsd-current Fri Feb 8 7:28:48 2002 Delivered-To: freebsd-current@freebsd.org Received: from hfep05.dion.ne.jp (hfep05.dion.ne.jp [203.181.105.71]) by hub.freebsd.org (Postfix) with ESMTP id 68B1737B41F for ; Fri, 8 Feb 2002 07:28:39 -0800 (PST) Received: from localhost ([211.134.60.116]) by hfep05.dion.ne.jp with ESMTP id <20020208152837780.CPGV@hfep05.dion.ne.jp>; Sat, 9 Feb 2002 00:28:37 +0900 To: Georg.Koltermann@mscsoftware.com Cc: freebsd-current@freebsd.org, vsilyaev@mindspring.com Subject: Re: /dev/rtc not configured message when starting VMWare2 on -current In-Reply-To: References: X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20020209002638L.haro@h4.dion.ne.jp> Date: Sat, 09 Feb 2002 00:26:38 +0900 From: Munehiro Matsuda X-Dispatcher: imput version 20000228(IM140) Lines: 58 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