Gregg C Levine | 25 Sep 02:17 2003
Picon
Picon

New attempt at building a NetBSD Dreamcast kernel

Hello from Gregg C Levine
As the subject states, I am making a "New attempt at building a NetBSD
Dreamcast kernel". This time I have a NetBSD/i386 machine running, its
running 1.6.1. Do I simply install the standard "cross" tool chain? Also
what about GCC for SH4 processors? I presume that gets built by the host
itself, following the guidelines inside the howto on that subject.

Is there anything else I have missed?
Gregg C Levine drwho8 <at> worldnet.att.net
"Oh my!" The Second Doctor's nearly favorite phrase.

Harold Gutch | 25 Sep 10:03 2003
Picon

Re: New attempt at building a NetBSD Dreamcast kernel

On Wed, Sep 24, 2003 at 08:17:58PM -0400, Gregg C Levine wrote:
> Hello from Gregg C Levine
> As the subject states, I am making a "New attempt at building a NetBSD
> Dreamcast kernel". This time I have a NetBSD/i386 machine running, its
> running 1.6.1. Do I simply install the standard "cross" tool chain? Also
> what about GCC for SH4 processors? I presume that gets built by the host
> itself, following the guidelines inside the howto on that subject.

I'm not really sure what you mean by the "standard cross tool
chain".  If you mean stuff in pkgsrc/cross, then no, you don't
need to install that.  You pretty much only need to do the
following:

  # cd /usr/src
  # ./build.sh -m dreamcast tools
  # ./build.sh -m dreamcast kernel
  # ./build.sh -m dreamcast distribution

This works on NetBSD-CURRENT, but I'm pretty sure that it should
work just the same on NetBSD 1.6.1 as well.  These commands will
crossbuild the toolchain (including a cross compiler), your
kernel, and all of the userland.  I also have the following in my
/etc/mk.conf:

  OBJMACHINE=yes
  MKOBJDIRS=yes
  MAKEOBJDIRPREFIX=/usr/obj

which makes the build-process from above compile everything in
the /usr/obj tree.
(Continue reading)

Gregg C Levine | 26 Sep 17:02 2003
Picon
Picon

Re: New attempt at building a NetBSD Dreamcast kernel

Hello (again) from Gregg C Levine
Okay, Harold, I see your point, and caught your witt. Now where is the
"build,sh" script? Looking at that directory, in my system, its not there.
Gregg C Levine drwho8 <at> worldnet.att.net
"Oh my!" The Second Doctor's nearly favorite phrase.
----- Original Message -----
From: "Harold Gutch" <logix <at> foobar.franken.de>
To: "Gregg C Levine" <drwho8 <at> worldnet.att.net>
Cc: <port-dreamcast <at> NetBSD.org>
Sent: Thursday, September 25, 2003 4:03 AM
Subject: Re: New attempt at building a NetBSD Dreamcast kernel

> On Wed, Sep 24, 2003 at 08:17:58PM -0400, Gregg C Levine wrote:
> > Hello from Gregg C Levine
> > As the subject states, I am making a "New attempt at building a NetBSD
> > Dreamcast kernel". This time I have a NetBSD/i386 machine running, its
> > running 1.6.1. Do I simply install the standard "cross" tool chain? Also
> > what about GCC for SH4 processors? I presume that gets built by the host
> > itself, following the guidelines inside the howto on that subject.
>
> I'm not really sure what you mean by the "standard cross tool
> chain".  If you mean stuff in pkgsrc/cross, then no, you don't
> need to install that.  You pretty much only need to do the
> following:
>
>   # cd /usr/src
>   # ./build.sh -m dreamcast tools
>   # ./build.sh -m dreamcast kernel
>   # ./build.sh -m dreamcast distribution
>
(Continue reading)

Izumi Tsutsui | 26 Sep 17:12 2003
Picon

Re: New attempt at building a NetBSD Dreamcast kernel

In article <009d01c3843f$4301bfa0$0100a8c0 <at> who5>
drwho8 <at> worldnet.att.net wrote:

> Okay, Harold, I see your point, and caught your witt. Now where is the
> "build,sh" script? Looking at that directory, in my system, its not there.

Please refer "Cross-building NetBSD" FAQ first:
http://www.netbsd.org/Documentation/cross/

src/BUILDING may be also helpful:
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/BUILDING
---
Izumi Tsutsui
tsutsui <at> ceres.dti.ne.jp

Gregg C Levine | 27 Sep 05:11 2003
Picon
Picon

Re: New attempt at building a NetBSD Dreamcast kernel

Hello again from Gregg C Levine
I confess I am still confused. Inside the /usr/src directory for the entire
kernel source code, I type, "#./build.sh -h", and instead of a help message
it gives me an error message, about being run from the toplevel source
directory.

Basically I all need, or want to do, is to be able to build the kernel, and
before that the tools for building the kernel.
Also, how much disk space is needed for all of this.
Gregg C Levine drwho8 <at> worldnet.att.net
"Oh my!" The Second Doctor's nearly favorite phrase.
----- Original Message -----
From: "Izumi Tsutsui" <tsutsui <at> ceres.dti.ne.jp>
To: <drwho8 <at> worldnet.att.net>
Cc: <port-dreamcast <at> NetBSD.org>; <tsutsui <at> ceres.dti.ne.jp>
Sent: Friday, September 26, 2003 11:12 AM
Subject: Re: New attempt at building a NetBSD Dreamcast kernel

> In article <009d01c3843f$4301bfa0$0100a8c0 <at> who5>
> drwho8 <at> worldnet.att.net wrote:
>
> > Okay, Harold, I see your point, and caught your witt. Now where is the
> > "build,sh" script? Looking at that directory, in my system, its not
there.
>
> Please refer "Cross-building NetBSD" FAQ first:
> http://www.netbsd.org/Documentation/cross/
>
> src/BUILDING may be also helpful:
> ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/BUILDING
(Continue reading)

Izumi Tsutsui | 27 Sep 05:40 2003
Picon

Re: New attempt at building a NetBSD Dreamcast kernel

In article <003701c384a5$0e4e7940$0100a8c0 <at> who5>
drwho8 <at> worldnet.att.net wrote:

> I confess I am still confused. Inside the /usr/src directory for the entire
> kernel source code, I type, "#./build.sh -h", and instead of a help message
> it gives me an error message, about being run from the toplevel source
> directory.

Well, I'd suggest it's better to post error messages you got _exactly_
in these case.

If it was "build.sh must be run from the top source level",
maybe you don't have usr.bin/make directory under your /usr/src.
(see around line 75 in build.sh rev 1.117)

> Basically I all need, or want to do, is to be able to build the kernel, and
> before that the tools for building the kernel.

The source dirs for the tools are in various place,
so the simple way is to extract entire sources.

> Also, how much disk space is needed for all of this.

With a quick glance, it's about 600~700M bytes for -current.
---
Izumi Tsutsui
tsutsui <at> ceres.dti.ne.jp


Gmane