Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2016 12:07:34 +0900 (JST)
From:      Mori Hiroki <yamori813@yahoo.co.jp>
To:        Stanislav Galabov <sgalabov@gmail.com>, Adrian Chadd <adrian.chadd@gmail.com>
Cc:        "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: sys/mips/mediatek kernel crash on RT3050
Message-ID:  <125460.52837.qm@web101714.mail.ssk.yahoo.co.jp>
In-Reply-To: <81B9B540-B1CB-406F-9F51-FDBDB451B4FC@gmail.com>
References:  <705503.18629.qm@web101707.mail.ssk.yahoo.co.jp> <CAJ-Vmomju=NVyhcG5K2UdDwXJZX%2Bc41onn8qUqzGzBW-wYPcSQ@mail.gmail.com> <81B9B540-B1CB-406F-9F51-FDBDB451B4FC@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi=0A=0AI build for BCM box at sys/mips/brodecom today.=0A=0AThis build hav=
e same panic.=0A=0ACFE> boot -raw -z -addr=3D0x80001000 -max=3D0x3a0000 fla=
sh0.os:=0ALoader:raw Filesys:raw Dev:flash0.os File: Options:(null)=0ALoadi=
ng: ........... 3446116 bytes read=0AEntry at 0x80001000=0AClosing network.=
=0AStarting program at 0x80001000=0Aentry: mips_init()=0ACache info:=0A=A0 =
picache_stride=A0 =A0 =3D 4096=0A=A0 picache_loopcount =3D 4=0A=A0 pdcache_=
stride=A0 =A0 =3D 4096=0A=A0 pdcache_loopcount =3D 4=0Acpu0: Broadcom proce=
ssor v41.144=0A=A0 MMU: Standard TLB, 32 entries (1K 4K 16K 64K 256K 1M 16M=
 64M 256M pg sizes)=0A=A0 L1 i-cache: 4 ways of 256 sets, 16 bytes per line=
=0A=A0 L1 d-cache: 2 ways of 512 sets, 16 bytes per line=0A=A0 L2 cache: di=
sabled=0A=A0 Config1=3D0x3e9b6c86<MIPS16,EJTAG>=0AKDB: debugger backends: d=
db=0AKDB: current backend: ddb=0ACopyright (c) 1992-2016 The FreeBSD Projec=
t.=0ACopyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 19=
94=0A=A0 =A0 =A0 =A0 The Regents of the University of California. All right=
s reserved.=0AFreeBSD is a registered trademark of The FreeBSD Foundation.=
=0AFreeBSD 12.0-CURRENT #3 7c2f7cf(zrouter)-dirty: Mon Aug 29 11:41:45 JST =
2016=0A=A0 =A0 hiroki@microserver:/storage/home/hiroki/obj/storage/home/hir=
oki/zrouter/tmp/=0Amips.mipsel/storage/home/hiroki/freebsd/sys/Buffalo_WHR-=
HP-G54 mips=0Agcc version 4.2.1 20070831 patched [FreeBSD]=0Areal memory=A0=
 =3D 16125952 (15748K bytes)=0Aavail memory =3D 11137024 (10MB)=0Anexus0: <=
MIPS32 root nexus>=0Abhnd0: <BCM5354 SIBA bus> at mem 0x18000000-0x180fffff=
 on nexus0=0Abhnd_chipc0: <Broadcom ChipCommon I/O Controller, rev 20> mem =
0x18000000-0x18000=0Adff,0x1fc00000-0x1fffffff,0x1c000000-0x1dffffff,0x1a00=
0000-0x1bffffff at core 0=A0=0Aon bhnd0=0Abhnd_mips0: <Broadcom MIPS3302 Co=
re, rev 8> mem 0x18002000-0x18002dff at core 2=A0=0Aon bhnd0=0Acpupic0: <MI=
PS32 Interrupt Controller> on nexus0=0Abhnd_pmu0: <Broadcom ChipCommon PMU,=
 rev 0> on bhnd_chipc0=0Abhnd0: error reading BOARDVENDOR: 19=0Abhnd_pmu0: =
