From owner-freebsd-ppc@FreeBSD.ORG Sat Feb 28 16:45:49 2009 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3291106564A for ; Sat, 28 Feb 2009 16:45:49 +0000 (UTC) (envelope-from alexf@vsi.ru) Received: from serv1.vsi.ru (serv1.vsi.ru [80.82.32.12]) by mx1.freebsd.org (Postfix) with ESMTP id 482968FC0C for ; Sat, 28 Feb 2009 16:45:49 +0000 (UTC) (envelope-from alexf@vsi.ru) Received: from serv1 (serv1 [80.82.32.12]) by serv1.vsi.ru (8.13.8+Sun/8.13.8) with ESMTP id n1SGjkrg028643; Sat, 28 Feb 2009 19:45:46 +0300 (MSK) Date: Sat, 28 Feb 2009 19:45:46 +0300 (MSK) From: Aleksey V Fedorov X-X-Sender: alexf@serv1 To: Rafal Jaworowski In-Reply-To: <49A81358.3080309@semihalf.com> Message-ID: References: <49A2704F.4060703@semihalf.com> <49A42369.600@freebsd.org> <49A511E5.1010705@semihalf.com> <49A7DBD7.7010103@semihalf.com> <49A81358.3080309@semihalf.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-ppc@freebsd.org Subject: Re: boot process X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2009 16:45:50 -0000 On Fri, 27 Feb 2009, Rafal Jaworowski wrote: > I quickly looked at the manual and noticed the 8548 has a different number of > local access windows than the default 8. Please try to set law_max to 10 in > ocpbus_probe(). I make this changes: Add in spr.h: #define SVR_MPC8548 0x8031 #define SVR_MPC8548E 0x8039 ocpbus_probe(): if (ver == SVR_MPC8572E || ver == SVR_MPC8572) law_max = 12; else if (ver == SVR_MPC8548E || ver == SVR_MPC8548) law_max = 10; else law_max = 8; cpu_reset(): if (ver == SVR_MPC8572E || ver == SVR_MPC8572 || ver == SVR_MPC8548E || ver == SVR_MPC8548) /* Systems with dedicated reset register */ ccsr_write4(OCP85XX_RSTCR, 2); else { law_getmax(): if (ver == SVR_MPC8572E || ver == SVR_MPC8572) return (12); else if (ver == SVR_MPC8548E || ver == SVR_MPC8548) return (10); else return (8); >> Is it normal that "decrementer" frequency is 0 ? > > This isn't good, are you sure a proper value is given to decr_config()? Hmm. With decr_config(0) kernel is booted, but with actual CCB clock 533000000 kernel silently hang somethere in kdb_init() or "data storage interrupt" occured. With decr_config(0) kernel boot look like this now: setting up elf image... OK jumping to kernel code GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb L1 D-cache enabled L1 I-cache enabled Copyright (c) 1992-2009 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 #13: Sat Feb 28 19:30:25 MSK 2009 root@servd.vsi.ru:/usr/obj/powerpc/usr/current/src/sys/MPC85XX Timecounter "decrementer" frequency 0 Hz quality 0 cpu0: Freescale e500v2 core revision 2.0 cpu0: HID0 80000000 real memory = 520077312 (495 MB) Physical memory chunk(s): 0x01000000 - 0x1f713fff, 510738432 bytes (124692 pages) avail memory = 508682240 (485 MB) null: random: nfslock: pseudo-device mem: nexus0: ocpbus0: on nexus0 ocpbus0: PORDEVSR=82b9ea67, PORDEVSR2=8f000079 uart0: iomem 0xfef04500-0xfef0450f irq 58 on ocpbus0 uart0: [FILTER] uart0: fast interrupt uart0: console (9600,n,8,1) uart1: iomem 0xfef04600-0xfef0460f irq 58 on ocpbus0 uart1: [FILTER] uart1: fast interrupt lbc0: iomem 0xfef05000-0xfef05fff on ocpbus0 Wiring VA=ff800000 to PA=ff800000 (size=400000), using TLB1[2] Wiring VA=ffc00000 to PA=ffc00000 (size=400000), using TLB1[3] Wiring VA=ff000000 to PA=ff000000 (size=400000), using TLB1[4] Wiring VA=ff400000 to PA=ff400000 (size=400000), using TLB1[5] tsec0: iomem 0xfef24000-0xfef24fff irq 45,46,50 on ocpbus0 miibus0: on tsec0 rgephy0: PHY 0 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto tsec0: bpf attached tsec0: Ethernet address: 00:0c:42:20:99:03 tsec0: [MPSAFE] tsec0: [ITHREAD] tsec0: [MPSAFE] tsec0: [ITHREAD] tsec0: [MPSAFE] tsec0: [ITHREAD] tsec1: iomem 0xfef25000-0xfef25fff irq 51,52,56 on ocpbus0 miibus1: on tsec1 rgephy1: PHY 1 on miibus1 rgephy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto tsec1: bpf attached tsec1: Ethernet address: 00:0c:42:20:99:02 tsec1: [MPSAFE] tsec1: [ITHREAD] tsec1: [MPSAFE] tsec1: [ITHREAD] tsec1: [MPSAFE] tsec1: [ITHREAD] tsec2: iomem 0xfef26000-0xfef26fff irq 47,48,49 on ocpbus0 miibus2: on tsec2 rgephy2: PHY 2 on miibus2 rgephy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto tsec2: bpf attached tsec2: Ethernet address: 00:0c:42:20:99:01 tsec2: [MPSAFE] tsec2: [ITHREAD] tsec2: [MPSAFE] tsec2: [ITHREAD] tsec2: [MPSAFE] tsec2: [ITHREAD] tsec3: iomem 0xfef27000-0xfef27fff irq 53,54,55 on ocpbus0 miibus3: on tsec3 rgephy3: PHY 3 on miibus3 rgephy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto tsec3: bpf attached tsec3: Ethernet address: 00:0c:42:20:99:00 tsec3: [MPSAFE] tsec3: [ITHREAD] tsec3: [MPSAFE] tsec3: [ITHREAD] tsec3: [MPSAFE] tsec3: [ITHREAD] openpic0: iomem 0xfef40000-0xfef600b3 on ocpbus0 openpic0: Version 1.2, supports 1 CPUs and 80 irqs procfs registered Timecounters tick every 1.000 msec vlan: initialized, using hash tables with chaining lo0: bpf attached bootpc_init: wired to interface 'tsec0' Sending DHCP Discover packet from interface tsec0 (00:0c:42:20:99:03) tsec0: link state changed to DOWN -- Aleksey V. Fedorov AVF12-RIPE Phone: +7(4732)539880 Fax: +7(4732)531415 http://www.vsi.ru CenterTelecom Voronezh ISP http://isp.vsi.ru