Port-mac68k archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: custom kernel problems




Am 28. Apr .2008 um 12:40 Uhr schrieb Izumi Tsutsui:

I'm lost. Frustrated, too.
Where shall I start?

First, what do you want to do?

From my personal, naive view? Take the sources from a stable kernel tree, make a few changes (like 68040 optimization, removing SCSI support) to obtain a smaller, maybe faster kernel that is prepared for directly netbooting from its internal ethernet interface. Nothing fancy, no bleeding edge. As it comes from a stable branch (I took the NetBSD 3.1 tarball), I expected it to work vanilla. I took the 3.1 sources because I am compiling it on another Quadra with 3.0.1 on it. There is no NetBSD 3.0 branch on the server as far as I can see, just 3.0.2 and 3.1.


Trying current?
-> http://www.netbsd.org/docs/current/index.html
(for example, you can't use config(1) in 4.0 to build -current binaries)

O.k., I wasn't aware of that.

Making your own config work on 4.0?
-> apply diff of autoconf.c between rev 1.66 and 1.67
   to your 4.0 source tree

What exactly means "current". Is it NetBSD4 plus
all changes/improvements/bug-fixes? Would I have to supplement it with
other source-files?
http://www.NetBSD.org/releases/release-map.html

Hm, either I didn't understand it, or the the graph doesn't exactly represent what's on the server. As I said, there are no 3-0 or 3 branches on the server., at least not on http://ftp.netbsd.org/pub/NetBSD/ Anyway, I started from scratch, took my newly NetBSD 4.0 equipped Quadra and the 4.0 sources (sys.tar.gz), applied the patch to autoconf.c (manually), and got -- new errors. Apparently there are dependencies in 4.0 to further source files not included in the sys part. So I added some more sources and finally succeeded to produce my custom kernel. I'm psyched. Happy, too :-)

Well, having said that, I'm out for further "adventures" and facing new problems. I urgently need pico (I just can't cope with vi), bash and a few others. No prob, I have done this before with NetBSD 3.0.1. Now, taking the pkgsrc-2008Q1 tarball yields in these errors:

=> Registering installation for pkg_install-20080313
=> Bootstrap dependency pkg_install>=20070813: found pkg_install-20080313
=> Bootstrap dependency digest>=20010302: NOT found
=> Verifying reinstall for ../../pkgtools/digest
=> Bootstrap dependency pkg_install>=20070813: found pkg_install-20080313
ERROR: This package has set PKG_FAIL_REASON:
ERROR: Unable to satisfy dependency: gcc34>=4.1.2
*** Error code 1

I'm confused, 20070813 would probably correspond to 2007Q3, which is not available in ftp.netbsd.org/pub/pkgsrc/packages-2007Q3/. Instead the README states that it is supposed to be in ../packages/NetBSD/$ARCH/$VERSIONS. If I follow that, I see only a 3.0_2006Q1/ and a 3.0/ path.
And what abou the digest dependency, 20010302 ?
Which pkgsrc version do I have to take for NetBSD 4.0?

Andreas



Home | Main Index | Thread Index | Old Index