From owner-freebsd-questions@FreeBSD.ORG Mon Jan 29 16:02:37 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1FA7216A403 for ; Mon, 29 Jan 2007 16:02:37 +0000 (UTC) (envelope-from bkoenig@cs.tu-berlin.de) Received: from mail.liberty-hosting.de (mail.liberty-hosting.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id 681E613C46B for ; Mon, 29 Jan 2007 16:02:35 +0000 (UTC) (envelope-from bkoenig@cs.tu-berlin.de) Received: from mail.liberty-hosting.de ([195.225.132.203]) by localhost (liberty-mail [195.225.132.203]) (amavisd-new, port 10024) with ESMTP id 05430-08; Mon, 29 Jan 2007 17:02:33 +0100 (CET) Received: from smtp.alpha-tierchen.de (port-212-202-170-218.dynamic.qsc.de [212.202.170.218]) by mail.liberty-hosting.de (Postfix) with ESMTP id 90CF915B394; Mon, 29 Jan 2007 17:02:33 +0100 (CET) Received: from [192.168.1.2] (muhkuh.local [192.168.1.2]) by smtp.alpha-tierchen.de (Postfix) with ESMTP id 5A66750920; Mon, 29 Jan 2007 17:02:31 +0100 (CET) Message-ID: <45BE1A98.4050302@cs.tu-berlin.de> Date: Mon, 29 Jan 2007 17:02:32 +0100 From: =?ISO-8859-15?Q?Bj=F6rn_K=F6nig?= User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Oliver Koch References: <45BB4FD2.5010708@rz.tu-clausthal.de> In-Reply-To: <45BB4FD2.5010708@rz.tu-clausthal.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at mail.smartterra.de Cc: freebsd-questions@freebsd.org Subject: Re: customize floppies X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2007 16:02:37 -0000 Oliver Koch schrieb: > Hello, > > is it possible to customize the kernel in the images of the kernel > floppies (kern1.flp, kern2.flp, kern3.flp) for FreeBSD 6.2? I need a > custom kernel with a special kernel option for my bge network interface > (BGE_FAKE_AUTONEG) to get network access on my Intel Blade. > > Thanks in advance! You can modify the existing floppy images. boot.flp contains the first part of the kernel and kern*.flp the further parts. Build a custom kernel using makeoptions MODULES_OVERRIDE="" in your kernel configuration file. # cd /usr/src/sys/i386/conf # config YOURKERNEL # cd ../compile # make cleandepend; make depend # make Take your kernel file and compress it: # gzip -9nc kernel > kernel.gz Now you can use the 'split-file.sh' script from src/release/scripts to split the compressed kernel into parts. # /usr/src/release/scripts/split-file.sh kernel.gz destdir 1392 Kernel You can mount a floppy disk image with the following commands: # mdconfig -af boot.flp md45 # mount /dev/md45 /mnt Replace the kernel parts with your own. I hope this helps. I havn't tested it before. There are other ways that are more elegant. Regards Björn