error fetching board info: 19=0Adevice_attach: bhnd_pmu0 attach returned 6=
=0Anvram2env0: Found NVRAM at 0x1fc00400=0Anvram2env0: <NVRAM to ENV pseudo=
-device> on nexus0=0Anvram2env0: sig =3D 0x48534c46=0Anvram2env0: size =3D =
0x2f0=0Anvram2env1: Found NVRAM at 0x1c7f8000=0Anvram2env1: <NVRAM to ENV p=
seudo-device> on nexus0=0Anvram2env1: sig =3D 0x48534c46=0Anvram2env1: size=
 =3D 0x344=0Aclock0: <Generic MIPS32 ticker> on nexus0=0Apanic: Unable to a=
dd hard IRQ 7 handler=0AKDB: enter: panic=0A[ thread pid 0 tid 100000 ]=0AS=
topped at=A0 =A0 =A0 kdb_enter+0x4c: lui =A0 =A0 at,0x8036=0A=0A=0A----- Or=
iginal Message -----=0A> From: Stanislav Galabov <sgalabov@gmail.com>=0A> T=
o: Adrian Chadd <adrian.chadd@gmail.com>=0A> Cc: Mori Hiroki <yamori813@yah=
oo.co.jp>; "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>=0A> Date: =
2016/8/26, Fri 01:31=0A> Subject: Re: sys/mips/mediatek kernel crash on RT3=
050=0A> =0A> Hi all,=0A> =0A> I am currently on vacation and will be back n=
ext week. I guess I'll find =0A> some time to look at this then if needed.=
=0A> =0A> Best wishes,=0A> Stanislav=0A> =0A>>  On Aug 25, 2016, at 18:25, =
Adrian Chadd <adrian.chadd@gmail.com> =0A> wrote:=0A>> =0A>>  Hm, does it r=
equire INTRNG these days?=0A>> =0A>> =0A>>  -a=0A>> =0A>> =0A>>>  On 24 Aug=
ust 2016 at 18:11, Mori Hiroki <yamori813@yahoo.co.jp> =0A> wrote:=0A>>>  H=
i=0A>>> =0A>>>  I build sys/mips/mediatek for RT3050 box at few days before=
 head.=0A>>> =0A>>>  This kernel crash.=0A>>> =0A>>>  This build based on r=
t3050.dtsi.=0A>>> =0A>>>  Some one know this problem ?=0A>>> =0A>>>  Thanks=
.=0A>>> =0A>>>  Starting kernel ...=0A>>> =0A>>>  FDT DTB=A0 at: 0x802ce6f0=
=0A>>>  CPU=A0  clock:=A0 320MHz=0A>>>  Timer clock:=A0 160MHz=0A>>>  UART=
=A0 clock:=A0 106MHz=0A>>> =0A>>>  U-Boot args (from 0 args):=0A>>> =A0 =A0=
 =A0 =A0 None=0A>>>  Environment:=0A>>>  entry: mips_init()=0A>>>  RAM size=
: 32MB (assumed)=0A>>>  Cache info:=0A>>> =A0 picache_stride=A0 =A0 =3D 409=
6=0A>>> =A0 picache_loopcount =3D 8=0A>>> =A0 pdcache_stride=A0 =A0 =3D 409=
6=0A>>> =A0 pdcache_loopcount =3D 4=0A>>>  cpu0: MIPS Technologies processo=
r v76.150=0A>>> =A0 MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 6=
4M 256M pg =0A> sizes)=0A>>> =A0 L1 i-cache: 4 ways of 256 sets, 32 bytes p=
er line=0A>>> =A0 L1 d-cache: 4 ways of 128 sets, 32 bytes per line=0A>>> =
=A0 L2 cache: disabled=0A>>> =A0 Config1=3D0xbea3319e<PerfCount,WatchRegs,M=
IPS16,EJTAG>=0A>>> =A0 Config2=3D0x80000000=0A>>> =A0 Config3=3D0x420=0A>>>=
  Physical memory chunk(s):=0A>>>  0x334000 - 0x1ffffff, 30195712 bytes (73=
72 pages)=0A>>>  Maxmem is 0x2000000=0A>>>  Copyright (c) 1992-2016 The Fre=
eBSD Project.=0A>>>  Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991=
, 1992, 1993, =0A> 1994=0A>>> =A0 =A0 =A0 =A0 The Regents of the University=
 of California. All rights =0A> reserved.=0A>>>  FreeBSD is a registered tr=
