From owner-freebsd-mips@freebsd.org Mon Aug 29 03:10:17 2016 Return-Path: Delivered-To: freebsd-mips@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 65D50B78BFC for ; Mon, 29 Aug 2016 03:10:17 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh503-vm1.bullet.mail.kks.yahoo.co.jp (nh503-vm1.bullet.mail.kks.yahoo.co.jp [183.79.56.187]) by mx1.freebsd.org (Postfix) with SMTP id E4634E2 for ; Mon, 29 Aug 2016 03:10:16 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.139] by nh503.bullet.mail.kks.yahoo.co.jp with NNFMP; 29 Aug 2016 03:07:35 -0000 Received: from [183.79.101.63] by t502.bullet.mail.kks.yahoo.co.jp with NNFMP; 29 Aug 2016 03:07:35 -0000 Received: from [127.0.0.1] by omp507.mail.kks.yahoo.co.jp with NNFMP; 29 Aug 2016 03:07:35 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 415969.18351.bm@omp507.mail.kks.yahoo.co.jp Received: (qmail 59184 invoked by uid 60001); 29 Aug 2016 03:07:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1472440055; bh=WUMwdvhoCzMs21DPbyoI0PjJKX8APmqglmh4LtO9WU4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=uwJPAVvfVkbhFxsO994cS4NTYQiKrtTLxsvfS4y2kekhKHLfUqNCKOFPs01zU6jTlmf5rSiIjVgs07JONmNgdZOQXxo4ZoeD7LWP9CNuBc6YNLcmB71mCuaelkTVx4VTAtwjzxS5ZaOW/jANO3nA5Hh7yUWJ46SeKDg12l7yfeQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=QUbZMzWwyfdHdrenla8wod83OAzCF5+Gs8DR7i/I8bVe1OgcSfTf6U/FYpNpyfyfAYoGsCJaDaLDUd93QDb9PcgzIULvbiydAJuZvjqSOaV+g8MbmV6gGWVs8mBR9xr4rbW65xJjM1PPs2qhoz5b+KW+0Jmfg5gsRGgF36BChkE=; Message-ID: <125460.52837.qm@web101714.mail.ssk.yahoo.co.jp> X-YMail-OSG: 2sTt2d4VM1mlgCiEu0xuqkGV.9RPcXOFNzG_pdk.sphH_6l8Mhk7Jcf1KbH0PG81R.jdI85xXLQ3ASIJGo_ALxc89Xx._D2hkkkRRlCkS4TV7aIgplNSrMTfdOPWVYu9ndHFrtHAJ5MyHilnB6xmyo4qkmw66zFF6RhmM0xBbCBu5WWvb14jJml0oKtO8vQspjZ9SyGNjy9phPkM9d_WfLJYaQkuCtWGrR5FBvA63ZoQVU7VW_BEShm49rq.OvZ8cMGTkM0ezCOuC0pU6ulpdw4N6vxczXS5ITCMz6zh5F7d1tkXvCt3AvZJeivgbnF5LIOwy6WcFoWVc4wd.GbmyqrEP44kUmshkrRVTe1hvTfxkOX95bQWp0OB8M6Bjq6DwPbUb0Yyy0TLc.10AvkdLmm3hcMI1bf4rNMmTXG3QXcwUP.fEd2eoR3hBpUzNslxqAoCWXCY_UcGFF6OA866zOEbFadkCMgtDJhdyyE3wXxLmDC0L8A2vTMR40rDS7ui1NBHv6Yk93aAigG0ATxBLYkPkA7cnzZtHWukMZFQykqyEV6bn3dfxNmW3Mut5j53KT_56GPewoGRv7bjpF2k758QnCDHqIvJK49mM5dLGA-- Received: from [110.134.196.53] by web101714.mail.ssk.yahoo.co.jp via HTTP; Mon, 29 Aug 2016 12:07:34 JST X-Mailer: YahooMailWebService/0.8.111_69 X-YMail-JAS: 58hz5JwVM1mTqB9eeBtMDYGuQIQHmJRQg5a8LGjy8Ukb19KdjXNaUfAhFLwfy4vKOSXEQyG.4IPcfqhrKED1oVyCAkONFqxnGkyfYLUiB24tSeC35cESJFLsasuA2uUOMkR1 References: <705503.18629.qm@web101707.mail.ssk.yahoo.co.jp> <81B9B540-B1CB-406F-9F51-FDBDB451B4FC@gmail.com> Date: Mon, 29 Aug 2016 12:07:34 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: sys/mips/mediatek kernel crash on RT3050 To: Stanislav Galabov , Adrian Chadd Cc: "freebsd-mips@freebsd.org" In-Reply-To: <81B9B540-B1CB-406F-9F51-FDBDB451B4FC@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 03:10:17 -0000 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=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: at mem 0x18000000-0x180fffff= on nexus0=0Abhnd_chipc0: mem = 0x18000000-0x18000=0Adff,0x1fc00000-0x1fffffff,0x1c000000-0x1dffffff,0x1a00= 0000-0x1bffffff at core 0=A0=0Aon bhnd0=0Abhnd_mips0: mem 0x18002000-0x18002dff at core 2=A0=0Aon bhnd0=0Acpupic0: on nexus0=0Abhnd_pmu0: 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: on nexus0=0Anvram2env0: sig =3D 0x48534c46=0Anvram2env0: size =3D = 0x2f0=0Anvram2env1: Found NVRAM at 0x1c7f8000=0Anvram2env1: on nexus0=0Anvram2env1: sig =3D 0x48534c46=0Anvram2env1: size= =3D 0x344=0Aclock0: 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 =0A> T= o: Adrian Chadd =0A> Cc: Mori Hiroki ; "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 =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 =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=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: =0A>>> openfirm: =0A>>> mem: =0A>>> nexus0: =0A>= >> random: harvesting attach, 8 bytes (4 bits) from nexus0=0A>>> ofwbus0:= on nexus0=0A>>> palmbus0: 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: on ofwbus0=0A>>> = random: harvesting attach, 8 bytes (4 bits) from cpupic0=0A>>> sysc0: mem 0-0xff on palmbus0=0A>>> random: harvesting attach= , 8 bytes (4 bits) from sysc0=0A>>> pinctrl0: 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: = on ofwbus0=0A>>> random: harvesting attach, 8 bytes= (4 bits) from rstctrl0=0A>>> clkctrl0: on ofwbus0= =0A>>> random: harvesting attach, 8 bytes (4 bits) from clkctrl0=0A>>> in= tc0: mem 0x200-0x2ff irq 6 on =0A> palmbus0= =0A>>> random: harvesting attach, 8 bytes (4 bits) from intc0=0A>>> gpio0= : mem 0x600-0x633 irq 9 on =0A> palmbus0=0A>>> = gpiobus0: on gpio0=0A>>> random: harvesting attach, 8 bytes= (4 bits) from gpiobus0=0A>>> random: harvesting attach, 8 bytes (4 bits) = from gpio0=0A>>> palmbus0: mem 0x100-0x11f irq 4 compat =0A> r= alink,rt3050-timer (no drive=0A>>> r attached)=0A>>> palmbus0: mem 0x120-0x12f irq 5 compat =0A> ralink,rt3050-wdt (no driv=0A>>> er= attached)=0A>>> palmbus0: mem 0x300-0x3ff irq 7 compat =0A> ra= link,rt3050-memc (no driver=0A>>> attached)=0A>>> palmbus0: me= m 0x500-0x5ff irq 8 disabled compat =0A> ralink,rt3050-uart (n=0A>>> o dri= ver attached)=0A>>> gpioled0: at pin 14 on gpiobus0=0A>>> rand= om: harvesting attach, 8 bytes (4 bits) from gpioled0=0A>>> gpioled1: at pin 11 on gpiobus0=0A>>> random: harvesting attach, 8 bytes (4 b= its) from gpioled1=0A>>> gpioled2: at pin 9 on gpiobus0=0A>>> = random: harvesting attach, 8 bytes (4 bits) from gpioled2=0A>>> gpioled3: = at pin 12 on gpiobus0=0A>>> random: harvesting attach, 8 bytes = (4 bits) from gpioled3=0A>>> gpioc0: on gpio0=0A>>> ran= dom: harvesting attach, 8 bytes (4 bits) from gpioc0=0A>>> palmbus0: mem 0x638-0x65b disabled compat =0A> ralink,rt3050-gpio (no driv=0A>>= > er attached)=0A>>> palmbus0: mem 0x660-0x683 disabled compat= =0A> ralink,rt3050-gpio (no driv=0A>>> er attached)=0A>>> spi0: mem 0xb00-0xbff on palmbus0=0A>>> spibus0: = on spi0=0A>>> mx25l0: 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: 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: compat ralink,rt3= 050-usbphy (no driver =0A> attached)=0A>>> rt0: 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: mem 0x10110000-0x10117fff irq 1 = =0A> on ofwbus0=0A>>> miibus0: on mtkswitch0=0A>>> ukphy0: 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: on mtkswitch0=0A>>> ukphy1: 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: on mtkswitch0=0A>>> ukphy2: 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: = 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: on= mtkswitch0=0A>>> ukphy4: 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: on mtkswitch0=0A>>> random: harvesting attach, 8 bytes (4 bits) from eth= erswitch0=0A>>> mdio0: 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: mem 0x10180000-0x10= 1bffff irq 2 compat =0A> ralink,rt3050-wm=0A>>> ac (no driver attached)=0A= >>> ofwbus0: mem 0x101c0000-0x101fffff irq 3 disabled =0A> = compat ralink,r=0A>>> t3050-otg (no driver attached)=0A>>> ofwbus0: compat gpio-leds (no driver attached)=0A>>> ofwbus0: compat gpio-keys-polled (no driver =0A> attached)=0A>>> clock0: 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> From owner-freebsd-mips@freebsd.org Mon Aug 29 09:10:03 2016 Return-Path: Delivered-To: freebsd-mips@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 CA942BC7EF4 for ; Mon, 29 Aug 2016 09:10:03 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6634EE03 for ; Mon, 29 Aug 2016 09:10:03 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id f65so69521221wmi.0 for ; Mon, 29 Aug 2016 02:10:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=BwlShYlSt4mGmIFEAPjbtyb1hkKSHFuwK960rAH+Mog=; b=OvK/fbDrdkHQEaTIVIgoq+AgCZCfy1ZavHzEzAaBdAn/qwfxPkrdMOgjmjskAwaTBf 61+k4Jy5YkxJ3Kv0PT34UDJxKJwWU6Sadr9MCHZH4MkU2vrQADatvZ2rSpTdIRYN6GHk iUJhNSA7w6jNTYtaY5l0zF3YUk3CKXnnlZerUcKhzQR5S0DdS98IPfOL0vzUBqHLx/n+ 5h4itdHJvQxx2ftIoMvSua73CGnu0A2n1DWKDmcicp9Q8OPI17Wn3FWd5KkJflGdTRjx ueb7LsGhvmLahmR6Wa+6Op48Fz23EupAJrbq5kejVr5fivmGgA//RJz/LgV2HUsg9T0t ZlYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=BwlShYlSt4mGmIFEAPjbtyb1hkKSHFuwK960rAH+Mog=; b=FE3Gx+77rOIxJ+ZRuAGoedOwIOM66Sqr9OCpiso+qmwej3cHy/bVbjmMRnFfQJQoU0 L5neM15TQL9yaSpHWMuqaBYa1cFcB+ROFDHZFrg7b8zvTFSKrDVgtobAGwc/c28n9GVS hXqlR1E+lGBfcbd1p7K2HkJCrKVyK8p9iHwZo/pfL2qagNxvc7fWCYPsjbWfLVaSXAzs ChfqWP/5jnkPBZydh2L4t2mmVVlVowcfWnE8w2FUeDPSps0i7XespVmIzp931Jf5lffC 64r7pSYyIqJVb1rjQZB7dcqIF2981O/Vk68IcG/5bSPZbnHJm8A0ZT7qvybdI5kTSpPM TqHA== X-Gm-Message-State: AE9vXwMYYPDwA0zCnaUzyEPLVn0s+bL4FQME/B0z31WpUl9J8xhUc3Auwmo6VsbhCPWYww== X-Received: by 10.28.10.21 with SMTP id 21mr10163733wmk.3.1472461801509; Mon, 29 Aug 2016 02:10:01 -0700 (PDT) Received: from [192.168.252.71] ([193.178.153.36]) by smtp.gmail.com with ESMTPSA id uo4sm33314435wjc.36.2016.08.29.02.09.59 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Aug 2016 02:10:00 -0700 (PDT) Subject: Re: sys/mips/mediatek kernel crash on RT3050 Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Content-Type: multipart/signed; boundary="Apple-Mail=_9F876D66-3AB1-4200-B016-4F72DD747C8D"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.6b2 From: Stanislav Galabov In-Reply-To: <125460.52837.qm@web101714.mail.ssk.yahoo.co.jp> Date: Mon, 29 Aug 2016 12:09:58 +0300 Cc: Stanislav Galabov , Adrian Chadd , "freebsd-mips@freebsd.org" Message-Id: <54D1B5E9-FB36-49D9-8CD0-0D42B732E8D9@gmail.com> References: <705503.18629.qm@web101707.mail.ssk.yahoo.co.jp> <81B9B540-B1CB-406F-9F51-FDBDB451B4FC@gmail.com> <125460.52837.qm@web101714.mail.ssk.yahoo.co.jp> To: Mori Hiroki X-Mailer: Apple Mail (2.3094) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 09:10:03 -0000 --Apple-Mail=_9F876D66-3AB1-4200-B016-4F72DD747C8D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hi, Could you please test after applying the patch found at: = https://reviews.freebsd.org/D7692 Best wishes, Stanislav > On Aug 29, 2016, at 06:07, Mori Hiroki wrote: >=20 > Hi >=20 > I build for BCM box at sys/mips/brodecom today. >=20 > This build have same panic. >=20 > CFE> boot -raw -z -addr=3D0x80001000 -max=3D0x3a0000 flash0.os: > Loader:raw Filesys:raw Dev:flash0.os File: Options:(null) > Loading: ........... 3446116 bytes read > Entry at 0x80001000 > Closing network. > Starting program at 0x80001000 > entry: mips_init() > Cache info: > picache_stride =3D 4096 > picache_loopcount =3D 4 > pdcache_stride =3D 4096 > pdcache_loopcount =3D 4 > cpu0: Broadcom processor v41.144 > MMU: Standard TLB, 32 entries (1K 4K 16K 64K 256K 1M 16M 64M 256M pg = sizes) > L1 i-cache: 4 ways of 256 sets, 16 bytes per line > L1 d-cache: 2 ways of 512 sets, 16 bytes per line > L2 cache: disabled > Config1=3D0x3e9b6c86 > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2016 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, = 1994 > The Regents of the University of California. All rights = reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 12.0-CURRENT #3 7c2f7cf(zrouter)-dirty: Mon Aug 29 11:41:45 = JST 2016 > = hiroki@microserver:/storage/home/hiroki/obj/storage/home/hiroki/zrouter/tm= p/ > mips.mipsel/storage/home/hiroki/freebsd/sys/Buffalo_WHR-HP-G54 mips > gcc version 4.2.1 20070831 patched [FreeBSD] > real memory =3D 16125952 (15748K bytes) > avail memory =3D 11137024 (10MB) > nexus0: > bhnd0: at mem 0x18000000-0x180fffff on nexus0 > bhnd_chipc0: mem = 0x18000000-0x18000 > dff,0x1fc00000-0x1fffffff,0x1c000000-0x1dffffff,0x1a000000-0x1bffffff = at core 0 > on bhnd0 > bhnd_mips0: mem 0x18002000-0x18002dff = at core 2 > on bhnd0 > cpupic0: on nexus0 > bhnd_pmu0: on bhnd_chipc0 > bhnd0: error reading BOARDVENDOR: 19 > bhnd_pmu0: error fetching board info: 19 > device_attach: bhnd_pmu0 attach returned 6 > nvram2env0: Found NVRAM at 0x1fc00400 > nvram2env0: on nexus0 > nvram2env0: sig =3D 0x48534c46 > nvram2env0: size =3D 0x2f0 > nvram2env1: Found NVRAM at 0x1c7f8000 > nvram2env1: on nexus0 > nvram2env1: sig =3D 0x48534c46 > nvram2env1: size =3D 0x344 > clock0: on nexus0 > panic: Unable to add hard IRQ 7 handler > KDB: enter: panic > [ thread pid 0 tid 100000 ] > Stopped at kdb_enter+0x4c: lui at,0x8036 >=20 >=20 > ----- Original Message ----- >> From: Stanislav Galabov >> To: Adrian Chadd >> Cc: Mori Hiroki ; "freebsd-mips@freebsd.org" = >> Date: 2016/8/26, Fri 01:31 >> Subject: Re: sys/mips/mediatek kernel crash on RT3050 >>=20 >> Hi all, >>=20 >> I am currently on vacation and will be back next week. I guess I'll = find >> some time to look at this then if needed. >>=20 >> Best wishes, >> Stanislav >>=20 >>> On Aug 25, 2016, at 18:25, Adrian Chadd >> wrote: >>>=20 >>> Hm, does it require INTRNG these days? >>>=20 >>>=20 >>> -a >>>=20 >>>=20 >>>> On 24 August 2016 at 18:11, Mori Hiroki >> wrote: >>>> Hi >>>>=20 >>>> I build sys/mips/mediatek for RT3050 box at few days before head. >>>>=20 >>>> This kernel crash. >>>>=20 >>>> This build based on rt3050.dtsi. >>>>=20 >>>> Some one know this problem ? >>>>=20 >>>> Thanks. >>>>=20 >>>> Starting kernel ... >>>>=20 >>>> FDT DTB at: 0x802ce6f0 >>>> CPU clock: 320MHz >>>> Timer clock: 160MHz >>>> UART clock: 106MHz >>>>=20 >>>> U-Boot args (from 0 args): >>>> None >>>> Environment: >>>> entry: mips_init() >>>> RAM size: 32MB (assumed) >>>> Cache info: >>>> picache_stride =3D 4096 >>>> picache_loopcount =3D 8 >>>> pdcache_stride =3D 4096 >>>> pdcache_loopcount =3D 4 >>>> cpu0: MIPS Technologies processor v76.150 >>>> MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg >> sizes) >>>> L1 i-cache: 4 ways of 256 sets, 32 bytes per line >>>> L1 d-cache: 4 ways of 128 sets, 32 bytes per line >>>> L2 cache: disabled >>>> Config1=3D0xbea3319e >>>> Config2=3D0x80000000 >>>> Config3=3D0x420 >>>> Physical memory chunk(s): >>>> 0x334000 - 0x1ffffff, 30195712 bytes (7372 pages) >>>> Maxmem is 0x2000000 >>>> Copyright (c) 1992-2016 The FreeBSD Project. >>>> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, >> 1994 >>>> The Regents of the University of California. All rights >> reserved. >>>> FreeBSD is a registered trademark of The FreeBSD Foundation. >>>> FreeBSD 12.0-CURRENT #1 ed1832a(zrouter): Sun Aug 21 12:19:54 JST = 2016 >>>>=20 >> = hiroki@microserver:/storage/home/hiroki/obj/storage/home/hiroki/zrouter/tm= p/ >>>> mips.mipsel/storage/home/hiroki/freebsd/sys/Fon_FON2305E_FDT mips >>>> gcc version 4.2.1 20070831 patched [FreeBSD] >>>> Preloaded elf kernel "kernel" at 0x8032afb0. >>>> real memory =3D 33554432 (32768K bytes) >>>> Physical memory chunk(s): >>>> 0x003c0000 - 0x01f3efff, 28831744 bytes (7039 pages) >>>> avail memory =3D 28397568 (27MB) >>>> ULE: setup cpu 0 >>>> random: entropy device external interface >>>> firmware: 'rt2860fw' version 0: 8192 bytes loaded at 0x802d86d0 >>>> firmware: 'rt2561fw' version 0: 8192 bytes loaded at 0x802d2550 >>>> firmware: 'rt2561sfw' version 0: 8192 bytes loaded at >> 0x802d45d0 >>>> wlan: <802.11 Link Layer> >>>> firmware: 'rt2661fw' version 0: 8192 bytes loaded at 0x802d6650 >>>> null: >>>> openfirm: >>>> mem: >>>> nexus0: >>>> random: harvesting attach, 8 bytes (4 bits) from nexus0 >>>> ofwbus0: on nexus0 >>>> palmbus0: mem 0x10000000-0x101fffff on ofwbus0 >>>> random: harvesting attach, 8 bytes (4 bits) from palmbus0 >>>> random: harvesting attach, 8 bytes (4 bits) from ofwbus0 >>>> cpupic0: on ofwbus0 >>>> random: harvesting attach, 8 bytes (4 bits) from cpupic0 >>>> sysc0: mem 0-0xff on palmbus0 >>>> random: harvesting attach, 8 bytes (4 bits) from sysc0 >>>> pinctrl0: on ofwbus0 >>>> pinctrl0: GPIO mode start: 0x0000029d >>>> Processing 1 pin-config node(s) in pinctrl-0 for spi@b00 >>>> Processing 1 pin-config node(s) in pinctrl-0 for uartlite@c00 >>>> Processing 1 pin-config node(s) in pinctrl-0 for pinctrl >>>> pinctrl0: GPIO mode end : 0x0000005d >>>> random: harvesting attach, 8 bytes (4 bits) from pinctrl0 >>>> rstctrl0: on ofwbus0 >>>> random: harvesting attach, 8 bytes (4 bits) from rstctrl0 >>>> clkctrl0: on ofwbus0 >>>> random: harvesting attach, 8 bytes (4 bits) from clkctrl0 >>>> intc0: mem 0x200-0x2ff irq 6 on >> palmbus0 >>>> random: harvesting attach, 8 bytes (4 bits) from intc0 >>>> gpio0: mem 0x600-0x633 irq 9 on >> palmbus0 >>>> gpiobus0: on gpio0 >>>> random: harvesting attach, 8 bytes (4 bits) from gpiobus0 >>>> random: harvesting attach, 8 bytes (4 bits) from gpio0 >>>> palmbus0: mem 0x100-0x11f irq 4 compat >> ralink,rt3050-timer (no drive >>>> r attached) >>>> palmbus0: mem 0x120-0x12f irq 5 compat >> ralink,rt3050-wdt (no driv >>>> er attached) >>>> palmbus0: mem 0x300-0x3ff irq 7 compat >> ralink,rt3050-memc (no driver >>>> attached) >>>> palmbus0: mem 0x500-0x5ff irq 8 disabled compat >> ralink,rt3050-uart (n >>>> o driver attached) >>>> gpioled0: at pin 14 on gpiobus0 >>>> random: harvesting attach, 8 bytes (4 bits) from gpioled0 >>>> gpioled1: at pin 11 on gpiobus0 >>>> random: harvesting attach, 8 bytes (4 bits) from gpioled1 >>>> gpioled2: at pin 9 on gpiobus0 >>>> random: harvesting attach, 8 bytes (4 bits) from gpioled2 >>>> gpioled3: at pin 12 on gpiobus0 >>>> random: harvesting attach, 8 bytes (4 bits) from gpioled3 >>>> gpioc0: on gpio0 >>>> random: harvesting attach, 8 bytes (4 bits) from gpioc0 >>>> palmbus0: mem 0x638-0x65b disabled compat >> ralink,rt3050-gpio (no driv >>>> er attached) >>>> palmbus0: mem 0x660-0x683 disabled compat >> ralink,rt3050-gpio (no driv >>>> er attached) >>>> spi0: mem 0xb00-0xbff on palmbus0 >>>> spibus0: on spi0 >>>> mx25l0: at cs 0 mode 0 on spibus0 >>>> mx25l0: mx25ll64, sector 65536 bytes, 128 sectors >>>> random: harvesting attach, 8 bytes (4 bits) from mx25l0 >>>> random: harvesting attach, 8 bytes (4 bits) from spibus0 >>>> random: harvesting attach, 8 bytes (4 bits) from spi0 >>>> uart0: mem 0xc00-0xcff irq 10 on palmbus0 >>>> uart0: console (57971,n,8,1) >>>> uart0: fast interrupt >>>> uart0: PPS capture mode: DCDinvalid >>>> random: harvesting attach, 8 bytes (4 bits) from uart0 >>>> ofwbus0: compat ralink,rt3050-usbphy (no driver >> attached) >>>> rt0: mem >> 0x10100000-0x1010ffff irq 0 on o >>>> fwbus0 >>>> rt0: RT305XF Ethernet MAC (rev 0x00000000) >>>> rt0: use hardcoded 00:18:e7:d5:83:90 macaddr >>>> rt0: bpf attached >>>> rt0: Ethernet address: 00:18:e7:d5:83:90 >>>> random: harvesting attach, 8 bytes (4 bits) from rt0 >>>> mtkswitch0: mem 0x10110000-0x10117fff irq 1 >> on ofwbus0 >>>> miibus0: on mtkswitch0 >>>> ukphy0: PHY 0 on miibus0 >>>> ukphy0: OUI 0x000c43, model 0x0001, rev. 7 >>>> ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >>>> random: harvesting attach, 8 bytes (4 bits) from ukphy0 >>>> random: harvesting attach, 8 bytes (4 bits) from miibus0 >>>> miibus1: on mtkswitch0 >>>> ukphy1: PHY 1 on miibus1 >>>> ukphy1: OUI 0x000c43, model 0x0001, rev. 7 >>>> ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >>>> random: harvesting attach, 8 bytes (4 bits) from ukphy1 >>>> random: harvesting attach, 8 bytes (4 bits) from miibus1 >>>> miibus2: on mtkswitch0 >>>> ukphy2: PHY 2 on miibus2 >>>> ukphy2: OUI 0x000c43, model 0x0001, rev. 7 >>>> ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >>>> random: harvesting attach, 8 bytes (4 bits) from ukphy2 >>>> random: harvesting attach, 8 bytes (4 bits) from miibus2 >>>> miibus3: on mtkswitch0 >>>> ukphy3: PHY 3 on miibus3 >>>> ukphy3: OUI 0x000c43, model 0x0001, rev. 7 >>>> ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >>>> random: harvesting attach, 8 bytes (4 bits) from ukphy3 >>>> random: harvesting attach, 8 bytes (4 bits) from miibus3 >>>> miibus4: on mtkswitch0 >>>> ukphy4: PHY 4 on miibus4 >>>> ukphy4: OUI 0x000c43, model 0x0001, rev. 7 >>>> ukphy4: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >>>> random: harvesting attach, 8 bytes (4 bits) from ukphy4 >>>> random: harvesting attach, 8 bytes (4 bits) from miibus4 >>>> etherswitch0: on mtkswitch0 >>>> random: harvesting attach, 8 bytes (4 bits) from etherswitch0 >>>> mdio0: on mtkswitch0 >>>> random: harvesting attach, 8 bytes (4 bits) from mdio0 >>>> random: harvesting attach, 8 bytes (4 bits) from mtkswitch0 >>>> ofwbus0: mem 0x10180000-0x101bffff irq 2 compat >> ralink,rt3050-wm >>>> ac (no driver attached) >>>> ofwbus0: mem 0x101c0000-0x101fffff irq 3 disabled >> compat ralink,r >>>> t3050-otg (no driver attached) >>>> ofwbus0: compat gpio-leds (no driver attached) >>>> ofwbus0: compat gpio-keys-polled (no driver >> attached) >>>> clock0: on nexus0 >>>> panic: Unable to add hard IRQ 7 handler >>>> Uptime: 1s >>>> Automatic reboot in 15 seconds - press a key on the console to = abort >>>> Rebooting... >>>> _______________________________________________ >>>> freebsd-mips@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/freebsd-mips >>>> To unsubscribe, send any mail to >> "freebsd-mips-unsubscribe@freebsd.org" >>> _______________________________________________ >>> freebsd-mips@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-mips >>> To unsubscribe, send any mail to >> "freebsd-mips-unsubscribe@freebsd.org" >>=20 --Apple-Mail=_9F876D66-3AB1-4200-B016-4F72DD747C8D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJXw/vmAAoJEIKmgXSGgsog5pMIALPvuSutJIZQ2XT+lj7Q5jHl 8FSKQ2wfd+mHJUeKK9kuG8WQUZP5mELR0n6G6sNa97piD4pPklTGTEU5yPeYYrIx mTdTTdU9XopEET10Uc5T6+40DDgMWnrKjoS26/8Yi6woELaGuXCwbCcmeHa5KQsi zI27NirooL3ahdlWRO1uX+kSmEnSjMtH0Cbv2CrtTDX8XFIahXkwi+8OneLTqADh LQklbEi+iKLS9u25mXdpvS6vdu6cYIhFqU6ZNAFRoRyb5jLI0LmvOL71BYyxrHqx 5vw37vZm44Gpx1Fur1JTEg93sDQYb0JECaI8lvckHdsyfV6QNCx21BA2CvIvAWs= =n09M -----END PGP SIGNATURE----- --Apple-Mail=_9F876D66-3AB1-4200-B016-4F72DD747C8D-- From owner-freebsd-mips@freebsd.org Mon Aug 29 15:09:38 2016 Return-Path: Delivered-To: freebsd-mips@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 0FCECBC77C3 for ; Mon, 29 Aug 2016 15:09:38 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E907623EF for ; Mon, 29 Aug 2016 15:09:37 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [192.168.0.6] (67-0-45-125.albq.qwest.net [67.0.45.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 4195D192908; Mon, 29 Aug 2016 15:09:31 +0000 (UTC) To: "freebsd-mips@freebsd.org" From: Sean Bruno Subject: Clang/LLVM enabled builds for mips/mips64 Message-ID: <88751282-c9d2-a673-18bc-184edc02efd0@freebsd.org> Date: Mon, 29 Aug 2016 09:09:26 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="91N63T181CP4a4gQWl41EnU2EEJwAdTeg" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 15:09:38 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --91N63T181CP4a4gQWl41EnU2EEJwAdTeg Content-Type: multipart/mixed; boundary="FggPXJO80qUTLT10AAOkOjofdeaBUdoxn" From: Sean Bruno To: "freebsd-mips@freebsd.org" Message-ID: <88751282-c9d2-a673-18bc-184edc02efd0@freebsd.org> Subject: Clang/LLVM enabled builds for mips/mips64 --FggPXJO80qUTLT10AAOkOjofdeaBUdoxn Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Made some excellent progress over the last few weeks. Here's a quick status update. I can boot(then crash) a mips64 kernel in QEMU via the MALTA64 kernconf. I can buildworld for mips32, but the kernel fails. QEMU MALTA64 kernel crash: http://people.freebsd.org/~sbruno/malta64_qemu_crash.txt MIPS32 buildkernel failure: http://people.freebsd.org/~sbruno/malta32_buildkernel.txt Clang/LLVM patches that you need to apply when using and external toolcha= in: https://reviews.llvm.org/D23652 https://reviews.llvm.org/D23795 https://reviews.llvm.org/D23497 Minor Patch to enable inline ASM by default for mips targets: http://people.freebsd.org/~sbruno/clang_mips_default_ias.diff Build the FreeBSD tree in my project branch, its got a few things changed to make it easier to build/test: https://svnweb.freebsd.org/base/projects/mips64-clang/ Use a make.conf(change XCC/XCPP/XCXX to *your* build of clang) MALLOC_PRODUCTION=3Dy NO_WERROR=3Dy TARGET=3Dmips TARGET_ARCH=3Dmips64 KERNCONF=3DMALTA64 XCC=3D/home/sbruno/bsd/clang/build/bin/clang XCPP=3D/home/sbruno/bsd/clang/build/bin/clang-cpp XCXX=3D/home/sbruno/bsd/clang/build/bin/clang++ XCFLAGS=3D-Wno-typedef-redefinition -Wno-pointer-sign -Wno-expansion-to-defined -Wno-address-of-packed-member -msoft-float -fpi= c Use a src.conf: WITHOUT_CLANG=3D"YES" WITHOUT_CLANG_EXTRAS=3D"YES" WITHOUT_CLANG_FULL=3D"YES" WITHOUT_CLANG_BOOTSTRAP=3D"YES" WITHOUT_GCC=3D"YES" WITHOUT_GDB=3D"YES" WITHOUT_TESTS=3D"YES" WITHOUT_RESCUE=3D"YES" --FggPXJO80qUTLT10AAOkOjofdeaBUdoxn-- --91N63T181CP4a4gQWl41EnU2EEJwAdTeg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJXxFAmXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5krNcH/RdS3YH3OMz6ohS7pHHGuZA0 j6TURdaE4LWGOtarX6VfoL3aZs0orAZ1eWpv+TG8L3vAqOCD4SFlzQ3Hjnez0i7E Pxbx2DIaimiHfaiqJgG3N58EY1OxrZ5cks+3vzy6EZAFoVPI6TD/2MlzO5I+xoDQ 0E22Crp55K8ZkJutSQPO9+kjafHSJPAW+6jvXAwlR3srQDbB+8WILa70/OJ9B+Jm a1QRlWPZ+ixrQq+WMhnFzLpKlMbPgCCT1xbwdcOEN/ZDIJB8zxsZGpf/eDZRHl8M +8EMkK+gVMx5np8/3wTZSoL1x6bzED5hkIX1Lrvn5Uyc/5Fr6wEegYBNV2QF010= =So7f -----END PGP SIGNATURE----- --91N63T181CP4a4gQWl41EnU2EEJwAdTeg--