From owner-freebsd-mips@FreeBSD.ORG Thu Jan 24 02:22:37 2013 Return-Path: Delivered-To: freebsd-mips@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 4E54E754 for ; Thu, 24 Jan 2013 02:22:37 +0000 (UTC) (envelope-from juli@clockworksquid.com) Received: from mail-ye0-f180.google.com (mail-ye0-f180.google.com [209.85.213.180]) by mx1.freebsd.org (Postfix) with ESMTP id 1ADBFEB6 for ; Thu, 24 Jan 2013 02:22:36 +0000 (UTC) Received: by mail-ye0-f180.google.com with SMTP id r14so1408600yen.25 for ; Wed, 23 Jan 2013 18:22:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:sender:from:date:x-google-sender-auth :message-id:subject:to:content-type:x-gm-message-state; bh=61qEs9oFy4zmnL9V44Yux4egYHztp3w5IEvwsa6G0Fs=; b=VD0i05c/W7uDT+TYEDHwYBHFoLmx1uTBbmvrQQrZvdh/YcBm6ISmQFBJSgKkMq2Wy6 7dTJ4ezvh5xLCHH1Wd1BYibjPO37y/Vum4KmTh/Eq60Ir/ZxwkStO8uVlJwK9gKgIweP 0S29G4sUIKl5H9DSTit9NbcL9kehGpa7K9Hh1GOytgWMcOfhV3JMAmjXAvFBTAlMfvKZ NLI7kQhjc9h7EKX+dTV2I1Qj6CKP34lCl9kJohrUcjHG3EqbtFq8X6wRjA1c0ODkdspu 7UNo8VEbt2jGJFEsM4ySjKeqRWXMFOSiW7LlBoWiy5hhqUtcuJ9amrib/05Lt4zPST/f lfkw== X-Received: by 10.236.137.172 with SMTP id y32mr280434yhi.124.1358994150545; Wed, 23 Jan 2013 18:22:30 -0800 (PST) MIME-Version: 1.0 Sender: juli@clockworksquid.com Received: by 10.147.119.38 with HTTP; Wed, 23 Jan 2013 18:22:10 -0800 (PST) From: Juli Mallett Date: Wed, 23 Jan 2013 18:22:10 -0800 X-Google-Sender-Auth: KfbMs4tKg8CSHToo4doP992xoko Message-ID: Subject: Ubiquiti EdgeRouter Lite works multi-user with -CURRENT. To: "freebsd-mips@FreeBSD.org" Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkyoISCw4KWJCgDyTQEyZAOs5Xg5hJWGCYpIeLsJITo39neK8mBMma+DcVIImwODgZ2DuMa X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2013 02:22:37 -0000 Folks, Just wanted to let everyone know that what's in -CURRENT now boots happily to multiuser on the EdgeRouter Lite. The big challenge is getting a file system on the onboard storage. I didn't want to use Ubiquiti's Linux to do it for what are probably spurious reasons, so I ended up loading a huge kernel with tftp which had an MFS embedded in it. On the MFS, I placed pretty much just /rescue. I used netcat and dd to splat an image onto the disk, with a FAT /boot partition on slice 1 and a UFS / partition on slice 2. In U-Boot, I then changed the bootcmd to: "fatload usb 0 0 /kernel/kernel; bootoctlinux 0 coremask=0x3" It happily boots multi-user with networking, etc. Just uncomment the OCTEON_VENDOR_UBIQUITI option in the OCTEON1 kernel config and change the root device to "ufs:da0s2". It seems like it would be nice to script the creation of an image one could TFTP boot which could then pull down a disk image off the web and dd it to the disk. Then we could produce "installers" of a sort for Octeon (and other MIPS) systems with ease with a cron job or something. I probably won't get around to doing this, but wanted to suggest it as a nice way of being able to install systems like this. Especially with how cheap the EdgeRouter Lite is, it seems like a useful piece of evangelism. Heck, since U-Boot claims to support use of a gateway, you could even have a TFTP server on the Internet and let people download the installer that way, too, with just a few commands in U-Boot. If anyone needs help getting FreeBSD going on EdgeRouter Lite or other Octeon systems, they should feel free to contact me. I don't have much time, but this is at least something I've gotten down pretty well. Thanks, Juli.