Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2013 22:08:41 -0700
From:      Sean Bruno <sean_bruno@yahoo.com>
To:        sbruno@freebsd.org
Cc:        freebsd-embedded@freebsd.org
Subject:   Re: Dlink DIR-825 B1 status [update 2]
Message-ID:  <1376975321.1445.62.camel@localhost>
In-Reply-To: <1374340359.1421.3.camel@localhost>
References:  <1374340359.1421.3.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-/WZsgRe9l7kNKt6e4WXl
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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.
>=20
> 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


--=-/WZsgRe9l7kNKt6e4WXl
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (FreeBSD)

iQEcBAABAgAGBQJSEvnZAAoJEBkJRdwI6BaHJMMH/0JeG2kRc7LnFt/IxtQWVOV9
ZK83U9P52GT7gRVG8/aHKpHWOKYLlJLUlMC/INhTU1x9ajapp9iq5RghtAPpZU3Y
1RUXzwta5bIYCe8VFzXsr98BQQasu+eWnCCMuo174nkw0S4sEF2AwUnKYGSvSH4X
0UcdCTt057A9jh2LffjH03FZjYvtuhrCDmTdJkjbZpaRjDSU6EDMOXj8sCMCOorp
KC+Mn9Co1YN54ja6eE+yRnMsPCueG10oWRSfy45GMsvq9VdwrLJ2hS25qtRfF9MT
nbEhXDgmmlzvVU28gBhp+3jyZSiw/N2U18gxsJ6rpwBtDIiXSl50e+T3k3oSn0k=
=3waC
-----END PGP SIGNATURE-----

--=-/WZsgRe9l7kNKt6e4WXl--




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