From owner-freebsd-embedded@FreeBSD.ORG Tue Aug 20 08:58:20 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0575C538; Tue, 20 Aug 2013 08:58:20 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x22b.google.com (mail-wg0-x22b.google.com [IPv6:2a00:1450:400c:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 55A7A2E64; Tue, 20 Aug 2013 08:58:19 +0000 (UTC) Received: by mail-wg0-f43.google.com with SMTP id z12so122627wgg.34 for ; Tue, 20 Aug 2013 01:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ICqi/mbFkzFZUBfsSUIINrqc7cYz0IcZZuYyIVBoVLY=; b=AfVN6lMTuI4gpctEOtzN2zcJHrGCQIvKKuiyT0DVHuwERpJ3FhO6ME3wfyb8owV+B5 uyn+385c1Hpun6kvc2MA2pzXwcUZCnOK6Kv6BcgsUDZFACLPGcEvTuvBjuyhuJOz22rJ jd+nsMKpwFAEqQA6/u1HPE+OScSALh10HH/7qn3ML1Sw1ScAyNqOnvm/f7Jj87VBBS7o eY9qpzs3cYsrxKuhyu40wC+bNZLf9i27wt0drU7k06D92c3LSpUT+VDxPopahDQ5wOZO 7UJA6CQxSEK4LHnM87SOuufRu7Y7/AsgJpqyK+yfBiRt9iPeDadvBhAifX/7ZUT7/Oiq yvcg== MIME-Version: 1.0 X-Received: by 10.194.110.138 with SMTP id ia10mr473863wjb.3.1376989097325; Tue, 20 Aug 2013 01:58:17 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.116.136 with HTTP; Tue, 20 Aug 2013 01:58:17 -0700 (PDT) In-Reply-To: <1376975321.1445.62.camel@localhost> References: <1374340359.1421.3.camel@localhost> <1376975321.1445.62.camel@localhost> Date: Tue, 20 Aug 2013 01:58:17 -0700 X-Google-Sender-Auth: wEvNtRx_I8AtJkWCJgkPPoY-XCo Message-ID: Subject: Re: Dlink DIR-825 B1 status [update 2] From: Adrian Chadd To: Sean Bruno Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-embedded@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Aug 2013 08:58:20 -0000 woo! cc jeff and alan! It's a VM problem! :-) -adrian On 19 August 2013 22:08, Sean Bruno wrote: > On Sat, 2013-07-20 at 10:12 -0700, Sean Bruno wrote: > > Using adrian's build sys, I've been able to get this router up with > > FreeBSD. There's no indication that it has wireless interfaces on it, > > which is odd. > > > > dmesg --> http://people.freebsd.org/~sbruno/dir_825_dmesg.txt > > Now that usb seems to be working, I took a stab at mounting a USB drive > for use as a NAS or external storage. > > I started with a "known good" msdosfs formatted drive that works "just > fine" on my other BSD hosts. > > This generated two patches to the kernel conf files: > - sys/mips/conf/AR71XX_BASE > -- uncomment MSDOSFS > - sys/mips/conf/DIR-825 > -- add options GEOM_PART_GPT > -- http://people.freebsd.org/~sbruno/sys_mips_conf.diff > > and one patch to the freebsd-wifi buildsys: > - build/bin/build_mfsroot > -- add lib/libkiconv.so.4 for mount_msdosfs > -- http://people.freebsd.org/~sbruno/build_mfs_root.diff > > > Inserting a 4G disk with a 1G msdosfs partition seems to let me mount > and poke at files. > > Inserting a 1TB disk with a "large" msdosfs partition fails pretty > badly, so I'm not sure if msdosfs is sucking down all the memory on the > system or we're just falling over for some unrelated reason. > > > > # mount -t msdosfs /dev/da0p1 /mnt > MAP: No valid partition found at da0 > MAP: No valid partition found at da0p1 > mount_msdosfs: /dev/da0p1: Disk too big, try '-o large' mount option: > Invalid argument > # mount -t msdosfs -o large /dev/da0p1 /mnt > panic: _mtx_lock_sleep: recursed on non-recursive mutex vm page free > queue @ /home/sbruno/bsd/fbsd_head/sys/vm/vm_page.c:1930 > > KDB: enter: panic > [ thread pid 4 tid 100022 ] > Stopped at kdb_enter+0x4c: lui at,0x8039 > db> bt > Tracing pid 4 tid 100022 td 0x80665660 > db_trace_thread+30 (?,?,?,?) ra c81e772800000018 sp 0 sz 0 > 80078d3c+114 (0,?,ffffffff,?) ra c81e774000000020 sp 100000000 sz 1 > 80078084+388 (?,?,?,?) ra c81e7760000000a8 sp 0 sz 0 > db_command_loop+70 (?,?,?,?) ra c81e780800000018 sp 0 sz 0 > 8007ab80+f4 (?,?,?,?) ra c81e7820000001a8 sp 0 sz 0 > kdb_trap+110 (?,?,?,?) ra c81e79c800000030 sp 0 sz 0 > trap+c24 (?,?,?,?) ra c81e79f8000000b8 sp 0 sz 0 > MipsKernGenException+134 (0,4,802ebfe8,133) ra c81e7ab0000000c8 sp > 100000001 sz 1 > kdb_enter+4c (?,?,?,?) ra c81e7b7800000018 sp 0 sz 0 > 80127320+ec (?,?,?,?) ra c81e7b9000000020 sp 0 sz 0 > kassert_panic+78 (?,802f55d8,80309db8,78a) ra c81e7bb000000020 sp 1 sz 1 > __mtx_lock_sleep+7c (?,?,?,?) ra c81e7bd000000028 sp 0 sz 0 > __mtx_lock_flags+148 (?,?,?,?) ra c81e7bf800000030 sp 0 sz 0 > vm_page_alloc_freelist+64 (?,?,?,?) ra c81e7c2800000020 sp 0 sz 0 > uma_small_alloc+78 (?,?,?,?) ra c81e7c4800000020 sp 0 sz 0 > 80276120+d4 (?,?,?,?) ra c81e7c6800000038 sp 0 sz 0 > 80277324+224 (?,?,?,?) ra c81e7ca000000040 sp 0 sz 0 > 80279538+68 (?,?,?,?) ra c81e7ce000000028 sp 0 sz 0 > 802784b0+68 (83ffec60,83ff440c,?,101) ra c81e7d0800000038 sp 100000001 > sz 0 > uma_zalloc_arg+48c (?,?,?,?) ra c81e7d4000000038 sp 0 sz 0 > vm_radix_insert+190 (806371b4,83ed4688,?,?) ra c81e7d7800000040 sp > 100000001 sz 0 > vm_page_cache+244 (?,?,?,?) ra c81e7db800000030 sp 0 sz 0 > 80295590+a10 (?,?,?,?) ra c81e7de800000070 sp 0 sz 0 > fork_exit+b0 (?,?,?,?) ra c81e7e5800000028 sp 0 sz 0 > fork_trampoline+10 (?,?,?,?) ra c81e7e8000000000 sp 0 sz 0 > pid 4 > >