From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 11 01:07:51 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C75D16A4CE for ; Thu, 11 Nov 2004 01:07:51 +0000 (GMT) Received: from webmail-outgoing.us4.outblaze.com (webmail-outgoing.us4.outblaze.com [205.158.62.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2470243D3F for ; Thu, 11 Nov 2004 01:07:51 +0000 (GMT) (envelope-from plan9@bsdmail.com) Received: from wfilter.us4.outblaze.com (wfilter.us4.outblaze.com [205.158.62.180])F250518001BC for ; Thu, 11 Nov 2004 01:07:50 +0000 (GMT) X-OB-Received: from unknown (205.158.62.148) by wfilter.us4.outblaze.com; 11 Nov 2004 01:07:50 -0000 Received: by ws5-6.us4.outblaze.com (Postfix, from userid 1001) id D4B9E21B32F; Thu, 11 Nov 2004 01:07:50 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Received: from [221.10.230.17] by ws5-6.us4.outblaze.com with http for plan9@bsdmail.com; Thu, 11 Nov 2004 09:07:50 +0800 From: "Plan9 Ritchie" To: freebsd-hackers@freebsd.org Date: Thu, 11 Nov 2004 09:07:50 +0800 X-Originating-Ip: 221.10.230.17 X-Originating-Server: ws5-6.us4.outblaze.com Message-Id: <20041111010750.D4B9E21B32F@ws5-6.us4.outblaze.com> X-Mailman-Approved-At: Thu, 11 Nov 2004 13:04:49 +0000 Subject: Embedded MD_ROOT doesn't work in FreeBSD 5.3 RELEASE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 01:07:51 -0000 Hi,All Yestoday, I'd upgraded my box to FreeBSD 5.3 RELEASE, but I found it seem= s the Embedded MD_ROOT doesn't work fine.=20 My kernel config:=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 machine i386=20 cpu I486_CPU=20 cpu I586_CPU=20 cpu I686_CPU=20 ident MINI=20 device pf=20 device pflog=20 options ALTQ=20 options ALTQ_RED=20 # To statically compile in device wiring instead of /boot/device.hints=20 #hints "GENERIC.hints" # Default places to look for devices.=20 options SCHED_4BSD # 4BSD scheduler=20 options INET # InterNETworking=20 options FFS # Berkeley Fast Filesystem=20 options PSEUDOFS=20 options MD_ROOT # MD is a potential root device=20 options MD_ROOT_SIZE=3D4096 # 4M=20 options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!]=20 options COMPAT_FREEBSD4 # Compatible with FreeBSD4=20 options NO_SWAPPING=20 device apic # I/O APIC=20 # Bus support. Do not remove isa, even if you have no isa slots=20 device isa=20 device pci=20 device vga # VGA video card driver=20 device splash # Splash screen and screen saver support=20 # syscons is the default console driver, resembling an SCO console=20 device sc=20 device atkbdc=20 device atkbd=20 # Floating point support - do not disable.=20 device npx=20 # Serial (COM) ports=20 device sio # 8250, 16[45]50 based serial ports=20 device miibus # MII bus support=20 device fxp # Intel EtherExpress PRO/100B (82557, 82558)=20 device pcn # AMD Am79C97x PCI 10/100 (precedence over 'lnc')=20 device lnc # NE2000=20 device re # RealTek 8139C+/8169/8169S/8110S=20 device rl # RealTek 8129/8139=20 device sis # Silicon Integrated Systems SiS 900/SiS 7016=20 device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')=20 # Pseudo devices.=20 device loop # Network loopback=20 device mem # Memory and kernel memory devices=20 device io # I/O device=20 device random # Entropy device=20 device ether # Ethernet support=20 device sl # Kernel SLIP=20 device ppp # Kernel PPP=20 device tun # Packet tunnel.=20 device pty # Pseudo-ttys (telnet etc)=20 device md # Memory "disks"=20 device bpf # Berkeley packet filter=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 I made a mfs_image in follow steps:=20 # dd if=3D/dev/zero of=3Dmfs_image bs=3D1k count=3D4096=20 # mdconfig -a -t vnode -f mfs_image -u 0=20 # fdisk -B /dev/md0=20 # disklabel -Brw /dev/md0=20 # newfs -O1 -o space -m 0 /dev/md0a=20 # mount /dev/md0a /mnt=20 After that, copy file that needed into /mnt=20 # umount /dev/md0a=20 # mdconfig -d -u 0=20 # strings -at d kernel | grep "MFS Filesystem goes here"=20 1858112 MFS Filesystem goes here=20 # expr 1858112 + 8192=20 1866304=20 # dd if=3Dmfs_image ibs=3D8192 iseek=3D1 of=3Dkernel obs=3D1866304 oseek=3D= 1 conv=3Dnotrunc=20 But when I load my 'kernel' with /boot/loader and boot my box, the kernel p= rompt me:=20 --------------------------------=20 Mounting root from ufs:/dev/md0a=20 setrootbyname failed=20 ffs_mountroot: can't find rootvp=20 Root mount failed: 6=20 Mounting root from ufs:/dev/md0=20 Root mount failed: 22=20 --------------------------------=20 The commands I typed in load prompt are:=20 OK unload=20 OK load /kernel=20 OK set vfs.root.mountfrom=3Dufs:/dev/md0a=20 OK boot=20 Could you help me? I'll be very appreciate!=20 -- __o _ \<_ Plan9 (_)/(_) --=20 _______________________________________________ Get your free email from http://mymail.bsdmail.com Powered by Outblaze