From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 21 15:47:18 2003 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 7D58016A4BF for ; Thu, 21 Aug 2003 15:47:18 -0700 (PDT) Received: from radix.sorted.org (radix.sorted.org [194.70.217.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9ED2643FA3 for ; Thu, 21 Aug 2003 15:47:14 -0700 (PDT) (envelope-from pete@sorted.org) Received: from sorted.org (bubble.sorted.org [194.70.217.145]) by radix.sorted.org (Postfix) with ESMTP id D35E72E3B0 for ; Thu, 21 Aug 2003 23:47:08 +0100 (BST) Date: Thu, 21 Aug 2003 23:47:15 +0100 Content-Type: text/plain; delsp=yes; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Pete Bentley To: freebsd-sparc64@freebsd.org Content-Transfer-Encoding: 7bit In-Reply-To: <20030804164248.GG65432@elvis.mu.org> Message-Id: <6908317B-D429-11D7-A4E7-000A959F6E56@sorted.org> X-Mailer: Apple Mail (2.552) Subject: Re: Netra X1 - Status query and stupid question 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: Thu, 21 Aug 2003 22:47:18 -0000 On Monday, August 4, 2003, at 05:42 PM, Maxime Henrion wrote: >>> On Mon, Jul 28, 2003 at 12:51:34PM +0100, Pete Bentley wrote: >>>> Just wondering what the status is with regard to drivers for >>>> the X1's onboard Davicom ethernet? [...] >>> > Sorry for bringing bad news, but it probably won't work yet. First, it > seems integrated dc(4) cards in Netra X1's have their MAC address set > to > 00:00:00:00:00:00. This can probably be worked around by setting the > MAC via ``ifconfig ether''. Seems to work well enough to get the machine going as a self-hosted development system. As you say, the MAC addresses start off zeroed but I've bodged around that for now with a cheesey hack in rc.d/netif. > We need to get the MAC address from > OpenFirmware properties but I haven't had time to implement this > properly yet. I might have a look at this in odd moments... got any pointers to code in other drivers I can use as a learning aid? > Another problem that you might hit is PCI bus errors. It happened to > at > least one guy running FreeBSD/sparc64 with a dc(4) card. No panics yet, just some harmless seeming timeouts near the start of dc_setcfg(), see below. However I've not really stressed the interface yet - just a few 'cat termcap' over an ssh session kind of things. Pete. ------------------------------------------------------------------- Sun Netra X1 (UltraSPARC-IIe 400MHz), No Keyboard OpenBoot 4.0, 640 MB memory installed, Serial #50735782. Ethernet address 0:3:ba:6:2a:a6, Host ID: 83062aa6. Executing last command: boot /pci@1f,0/ide@d/disk@0,0:a Boot device: /pci@1f,0/ide@d/disk@0,0:a File and args: >> FreeBSD/sparc64 boot block Boot path: /pci@1f,0/ide@d/disk@0,0:a Boot loader: /boot/loader Console: OpenFirmware console FreeBSD/sparc64 bootstrap loader, Revision 1.0 (root@un.sorted.org, Thu Aug 21 01:11:59 BST 2003) bootpath="/pci@1f,0/ide@d/disk@0,0:a" Loading /boot/defaults/loader.conf /boot/kernel/kernel data=0x2c1d08+0x4f1a8 syms=[0x8+0x4da00+0x8+0x3e074] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... nothing to autoload yet. jumping to kernel entry at 0xc0040000. Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.1-CURRENT #0: Thu Aug 21 10:56:07 BST 2003 root@un.sorted.org:/usr/obj/usr/src/sys/SPARKY Preloaded elf kernel "/boot/kernel/kernel" at 0xc03a0000. Timecounter "tick" frequency 400000000 Hz quality 0 real memory = 671088640 (640 MB) avail memory = 638337024 (608 MB) cpu0: Sun Microsystems UltraSparc-IIe Processor (400.00 MHz CPU) nexus0: pcib0: on nexus0 pcib0: Sabre, impl 0, version 0, ign 0x7c0, bus A DVMA map: 0x60000000 to 0x63ffffff pci0: on pcib0 isab0: at device 7.0 on pci0 isa0: on isab0 pci0: at device 3.0 (no driver attached) pci0: at device 3.0 (no driver attached) dc0: port 0x10000-0x100ff at device 12.0 on pci0 dc0: Ethernet address: 00:00:00:00:00:00 miibus0: on dc0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto dc1: port 0x10100-0x101ff mem 0x2000-0x20ff at device 5.0 on pci0 dc1: Ethernet address: 00:00:00:00:00:00 miibus1: on dc1 ukphy1: on miibus1 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: at device 10.0 (no driver attached) atapci0: port 0x10220-0x1022f,0x10208-0x1020b,0x10210-0x10217,0x10218- 0x1021b,0x10200-0x10207 at device 13.0 on pci0 ata2: at 0x10200 on atapci0 ata3: at 0x10210 on atapci0 Timecounters tick every 10.000 msec ad0: 19092MB [38792/16/63] at ata2-master UDMA66 Mounting root from ufs:/dev/ad0a warning: no time-of-day clock registered, system time will not be set accurately Loading configuration files. Entropy harvesting: interrupts ethernet point_to_point. swapon: adding /dev/ad0b as swap device Starting file system checks: /dev/ad0a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad0a: clean, 462583 free (95 frags, 57811 blocks, 0.0% fragmentation) /dev/ad0h: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad0h: clean, 4907479 free (55 frags, 613428 blocks, 0.0% fragmentation) /dev/ad0g: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad0g: clean, 2539903 free (22175 frags, 314716 blocks, 0.6% fragmentation) Setting hostname: un.sorted.org. ## Sets MAC address here, but the 'failed to' lines below come when we ## do the 'ifconfig inet ' bit dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: failed to force tx and rx to idle state dc0: flags=8843 mtu 1500 inet 194.70.217.180 netmask 0xffffff00 broadcast 194.70.217.255 inet6 fe80::203:baff:fe06:2aa6%dc0 prefixlen 64 tentative scopeid 0x1 ether 00:03:ba:06:2a:a6 media: Ethernet autoselect (100baseTX ) status: active lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 add net default: gateway 194.70.217.190 Additional routing options:. hw.bus.devctl_disable: 0 -> 1 Mounting NFS file systems:. Starting syslogd. Aug 21 22:43:16 un syslogd: kernel boot file is /boot/kernel/kernel ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib Starting local daemons:. Updating motd. Starting sshd. Starting sendmail. Initial sparc64 initialization:. Additional ABI support:. Starting cron. Local package initialization:. Additional TCP options:. Starting background file system checks in 60 seconds. Thu Aug 21 22:43:21 BST 2003 FreeBSD/sparc64 (un.sorted.org) (ttya) login: