Date: Sat, 12 Nov 2005 21:02:18 +0800 From: Dinesh Nair <dinesh@alphaque.com> To: freebsd-questions@FreeBSD.org Subject: Loading mfsroot read-write on FreeBSD 6.0-RELEASE Message-ID: <4375E7DA.1090204@alphaque.com>
next in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PA real memory = 133103616 (126 MB) avail memory = 104087552 (99 MB) ath_hal: 0.9.14.9 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413) npx0: [FAST] npx0: <math processor> on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: <Intel 82815 (i815 GMCH) Host To Hub bridge> pcibus 0 on motherboard pir0: <PCI Interrupt Routing Table: 8 Entries> on motherboard pci0: <PCI bus> on pcib0 pci0: <display, VGA> at device 2.0 (no driver attached) pcib1: <PCIBIOS PCI-PCI bridge> at device 30.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <simple comms> at device 0.0 (no driver attached) cbb0: <RF5C475 PCI-CardBus Bridge> mem 0xe5027000-0xe5027fff irq 12 at device 2. cardbus0: <CardBus bus> on cbb0 pccard0: <16-bit PCCard bus> on cbb0 pci1: <serial bus, FireWire> at device 2.1 (no driver attached) fxp0: <Intel 82559ER Embedded 10/100 Ethernet> port 0xa400-0xa43f mem 0xe5025000 pci1 miibus0: <MII bus> on fxp0 inphy0: <i82555 10/100 media interface> on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:04:5f:40:1c:bd fxp1: <Intel 82801BA/CAM (ICH2/3) Pro/100 Ethernet> port 0xa800-0xa83f mem 0xe50 miibus1: <MII bus> on fxp1 inphy1: <i82562ET 10/100 media interface> on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp1: Ethernet address: 00:04:5f:40:1d:21 isab0: <PCI-ISA bridge> at device 31.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel ICH2 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x37 ata0: <ATA channel 0> on atapci0 ata1: <ATA channel 1> on atapci0 pci0: <serial bus, SMBus> at device 31.3 (no driver attached) pmtimer0 on isa0 orm0: <ISA Option ROM> at iomem 0xc0000-0xcbfff on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> 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: <PNP0303> can't assign resources (port) unknown: <PNP0c01> can't assign resources (memory) unknown: <PNP0501> can't assign resources (port) unknown: <PNP0501> can't assign resources (port) unknown: <PNP0501> can't assign resources (irq) unknown: <PNP0501> 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 </mfsroot> 16777216 bytes at 0xc09c0370 ad2: FAILURE - SETFEATURES SET TRANSFER MODE status=51<READY,DSC,ERROR> error=4< ad2: 123MB <Transcend 2N3-0925> 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 | +=========================================================================+
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4375E7DA.1090204>