From owner-freebsd-mips@FreeBSD.ORG Sun Aug 24 21:23:44 2014 Return-Path: Delivered-To: freebsd-mips@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 ESMTPS id 479987CC for ; Sun, 24 Aug 2014 21:23:44 +0000 (UTC) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C28EF3692 for ; Sun, 24 Aug 2014 21:23:43 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id c11so11318000lbj.19 for ; Sun, 24 Aug 2014 14:23:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=bLoYUK2MlKQ+s5IVyUxFuPvUP0dP6dUqb6Mm6dLt99E=; b=ZoZ0l2dA/ghz++QP1em6QJy0DhZfHqwDWnIirPRrdKjvvj9GuCTOg85LeRPqnhoSt/ 5J4qxE0u2Puxj8mU24pSAEY+tNodGm/M70tmB83JaUdP6ADnPD40/n3LpE6orUUczmJc YLL7+y8Dv9/HFDN4T98ZXMe8Xs2xniAIpidtJXpzPljj6uIEUtpu4ijAV7MRgGoPcrs1 fNaLCM+N4oaPdxDvM/8q2pBn6m7K0ee5uqf7OlF1PpiBpnJ3ka2Q5VIHVfI5vDZXovsj s9g8FYkS1+YS7mk6Jb9KTAySQJcwDtA+O1+wo7/d1Kn1UExNhJJ9cDqumNq+4y4vDLpg HkkQ== MIME-Version: 1.0 X-Received: by 10.152.245.171 with SMTP id xp11mr17512424lac.61.1408915421515; Sun, 24 Aug 2014 14:23:41 -0700 (PDT) Received: by 10.112.128.167 with HTTP; Sun, 24 Aug 2014 14:23:41 -0700 (PDT) Date: Sun, 24 Aug 2014 14:23:41 -0700 Message-ID: Subject: FreeBSD 10.0-STABLE on EdgeRouter Lite notes/issues From: Sean Hamilton To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Aug 2014 21:23:44 -0000 Running 10.0-STABLE r270425 on an EdgeRouter Lite. "makefs -B big -o version=2" seems to produce a broken image which cannot be mounted read/write. See misc/162503, bin/188762. FS performance on USB flash is awful without softupdates, so UFS2 is effectively mandatory. I built a rescue-only mfsroot and newfs'd and untar'd the real system from there. Flash performance still isn't great, but it is tolerable. Mounting noatime helps. Were it not for the makefs bug, this process would be much easier. Attempting to makefs directly onto the USB flash is painfully slow -- writing a file, then dd'ing that to the device is much faster. I assume makefs does a lot of small writes. Can the OS cache and combine these? It would also be nice if makefs could detect the size of the target device and set the FS size and number of inodes appropriately. Of course at that point it's basically newfs. Also for some reason, ERL u-boot's tftpboot seems to refuse to talk to FreeBSD's tftpd, so I had to copy my rescue-only image to the flash. I didn't investigate this closely, could be operator error. Any suggestions for VFS tuning on ERL? Ideally the OS could aggressively cache filesystem writes, then lazily write them out asynchronously. Would softupdate journaling be of any benefit? gpart insists on aligning MBR partitions to cylinder boundaries, and seemingly ignores -a. Is there some way to prevent this? If not, can it be fooled by overriding the disk geometry? I'm not sure how much this matters on USB flash devices, but it matters a lot on SSDs. I wound up partitioning with GNU parted, since it does what it's told. I would prefer to use GPT, but it seems like ERL u-boot doesn't support it. Another option might be to use GPT, create a freebsd-boot partition, dd the kernel directly there, then just load the sectors directly with u-boot, bypassing the filesystem entirely. Ports are totally unbuildable on ERL. This seems to be a toolchain problem. ports-mgmt/pkg (which everything depends on) fails to build with: libtool: install: ranlib /usr/ports/ports-mgmt/pkg/work/stage/usr/local/lib/libpkg_static.a ranlib: fatal: Invalid filename I imagine this relates to the recent freebsd-mips posts about strip corrupting static binaries. tcpdump is broken, as the packet lengths it reports are incorrect, and it eventually segfaults. I thought this might be an issue with the octe driver, but it seems even the loopback device is afflicted, so perhaps it's an endianness issue? Regarding https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=177876 -- is this patch still a good idea? Or has it been merged? Is there an estimate as to how many people are running FreeBSD on ERL? Many thanks in advance for suggestions on any of the above! -- Sean Hamilton