From owner-freebsd-mips@FreeBSD.ORG Thu Nov 18 10:36:34 2010 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 B9C76106564A for ; Thu, 18 Nov 2010 10:36:34 +0000 (UTC) (envelope-from milu@dat.pl) Received: from jab.dat.pl (dat.pl [80.51.155.34]) by mx1.freebsd.org (Postfix) with ESMTP id 73F828FC12 for ; Thu, 18 Nov 2010 10:36:34 +0000 (UTC) Received: from jab.dat.pl (jsrv.dat.pl [127.0.0.1]) by jab.dat.pl (Postfix) with ESMTP id DF30D61; Thu, 18 Nov 2010 11:36:32 +0100 (CET) X-Virus-Scanned: amavisd-new at dat.pl Received: from jab.dat.pl ([127.0.0.1]) by jab.dat.pl (jab.dat.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eAJKoTWs7Vvk; Thu, 18 Nov 2010 11:36:29 +0100 (CET) Received: from snifi.laptop (unknown [212.69.68.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jab.dat.pl (Postfix) with ESMTPSA id 963A33A; Thu, 18 Nov 2010 11:36:29 +0100 (CET) From: Maciej Milewski To: Monthadar Al Jaberi Date: Thu, 18 Nov 2010 11:36:46 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.5.3; i386; ; ) References: <201011180842.27427.milu@dat.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201011181136.47152.milu@dat.pl> Cc: freebsd-mips@freebsd.org Subject: Re: Re: Re: First RSPRO deployed ! 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: Thu, 18 Nov 2010 10:36:34 -0000 > Where can I find Adrian's mkfwimage? Maybe I missed something.... It was a while ago on Adrian's page although it's not there. > > If kernel needs padding to 64k maybe rootfs needs the same? I haven't > > tried yet with makefs but image with rootfs=65536 of 0's works. > > > How do you generate the filesystem then? I don't I use SD Card and/or USB drive on which I have fully working environment. For testing I use NFS boot. > And actually when I checked the makefile Adrian is refering to, they > made the filesystem padded by 128k and that I did to :) So that's OK. > > Do you have proper name of this fw image? I've read somewhere that it's > > required. > > My working name is RSPRO.ar7100pro.FreeBSD.Test and you can change the > > last two words for sure. > > You mean the name of the file that mkfwimage generates? > I just called it something like firmware-image... > > I changed the name, but still got: > TFTPD: Incoming connection from 192.168.1.102:25789 > Received: 6881688 bytes > Invalid image format (error: -2) Actually not the filename but if you run mkfwimage with parameters then you have the version string which in my case is as above. For building image I run: mkfwimage -v RSPRO.ar7100pro.FreeBSD.Test -B RSPRO -o image.bin -k kernel.gz\ -r rootfs Regards, Maciej Milewski