From owner-freebsd-questions@FreeBSD.ORG Fri Jul 18 08:32:15 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 027BA106566B for ; Fri, 18 Jul 2008 08:32:15 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (relay2.tomsk.ru [212.73.124.8]) by mx1.freebsd.org (Postfix) with ESMTP id 4762D8FC19 for ; Fri, 18 Jul 2008 08:32:14 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) X-Virus-Scanned: by clamd daemon 0.93.1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru (account sudakov@sibptus.tomsk.ru [212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.13) with ESMTPSA id 10397364 for freebsd-questions@freebsd.org; Fri, 18 Jul 2008 15:32:12 +0700 Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.13.6/8.13.6/Submit) id m6I8WCth086741 for freebsd-questions@freebsd.org; Fri, 18 Jul 2008 15:32:12 +0700 (OMSST) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.tomsk.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Fri, 18 Jul 2008 15:32:11 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Message-ID: <20080718083211.GA85621@admin.sibptus.tomsk.ru> Mail-Followup-To: Victor Sudakov , freebsd-questions@freebsd.org References: <20080716023702.GA21346@admin.sibptus.tomsk.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080716023702.GA21346@admin.sibptus.tomsk.ru> User-Agent: Mutt/1.4.2.1i Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://vas.tomsk.ru/vas.asc Subject: Re: need help with boot forth 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: Fri, 18 Jul 2008 08:32:15 -0000 Victor Sudakov wrote: > > I am setting up a jumpstart server for networked FreeBSD installation > (tftp only). My /tftpboot/boot/loader.rc is rather simple: > > load /boot/kernel > load /boot/acpi.ko > load -t mfs_root /boot/mfsroot > set vfs.root.mountfrom="ufs:/dev/md0c" > boot > > It works fine with a custom kernel (with statically compiled in device hints). > > However, I would like to use a stock kernel, so I need to tftp download > device.hints and set the kernel environment accordingly. Could you > please help me with the loader.rc code that will do that? I have found out that putting device hints into loader.rc in the form of loader environment variables: set hint.fdc.0.at="isa" set hint.fdc.0.port="0x3F0" set hint.fdc.0.irq="6" set hint.fdc.0.drq="2" set hint.fd.0.at="fdc0" set hint.fd.0.drive="0" set hint.fd.1.at="fdc0" set hint.fd.1.drive="1" set hint.ata.0.at="isa" set hint.ata.0.port="0x1F0" set hint.ata.0.irq="14" does the job. However, if some Forth guru shows me how to tftp download and parse /tftpboot/boot/device.hints, I'd be most grateful. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru