From owner-freebsd-arm@FreeBSD.ORG Tue Jun 17 06:10:10 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 987BB528; Tue, 17 Jun 2014 06:10:10 +0000 (UTC) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail-n.franken.de", Issuer "Thawte DV SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5873D281A; Tue, 17 Jun 2014 06:10:10 +0000 (UTC) Received: from [192.168.1.200] (p508F2AAE.dip0.t-ipconnect.de [80.143.42.174]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id 9CDCF1C10481A; Tue, 17 Jun 2014 08:10:03 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: FreeBSD doesn't boot anymore on RPi From: Michael Tuexen In-Reply-To: Date: Tue, 17 Jun 2014 08:10:00 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <44921fa0c7.323fafd0@mail.schwarzes.net> To: Jia-Shiun Li X-Mailer: Apple Mail (2.1878.2) Cc: "freebsd-arm@freebsd.org" , Andreas Schwarz , Ian Lepore X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2014 06:10:10 -0000 On 17 Jun 2014, at 06:44, Jia-Shiun Li wrote: > On Mon, Jun 16, 2014 at 1:53 PM, Michael Tuexen = wrote: >> On 16 Jun 2014, at 03:04, Andreas Schwarz = wrote: >>> On 21.05.14, Michael Tuexen wrote: >>>=20 >>> Hi all, >>>=20 >>>> I just built r266500 and when booting that on a Raspberry Pi the = booting stalls >>>> after displaying Kernel args: (null). >>>=20 >>> I run still in this problem, the last kernel which was working for = me is r265403. Is this >>> a know problem? >> Yes, it is known. There were two problems, one is fixed now. The = other problem >> is currently been worked on. Right now, you need to revert r266083 = and should >> get a working kernel. If not, please let us know. >>=20 >=20 > adding ian@ and markm@. >=20 >=20 > Hi, >=20 > looks ARM1176, aka RPi, has different register location for > performance counters. >=20 > r266083 uses PMC registers defined at c9:c12~c14 of CP15. The location > is true for Cortex-A8[1] onward. For ARM11 which predated A8, however, > these registers are located at c15:c12[2]. c9:c12~c14 are undefined on > ARM1176. >=20 > According to ARMARM, pre-ARM11 cores do not have PMC. So they must > have decided the debut location of PMC was not suitable anymore , and > moved to c9 afterward. >=20 > For RPi I think it is simpler to exclude ARM11 in original code for > now. After making sure PMC registers on ARM11, despite different > location, are still suitable for the purpose, it can have dedicated > handling different from other cores. >=20 > Other cores like pj4b and Krait may need additional check. >=20 > [1] Ch.3.2.1 of Cortex-A8 TRM r3p2, > = http://infocenter.arm.com/help/index.jsp?topic=3D/com.arm.doc.ddi0344k/ch0= 3s02s01.html > [2] Ch.3.2.1 of ARM1176jz-s TRM r0p7, > = http://infocenter.arm.com/help/index.jsp?topic=3D/com.arm.doc.ddi0333h/ch0= 3s02s01.html Please have a look at the thread 'Re: svn commit: r266083 - in = head/sys/arm: arm include' on current@freebsd.org. The patches being discussed there allow the RPI. = Basically they use different registers on different platforms as you write. Best regards Michael >=20 > -Jia-Shiun. >=20