From owner-freebsd-mips@FreeBSD.ORG Tue Feb 1 10:33:34 2011 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 4DD651065672 for ; Tue, 1 Feb 2011 10:33:34 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D0A0A8FC08 for ; Tue, 1 Feb 2011 10:33:33 +0000 (UTC) Received: by wyf19 with SMTP id 19so6759335wyf.13 for ; Tue, 01 Feb 2011 02:33:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=TiZm63o4PY8D134WiKvrDcOp/XYz0LBTI2hz8ihRDis=; b=ShOM4pdFwcqH82ipRRizSl81T3NFZ2EcivAL0F+5/LnzMs73axaAtlMqIDqWYYzT2J cF6Gye1m6GOsYMJz9j4W5dC3u7y/1tkWcKuayLKQg+Ou1VGrIpP1vLMmnIUv9C/ZWlS4 Z8b+3IT01xYfyG+2VPFGsPQ2DDSp9fNM9wSJY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=XRJ2ggxPU+frAUDYtH/sOp/ociZzTmKp3O70txCzVTH/KbWjGzO8BwHjRuKqcpToOx XjfusrIiCB/341yEC5U9PJvijeAwkwEp7eQMS6GuojFPY1Fo+o08nK37QETJ+PhZSX73 RHB8HH84urEJ8oJgD5lBkiRsYr/aoK9p/5a1Q= MIME-Version: 1.0 Received: by 10.227.129.17 with SMTP id m17mr7395941wbs.79.1296556412411; Tue, 01 Feb 2011 02:33:32 -0800 (PST) Received: by 10.227.196.195 with HTTP; Tue, 1 Feb 2011 02:33:32 -0800 (PST) In-Reply-To: References: <201101200928.45264.freebsd-mips@dino.sk> <527911.58663.qm@web33203.mail.mud.yahoo.com> Date: Tue, 1 Feb 2011 16:03:32 +0530 Message-ID: From: "Jayachandran C." To: Monthadar Al Jaberi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: RS / RSPRO FreeBSD 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: Tue, 01 Feb 2011 10:33:34 -0000 On Tue, Feb 1, 2011 at 3:02 PM, Monthadar Al Jaberi w= rote: > Sure, > > I used the standard kernel configuration file and modifed this: > options =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 MD_ROOT > options =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 MD_ROOT_SIZE=3D40960 > options =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ROOTDEVNAME=3D\"ufs:md0\" > > to generate filesystem: > makefs -t ffs -B big -s 40m rootfs.img path-to-filesystem/ > > to embedd the filesystem (script code): > addr=3D($(strings -td kernel | grep "MFS Filesystem" | awk '{print > $1}')) #calculate start and end address for mdroot > rootfs_start=3D${addr[0]} > rootfs_end=3D$((${addr[1]}+1)) > echo "Generating kernel image" > head -c ${rootfs_start} kernel > kernel.new > cat rootfs.img >> kernel.new > tail -c +${rootfs_end} kernel >> kernel.new > gzip -9 kernel.new > > Sorry for the extreme delay, hope it helps... You can just set the MFS_IMAGE environment variable, and the 'make buildkernel' will patch the mfs image during the kernel build process. The script it uses is sys/tools/embed_mfs.sh JC.