From owner-freebsd-arm@FreeBSD.ORG Tue Jun 17 04:45:29 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DD4508F4; Tue, 17 Jun 2014 04:45:29 +0000 (UTC) Received: from mail-oa0-x22e.google.com (mail-oa0-x22e.google.com [IPv6:2607:f8b0:4003:c02::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 832F9222A; Tue, 17 Jun 2014 04:45:29 +0000 (UTC) Received: by mail-oa0-f46.google.com with SMTP id m1so7267890oag.33 for ; Mon, 16 Jun 2014 21:45:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=wXG9fZN+MrvHg0s8P0ezibhhnTYOGtz0TgB98SvGOok=; b=xzmdXqIjxXD3J9YO35EffNOsVZFzZgXW6+JapJ9RuyYLtXOW09BRlYf5xvn1Lz3imB 418yQqWkis2g/6y0SLgdade+UJQpVeTTmWebN0QfyBKJLlMDrattFW1TCPghzYz1KSUX RgxukZZb/qnjng4W/0yB+zSK/pALYalCNRHGbLBku09zO7k8z+8Fswj/FnVU6BU2KEGC ZH6fT4xS7I1aMt2XCRL+lF8RngOJB3gXJEEiFGCuiBZmtmD7Ccmrxd3pCZGONPQlfqNn /azYuFvJhRvqiknW5XIohfy795r+iOnVbYspQjyyid22OYcXjpraiev3voggtLmi6AT3 UypA== X-Received: by 10.182.89.164 with SMTP id bp4mr16244998obb.21.1402980328808; Mon, 16 Jun 2014 21:45:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.123.176 with HTTP; Mon, 16 Jun 2014 21:44:58 -0700 (PDT) In-Reply-To: References: <44921fa0c7.323fafd0@mail.schwarzes.net> From: Jia-Shiun Li Date: Tue, 17 Jun 2014 12:44:58 +0800 Message-ID: Subject: Re: FreeBSD doesn't boot anymore on RPi To: Michael Tuexen , markm@freebsd.org, Ian Lepore Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-arm@freebsd.org" , Andreas Schwarz 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 04:45:30 -0000 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: >> >> Hi all, >> >>> I just built r266500 and when booting that on a Raspberry Pi the booting stalls >>> after displaying Kernel args: (null). >> >> 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. > adding ian@ and markm@. Hi, looks ARM1176, aka RPi, has different register location for performance counters. 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. 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. 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. Other cores like pj4b and Krait may need additional check. [1] Ch.3.2.1 of Cortex-A8 TRM r3p2, http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0344k/ch03s02s01.html [2] Ch.3.2.1 of ARM1176jz-s TRM r0p7, http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0333h/ch03s02s01.html -Jia-Shiun.