From owner-freebsd-mips@FreeBSD.ORG Wed Aug 22 23:46:52 2012 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 21270106566C for ; Wed, 22 Aug 2012 23:46:52 +0000 (UTC) (envelope-from vrtuff@yahoo.com) Received: from nm23.bullet.mail.bf1.yahoo.com (nm23.bullet.mail.bf1.yahoo.com [98.139.212.182]) by mx1.freebsd.org (Postfix) with SMTP id BA8DC8FC12 for ; Wed, 22 Aug 2012 23:46:50 +0000 (UTC) Received: from [98.139.212.152] by nm23.bullet.mail.bf1.yahoo.com with NNFMP; 22 Aug 2012 23:46:44 -0000 Received: from [98.139.212.245] by tm9.bullet.mail.bf1.yahoo.com with NNFMP; 22 Aug 2012 23:46:44 -0000 Received: from [127.0.0.1] by omp1054.mail.bf1.yahoo.com with NNFMP; 22 Aug 2012 23:46:44 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 347619.84286.bm@omp1054.mail.bf1.yahoo.com Received: (qmail 65710 invoked by uid 60001); 22 Aug 2012 23:46:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1345679204; bh=5Hew+VgQ5p7fe48Lp/eQ3Z2sR4yuFpxV22S9PuyWZl0=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=YW4RQClXOIqA57BmyClFkLMUXMQTXlXHdOaOjGkVgkEb4H/p3joHrDVRcJaN1YyOqCo2W4RskJmd8V0P2WTYQHmhntX5yUPsOTSxVWmIH2H2BD8j5XaxKcAP8kxYhu741/wvyA4HyB7/fVUSJsyxCPlfDOd8TPCsm91o+wAZ1I4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=u81kVH11TIo8Ie7bbBbSRQ/LFzSEH8JdmsBHfcyWl21lMy6xohdTZV4PoAZDSHD6jWbOIbNGOz8cZzMmeDHYwG/OTg2c0Cis8C8EI1++Xh3BikUdlexEKx0iecffRncv3lmD+3Y2h6r2GrbRxP6jAWHzyg3Fn71Dau9Duu5Jvfk=; X-YMail-OSG: 7oKwu3AVM1nBHBLb7yK_DCAYMkwF1fyQPt0SKNAc3pQa.0U VoqQSI0l1xomDJu8jggxzFCGckFOffomVifHMjCBX.Tg21aa3OXNP2y1X5JO QJtDFaU9t5.qsB0jdNd4.60mmeraj.MYvcOmKOaUztrrmrp.wlJuDYKx4u_w PTN_0oxXJOTW_S5Ew9sI77tzV2Ip7VU9mN62kGWEZr0CDZgJGq9Apqhgj.3O svZuhAXh.pQlsYKdJ27HR.WRPE7EfYcJw0g2gXFh2JI9WgpSYH_JtHWvRFS. GeHxzg3WNHUOjnX9M7QP1GLmAn89j.2jFCOlLjuxI3Sikp9x1sICq57HA1y9 cZu6LBKyT._wO_mHMSMIKRPo7nj3wf3r0qqdK.Fu0TRD45uA6eWl81Nr4pE. SHBSW5v.9XmSPXKE.Bj5D.QtsjaacCxy0CeBSBj2cZdYhf119xluMI4Wg0Gj oup0mbTkTP9Z8FFiGk3KpdI4JWCOb9DJB_p0tUoty2xneeRxCMSEYoLyffLC f_A-- Received: from [68.194.233.166] by web160706.mail.bf1.yahoo.com via HTTP; Wed, 22 Aug 2012 16:46:44 PDT X-Mailer: YahooMailClassic/15.0.8 YahooMailWebService/0.8.121.416 Message-ID: <1345679204.91728.YahooMailClassic@web160706.mail.bf1.yahoo.com> Date: Wed, 22 Aug 2012 16:46:44 -0700 (PDT) From: Youri Adonis To: freebsd-mips@FreeBSD.org In-Reply-To: <20120216155625.665708d8.ray@dlink.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: Support for mips74KC X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2012 23:46:52 -0000 I am happy to report that a quick checkout from zrouter build using dir-620(mips24kc) profile allowed me to boot freebsd on a mips74kc soc, RT3883 - (Edimax BR6475nd). Below is the console output with some debug info after it crashed: ## Booting image at bc070000 ... CSYS magic number at 0xBC070000 Image Name: FreeBSD Kernel Image Created: 2012-08-20 4:08:35 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1041935 Bytes = 1017.5 kB Load Address: 80001000 Entry Point: 80001000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80001000) ... ## Giving linux memsize in MB, 64 Starting kernel ... RT3883 runing with 500MHz clockM System bus clock - 166MHz^M System start from NOR flash storage U-Boot args (from 4 args): Environment:^M entry: mips_init() Cache info: picache_stride = 4096^M picache_loopcount = 16^M pdcache_stride = 4096^M pdcache_loopcount = 8^M cpu0: MIPS Technologies processor v76.151^M MMU: Standard TLB, 32 entries^M L1 i-cache: 4 ways of 512 sets, 32 bytes per line^M L1 d-cache: 4 ways of 256 sets, 32 bytes per line^M Config1=0xbee3519e^M Config3=0x2c20^M KDB: debugger backends: ddb^M KDB: current backend: ddb^M Copyright (c) 1992-2012 The FreeBSD Project.^M Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994^M The Regents of the University of California. All rights reserved.^M FreeBSD is a registered trademark of The FreeBSD Foundation.^M FreeBSD 10.0-CURRENT #0: Mon Aug 20 04:06:56 UTC 2012^M root@XXXXXXXX:/usr/src/zrouter/usr/src/zrouter/zrouter/tmp/mips.mipsel/usr/src/zrouter/FreeBSD/head/sys/usr/src/zrouter/usr/src/zrouter/zrouter/conf/D-Link_DIR-620 mips^M real memory = 33554432 (32768K bytes)^M avail memory = 27705344 (26MB)^M random device not loaded; using insecure entropy^M nexus0: ^M nvram2env0: Use NVRAM at 0x1f030000^M nvram2env0: on nexus0^M Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode)^M [ thread pid 0 tid 100000 ]^M Stopped at strlen+0x10: lb v0,0(v1)^M db> ^M db> help^M alltrace b break bt c call^M capture continue countfreebufsd delete dhwatch^M dump dwatch examine findstack gdb halt^M hwatch kill match next p panic^M print ps reboot reset run s^M script scripts search set show step^M t textdump thread trace unscript until^M w watch watchdog where write x^M db> where^M Tracing pid 0 tid 100000 td 0x8039f870^M 802e8ffc+c (?,?,?,?) ra 803f78b8 sp 803679750000005c sz 0^M 80006f8c+a8 (186a0,?,8036e450,?) ra 20803f78b8 sp 803691e0000002a8 sz 1^M 80006630+30 (?,?,?,?) ra 18803f78d8 sp 80364ccb00000204 sz 0^M 800066f8+ac (?,?,?,?) ra 803f78f0 sp 80364ccb000002cc sz 0^M pid 0^M db> continue^M panic: trap^M KDB: enter: panic^M [ thread pid 0 tid 100000 ]^M Stopped at kdb_enter+0x4c: lui at,0x803b^M db> continue^M Uptime: 1s^M Automatic reboot in 15 seconds - press a key on the console to abort^M --> Press a key on the console to reboot,^M --> or switch off the system now.^M Rebooting...^M Trap cause = 10 (reserved instruction - kernel mode)^M [ thread pid 0 tid 100000 ]^M Stopped at 0xbf001004: lld a2,t0,-12026^M db> continue^M panic: trap^M KDB: enter: panic^M [ thread pid 0 tid 100000 ]^M Stopped at kdb_enter+0x4c: lui at,0x803b^M db> continue^M Uptime: 1s^M Rebooting...^M Trap cause = 10 (reserved instruction - kernel mode)^M [ thread pid 0 tid 100000 ]^M Stopped at 0xbf001004: lld a2,t0,20742^M db> ^M panic: trap^M KDB: enter: panic^M [ thread pid 0 tid 100000 ]^M Stopped at kdb_enter+0x4c: lui at,0x803b^M db> ^M db> ps^M pid ppid pgrp uid state wmesg wchan cmd^M 13 0 0 0 RL [yarrow]^M 12 0 0 0 RL (threaded) [geom]^M 100008 RunQ [g_down]^M 100007 RunQ [g_up]^M 100006 RunQ [g_event]^M 11 0 0 0 WL (threaded) [intr]^M 100014 I [swi6: task queue]^M 100013 I [swi6: Giant taskq]^M 100011 I [swi5: +]^M 100005 I [swi3: vm]^M 100004 I [swi4: clock]^M 100003 I [swi1: netisr 0]^M 10 0 0 0 RL [idle]^M 1 0 0 0 ?L [kernel]^M 0 0 0 0 RLs (threaded) [kernel]^M 100015 RunQ [kqueue taskq]^M 100012 RunQ [thread taskq]^M 100009 RunQ [firmware taskq]^M 100000 Run CPU 0 [swapper]^ --- On Thu, 2/16/12, Aleksandr Rybalko wrote: > From: Aleksandr Rybalko > Subject: Re: Support for mips74KC > To: "Warner Losh" > Cc: "Youri Adonis" , "Adrian Chadd" , freebsd-mips@FreeBSD.org > Date: Thursday, February 16, 2012, 8:56 AM > On Wed, 15 Feb 2012 10:37:12 -0700 > Warner Losh > wrote: > > >> > >> On Feb 15, 2012, at 8:17 AM, Youri Adonis wrote: > >> > I have a RT-N16 which I tried freebsd on > through Rybalko's > >> > broadcom work. I cannot get it to boot yet. It > appears there is > >> > some sort of 74kc support in NetBSD > >> > >> What support is missing in FreeBSD? > > CPU OS support only differ in two things (from NetBSD code) > CPU_MIPS_HAVE_SPECIAL_CCA | (0 << > CPU_MIPS_CACHED_CCA_SHIFT) > MIPS_CP0FL_CONFIG6 > > 74k have "A 15-stage asymmetric dual-issue pipeline", 24k > have only > 8-stage, but: > 1. our gcc know nothing about 74k. > 2. clang seems same. > > I think if we add CPU_MIPS_HAVE_SPECIAL_CCA flag handling, > it may run > code compiled as mips24k, but I dunno how it will affect > performance. > > Don't have such H/W, so can't check yet. > > Hope it will be not so big pain to add 74k to gcc. > > >> > >> Warner > >> > >> _______________________________________________ > >> freebsd-mips@freebsd.org > mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-mips > >> To unsubscribe, send any mail to > >> "freebsd-mips-unsubscribe@freebsd.org" > > > -- > Alexandr Rybalko > aka Alex RAY >