Subject: Re: Bulding a Kernel
To: None <port-mac68k@netbsd.org>
From: Matthew Theobalds <mtheobalds@mac.com>
List: port-mac68k
Date: 07/08/2001 19:31:17
On Sunday, July 8, 2001, at 06:53 pm, Frederick Bruckman wrote:
> On Sun, 8 Jul 2001, Matthew Theobalds wrote:
>
>> Thanks for the rapid response, I downloaded
>> <ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-
>> current/tar_files/src/sys.tar.gz>, which I assume is the same as the
>> sys.tgz of which you speak?
>>
>> I think my "tar -xzpf" command was in "/" so I had to move the contents
>> of the resulting "/src" directory to "/usr/src/" to create a
>> "/usr/src/sys" directory. This may have been part of my problem, I
>> don't
>> know.
>
> This one has /usr/src/sys/conf in the right place, so I don't know why
> that doesn't work, unless perhaps current is broken this week. Moving
> the contents to "/usr/src" shouldn't matter -- that's where they
> usually go. You should not use the "-p" option to tar, by the way.
> That's for installed files which must have certain permissions and
> owners to work correctly. The sources should all be owned by you.
I have concluded that the file I downloaded either was broken already,
or broke whilst downloading, since I get this error:
tar: Skipping to next file header...
gzip: stdin: invalid compressed data--format violated
tar: child returned status 1
So I will download the entire source tonight, and hopefully will have a
better report by tomorrow. Thanks for your patience.
>> I am on a modem, so I prefer to keep all downloads to a minimum.
>>
>> I also downloaded the <ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-
>> current/tar_files/src/config.tar.gz> as per the instructions in that
>> document.
>
> That should end up in /usr/src/usr.sbin/config. You built and
> installed that OK?
Yes, that went without error.
>> Any other ideas which don't involve getting the entire source of
>> NetBSD?
>
> I should ask you first, what system you're running. What good is a
> current kernel without the current sources? If you're only building a
> custom kernel, you should be building a kernel with sources that match
> the system you have.
I have a binary of the -current kernel, and the rest of the system is
-current, I wanted to build my own kernel to remove the bits I don't
need, and hopefully get a slight performance increase.
All the best.
Matthew