Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2002 16:30:35 -0400 (EDT)
From:      Andy <andy@wantpackets.com>
To:        freebsd-ppc@freebsd.org
Subject:   Re: current -CURRENT and compiling powerpc port
Message-ID:  <1026419435.3d2deaeb8caf9@www.wantpackets.com>
In-Reply-To: <20020711185652.GB97950@dragon.nuxi.com>
References:  <1026353294.3d2ce88eaf694@www.wantpackets.com> <20020711185652.GB97950@dragon.nuxi.com>

index | next in thread | previous in thread | raw e-mail

Quoting David O'Brien <obrien@freebsd.org>:

> 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



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1026419435.3d2deaeb8caf9>