From owner-freebsd-embedded@FreeBSD.ORG Wed Mar 27 16:48:14 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C6F74747 for ; Wed, 27 Mar 2013 16:48:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id 63BF7D51 for ; Wed, 27 Mar 2013 16:48:14 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id k14so4646818wer.27 for ; Wed, 27 Mar 2013 09:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type; bh=hbfaz5NJsl3S4Bszc3U0n9MbihlZp3s/TI1wUrZmWIs=; b=qxp3tAOxR4y3MyVNudniu9b8LpU1b+VBwoV2gP9gBcEpBwVMLiyefJtKwlMOLW+Mrh O6tRFdn3Itrh6920lM8y+eVPHsbF5TZm2DEJYcWE6j4eiI6cpG4NpuJAuFL0flsYZfWI AtohsVRdtZ8djuZJs1s8m4pddExWwzXqAqe0qR9sA2vvYsKeGJocCI0gIRZIMGIReNtk gqet/Tbzzw4KQRvOBcYvakc2T7F6gdfnQ3//O/uatOZSrruEduZLGl1kUPtLpI9N1h46 B5Pm8WzfZDRtKE1VjtJw7pV8NWdAQ+xSBqC4q355BoYTypcV3EhCZAlfdv+aPbwiiZV2 GZog== MIME-Version: 1.0 X-Received: by 10.180.189.205 with SMTP id gk13mr10979595wic.25.1364402893572; Wed, 27 Mar 2013 09:48:13 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.108.130 with HTTP; Wed, 27 Mar 2013 09:48:13 -0700 (PDT) Date: Wed, 27 Mar 2013 09:48:13 -0700 X-Google-Sender-Auth: Qy9-7315evSLOyzzfA1HUSfNhvI Message-ID: Subject: FreeBSD on the AP121 (AR9330) From: Adrian Chadd To: freebsd-embedded@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Wed, 27 Mar 2013 16:48:14 -0000 Hi, So I have FreeBSD mostly booting on the AR9330 based SoCs. The trouble? These ship with 16MB RAM and 4MB flash. CPU platform: Atheros AR9330 rev 1 CPU Frequency=400 MHz CPU DDR Frequency=400 MHz CPU AHB Frequency=200 MHz ... Copyright (c) 1992-2013 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 10.0-CURRENT #15 r248780:248782M: Tue Mar 26 22:31:51 PDT 2013 adrian@marilyn:/home/adrian/work/freebsd/svn/obj/mipseb/mips.mips/usr/home/adrian/work/freebsd/svn/src/sys/AR9331 mips gcc version 4.2.1 20070831 patched [FreeBSD] WARNING: WITNESS option enabled, expect reduced performance. Preloaded elf kernel "kernel" at 0x80538074. real memory = 16777216 (16384K bytes) Physical memory chunk(s): 0x005d2000 - 0x00f90fff, 10219520 bytes (2495 pages) avail memory = 9768960 (9MB) The kernel is 4.5MB in size uncompressed and takes up ~ 2.5MB of RAM just at startup. It's not going to be able to really do anything with our current userland without killing processes. I know it won't even be able to load the wlan/ath/bridge/switch modules. So at this point I'm really, really looking for some help with cutting down both the kernel binary size and the kernel memory footprint. It's a bit ridiculous at this point. The AR9330 is in a lot of the really cheap, really small APs that companies like TP-Link make in ridiculous quantities. I'd love to showcase FreeBSD + mesh on these, but there's just not enough space to run things. So, who's up for it? I can send you hardware if you start making progress. Lots and lots of embedded hardware. Thanks, Adrian