TP-Link wr1043nd out of swap space

Harm Weites harm at weites.com
Sun Jul 8 11:16:49 UTC 2012


Hi list,

After flashing my firmware image on the TP-Link it apears to run out of
swap space when executing /etc/rc, thus halting further system startup.
My mfsroot is actually ~500KB smaller compared to the result of the
standard scripts, and the mount_mfs commands in /etc/rc are building
512K devices instead of the standard 1M. What could be the issue here,
since there should be even more RAM available compared to using the
image produced by the standard build scripts?

Furthermore, I've compiled the kernel without WITNESS, WITNESS_SKIPSPIN,
INVARIANTS and INVARIANT_SUPPORT.

Kernel: FreeBSD 10.0-CURRENT #3 r238194M: Thu Jan  1 01:00:00 CET 1970
Memory:	real memory  = 33554432 (32768K bytes)
	avail memory = 26382336 (25MB)

Messages on console:
------------
rtl8366rb0port0: link state changed to UP
pid 17 (sh), uid 0, was killed: out of swap space
Jul  7 22:03:23 init: /bin/sh on /etc/rc terminated abnormally, going to
single user mode

Enter full pathname of shell or RETURN for /bin/sh: 
# vmstat
 procs      memory      page                   disk   faults         cpu
 r b w     avm    fre   flt  re  pi  po    fr  sr fl0   in   sy   cs us
sy id
 0 0 0  25360k  1496k    91   1   1   0    61 410  28    0   11   47  0
6 94
# /sbin/mount
pid 18 (sh), uid 0, was killed: out of swap space
Jul  7 22:05:17 init: single user shell terminated.
------------

Please advise.

Best regards,
Harm



More information about the freebsd-embedded mailing list