ademark of The FreeBSD Foundation.=0A>>>  FreeBSD 12.0-CURRENT #1 ed1832a(z=
router): Sun Aug 21 12:19:54 JST 2016=0A>>> =A0 =A0 =0A> hiroki@microserver=
:/storage/home/hiroki/obj/storage/home/hiroki/zrouter/tmp/=0A>>>  mips.mips=
el/storage/home/hiroki/freebsd/sys/Fon_FON2305E_FDT mips=0A>>>  gcc version=
 4.2.1 20070831 patched [FreeBSD]=0A>>>  Preloaded elf kernel "kernel" at 0=
x8032afb0.=0A>>>  real memory=A0 =3D 33554432 (32768K bytes)=0A>>>  Physica=
l memory chunk(s):=0A>>>  0x003c0000 - 0x01f3efff, 28831744 bytes (7039 pag=
es)=0A>>>  avail memory =3D 28397568 (27MB)=0A>>>  ULE: setup cpu 0=0A>>>  =
random: entropy device external interface=0A>>>  firmware: 'rt2860fw' versi=
on 0: 8192 bytes loaded at 0x802d86d0=0A>>>  firmware: 'rt2561fw' version 0=
: 8192 bytes loaded at 0x802d2550=0A>>>  firmware: 'rt2561sfw' version 0: 8=
192 bytes loaded at =0A> 0x802d45d0=0A>>>  wlan: <802.11 Link Layer>=0A>>> =
 firmware: 'rt2661fw' version 0: 8192 bytes loaded at 0x802d6650=0A>>>  nul=
l: <full device, null device, zero device>=0A>>>  openfirm: <Open Firmware =
control device>=0A>>>  mem: <memory>=0A>>>  nexus0: <MIPS32 root nexus>=0A>=
>>  random: harvesting attach, 8 bytes (4 bits) from nexus0=0A>>>  ofwbus0:=
 <Open Firmware Device Tree> on nexus0=0A>>>  palmbus0: <MTK Palmbus> mem 0=
x10000000-0x101fffff on ofwbus0=0A>>>  random: harvesting attach, 8 bytes (=
4 bits) from palmbus0=0A>>>  random: harvesting attach, 8 bytes (4 bits) fr=
om ofwbus0=0A>>>  cpupic0: <MIPS32 Interrupt Controller> on ofwbus0=0A>>>  =
random: harvesting attach, 8 bytes (4 bits) from cpupic0=0A>>>  sysc0: <MTK=
 System Controller> mem 0-0xff on palmbus0=0A>>>  random: harvesting attach=
, 8 bytes (4 bits) from sysc0=0A>>>  pinctrl0: <MTK Pin Controller> on ofwb=
us0=0A>>>  pinctrl0: GPIO mode start: 0x0000029d=0A>>>  Processing 1 pin-co=
nfig node(s) in pinctrl-0 for spi@b00=0A>>>  Processing 1 pin-config node(s=
) in pinctrl-0 for uartlite@c00=0A>>>  Processing 1 pin-config node(s) in p=
inctrl-0 for pinctrl=0A>>>  pinctrl0: GPIO mode end=A0 : 0x0000005d=0A>>>  =
random: harvesting attach, 8 bytes (4 bits) from pinctrl0=0A>>>  rstctrl0: =
<MTK Reset Controller> on ofwbus0=0A>>>  random: harvesting attach, 8 bytes=
 (4 bits) from rstctrl0=0A>>>  clkctrl0: <MTK Clock Controller> on ofwbus0=
=0A>>>  random: harvesting attach, 8 bytes (4 bits) from clkctrl0=0A>>>  in=
tc0: <MTK Interrupt Controller (v2)> mem 0x200-0x2ff irq 6 on =0A> palmbus0=
=0A>>>  random: harvesting attach, 8 bytes (4 bits) from intc0=0A>>>  gpio0=
: <MTK GPIO Controller (v1)> mem 0x600-0x633 irq 9 on =0A> palmbus0=0A>>>  =
gpiobus0: <OFW GPIO bus> on gpio0=0A>>>  random: harvesting attach, 8 bytes=
 (4 bits) from gpiobus0=0A>>>  random: harvesting attach, 8 bytes (4 bits) =
