From owner-freebsd-arm@FreeBSD.ORG Mon May 25 01:14:33 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9BD32AA7 for ; Mon, 25 May 2015 01:14:33 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) by mx1.freebsd.org (Postfix) with SMTP id 74EF2368 for ; Mon, 25 May 2015 01:14:33 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound2.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Mon, 25 May 2015 01:14:49 +0000 (UTC) Received: from revolution.hippie.lan (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t4P1EVQi009251; Sun, 24 May 2015 19:14:31 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1432516471.1200.24.camel@freebsd.org> Subject: Re: panic: arm_unmask_irq [was: Re: TI platforms code update: switching to vendor FDT data] From: Ian Lepore To: Oleksandr Tymoshenko Cc: Marcel Moolenaar , "freebsd-arm@freebsd.org List" Date: Sun, 24 May 2015 19:14:31 -0600 In-Reply-To: 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> Content-Type: text/plain; charset="iso-8859-7" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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:14:33 -0000 On Sun, 2015-05-24 at 18:12 -0700, Oleksandr Tymoshenko wrote: > > 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? > > 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. ubldr has been loading dtb files from the ufs filesystem for over a year (maybe close to two years). crochet hasn't caught up with some of the changes. -- Ian