Project

General

Profile

Actions

Bug #623

closed

kernel doesn't compile

Added by proxy-man almost 17 years ago. Updated almost 17 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hello all! I want compile only the kernel for my DrgonFlyBSD. I do this comands:
make nativekernel KERNCONF=MyKERN
but this doesn't never and return me some error:

[12:26am]root@dragon:/usr/src#make nativekernel KERNCONF=DRAGON

ERROR: Missing kernel configuration file(s) (DRAGON).
Did you move your kernel configs from i386/conf to config/?

  • Error code 1
Stop in /usr/src.
  • Error code 1

Stop in /usr/src.
-------------------
What do I doing something wrong?
:)

Actions #1

Updated by bastyaelvtars almost 17 years ago

On Mon, 30 Apr 2007 18:30:38 -0000
Ruslan Afanasiev <> wrote:

Is the kernel config called DRAGON in /usr/src/sys/pc32/config?

Actions #2

Updated by bastyaelvtars almost 17 years ago

On Mon, 30 Apr 2007 20:56:33 +0200
Gergo Szakal <> wrote:

/usr/src/sys/config I mean (like Sascha).

Actions #3

Updated by swildner almost 17 years ago

Yea, do what it tells you. :) Put your kernel config in /usr/src/sys/config.

Sascha

Actions #4

Updated by swildner almost 17 years ago

The location of config files can also be set by the env variable
KERNCONFDIR (for those who use the same config for more than one source
tree).

Sascha

Actions #5

Updated by bastyaelvtars almost 17 years ago

On Mon, 30 Apr 2007 21:04:30 +0200
Sascha Wildner <> wrote:

I was not aware of this. So this:
  1. env KERNCONFDIR=/root make buildkernel KERNCONF=MYKERNEL
    where MYKERNEL is in /root will work?
Actions #6

Updated by swildner almost 17 years ago

Yea, or make buildkernel KERNCONF=MYKERNEL KERNCONFDIR=/root

Sascha

Actions #7

Updated by proxy-man almost 17 years ago

On Mon, 30 Apr 2007 18:30:38 -0000

Is the kernel config called DRAGON in /usr/src/sys/pc32/config?
---------------------------------------------------------------------
Yes, It's right

Actions #8

Updated by proxy-man almost 17 years ago

[2:38am]root@dragon:/usr/src#make nativekernel KERNCONF=DRAGON


Kernel build for DRAGON started on Tue May 1 02:38:30 EEST 2007

--------------------------------------------------------------
===> DRAGON
rm -rf /usr/obj/usr/src/sys/DRAGON
mkdir -p /usr/obj/usr/src/sys
cd /usr/src/sys/config; config -d /usr/obj/usr/src/sys/DRAGON /usr/src/sys/
config/DRAGON
Specify platform architecture, e.g. 'platform pc32'
  • Error code 1
Stop in /usr/src.
  • Error code 1

Stop in /usr/src.
-----------------------------------------------------------------------------
I set variables KERNCONFIG=/root/kernels (in this directory locate my KERNEL)
and I take following message. I don't compile the world, I want compile only
kernel. What meen this message -> "Specify platform architecture, e.g.
'platform pc32'"?
Why in DragonFlyBSD's handbook not exist information about this procedure
(compile only the kernel)?
Forgive me for my poor English... :(

Actions #9

Updated by dillon almost 17 years ago

:Ruslan Afanasiev <> added the comment:
:
:[2:38am]root@dragon:/usr/src#make nativekernel KERNCONF=DRAGON
:
:--------------------------------------------------------------
:>>> Kernel build for DRAGON started on Tue May 1 02:38:30 EEST 2007
:--------------------------------------------------------------
:===> DRAGON
:rm -rf /usr/obj/usr/src/sys/DRAGON
:mkdir -p /usr/obj/usr/src/sys
:cd /usr/src/sys/config; config -d /usr/obj/usr/src/sys/DRAGON /usr/src/sys/
:config/DRAGON
:Specify platform architecture, e.g. 'platform pc32'

Ah.  Your config file is missing a couple of required directives.
Look at /usr/src/sys/config/GENERIC for an example. You need a
'platform', 'machine', and 'machine_arch' directive. And yes,
your config file goes in /usr/src/sys/config/
-Matt
Actions #10

Updated by swildner almost 17 years ago

Please make sure that you have:

platform pc32
machine i386
machine_arch i386

in your config.

No one updated it yet.

Sascha

Actions #11

Updated by proxy-man almost 17 years ago

Thank all for your cooperation! But with my compile procedure something wrong :(
Now, I take next message:
-----------------------------------------------------------
[3:16am]root@dragon:/usr/src#make nativekernel KERNCONF=DRAGON


Kernel build for DRAGON started on Tue May 1 03:17:51 EEST 2007

--------------------------------------------------------------
===> DRAGON
rm -rf /usr/obj/usr/src/sys/DRAGON
mkdir -p /usr/obj/usr/src/sys
cd /usr/src/sys/config; config -d /usr/obj/usr/src/sys/DRAGON /usr/src/sys/
config/DRAGON
config: files.pc32: No such file or directory
  • Error code 1
Stop in /usr/src.
  • Error code 1

Stop in /usr/src.
----------------------------------
Do you have any solutions?
PS:
uname -a
DragonFly dragon.bsd.loc 1.8.1-RELEASE DragonFly 1.8.1-RELEASE #2: Mon Mar 26
08:03:12 PDT 2007 root@:/usr/obj/usr/src/sys/GENERIC i386
PSS: in my GENERIC file is missing following directives:
platform pc32
machine_arch i386

Actions #12

Updated by pavalos almost 17 years ago

Try replying with your kernel config.

--Peter

Actions #13

Updated by proxy-man almost 17 years ago

My kernel config
------------------------------------[3:24am]root@dragon:/usr/src/sys/i386/
conf#cat DRAGON |grep -v ^#

machine i386
cpu I686_CPU
platform pc32
ident DRAGON
maxusers 0

makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols

options INET #InterNETworking
options FFS #Berkeley Fast Filesystem
options FFS_ROOT #FFS usable as root device [keep this!]
options SOFTUPDATES #Enable FFS soft updates support
options UFS_DIRHASH #Improve performance on big directories
options MFS #Memory Filesystem
options MD_ROOT #MD is a potential root device
options NFS #Network Filesystem
options NFS_ROOT #NFS usable as root device, NFS required
options MSDOSFS #MSDOS Filesystem
options CD9660 #ISO 9660 Filesystem
options CD9660_ROOT #CD-ROM usable as root, CD9660 required
options PROCFS #Process filesystem
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options UCONSOLE #Allow users to grab the console
options USERCONFIG #boot -c editor
options VISUAL_USERCONFIG #visual boot -c editor
options KTRACE #ktrace(1) support
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options P1003_1B #Posix P1003_1B real-time extensions
options _KPOSIX_PRIORITY_SCHEDULING
options ICMP_BANDLIM #Rate limit bad replies
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options AHC_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~128k to driver.
options AHD_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~215k to driver.
device isa
device pci
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
options ATA_STATIC_ID #Static device numbering # Allow ncr to attach legacy NCdevices when # both sym and ncr are configured
device scbus # SCSI bus (required)
device da # Direct Access (disks)
device sa # Sequential Access (tape etc)
device cd # CD
device pass # Passthrough device (direct SCSI access)
device atkbdc0 at isa? port IO_KBD
device atkbd0 at atkbdc? irq 1 flags 0x1
device psm0 at atkbdc? irq 12
device vga0 at isa?
pseudo-device splash
device sc0 at isa? flags 0x100
options SC_PIXEL_MODE # add support for the raster text mode

device agp # support several AGP chipsets

device npx0 at nexus? port IO_NPX irq 13

device apm0 at nexus? disable flags 0x20 # Advanced Power Managemen

device sio0 at isa? port IO_COM1 flags 0x10 irq 4
device sio1 at isa? port IO_COM2 irq 3
device sio2 at isa? disable port IO_COM3 irq 5
device sio3 at isa? disable port IO_COM4 irq 9

device miibus # MII bus support
device rl # RealTek 8129/8139
device re # RealTek 8139C+/8169
device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')
pseudo-device loop # Network loopback
pseudo-device ether # Ethernet support
pseudo-device sl 1 # Kernel SLIP
pseudo-device ppp 1 # Kernel PPP
pseudo-device tun # Packet tunnel.
pseudo-device pty # Pseudo-ttys (telnet etc)
pseudo-device md # Memory "disks"
pseudo-device gif # IPv6 and IPv4 tunneling
pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation)
pseudo-device bpf #Berkeley packet filter
pseudo-device crypto # core crypto support, used by wlan

Actions #14

Updated by pavalos almost 17 years ago

Add:
machine_arch i386

Make sure this file is located at: /usr/src/sys/config/DRAGON

--Peter

Actions #15

Updated by bastyaelvtars almost 17 years ago

On Mon, 30 Apr 2007 21:41:30 -0000
Ruslan Afanasiev <> wrote:

platform pc32
machine i386
machine_arch i386
cpu I686_CPU
ident SMP
maxusers 0

machine_arch is also needed, don't know whether the order is important.

Actions #16

Updated by proxy-man almost 17 years ago

Peter wrote:
-------------------
Add:
machine_arch i386

Make sure this file is located at: /usr/src/sys/config/DRAGON
---------------------------------------------------------------
I'm sorry... Now I correct my config kernek with options "machine_arch i386",
but I have error again:
-----------------------------
make nativekernel KERNCONF=DRAGON


Kernel build for DRAGON started on Tue May 1 04:24:14 EEST 2007

--------------------------------------------------------------
===> DRAGON
rm -rf /usr/obj/usr/src/sys/DRAGON
mkdir -p /usr/obj/usr/src/sys
cd /usr/src/sys/config; config -d /usr/obj/usr/src/sys/DRAGON /usr/src/sys/
config/DRAGON
config: files.pc32: No such file or directory
  • Error code 1
Stop in /usr/src.
  • Error code 1

Stop in /usr/src.
--------------------------------------------------------------------------
After using FreeBSD 5.3 5.4 5.5 6.1 6.2 - DragonFlyBSB seems to me not
completed. There can be I am mistaken? Please do not take offence at my words,
it only reflections of the beginner.

Actions #17

Updated by bastyaelvtars almost 17 years ago

On Mon, 30 Apr 2007 22:26:45 -0000
Ruslan Afanasiev <> wrote:

Try a "make clean" first.

Actions #18

Updated by proxy-man almost 17 years ago

/usr/src/#make clean
------------skeep---------
"Makefile", line 5: Could not find ../sys/platform/pc32/Makefile.inc
make: fatal errors encountered -- cannot continue
  • Error code 1
Stop in /usr/src.
  • Error code 1
    -----------------------
    :(
Actions #19

Updated by qhwt+dfly almost 17 years ago

^^^^^^^^^^


Kernel build for DRAGON started on Tue May 1 04:24:14 EEST 2007

--------------------------------------------------------------
===> DRAGON
rm -rf /usr/obj/usr/src/sys/DRAGON
mkdir -p /usr/obj/usr/src/sys
cd /usr/src/sys/config; config -d /usr/obj/usr/src/sys/DRAGON /usr/src/sys/
config/DRAGON
config: files.pc32: No such file or directory

^^^^^^^^

Can you give us the output from the following command on the system
currently installed on your machine?

uname -mrs

Also, which version of DragonFly source tree did you fetch(or checked out)?

Cheers.

Actions #20

Updated by proxy-man almost 17 years ago

[1:32pm]root@dragon:/root#uname -mrs
DragonFly 1.8.1-RELEASE i386
What tag I should specify in a cvsup-file to load source codes necessary for me?

Actions #21

Updated by qhwt+dfly almost 17 years ago

That depends on which version of DragonFly source tree you want, but
example supfiles reside under /usr/share/examples/cvsup directory
(DragonFly-release1_8-supfile, for example).

Hope this helps.

Actions #22

Updated by proxy-man almost 17 years ago

This is listing my cvsup's file. I have finished loading source codes and now I
try to collect a kernel.
-----------------------------------------------------------------------
4:06pm]root@dragon:/root#cat DragonFly-release1_8-supfile |grep -v ^#
*default host=cvsup.dragonflybsd.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=DragonFly_RELEASE_1_8_Slip
*default delete use-rel-suffix
*default compress

dragonfly-cvs-src
-----------------------
:)

