From owner-cvs-all  Sun Jul 14 11: 0:56 2002
Delivered-To: cvs-all@freebsd.org
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id E7BA437B400; Sun, 14 Jul 2002 11:00:48 -0700 (PDT)
Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 119C743E5E; Sun, 14 Jul 2002 11:00:48 -0700 (PDT)
	(envelope-from phk@critter.freebsd.dk)
Received: from critter.freebsd.dk (localhost [127.0.0.1])
	by critter.freebsd.dk (8.12.3/8.12.2) with ESMTP id g6EHwhXB046034;
	Sun, 14 Jul 2002 19:58:43 +0200 (CEST)
	(envelope-from phk@critter.freebsd.dk)
To: Mark Peek <mp@FreeBSD.org>
Cc: Luigi Rizzo <luigi@FreeBSD.org>, cvs-committers@FreeBSD.org,
	cvs-all@FreeBSD.org
Subject: Re: cvs commit: src/release/picobsd/build write_mfs_in_kernel.c 
In-Reply-To: Your message of "Sun, 14 Jul 2002 10:12:21 PDT."
             <p05111a10b9575f70fc2d@[10.1.1.73]> 
Date: Sun, 14 Jul 2002 19:58:43 +0200
Message-ID: <46033.1026669523@critter.freebsd.dk>
From: Poul-Henning Kamp <phk@critter.freebsd.dk>
Sender: owner-cvs-all@FreeBSD.ORG
Precedence: bulk
List-ID: <cvs-all.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20cvs-all>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20cvs-all>
X-Loop: FreeBSD.ORG


>Let me phrase it a bit stronger. I have used this utility in the past 
>for PowerPC porting and I foresee myself using it in the future. I 
>don't see a need for you to continue carrying it around in the 
>picobsd tree (especially if you're not using it) but I object to it 
>being totally removed from the system.

Ok, the utility _will_ be going away entirely, because W Gerald
Hicks <gehixz@bellsouth.net> has found a far better way of doing
the same thing:

(quoting from his email to me:)

	dd if=/dev/zero of=mdimage -bs=1024 count=4096
	  mdconfig -a -t vnode -f mdimage -s 4096k -u 4
	disklabel -r -w md4 auto
	newfs /dev/md4c
	mount /dev/md4c /mnt
	  .
	  . put stuff on it
	  .
	umount /mnt
	  mdconfig -d -u 4
	objcopy -I binary -O elf32-i386 -B i386 \
		--redefine-symbol _binary_mdimage_start=md_root_image \
		--redefine-symbol _binary_mdimage_size=md_root_image_size \
		mdimage /tmp/mdimage.o

	Then within our kernel config file we add:
	makeoption      MD_ROOT_IMAGE="/tmp/mdimage.o"

If anybody is actively working in this area, please get in touch
with him about shepperding the patches into the tree...

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message