from gpio0=0A>>>  palmbus0: <timer@100> mem 0x100-0x11f irq 4 compat =0A> r=
alink,rt3050-timer (no drive=0A>>>  r attached)=0A>>>  palmbus0: <watchdog@=
120> mem 0x120-0x12f irq 5 compat =0A> ralink,rt3050-wdt (no driv=0A>>>  er=
 attached)=0A>>>  palmbus0: <memc@300> mem 0x300-0x3ff irq 7 compat =0A> ra=
link,rt3050-memc (no driver=0A>>>  attached)=0A>>>  palmbus0: <uart@500> me=
m 0x500-0x5ff irq 8 disabled compat =0A> ralink,rt3050-uart (n=0A>>>  o dri=
ver attached)=0A>>>  gpioled0: <GPIO led> at pin 14 on gpiobus0=0A>>>  rand=
om: harvesting attach, 8 bytes (4 bits) from gpioled0=0A>>>  gpioled1: <GPI=
O led> at pin 11 on gpiobus0=0A>>>  random: harvesting attach, 8 bytes (4 b=
its) from gpioled1=0A>>>  gpioled2: <GPIO led> at pin 9 on gpiobus0=0A>>>  =
random: harvesting attach, 8 bytes (4 bits) from gpioled2=0A>>>  gpioled3: =
<GPIO led> at pin 12 on gpiobus0=0A>>>  random: harvesting attach, 8 bytes =
(4 bits) from gpioled3=0A>>>  gpioc0: <GPIO controller> on gpio0=0A>>>  ran=
dom: harvesting attach, 8 bytes (4 bits) from gpioc0=0A>>>  palmbus0: <gpio=
@638> mem 0x638-0x65b disabled compat =0A> ralink,rt3050-gpio (no driv=0A>>=
>  er attached)=0A>>>  palmbus0: <gpio@660> mem 0x660-0x683 disabled compat=
 =0A> ralink,rt3050-gpio (no driv=0A>>>  er attached)=0A>>>  spi0: <MTK SPI=
 Controller (v1)> mem 0xb00-0xbff on palmbus0=0A>>>  spibus0: <OFW SPI bus>=
 on spi0=0A>>>  mx25l0: <M25Pxx Flash Family> at cs 0 mode 0 on spibus0=0A>=
>>  mx25l0: mx25ll64, sector 65536 bytes, 128 sectors=0A>>>  random: harves=
ting attach, 8 bytes (4 bits) from mx25l0=0A>>>  random: harvesting attach,=
 8 bytes (4 bits) from spibus0=0A>>>  random: harvesting attach, 8 bytes (4=
 bits) from spi0=0A>>>  uart0: <MTK UART Controller> mem 0xc00-0xcff irq 10=
 on palmbus0=0A>>>  uart0: console (57971,n,8,1)=0A>>>  uart0: fast interru=
pt=0A>>>  uart0: PPS capture mode: DCDinvalid=0A>>>  random: harvesting att=
ach, 8 bytes (4 bits) from uart0=0A>>>  ofwbus0: <usbphy> compat ralink,rt3=
050-usbphy (no driver =0A> attached)=0A>>>  rt0: <Ralink RT3050 onChip Ethe=
rnet driver> mem =0A> 0x10100000-0x1010ffff irq 0 on o=0A>>>  fwbus0=0A>>> =
 rt0: RT305XF Ethernet MAC (rev 0x00000000)=0A>>>  rt0: use hardcoded 00:18=
:e7:d5:83:90 macaddr=0A>>>  rt0: bpf attached=0A>>>  rt0: Ethernet address:=
 00:18:e7:d5:83:90=0A>>>  random: harvesting attach, 8 bytes (4 bits) from =
