Date: Thu, 11 Nov 2004 09:07:50 +0800 From: "Plan9 Ritchie" <plan9@bsdmail.com> To: freebsd-hackers@freebsd.org Subject: Embedded MD_ROOT doesn't work in FreeBSD 5.3 RELEASE Message-ID: <20041111010750.D4B9E21B32F@ws5-6.us4.outblaze.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041111010750.D4B9E21B32F>