From owner-freebsd-arm@freebsd.org Sun Nov 12 22:36:13 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8362DC7E2AD for ; Sun, 12 Nov 2017 22:36:13 +0000 (UTC) (envelope-from clbuisson@orange.fr) Received: from smtp.smtpout.orange.fr (smtp06.smtpout.orange.fr [80.12.242.128]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EA27B77AC8 for ; Sun, 12 Nov 2017 22:36:11 +0000 (UTC) (envelope-from clbuisson@orange.fr) Received: from localhost ([92.134.207.235]) by mwinf5d11 with ME id ZAc81w00455FxF803Ac8JK; Sun, 12 Nov 2017 23:36:08 +0100 X-ME-Helo: localhost X-ME-Auth: Y2xidWlzc29uQHdhbmFkb28uZnI= X-ME-Date: Sun, 12 Nov 2017 23:36:08 +0100 X-ME-IP: 92.134.207.235 Subject: Re: rpi2: cpufreq(4) support lost ? To: "Herbert J. Skuhra" Cc: freebsd-arm@freebsd.org, ian@FreeBSD.org References: <2bceba56-f6a8-5120-fac5-0d3387a8278d@orange.fr> <87a7zrgvzv.wl-herbert@mailbox.org> <878tfbgqnv.wl-herbert@mailbox.org> From: Claude Buisson Message-ID: <7788f998-bc35-7077-1d1e-42388721038c@orange.fr> Date: Sun, 12 Nov 2017 23:36:07 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <878tfbgqnv.wl-herbert@mailbox.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Nov 2017 22:36:13 -0000 On 11/12/2017 21:58, Herbert J. Skuhra wrote: > On Sun, 12 Nov 2017 20:03:32 +0100, > "Herbert J. Skuhra" wrote: >> >> On Sat, 11 Nov 2017 12:47:47 +0100, >> Claude Buisson wrote: >>> >>> [I am not subscribed to this list - please answser to me] >>> >>> I recently upgraded a RPI2 Model B, from head r323691 armv6 to head >>> r325110 + patch D12907 (lib/libc/gen/tls.c) armv7. >>> >>> In the dmesg, the lines: >>> >>> bcm2835_cpufreq0: on cpu0 >>> bcm2835_cpufreq0: ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF >>> >>> disappeared, and the log shows: >>> >>> /etc/rc.d/powerd start >>> powerd: no cpufreq(4) support -- aborting: No such file or directory >>> >>> As what seems to be a consequence, the system became much slower. >>> >>> Everything came back to normal when I copied the old rpi2.dtb to the >>> new /boot/msdos/ >> >> The old rpi2.dtb is from an armv6 build, right? >> >>> I tried the rpi2.dtb from the lastest snapshot >>> FreeBSD-12.0-CURRENT-arm-armv7-RPI2-20171109-r325595.img >>> and cpufreq(4) disappeared again. >>> >>> What I am missing ? >> >> The problem obviously exists since the switch to armv7. >> >> I use rpi2.dtb from my other RPI2 (stable/11). > > I think the breakage happened earlier... r324184. This was my own hypothesis, which leads me nowhere.. > > rpi2.dtb from a r324183 kernel build (armv6) works. > > - > Herbert > Further more the latest snapshot (where cpufreq is missing) does not boot as is: "Unable to read file ubldr" and /boot/unldr must be copied to /boot/msdos Claude Buisson