rt0=0A>>>  mtkswitch0: <MTK Switch Driver> mem 0x10110000-0x10117fff irq 1 =
=0A> on ofwbus0=0A>>>  miibus0: <MII bus> on mtkswitch0=0A>>>  ukphy0: <Gen=
eric IEEE 802.3u media interface> PHY 0 on miibus0=0A>>>  ukphy0: OUI 0x000=
c43, model 0x0001, rev. 7=0A>>>  ukphy0:=A0 none, 10baseT, 10baseT-FDX, 100=
baseTX, 100baseTX-FDX, auto=0A>>>  random: harvesting attach, 8 bytes (4 bi=
ts) from ukphy0=0A>>>  random: harvesting attach, 8 bytes (4 bits) from mii=
bus0=0A>>>  miibus1: <MII bus> on mtkswitch0=0A>>>  ukphy1: <Generic IEEE 8=
02.3u media interface> PHY 1 on miibus1=0A>>>  ukphy1: OUI 0x000c43, model =
0x0001, rev. 7=0A>>>  ukphy1:=A0 none, 10baseT, 10baseT-FDX, 100baseTX, 100=
baseTX-FDX, auto=0A>>>  random: harvesting attach, 8 bytes (4 bits) from uk=
phy1=0A>>>  random: harvesting attach, 8 bytes (4 bits) from miibus1=0A>>> =
 miibus2: <MII bus> on mtkswitch0=0A>>>  ukphy2: <Generic IEEE 802.3u media=
 interface> PHY 2 on miibus2=0A>>>  ukphy2: OUI 0x000c43, model 0x0001, rev=
. 7=0A>>>  ukphy2:=A0 none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,=
 auto=0A>>>  random: harvesting attach, 8 bytes (4 bits) from ukphy2=0A>>> =
 random: harvesting attach, 8 bytes (4 bits) from miibus2=0A>>>  miibus3: <=
MII bus> on mtkswitch0=0A>>>  ukphy3: <Generic IEEE 802.3u media interface>=
 PHY 3 on miibus3=0A>>>  ukphy3: OUI 0x000c43, model 0x0001, rev. 7=0A>>>  =
ukphy3:=A0 none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto=0A>>>=
  random: harvesting attach, 8 bytes (4 bits) from ukphy3=0A>>>  random: ha=
rvesting attach, 8 bytes (4 bits) from miibus3=0A>>>  miibus4: <MII bus> on=
 mtkswitch0=0A>>>  ukphy4: <Generic IEEE 802.3u media interface> PHY 4 on m=
iibus4=0A>>>  ukphy4: OUI 0x000c43, model 0x0001, rev. 7=0A>>>  ukphy4:=A0 =
none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto=0A>>>  random: h=
arvesting attach, 8 bytes (4 bits) from ukphy4=0A>>>  random: harvesting at=
tach, 8 bytes (4 bits) from miibus4=0A>>>  etherswitch0: <Switch controller=
> on mtkswitch0=0A>>>  random: harvesting attach, 8 bytes (4 bits) from eth=
erswitch0=0A>>>  mdio0: <MDIO> on mtkswitch0=0A>>>  random: harvesting atta=
ch, 8 bytes (4 bits) from mdio0=0A>>>  random: harvesting attach, 8 bytes (=
4 bits) from mtkswitch0=0A>>>  ofwbus0: <wmac@10180000> mem 0x10180000-0x10=
1bffff irq 2 compat =0A> ralink,rt3050-wm=0A>>>  ac (no driver attached)=0A=
>>>  ofwbus0: <otg@101c0000> mem 0x101c0000-0x101fffff irq 3 disabled =0A> =
compat ralink,r=0A>>>  t3050-otg (no driver attached)=0A>>>  ofwbus0: <gpio=
-leds> compat gpio-leds (no driver attached)=0A>>>  ofwbus0: <gpio-keys-pol=
led> compat gpio-keys-polled (no driver =0A> attached)=0A>>>  clock0: <Gene=
ric MIPS32 ticker> on nexus0=0A>>>  panic: Unable to add hard IRQ 7 handler=
=0A>>>  Uptime: 1s=0A>>>  Automatic reboot in 15 seconds - press a key on t=
he console to abort=0A>>>  Rebooting...=0A>>>  ____________________________=
___________________=0A>>>  freebsd-mips@freebsd.org mailing list=0A>>>  htt=
ps://lists.freebsd.org/mailman/listinfo/freebsd-mips=0A>>>  To unsubscribe,=
 send any mail to =0A> "freebsd-mips-unsubscribe@freebsd.org"=0A>>  _______=
________________________________________=0A>>  freebsd-mips@freebsd.org mai=
ling list=0A>>  https://lists.freebsd.org/mailman/listinfo/freebsd-mips=0A>=
>  To unsubscribe, send any mail to =0A> "freebsd-mips-unsubscribe@freebsd.=
org"=0A> 



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