From owner-freebsd-questions@FreeBSD.ORG Sat Nov 12 13:02:32 2005 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3390A16A41F for ; Sat, 12 Nov 2005 13:02:32 +0000 (GMT) (envelope-from dinesh@alphaque.com) Received: from ns2.alphaque.com (ns2.alphaque.com [202.75.47.153]) by mx1.FreeBSD.org (Postfix) with SMTP id 64C9043D45 for ; Sat, 12 Nov 2005 13:02:30 +0000 (GMT) (envelope-from dinesh@alphaque.com) Received: (qmail 30018 invoked by uid 0); 12 Nov 2005 13:02:29 -0000 Received: from lucifer.net-gw.com (HELO prophet.alphaque.com) (202.75.47.153) by lucifer.net-gw.com with SMTP; 12 Nov 2005 13:02:29 -0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by prophet.alphaque.com (8.13.4/8.13.4) with ESMTP id jACD2Ifd009298 for ; Sat, 12 Nov 2005 21:02:18 +0800 (MYT) (envelope-from dinesh@alphaque.com) Message-ID: <4375E7DA.1090204@alphaque.com> Date: Sat, 12 Nov 2005 21:02:18 +0800 From: Dinesh Nair User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8b) Gecko/20051026 MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Loading mfsroot read-write on FreeBSD 6.0-RELEASE 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: Sat, 12 Nov 2005 13:02:32 -0000 i'm attempting to create a stripped down implementation of FreeBSD 6.0-RELEASE and have noticed some changes in how the loader loads mfsroot between 4.x and 6.x. /boot/loader.rc has: set console=comconsole set hw.ata.atapi_dma="1" set hw.ata.ata_dma="1" set hw.ata.wc="0" load /kernel load -t mfs_root /mfsroot boot however, upon a boot, i see the following: /kernel text=0x4511b4 data=0x7cc94+0x33710 syms=[0x4+0x54750+0x4+0x696b2] ACPI autoload failed - no such file or directory Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.0-STABLE #1: Sat Nov 12 16:31:08 MYT 2005 dinesh@prophet.alphaque.com:/usr/src/sys/i386/compile/M0N0WALL_GENERIC_FREEB Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(TM) CPU 400MHz (400.91-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6b4 Stepping = 4 Features=0x383f9ff on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 pci0: at device 2.0 (no driver attached) pcib1: at device 30.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) cbb0: mem 0xe5027000-0xe5027fff irq 12 at device 2. cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 pci1: at device 2.1 (no driver attached) fxp0: port 0xa400-0xa43f mem 0xe5025000 pci1 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:04:5f:40:1c:bd fxp1: port 0xa800-0xa83f mem 0xe50 miibus1: on fxp1 inphy1: on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp1: Ethernet address: 00:04:5f:40:1d:21 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x37 ata0: on atapci0 ata1: on atapci0 pci0: at device 31.3 (no driver attached) pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcbfff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x100> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A, console sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A unknown: can't assign resources (port) unknown: can't assign resources (memory) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (irq) unknown: can't assign resources (irq) Timecounter "TSC" frequency 400910637 Hz quality 800 Timecounters tick every 1.000 msec Fast IPsec: Initialized Security Association Processing. IP Filter: v4.1.8 initialized. Default = block all, Logging = enabled md0: Preloaded image 16777216 bytes at 0xc09c0370 ad2: FAILURE - SETFEATURES SET TRANSFER MODE status=51 error=4< ad2: 123MB at ata1-master BIOSPIO Trying to mount root from ufs:/dev/md0 mkdir: /var/run: Read-only file system mkdir: /var/log: Read-only file system mkdir: /var/etc: Read-only file system mkdir: /var/db: Read-only file system i've judiciously ignored the SETFEATURES error on ad2 as it's a CF-IDE device and mounts perfectly fine from the command line. however, the mkdirs are failing due to the fact that mfsroot is mounted read only. using the same loader.rc commands in 4.x and 5.x seemed to load mfsroot read/write. how does one specify a read/write mount of mfsroot in 6.0 in the bootloader ? -- Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.alphaque.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+