From owner-freebsd-ppc Thu Jul 11 13:29:15 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF8B937B400 for ; Thu, 11 Jul 2002 13:29:11 -0700 (PDT) Received: from wantpackets.com (wantpackets.com [208.8.54.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0F7F43E3B for ; Thu, 11 Jul 2002 13:29:10 -0700 (PDT) (envelope-from andy@wantpackets.com) Received: from wantpackets.com (www@wantpackets.com [208.8.54.110]) by wantpackets.com (8.12.3/8.12.3) with ESMTP id g6BKUaa6078914 for ; Thu, 11 Jul 2002 16:30:36 -0400 (EDT) (envelope-from andy@wantpackets.com) Received: (from www@localhost) by wantpackets.com (8.12.3/8.12.3/Submit) id g6BKUZQH078913 for freebsd-ppc@freebsd.org; Thu, 11 Jul 2002 16:30:35 -0400 (EDT) (envelope-from andy@wantpackets.com) From: Andy X-Authentication-Warning: wantpackets.com: www set sender to andy@localhost using -f To: freebsd-ppc@freebsd.org Subject: Re: current -CURRENT and compiling powerpc port Message-ID: <1026419435.3d2deaeb8caf9@www.wantpackets.com> Date: Thu, 11 Jul 2002 16:30:35 -0400 (EDT) References: <1026353294.3d2ce88eaf694@www.wantpackets.com> <20020711185652.GB97950@dragon.nuxi.com> In-Reply-To: <20020711185652.GB97950@dragon.nuxi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.7 X-Originating-IP: 216.65.176.247 Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Quoting David O'Brien : > On Wed, Jul 10, 2002 at 10:08:14PM -0400, Andy wrote: > > I used > > 'make MACHINE_ARCH=powerpc CC=powerpc-rtems-gcc LD=powerpc-rtems-ld > > NM=powerpc-rtems-nm SIZE=powerpc-rtems-size > OBJCOPY=powerpc-rtems-objcopy' > > No, use: TARGET_ARCH=powerpc > > The RTEMS compiler will probably mostly work OK for the kernel. It > won't > for userland. > I am using the 'chain from the Oct 18 port, but when I replace MACHINE_ARCH with TARGET_ARCH, as you suggested, I get silly results like using powerpc-gcc to try to compile i386-specific things. - By the way, * $FreeBSD: src/release/picobsd/build/write_mfs_in_kernel.c,v 1.10 2002/06/21 06:17:56 mckusick Exp $ * * This program patches a filesystem into a kernel made with MD_ROOT * option. is not totally correct, because it took me just a bit to figure out I also need device md, which is not in GENERIC. hrm. I fixed that (my previous email contained the complaint) and am using the proper "ppcdisk," which "file(1)" confirms to be ppcdisk: Unix Fast File system (big-endian), last mounted on , last written at Wed Oct 10 03:54:58 2001, clean flag 1, number of blocks 1024, number of data blocks 959, number of cylinder groups 1, block size 8192, fragment size 1024, minimum percentage of free blocks 5, rotational delay 0ms, disk rotational speed 60rps, TIME optimization. laptop# ./write_mfs_in_kernel kernel.debug ppcdisk Cannot find filesystem is it differences in how the fs is laid out and the functions being used because of the different cpu types, or did I do bad? thanks much in advance, andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message