From owner-freebsd-sparc64@FreeBSD.ORG Fri Sep 17 18:18:51 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3958216A4CE for ; Fri, 17 Sep 2004 18:18:51 +0000 (GMT) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99ECD43D1F for ; Fri, 17 Sep 2004 18:18:50 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) i8HIIj1a049079 for ; Fri, 17 Sep 2004 20:18:49 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.10/8.12.10/Submit) id i8HIIdS9049078 for freebsd-sparc64@freebsd.org; Fri, 17 Sep 2004 20:18:39 +0200 (CEST) (envelope-from marius) Date: Fri, 17 Sep 2004 20:18:39 +0200 From: Marius Strobl To: freebsd-sparc64@freebsd.org Message-ID: <20040917201839.A47291@newtrinity.zeist.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.27.0.10; VDF 6.27.0.65 (host: newtrinity.zeist.de) Subject: Testers for Netra X1 RTC driver wanted X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 18:18:51 -0000 While going through some OFW device tree dumps lately I noticed that FreeBSD doesn't support the time of day clock on Netra X1 and probably other models without an EBus, yet. Could those with such models please give a driver for the 'rtc' device a try? For testing you'll need a 5.3-beta or 6.0-current. If you want to try to get it working on an older version see below. How to test: - get the patch from: http://alchemy.franken.de/~marius/sparc64_rtc.diff_test - `cd /path/to/sys` - `mkdir dev/mc146818` - `patch < /path/to/sparc64_rtc.diff_test` - add 'device "mc146818"' and 'device rtc' to your kernel config file, like the patch does for the sparc64 GENERIC - build and install the kernel (don't forget to run config(8) and `make depend` when using an existing build dir) - turn of ntpdate(8) or whatever you used as a workaround - reboot with the new kernel - look at /var/run/dmesg.boot; did a rtc0 successfully attach? if not you can stop here... - if yes, send me the lines in dmesg.boot talking about 'rega' and 'regb' - was there a line in dmesg.boot saying "dow invalid"? if yes, send me that line - look at the output of `date`; if the date in the clock was ever set it should still be reasonable; in any case tell me what OS the machine was running before FreeBSD - set the current date via date(1) or `ntpdate -b ` - reboot with the new kernel again - look at the output of `date` again, is it ok? If you are using a FreeBSD older than 5.3-beta you can try the following: - after applying the patch open sys/sparc64/isa/rtc.c - find the line '#include ' and remove it - find the line with 'ofw_bus_get_node' and replace this with 'ofw_pci_get_node' - save the changed rtc.c - if patching sys/conf/files or sys/conf/files.sparc64 failed take a look at the patch and do the changes manually, should be fairly easy - proceede like above If the kernel compiles the driver should work...or not... Thanks, Marius