From owner-freebsd-embedded@FreeBSD.ORG Thu Mar 13 08:38:44 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4D581065672 for ; Thu, 13 Mar 2008 08:38:44 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.170]) by mx1.freebsd.org (Postfix) with ESMTP id 9177C8FC35 for ; Thu, 13 Mar 2008 08:38:44 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: by wf-out-1314.google.com with SMTP id 25so3303527wfa.7 for ; Thu, 13 Mar 2008 01:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=j2GDuo/Qn5WxIGqu48WQ2voP4J72MoTAdpoGPXFoegY=; b=i/RObsM/4Ku37EzeL13m7ctJuniTiZtNLPbHwN+pwHzT+JHV7DwsN/J33A354ihg+SqWU0HzAa1+66iNoD9LXkEY0jNFNw7fZmpqRsykbLVFW1qx8zMoHM8irVB2aM8EGs4rm/k0go8mvgVmkr+1oy/llbKdvHe37FBbtM64ZF0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZArTmClkY+sQ/LvVft057JRKcAr4F4VQy1/wKIh6C3PBZhm3mmbPF6/g8OmwJgWCXkk89lEpzv2tNGzb1LOZWiUrcURvqpKNvlPGVABZ9pt8jkFf/lWdOeTz4tnQnsU++UxgQ5VtcYK7dnLo+mfImOZ1tZHgMKQFZ7zsUQmzQ8s= Received: by 10.143.33.19 with SMTP id l19mr4028834wfj.18.1205397523859; Thu, 13 Mar 2008 01:38:43 -0700 (PDT) Received: by 10.142.204.7 with HTTP; Thu, 13 Mar 2008 01:38:43 -0700 (PDT) Message-ID: Date: Thu, 13 Mar 2008 10:38:43 +0200 From: "Jacques Fourie" To: "Rafal Jaworowski" In-Reply-To: <47D7FA35.30204@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47D7FA35.30204@semihalf.com> Cc: freebsd-embedded@freebsd.org Subject: Re: Booting FreeBSD on MPC8540 eval board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2008 08:38:44 -0000 On Wed, Mar 12, 2008 at 5:43 PM, Rafal Jaworowski wrote: > > Jacques Fourie wrote: > > > > I'm trying to get FreeBSD current (checked out the sources yesterday) > > to boot on a Freescale MPC8540 evaluation board. After installing a > > u-boot snapshot that has the u-boot API used by FreeBSD's ubldr I can > > load a FreeBSD kernel but the last message I see on the console is > > "Kernel entry at 0x1000100 ...". I have used the default MPC85XX > > kernel configuration file when compiling the FreeBSD kernel. For > > u-boot I added CONFIG_API and CFG_CMD_ELF to > > include/configs/MPC8540EVAL.h > > > > Unfortunately my debugging setup is not as complete as I would like it > > to be - struggling to get the CodeWarrior USB Tap working - so > > debugging this problem is a bit difficult at the moment. Is the kernel > > console support working for this platform? > > > > Before booting the kernel you need to set your console address in FreeBSD > loader. I'm not sure which UART port is actually used on the MC8540EVAL, but > one of the following should work: > > set hw.uart.console=mm:0xfef04500 > set hw.uart.console=mm:0xfef04600 > > Rafal > Thanks - 'set hw.uart.console=mm:0xfef04500' fixed the console output for me. >From the console output I can see that miibus_probe() is failing for all three ethernet devices. Here is the console output : Kernel entry at 0x1000100 ... GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2008 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 8.0-CURRENT #3: Wed Mar 12 14:47:16 SAST 2008 jacques@jf70.test.com:/usr/obj/powerpc/usr/home/jacques/fbsd8_src/usr/src/sys/MPC85XX WARNING: WITNESS option enabled, expect reduced performance. Timecounter "decrementer" frequency 33000000 Hz quality 0 cpu0: Freescale e500v1 core revision 2.0 cpu0: HID0 80004000 real memory = 251658240 (240 MB) avail memory = 245501952 (234 MB) nexus0: ocpbus0: on nexus0 uart0: <16550 or compatible> iomem 0xfef04500-0xfef0450f irq 58 on ocpbus0 uart0: [FILTER] uart0: console (115384,n,8,1) uart1: <16550 or compatible> iomem 0xfef04600-0xfef0460f irq 58 on ocpbus0 uart1: [FILTER] tsec0: iomem 0xfef24000-0xfef24fff irq 45,46,50 on ocpbus0 tsec0: MII failed to find PHY! device_attach: tsec0 attach returned 6 tsec1: iomem 0xfef25000-0xfef25fff irq 51,52,56 on ocpbus0 tsec1: MII failed to find PHY! device_attach: tsec1 attach returned 6 tsec2: iomem 0xfef26000-0xfef26fff irq 47,48,49 on ocpbus0 tsec2: MII failed to find PHY! device_attach: tsec2 attach returned 6 openpic0: iomem 0xfef40000-0xfef600b3 on ocpbus0 Timecounters tick every 10.000 msec bootpc_init: wired to interface 'tsec1' panic: bootpc_init: Could not find interface specified by BOOTP_WIRED_TO: tsec1 Here is some output obtained from uboot : MPC8540EVAL=> mii device MII devices: 'TSEC0' 'TSEC1' 'FEC' Current device: 'TSEC0' MPC8540EVAL=> mii info PHY 0x02: OUI = 0x04DE, Model = 0x0E, Rev = 0x02, 10baseT, HDX PHY 0x04: OUI = 0x5043, Model = 0x06, Rev = 0x02, 100baseT, FDX PHY 0x07: OUI = 0x5043, Model = 0x06, Rev = 0x02, 10baseT, HDX PHY 0x1F: OUI = 0x0000, Model = 0x00, Rev = 0x00, 10baseT, HDX MPC8540EVAL=> PHY 0x02: OUI = 0x04DE, Model = 0x0E, Rev = 0x02, 10baseT, HDX PHY 0x04: OUI = 0x5043, Model = 0x06, Rev = 0x02, 100baseT, FDX PHY 0x07: OUI = 0x5043, Model = 0x06, Rev = 0x02, 10baseT, HDX PHY 0x1F: OUI = 0x0000, Model = 0x00, Rev = 0x00, 10baseT, HDX Do I need some additional mods in the miibus code that is not in CVS? Jacques