Date: Sat, 09 Feb 2002 00:26:38 +0900 From: Munehiro Matsuda <haro@h4.dion.ne.jp> 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 Message-ID: <20020209002638L.haro@h4.dion.ne.jp> In-Reply-To: <px8wuxpr4k9.wl@hunter.muc.macsch.com> References: <px8wuxpr4k9.wl@hunter.muc.macsch.com>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Georg-W Koltermann <Georg.Koltermann@mscsoftware.com>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020209002638L.haro>
