From owner-freebsd-mips@FreeBSD.ORG Mon Oct 27 22:56:40 2008 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2C94106566C for ; Mon, 27 Oct 2008 22:56:40 +0000 (UTC) (envelope-from freebsd-mips@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id 551C78FC1B for ; Mon, 27 Oct 2008 22:56:40 +0000 (UTC) (envelope-from freebsd-mips@dino.sk) Received: from via.dino.sk (home.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Mon, 27 Oct 2008 23:14:00 +0100 id 0002E00F.49063D28.00005819 From: Milan Obuch To: freebsd-mips@freebsd.org Date: Tue, 28 Oct 2008 00:20:03 +0200 User-Agent: KMail/1.9.10 References: <20080729.160859.1791047885.imp@bsdimp.com> In-Reply-To: <20080729.160859.1791047885.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810272320.04577.freebsd-mips@dino.sk> Cc: Subject: Re: Some patches X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 22:56:40 -0000 On Wednesday 30 July 2008 00:08:59 M. Warner Losh wrote: > Gonzo and I have been cleaning up the mips import. We're down to 4 > patches and we thought we'd share them here for testing: > > http://people.freebsd.org/~gonzo/mips2/binutils.diff > http://people.freebsd.org/~gonzo/mips2/cc.diff > http://people.freebsd.org/~gonzo/mips2/cddl.diff > http://people.freebsd.org/~gonzo/mips2/libpam.diff > > They are all independent, and are all required for a buildworld to > succeed. Please share any feedback you have on them. > > Warner > Today I managed to compile FreeBSD/mips for ADM5120 based Omnima board mentioned some time ago on freebsd-embedded list - see http://www.omnima.co.uk/store/catalog/Embedded-controller-p-16140.html for some info. I put my simple scripts on my page http://www.dino.sk, so others can comment and give some advice. First I csup'ped my 8-current sources, then run patch-mips, next build-omnima. Patch files used in patch-mips are from http://people.freebsd.org/~gonzo/mips2/ as mentioned above, but I need to modify cc.diff a bit (put on my page as well) in order to apply cleanly. Some patched seem to be already in sources, other does not apply cleanly and I adjusted it. I would like you to see at it, I am not sure I did not make an error somewhere, but it builds. I tried to boot resulting kernel, but for some reason firmware stops somewhere after 2 MB or so, and I have no idea how to compress the kernel and make it uncompress and run on load. There is no loader for mips, too... Any advice? As for NetBSD support for this board - I tried precompiled binary loaded from http://linux-adm5120.sourceforge.net/netbsd/ and it runs, exactly as written there. But this is not complete, it looks like some kind of skeleton, and I did not yet manage to generate rootfs - crunchgen does not work for me (but that's for another list, I know). Regards, Milan