From owner-freebsd-arm@FreeBSD.ORG Mon May 25 01:12:43 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D1613A4A for ; Mon, 25 May 2015 01:12:43 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [88.198.91.248]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4905C360 for ; Mon, 25 May 2015 01:12:43 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from [208.184.220.60] (helo=macbook-air-2.dolby.net) by id.bluezbox.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1YwgwY-000EG0-1A; Sun, 24 May 2015 18:12:41 -0700 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: panic: arm_unmask_irq [was: Re: TI platforms code update: switching to vendor FDT data] From: Oleksandr Tymoshenko In-Reply-To: <50DD3CD3-DBA7-4DFD-A845-5502524FDFFA@xcllnt.net> Date: Sun, 24 May 2015 18:12:05 -0700 Cc: "freebsd-arm@freebsd.org List" Content-Transfer-Encoding: quoted-printable Message-Id: References: <72E1D87A-1CEF-4719-907E-CF8E9D720FD1@xcllnt.net> <3741A6A7-1185-4E5A-9E98-22F5A6C730DC@freebsd.org> <3B662B61-1778-4791-A09F-A9162D3D7191@xcllnt.net> <5DAE0972-EB3A-45F8-A791-B72A7A793EC4@freebsd.org> <50DD3CD3-DBA7-4DFD-A845-5502524FDFFA@xcllnt.net> To: Marcel Moolenaar X-Mailer: Apple Mail (2.2098) Sender: gonzo@id.bluezbox.com X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: > On May 24, 2015, at 5:52 PM, Marcel Moolenaar wrote: > > >> On May 24, 2015, at 5:44 PM, Oleksandr Tymoshenko wrote: >> >> >>> On May 24, 2015, at 5:31 PM, Marcel Moolenaar wrote: >>> >>> >>>> On May 24, 2015, at 5:12 PM, Oleksandr Tymoshenko wrote: >>>> >>>> >>>> ti_scm and ti_pinmux should be detected right after simplebus. >>>> Could you make sure if dtb loaded by u-boot is not >>>> from previous builds? You can decompile it using dtc: >>>> dtc -I dtb -O dts beaglebone-black.dtb >>> >>> I’m pretty sure that’s not possible, since I’ve never built ARM >>> kernels in this particular VM before :-) >>> >>> From the fdt command in the loader I can see it’s the first device >>> mentioned, so that’s not it. >>> >>> loader> fdt ls >>> Using DTB provided by U-Boot at address 0x80000100. >>> >>> /am335x >>> /am335x/interrupt-controller@48200000 >>> /am335x/pmu >>> /am335x/scm@44e10000 >>> /am335x/prcm@44E00000 >>> /am335x/dmtimers@44E05000 >>> /am335x/rtc@44E3E000 >>> /am335x/adc@44E0D000 >>> /am335x/wdt1@44E35000 >>> /am335x/gpio >>> *snip* >> >> This one is definitely from previous (FreeBSD's own) version of dts, >> not TI provided one. There is no dmtimers node in new data. >> How did you create SD card image? >> > > Installed from a snapshot (a while back) and then upgraded the kernel > with make installkernel. > > So the DTB/DTS on the FAT slice is FreeBSD’s? [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: xcllnt.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2015 01:12:43 -0000 > On May 24, 2015, at 5:52 PM, Marcel Moolenaar = wrote: >=20 >=20 >> On May 24, 2015, at 5:44 PM, Oleksandr Tymoshenko = wrote: >>=20 >>=20 >>> On May 24, 2015, at 5:31 PM, Marcel Moolenaar = wrote: >>>=20 >>>=20 >>>> On May 24, 2015, at 5:12 PM, Oleksandr Tymoshenko = wrote: >>>>=20 >>>>=20 >>>> ti_scm and ti_pinmux should be detected right after simplebus. >>>> Could you make sure if dtb loaded by u-boot is not >>>> from previous builds? You can decompile it using dtc: >>>> dtc -I dtb -O dts beaglebone-black.dtb >>>=20 >>> I=E2=80=99m pretty sure that=E2=80=99s not possible, since I=E2=80=99v= e never built ARM >>> kernels in this particular VM before :-) >>>=20 >>> =46rom the fdt command in the loader I can see it=E2=80=99s the = first device >>> mentioned, so that=E2=80=99s not it. >>>=20 >>> loader> fdt ls >>> Using DTB provided by U-Boot at address 0x80000100. >>>=20 >>> /am335x >>> /am335x/interrupt-controller@48200000 >>> /am335x/pmu >>> /am335x/scm@44e10000 >>> /am335x/prcm@44E00000 >>> /am335x/dmtimers@44E05000 >>> /am335x/rtc@44E3E000 >>> /am335x/adc@44E0D000 >>> /am335x/wdt1@44E35000 >>> /am335x/gpio >>> *snip* >>=20 >> This one is definitely from previous (FreeBSD's own) version of dts, >> not TI provided one. There is no dmtimers node in new data. >> How did you create SD card image? >>=20 >=20 > Installed from a snapshot (a while back) and then upgraded the kernel > with make installkernel. >=20 > So the DTB/DTS on the FAT slice is FreeBSD=E2=80=99s? Yes, they're from before my commit. I tried to maintain backward = compatibility but it just wasn't possible. You need to generate new dtb files and = place them on FAT partition. You can also install sys/modules/dtb/am335x to SD card = and set U-boot fdt_file env variable to beaglebone-black.dtb and loader = should be able to find this file and load it. I've never used this approach = myself, but it should work with recent ubldr I think.=20 =20