Dlink DIR-825 B1 status [update 2]
Sean Bruno
sean_bruno at yahoo.com
Tue Aug 20 05:14:22 UTC 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-embedded/attachments/20130819/3549e128/attachment.sig>
More information about the freebsd-embedded
mailing list