From owner-freebsd-mips@FreeBSD.ORG Tue May 1 23:31:28 2007 Return-Path: X-Original-To: freebsd-mips@freebsd.org Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 32CAF16A401 for ; Tue, 1 May 2007 23:31:28 +0000 (UTC) (envelope-from www@master.netart.cz) Received: from master.netart.cz (88-128-158-212.bluetone.cz [212.158.128.88]) by mx1.freebsd.org (Postfix) with ESMTP id B5B7A13C459 for ; Tue, 1 May 2007 23:31:27 +0000 (UTC) (envelope-from www@master.netart.cz) Received: from master.netart.cz (localhost [127.0.0.1]) by master.netart.cz (8.13.8/8.13.8) with ESMTP id l41Ml3TY099294 for ; Wed, 2 May 2007 00:47:03 +0200 (CEST) (envelope-from www@master.netart.cz) Received: (from www@localhost) by master.netart.cz (8.13.8/8.13.8/Submit) id l41Ml3Xp099293; Wed, 2 May 2007 00:47:03 +0200 (CEST) (envelope-from www) Date: Wed, 2 May 2007 00:47:03 +0200 (CEST) Message-Id: <200705012247.l41Ml3Xp099293@master.netart.cz> To: freebsd-mips@freebsd.org From: James MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=6.0 tests=ALL_TRUSTED,AWL,BAYES_00, FORGED_YAHOO_RCVD autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on master.netart.cz X-Virus-Scanned: ClamAV 0.88/3190/Tue May 1 23:06:04 2007 on master.netart.cz X-Virus-Status: Clean Subject: Pet Advert..... X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jmarc112@yahoo.com List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 May 2007 23:31:28 -0000 Hello, I will like to place a print Ad on your newspaper and i will like to know the cost for 30 days/4 weeks.kindly get back to me now with the quote,so that i can forward my credit card for the payment. Description below to be on newspaper: BRITISH BULLDOGS PUPPIES FOR-SALE! Beautiful colour and features. Loves to CUDDLE! Short cobby body style.Bulldogs of Stokes Ridge have puppies ready to be a part of your family,Our English Bulldogs are raised in our home with our children. We are not a kennel. Puppies come to you with AKC papers, up to date shots, and health records.Champion Bloodline puppies for sale to approved pet homes only. Breed: English Bulldog Gender: Female & Male are available For Further Enquiry About The Bulldogs Puppies,Email: steve_barrick00@yahoo.com ----------------------------------------------------- Here are the details to be on the newspaper above,get back to me with the quote so that i can email you with the credit cards for the payment Regards James Email me with the cost to these email address: jmarc112@yahoo.com From owner-freebsd-mips@FreeBSD.ORG Wed May 2 13:53:03 2007 Return-Path: X-Original-To: freebsd-mips@FreeBSD.org Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DDA9916A409 for ; Wed, 2 May 2007 13:53:03 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 964EC13C4AE for ; Wed, 2 May 2007 13:53:03 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 5AB4D21C614; Wed, 2 May 2007 09:34:10 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 02 May 2007 09:34:12 -0400 X-Sasl-enc: JRFovkD3Z1yvJG1I8Qrf5234NjHeZY03qcPXqhLl6KjZ 1178112851 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 35A9D219E; Wed, 2 May 2007 09:34:11 -0400 (EDT) Message-ID: <4638934C.50401@incunabulum.net> Date: Wed, 02 May 2007 14:34:04 +0100 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-mips@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: gonzo@FreeBSD.org Subject: FreeBSD on Broadcom Sentry5 devices X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2007 13:53:04 -0000 Hi all, I'd like to announce that a FreeBSD kernel is able to boot to mountroot on real MIPS32 hardware: a Netgear WGT634U. The Linksys WRT54G uses the A0 rev of the BCM4710 which is notorious for containing some CPU bugs requiring gcc toolchain patches to workaround. The WGT634U uses a more recent Sentry5 spin which does not have these issues. The Broadcom CFE firmware is able to load a FreeBSD ELF kernel via TFTP with some tweaks to the linker script. There is basic support code in NetBSD for CFE which may be worth looking at. What needs to be done to support this hardware is to port Broadcom's Linux support package for the Sonics SiliconBackplane. The code looks like it was originally written for a BSD, so this shouldn't be too complex. This stuff is nowhere ready for prime time yet -- and I would like to iron a few things out before committing to p4. Board level reset is very simple -- write to a register. Serial I/O uses uart(4); it is currently kludged to use the hard mapped physical addresses on this board just as the MALTA target does. Oh, and the clock needs to be calibrated properly; DELAY() is currently stubbed out, otherwise you get lots of divide-by-zero errors. This is the output from a Netgear WGT634U access point: CFE version 1.0.34 for BCM95365R (32bit,SP,LE) Build Date: Tue Feb 24 03:21:41 CST 2004 (root@jackylinux) Copyright (C) 2000,2001,2002 Broadcom Corporation. Add MAC client version(DNI). Initializing Arena. Initializing Devices. et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller CPU type 0x29007: 200MHz Total memory: 0x2000000 bytes (32MB) Total memory used by CFE: 0x81BB1280 - 0x82000000 (4517248) Initialized Data: 0x81BB1280 - 0x81BB3E90 (11280) BSS Area: 0x81BB3E90 - 0x81BB45D0 (1856) Local Heap: 0x81BB45D0 - 0x81FB45D0 (4194304) Stack Area: 0x81FB45D0 - 0x81FB65D0 (8192) Text (code) segment: 0x81FB65E0 - 0x81FFFFB0 (301520) Boot area (physical): 0x01B70000 - 0x01BB0000 Relocation Factor: I:E23B65E0 - D:01BB0280 configure vlans ***************************************************************** *********************** VLAN Driver initial ******************** ***************************************************************** Process LAN port(2-5) vlan Architecture... SUCCESS: trying to create VLAN 0 for switch SUCCESS: trying to add LAN port Process WAN port(2-5) vlan Architecture... SUCCESS: trying to create VLAN 0 for switch SUCCESS: trying to add WAN port SUCCESS: enable ports success configure vlans...done Device eth0: hwaddr 00-0F-B5-3D-52-90, ipaddr 192.168.123.123, mask not set gateway not set, nameserver not set CFE> boot -elf 192.168.123.16:/kernel Loader:elf Filesys:tftp Dev:eth0 File:192.168.123.16:/kernel Options:(null) *************************** **** MAC Client V1.0 **** *************************** et0macaddr value :flag =0 value=00-0f-b5-3d-52-90 et1macaddr value :flag =0 value=00-0f-b5-3d-52-91 MAC exist at least one system ethernet mac exist and not default.... Skip mac client process..... Loading: 0x80001000/2014752 0x801eef00/107428 0x802092a4/96380 Entry at 0x80001000 Closing network. et0: link down Starting program at 0x80001000 entry: mips_init() picache_stride = 4096 picache_loopcount = 2 pdcache_stride = 2048 pdcache_loopcount = 2 mips_cache_ops.mco_pdcache_wbinv_all == 0x8018a7d0 Exception vector at 80000000 almost out of space Kernel page table maps 16384 4K pages and is 511K KDB: debugger backends: ddb KDB: current backend: ddb MIPS32 clock: 10000000 Hz Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-CURRENT #40: Wed May 2 14:11:58 BST 2007 bms@anglepoise.lon.incunabulum.net:/usr/obj/mips/usr/home/bms/p4/mips2/sys/SENTRY5 cpu0: Broadcom processor v7.144 MMU: Standard TLB, 32 entries L1 i-cache: 2 ways of 256 sets, 16 bytes per line L1 d-cache: 2 ways of 256 sets, 16 bytes per line clock0: on motherboard clock0: [FILTER] Timecounter "MIPS32" frequency 10000000 Hz quality 800 Timecounters tick every 10.000 msec Manual root filesystem specification: : Mount using filesystem eg. ufs:/dev/da0a ? List valid disk boot devices Abort manual input mountroot> db> call cpu_reset Resetting... From owner-freebsd-mips@FreeBSD.ORG Wed May 2 14:01:53 2007 Return-Path: X-Original-To: freebsd-mips@FreeBSD.org Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AA5D216A401 for ; Wed, 2 May 2007 14:01:53 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 87EE713C4B8 for ; Wed, 2 May 2007 14:01:53 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 47B5621AFB0 for ; Wed, 2 May 2007 10:01:52 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Wed, 02 May 2007 10:01:53 -0400 X-Sasl-enc: 96myjxDzST/2e9VVu4ColZkpEWI50aURsfIi/qHTf3yR 1178114513 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 3059BAE98 for ; Wed, 2 May 2007 10:01:53 -0400 (EDT) Message-ID: <463899CA.4020204@incunabulum.net> Date: Wed, 02 May 2007 15:01:46 +0100 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-mips@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Trouble w/Malta and qemu X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2007 14:01:53 -0000 Hi, For what it's worth I can't get a kernel to boot on QEMU in malta mode. This isn't too much of a loss as their documentation says their malta emulation is incomplete. They have something closer to an x86 desktop in their main mips4kc target. Documentation says the Linux/MIPS port for QEMU is 'special' in some way. A custom built Debian kernel runs fine in QEMU on a FreeBSD host. BMS From owner-freebsd-mips@FreeBSD.ORG Wed May 2 14:15:46 2007 Return-Path: X-Original-To: freebsd-mips@FreeBSD.org Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D0E3916A402 for ; Wed, 2 May 2007 14:15:46 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id AE7DD13C44B for ; Wed, 2 May 2007 14:15:46 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 2B15621C4BF for ; Wed, 2 May 2007 10:15:45 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 02 May 2007 10:15:46 -0400 X-Sasl-enc: cbuNH2CD2fviJ1XwphCPD/TmIay4Y4M4dovxw0RYubZw 1178115346 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 2DE5DAE98 for ; Wed, 2 May 2007 10:15:46 -0400 (EDT) Message-ID: <46389D0B.7010702@incunabulum.net> Date: Wed, 02 May 2007 15:15:39 +0100 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-mips@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: mips tree changes X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2007 14:15:46 -0000 I just checked in the basic Sentry5 stuff to p4 mips2. Have fun. The real Broadcom support code needs to be ported to NEWBUS, to discover onboard peripherals using the Sonics SiliconBackplane. This looks like a PCI bus but is subtly different. It does however contain SB-to-PCI bridge controllers. On the WGT634U there is an EHCI USB2 chip on the PCI bus and a minipci slot which usually contains an Atheros 5212. I have made a change to the Malta config to try to calibrate the clock based on the on-chip counter using the RTC. You can turn this off by commenting out the kernel option TICK_USE_MALTA_RTC, it slows kernel startup in gxemul down slightly. BMS From owner-freebsd-mips@FreeBSD.ORG Wed May 2 14:19:03 2007 Return-Path: X-Original-To: freebsd-mips@FreeBSD.org Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E477016A400 for ; Wed, 2 May 2007 14:19:03 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id C0DE713C457 for ; Wed, 2 May 2007 14:19:03 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 806B321C367 for ; Wed, 2 May 2007 10:19:02 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Wed, 02 May 2007 10:19:04 -0400 X-Sasl-enc: 9jCjUvG0d839t//upmAFKEBoc+SZEBU1ov1N6c5MbwP3 1178115543 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 9B7E0AE98 for ; Wed, 2 May 2007 10:19:03 -0400 (EDT) Message-ID: <46389DD1.6080307@incunabulum.net> Date: Wed, 02 May 2007 15:18:57 +0100 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-mips@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Booting FreeBSD on Sentry5 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2007 14:19:04 -0000 To do this you need to do the following: checkout mips2 branch cd into it make TARGET_ARCH=mips kernel-toolchain cp sys/conf/ldscript.mips sys/conf/ldscript.mips.bak cp sys/conf/ldscript.mips.cfe sys/conf/ldscript.mips make TARGET_ARCH=mips buildkernel KERNCONF=SENTRY5 copy kernel from objdir to a tftp server on wgt634u with console attached, from cfe prompt: boot -elf xx.xx.xx.xx:/kernel ...where xx.xx.xx.xx is the IP address of your tftp server. then watch the sparks fly. Note that the console support currently uses the same kludge as the Malta target, that is, the memory addresses which the uart is mapped at are hardcoded. DELAY() is stubbed as the clock needs to be calibrated. BMS From owner-freebsd-mips@FreeBSD.ORG Wed May 2 14:47:23 2007 Return-Path: X-Original-To: freebsd-mips@freebsd.org Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE3BA16A411 for ; Wed, 2 May 2007 14:47:23 +0000 (UTC) (envelope-from gonzo@freebsd.org) Received: from bugor.portaone.com (bugor.portaone.com [65.61.203.147]) by mx1.freebsd.org (Postfix) with ESMTP id 0778013C4BB for ; Wed, 2 May 2007 14:47:20 +0000 (UTC) (envelope-from gonzo@freebsd.org) Received: from mail.pbxpress.com ([65.61.203.142] helo=leaf.pbxpress.com) by bugor.portaone.com (8.11.3/8.11.3) with ESMTP (TLSv1:AES256-SHA:256)id 1HjFwK-0002cq-0c; Wed, 02 May 2007 07:36:20 -0700 Received: from [192.168.0.6] (k3-gw.portaone.com [193.28.87.193]) (authenticated bits=0) by leaf.pbxpress.com (8.13.3/8.13.3) with ESMTP id l42EbTQp040270 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 May 2007 07:37:40 -0700 (PDT) (envelope-from gonzo@freebsd.org) Message-ID: <4638A1ED.6020603@freebsd.org> Date: Wed, 02 May 2007 17:36:29 +0300 From: Oleksandr Tymoshenko User-Agent: Thunderbird 1.5.0.9 (X11/20070115) MIME-Version: 1.0 To: "Bruce M. Simpson" References: <4638934C.50401@incunabulum.net> In-Reply-To: <4638934C.50401@incunabulum.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, recieved from customer server pbxpress.com or rt.portaone.com Cc: freebsd-mips@freebsd.org Subject: Re: FreeBSD on Broadcom Sentry5 devices X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2007 14:47:24 -0000 Bruce M. Simpson wrote: > Hi all, > > I'd like to announce that a FreeBSD kernel is able to boot to mountroot > on real MIPS32 hardware: a Netgear WGT634U. Great news! Congratulations! :) -- gonzo From owner-freebsd-mips@FreeBSD.ORG Wed May 2 17:06:11 2007 Return-Path: X-Original-To: freebsd-mips@FreeBSD.org Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F89C16A404 for ; Wed, 2 May 2007 17:06:11 +0000 (UTC) (envelope-from ralf@linux-mips.org) Received: from ftp.linux-mips.org (ftp.linux-mips.org [194.74.144.162]) by mx1.freebsd.org (Postfix) with ESMTP id B1D2313C44B for ; Wed, 2 May 2007 17:06:10 +0000 (UTC) (envelope-from ralf@linux-mips.org) Received: from localhost.localdomain ([127.0.0.1]:59372 "EHLO dl5rb.ham-radio-op.net") by ftp.linux-mips.org with ESMTP id S20023006AbXEBQjY (ORCPT ); Wed, 2 May 2007 17:39:24 +0100 Received: from denk.linux-mips.net (denk.linux-mips.net [127.0.0.1]) by dl5rb.ham-radio-op.net (8.13.8/8.13.8) with ESMTP id l42F0khO027132; Wed, 2 May 2007 16:06:06 +0100 Received: (from ralf@localhost) by denk.linux-mips.net (8.13.8/8.13.8/Submit) id l42F0jps027131; Wed, 2 May 2007 16:00:45 +0100 Date: Wed, 2 May 2007 16:00:45 +0100 From: Ralf Baechle To: "Bruce M. Simpson" Message-ID: <20070502150045.GA26356@linux-mips.org> References: <463899CA.4020204@incunabulum.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <463899CA.4020204@incunabulum.net> User-Agent: Mutt/1.4.2.2i Cc: freebsd-mips@FreeBSD.org Subject: Re: Trouble w/Malta and qemu X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2007 17:06:11 -0000 On Wed, May 02, 2007 at 03:01:46PM +0100, Bruce M. Simpson wrote: > For what it's worth I can't get a kernel to boot on QEMU in malta mode. > This isn't too much of a loss as their documentation says their malta > emulation is incomplete. They have something closer to an x86 desktop in > their main mips4kc target. The Malta emulation in Qemu is progressing fairly quickly and rather close in the latest CVS version of Qemu. It's still not perfect, YAMON has a few timing critical parts in its initialization which are failing on Qemu and there are a few other things that are still failing. Linux/MIPS by default does a full PCI bus reconfiguration. This matters because Qemu is generally used without firmware, maybe that's breaking your kernel? > Documentation says the Linux/MIPS port for QEMU is 'special' in some > way. A custom built Debian kernel runs fine in QEMU on a FreeBSD host. Linux has a special CONFIG_QEMU platform which exists as a temporary kludge until Qemu actually emulates some real world hardware. The hardware supported by CONFIG_QEMU is vaguely like a PC with a RISC processor. I'm eventually planning to remove the whole CONFIG_QEMU config once Qemu emulates some piece of real world hardware sufficiently well. Ralf From owner-freebsd-mips@FreeBSD.ORG Wed May 2 19:26:57 2007 Return-Path: X-Original-To: freebsd-mips@FreeBSD.org Delivered-To: freebsd-mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 38CF716A403 for ; Wed, 2 May 2007 19:26:57 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 143A413C48A for ; Wed, 2 May 2007 19:26:57 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 593F821DC7A for ; Wed, 2 May 2007 15:26:55 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 02 May 2007 15:26:57 -0400 X-Sasl-enc: XcHVK/G3xa0gqRfD06DbJf1KW1W12wCAhZkgsBV23KT1 1178134016 Received: from [192.168.124.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 734F31D37B for ; Wed, 2 May 2007 15:26:56 -0400 (EDT) Message-ID: <4638E5FE.3060901@incunabulum.net> Date: Wed, 02 May 2007 20:26:54 +0100 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: freebsd-mips@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Broadcom 4710a0 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2007 19:26:57 -0000 Hi, I've been investigating what, if anything, needs to be done with the FreeBSD/mips system compiler to support the earlier Broadcom 4710A0 chips found in the Linksys WRT54G and Asus WL-HDD2.5 systems. It looks as though the patches Broadcom integrated into their gcc fork only prevent the generation of branch-likely instructions. In our import of GCC 3.4.6, the -mno-branch-likely option now exists, therefore I believe no patch is required. For system bringup it looks like some TLB and cache workarounds are necessary (based on reading Linux). A patch against Linux appears here: http://www.freewrt.org/trac/browser/trunk/freewrt/target/linux/brcm-2.6/patches/003-bcm4710_cache_fixes.patch?rev=1&format=txt Regards, BMS From owner-freebsd-mips@FreeBSD.ORG Fri May 4 23:41:12 2007 Return-Path: X-Original-To: freebsd-mips@freebsd.org Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4C8E416A400 for ; Fri, 4 May 2007 23:41:12 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 27EA913C45E for ; Fri, 4 May 2007 23:41:12 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 7912F21DCA0 for ; Fri, 4 May 2007 19:41:21 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Fri, 04 May 2007 19:41:12 -0400 X-Sasl-enc: tJdhOWtclpasMK0KUhvcm/dmXRUDoxjfqMoL7tcI+FaV 1178322072 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 0B16D1895B for ; Fri, 4 May 2007 19:41:11 -0400 (EDT) Message-ID: <463BC496.10501@incunabulum.net> Date: Sat, 05 May 2007 00:41:10 +0100 From: Bruce M Simpson User-Agent: Thunderbird 1.5.0.10 (X11/20070407) MIME-Version: 1.0 To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Meshcube X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2007 23:41:12 -0000 The 4G Meshcube / AccessCube MIPS32 box appears to be a fairly standard AMD Alchemy Au1500. Board support for Au1500 and the Meshcube MTX-1 variant is in NetBSD. Firmware on the Meshcube has been determined to be a full YAMON implementation. Regards, BMS From owner-freebsd-mips@FreeBSD.ORG Sat May 5 00:45:40 2007 Return-Path: X-Original-To: freebsd-mips@freebsd.org Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B206316A406 for ; Sat, 5 May 2007 00:45:40 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 8DA6713C468 for ; Sat, 5 May 2007 00:45:40 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id B765C21BF36 for ; Fri, 4 May 2007 20:45:50 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Fri, 04 May 2007 20:45:40 -0400 X-Sasl-enc: moyFfvPc8sSd95tec1MjdrEKeWv6XQ8UnyTOy4Rh8JIG 1178325940 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 7FE901CDBA for ; Fri, 4 May 2007 20:45:40 -0400 (EDT) Message-ID: <463BD3B2.9050903@incunabulum.net> Date: Sat, 05 May 2007 01:45:38 +0100 From: Bruce M Simpson User-Agent: Thunderbird 1.5.0.10 (X11/20070407) MIME-Version: 1.0 To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Clock frequency, gxemul, yamon X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2007 00:45:40 -0000 The tick.c code currently uses the CPU clock frequency (if known) for calibrating DELAY() and the MIPS on chip ticker, implemented using the cycle count register, a bit like TSC on x86. It appears that the YAMON monitor includes a function to discover the clock frequency from the platform firmware.(I don't see a way to do this for CFE firmware). GXemul's yamon shim does not support this function, a patch should be quite trivial to implement. Regards, BMS From owner-freebsd-mips@FreeBSD.ORG Sat May 5 15:49:19 2007 Return-Path: X-Original-To: freebsd-mips@freebsd.org Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 63BEA16A403 for ; Sat, 5 May 2007 15:49:19 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 4021413C45D for ; Sat, 5 May 2007 15:49:19 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 28C9121DDE1; Sat, 5 May 2007 11:49:41 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Sat, 05 May 2007 11:49:19 -0400 X-Sasl-enc: ms5D1Gu/GaeYKwIxyk7oOH8cFjkbpgBU5dnifC3wlOgc 1178380159 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 28759132D3; Sat, 5 May 2007 11:49:19 -0400 (EDT) Message-ID: <463CA77D.20801@incunabulum.net> Date: Sat, 05 May 2007 16:49:17 +0100 From: Bruce M Simpson User-Agent: Thunderbird 1.5.0.10 (X11/20070407) MIME-Version: 1.0 To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: [PATCH] Teach gxemul yamon about clock discovery X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2007 15:49:19 -0000 Hi, NetBSD has code which calibrates their DELAY() using the on-chip counter (as our code tries to do). However the YAMON monitor has a SYSCON read object which exports the board clock info via their API. This patch teaches the GXemul YAMON prom emulation to export the configured CPU clock in the virtual machine to the host OS: http://people.freebsd.org/~bms/dump/gxemul-clockfreq-yamon.diff I tested this with NetBSD-3.1 for evbmips malta. I previously hacked a patch which did this via environment variables. A similar patch may be necessary for CFE or PMON firmware. Regards, BMS From owner-freebsd-mips@FreeBSD.ORG Sat May 5 20:33:55 2007 Return-Path: X-Original-To: freebsd-mips@freebsd.org Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B8A8516A400 for ; Sat, 5 May 2007 20:33:55 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 92A1413C45D for ; Sat, 5 May 2007 20:33:55 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 368B921E089 for ; Sat, 5 May 2007 16:34:21 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Sat, 05 May 2007 16:33:56 -0400 X-Sasl-enc: v+Ocp/OOWmUCI9SQDcArOgSByeWtS4c0+55+K20YAlGa 1178397235 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 8B2F2294C3 for ; Sat, 5 May 2007 16:33:55 -0400 (EDT) Message-ID: <463CEA31.6000607@incunabulum.net> Date: Sat, 05 May 2007 21:33:53 +0100 From: Bruce M Simpson User-Agent: Thunderbird 1.5.0.10 (X11/20070407) MIME-Version: 1.0 To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Clock discovery on Broadcom / CFE systems X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2007 20:33:55 -0000 My research on hardware support for FreeBSD/mips continues. It looks like the CFE firmware does not permit for the discovery of system clocks in the same way that YAMON does. The Broadcom Sentry5 board support package for Linux uses a combination of hardcoded clock lines and probing of the MMIO registers in the Sonics SiliconBackplane. David Young tells me that he's had a Google SoC student as of last year looking into getting the SiliconBackplane stuff to work with NetBSD, but that this work is unfinished. This work is available at: Digging further into those files reveals the following resource: http://bcm-specs.sipsolutions.net/ Having glanced briefly at the Linux BSP I would suggest the best course of action may be to write our own FreeBSD Newbus BSP for the Sentry5. Doing this work would enable FreeBSD/mips to support the Linksys WRT54G, Netgear WGT634U and other Broadcom Sentry5 based consumer hardware. Regards, BMS From owner-freebsd-mips@FreeBSD.ORG Sat May 5 21:02:39 2007 Return-Path: X-Original-To: freebsd-mips@freebsd.org Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F2B8B16A402 for ; Sat, 5 May 2007 21:02:39 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id CB0B513C459 for ; Sat, 5 May 2007 21:02:39 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id CB96421DD94 for ; Sat, 5 May 2007 16:44:00 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Sat, 05 May 2007 16:43:35 -0400 X-Sasl-enc: UtMxoY/Db2qc/FixtmwUyFWoiBgFvfGucF/slSyBeZxJ 1178397815 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 149F910B54 for ; Sat, 5 May 2007 16:43:34 -0400 (EDT) Message-ID: <463CEC75.5050404@FreeBSD.org> Date: Sat, 05 May 2007 21:43:33 +0100 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.10 (X11/20070407) MIME-Version: 1.0 To: freebsd-mips@freebsd.org References: <463CEA31.6000607@incunabulum.net> In-Reply-To: <463CEA31.6000607@incunabulum.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Clock discovery on Broadcom / CFE systems X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2007 21:02:40 -0000 Bruce M Simpson wrote: > > David Young tells me that he's had a Google SoC student as of last > year looking into getting the SiliconBackplane stuff to work with > NetBSD, but that this work is unfinished. This work is available at: whoops... http://svn.cuwireless.net/svn/cuw/trunk/src/bcmmips/ From owner-freebsd-mips@FreeBSD.ORG Sat May 5 21:02:40 2007 Return-Path: X-Original-To: freebsd-mips@freebsd.org Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F2F2F16A403 for ; Sat, 5 May 2007 21:02:39 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id CBD6213C465 for ; Sat, 5 May 2007 21:02:39 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id C8DA621E77A for ; Sat, 5 May 2007 16:47:36 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Sat, 05 May 2007 16:47:11 -0400 X-Sasl-enc: ac00jk7EiyxGPmxnkD6rgpQ4FLFM2nZquGaK/Q/PKUF7 1178398031 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 1BF27294C9 for ; Sat, 5 May 2007 16:47:11 -0400 (EDT) Message-ID: <463CED4D.1090504@FreeBSD.org> Date: Sat, 05 May 2007 21:47:09 +0100 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.10 (X11/20070407) MIME-Version: 1.0 To: freebsd-mips@freebsd.org References: <463CA77D.20801@incunabulum.net> In-Reply-To: <463CA77D.20801@incunabulum.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] Teach gxemul yamon about clock discovery X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 May 2007 21:02:40 -0000 Bruce M Simpson wrote: > > This patch teaches the GXemul YAMON prom emulation to export the > configured CPU clock in the virtual machine to the host OS: > http://people.freebsd.org/~bms/dump/gxemul-clockfreq-yamon.diff Anders Gavare informs me this patch will be in the next snapshot of gxemul. Regards, BMS