Actions #23

Updated by proxy-man almost 17 years ago

I have finished compilation of a kernel for my system! I very much would want,
that in a management on system have added the information about such procedure,
as compilation of a kernel. Data which now are in a management, we shall tell
so, mismatch the validity.

Actions #24

Updated by bastyaelvtars almost 17 years ago

On Tue, 01 May 2007 11:29:06 -0000
Ruslan Afanasiev <> wrote:

I don't understand your English, but I have covered kernel compilation (especially the nativekernel) procedures in more than one wikipage, here is one:

http://tinyurl.com/2x5mgv

Actions #25

Updated by proxy-man almost 17 years ago

On Tue, 01 May 2007 11:18:01 -0000
bastyaelvtars wrote:

I don't understand your English, but I have covered kernel compilation
(especially the nativekernel) procedures in more than one wikipage, here is one:

http://tinyurl.com/2x5mgv
--------------------------
Thank you very much. I am sorry, my English is poor but I want tell for you
that DragonFlyBSD's handbook doesn't have a section about "make nativekernel"
and in handbook isn't exists information about how prepare to compilation the
nativekernel.

Actions #26

Updated by corecode almost 17 years ago

please try to avoid using the main server and use a mirror instead. for
example you could use chlamydia.fs.ei.tum.de. this should give you a higher
speed as well.

cheers
simon

Actions

Also available in: Atom PDF