From owner-freebsd-arm@FreeBSD.ORG Tue Nov 6 17:41:45 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F70816A41A for ; Tue, 6 Nov 2007 17:41:45 +0000 (UTC) (envelope-from imp@BSDIMP.COM) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B725313C4B3 for ; Tue, 6 Nov 2007 17:41:44 +0000 (UTC) (envelope-from imp@BSDIMP.COM) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.14.1) with ESMTP id lA6HcJmm098930; Tue, 6 Nov 2007 10:38:19 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Nov 2007 10:38:19 -0700 (MST) Message-Id: <20071106.103819.71118294.imp@bsdimp.com> To: jack.avenger@gmail.com From: Warner Losh In-Reply-To: <66aac5180711060847h5470b17em4c08939c60b2a918@mail.gmail.com> References: <66aac5180711060847h5470b17em4c08939c60b2a918@mail.gmail.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Cc: freebsd-arm@freebsd.org Subject: Re: Can't boot FreeBSD-7.0 on KB920C X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 17:41:45 -0000 From: "=E0=D2=C9=CA =E2=D5=D2=C1=CB" Subject: Can't boot FreeBSD-7.0 on KB920C Date: Tue, 6 Nov 2007 18:47:57 +0200 > Hi, I'm trying to boot FreeBSD-current of KB920C, but kernel can't de= tect SD > card. Here is boot log: > = > ## Starting application at 0x20000000 ... > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2007 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1= 994 > The Regents of the University of California. All rights reser= ved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 7.0-BETA1 #2: Thu Oct 25 23:23:04 EEST 2007 > root@avengerBSD.voliacable.com:/usr/obj/arm/usr/src/sys/KB920X > CPU: ARM920T rev 0 (ARM9TDMI core) > DC enabled IC enabled WB enabled LABT > 16KB/32B 64-way Instruction cache > 16KB/32B 64-way write-back-locking-A Data cache > real memory =3D 67108864 (64 MB) > avail memory =3D 61952000 (59 MB) > atmelarm0: on motherboard > at91_st0: mem 0xdffffd00-0xdffffdff irq 1 on atmelarm0 > at91_st0: watchdog registered, timeout intervall max. 64 sec > at91_pio0: mem 0xdffff400-0xdffff5ff irq 1 on atmelarm0 > at91_pio0: ABSR: 0x60 OSR: 0 PSR:0x3f380000 ODSR: 0 > at91_pio0: [FILTER] > at91_pio1: mem 0xdffff600-0xdffff7ff irq 1 on atmelarm0 > at91_pio1: ABSR: 0xff301 OSR: 0x2 PSR:0x3fc00cfe ODSR: 0 > at91_pio1: [FILTER] > at91_pio2: mem 0xdffff800-0xdffff9ff irq 1 on atmelarm0 > at91_pio2: ABSR: 0 OSR: 0x1000000a PSR:0xffffc075 ODSR: 0x10000000 > at91_pio2: [FILTER] > at91_pio3: mem 0xdffffa00-0xdffffbff irq 1 on atmelarm0 > at91_pio3: ABSR: 0 OSR: 0 PSR:0xfffffff ODSR: 0 > at91_pio3: [FILTER] > at91_pmc0: mem 0xdffffc00-0xdffffcff irq 1 on atmelarm0 > at91_pmc0: Primary: 10000000 Hz PLLA: 180 MHz CPU: 180 MHz MCK: 60 MH= z > at91_mci0: mem 0xdffb4000-0xdffb7fff irq 10 = on > atmelarm0 > at91_mci0: [ITHREAD] > mmc0: on at91_mci0 > at91_twi0: mem 0xdffb8000-0xdffbbfff irq 12 on atmelarm0 > at91_twi0: [ITHREAD] > iicbus0: on at91_twi0 > setting cwgr to 0x1a4a4 > iicbus0: at addr 0 > iic0: on iicbus0 > icee0: at addr 0xa0 on iicbus0 > ate0: mem 0xdffbc000-0xdffbffff irq 24 on atmelarm0 > ate0: No MAC address setdevice_attach: ate0 attach returned 6 > uart0: mem 0xdffff200-0xdffff3ff irq 1 on atmelarm0 > uart0: [FILTER]]=3D9M=3D19uart1: mem 0xdffc0000-0xdffc3fff i= rq 6 on > atmelarm0 > uart1: [FILTER] > uart2: mem 0xdffc4000-0xdffc7fff irq 7 on atmelarm0 > uart2: [FILTER] > uart3: mem 0xdffc8000-0xdffcbfff irq 8 on atmelarm0 > uart3: [FILTER] > uart4: mem 0xdffcc000-0xdffcffff irq 9 on atmelarm0 > uart4: [FILTER] > at91_spi0: mem 0xdffe0000-0xdffe3fff irq 13 on atmelarm0 > at91_spi0: [ITHREAD] > spibus0: on at91_spi0 > ohci0: mem 0xdfe00000-0xdfefffff ir= q 23 on > atmelarm0 > ohci0: [GIANT-LOCKED] > ohci0: [ITHREAD] > usb0: OHCI version 1.0 > usb0 on ohci0 > usb0: USB revision 1.0 > uhub0: on usb= 0 > uhub0: 2 ports with 2 removable, self powered > Cannot get 100 Hz clock; using 100Hz > at91_st0: [FILTER] > Timecounter "AT91RM9200 timer" frequency 32768 Hz quality 1000 > Timecounters tick every 10.000 msec > mmc0: setting transfer rate to 30.000MHz > Trying to mount root from ufs:/dev/mmcsd0s1a > = > Manual root filesystem specification: > : Mount using filesystem > eg. ufs:/dev/da0a > ? List valid disk boot devices > Abort manual input > = > mountroot> > = > So I have several qestions: > 1. Which types (and sizes) of memory cards support FreeBSD ? All SD cards are supported, even the 4GB ones. The SDHC cards are not supported at this time. No MMC cards are supported at thsi time. Your boot loader must configure the MCI device's pins correctly. I had been lead to believe this was a requirement for Linux to boot. Alternatively, you need to hack FreeBSD's init code to do this. The Atmel support code we have needs some clean up in this area to make it easier to add additional boards. > 2. I loaded kernel via Uboot, can FreeBSD work correctly in this case= or I > need set some additional parameters in Uboot (if yes - how and where)= ? It should work. I've not ever done so, however. > 3. Kernel can't detect my PHY (LTX972C) - how to solve this problem? Your boot loader must configure these pins correctly, or your board init routine must do so. I had been lead to believe this was a requirement for Linux as well. Warner