Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 May 2015 18:41:09 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        Oleksandr Tymoshenko <gonzo@FreeBSD.org>, "freebsd-arm@freebsd.org List" <freebsd-arm@freebsd.org>
Subject:   Re: panic: arm_unmask_irq [was: Re: TI platforms code update: switching to vendor FDT data]
Message-ID:  <1432514469.1200.19.camel@freebsd.org>
In-Reply-To: <3B662B61-1778-4791-A09F-A9162D3D7191@xcllnt.net>
References:  <C9791C97-D5B1-433A-9AC0-CA2707C6137F@freebsd.org> <72E1D87A-1CEF-4719-907E-CF8E9D720FD1@xcllnt.net> <3741A6A7-1185-4E5A-9E98-22F5A6C730DC@freebsd.org> <3B662B61-1778-4791-A09F-A9162D3D7191@xcllnt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2015-05-24 at 17:31 -0700, Marcel Moolenaar wrote:
> > On May 24, 2015, at 5:12 PM, Oleksandr Tymoshenko <gonzo@FreeBSD.org> 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*
> 
> A verbose boot gives me:
> 
> ofwbus0: <Open Firmware Device Tree>
> simplebus0: <Flattened device tree simple bus> on ofwbus0
> simplebus0: <interrupt-controller@48200000> mem 0x48200000-0x48200fff compat ti,aintc (no driver attached)
> 
> Ok, so this is a problem.
> 
> fbsdvm64% nm kernel.debug | grep aintc
> c0681584 r __set_modmetadata_set_sym__mod_metadata_md_aintc_simplebus
> c0681580 r __set_modmetadata_set_sym__mod_metadata_md_aintc_simplebus_on_kernel
> c0680984 r __set_sysinit_set_sym_aintc_simplebusmodule_sys_init
> c07306d0 d _aintc_simplebus_depend_on_kernel
> c05f749c t aintc_post_filter
> c06039f8 t fdt_aintc_decode_ic
> c05f7334 t ti_aintc_attach
> c061c874 r ti_aintc_methods
> c05f72dc t ti_aintc_probe
> 
> Poking some more…
> 

"ti,aintc" is the compat string from the old fdt data, the new one that
teh driver now recognizes would be "ti,am33xx-intc".

-- Ian




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1432514469.1200.19.camel>