md-disk as root file system,size limit!?

2008-02-18 Thread Xinyu Dong
I want use md-disk as root file system.

OS: FreeBSD 6.2-RELEASE
Environment = VMWare (Version 5) and Computer (CPU=Intel P4 2.4G,
Memory=Kingston 1G DDR400, Storage=2G CF)

create a less-than 100MB of image (image for ramdisk, mfs root)
The loader.rc {
 load kernel  // The kernel used 6.2 GENERIC
load -t mfs_root /image  // dd if=/dev/zero of=/image bs=1k
count=95k
}
above config can boot normal.


create a greater than 100MB of image (image for ramdisk, mfs root)
 The loader.rc {
load kernel  // The kernel used 6.2 GENERIC
load -t mfs_root /image  // dd if=/dev/zero of=/image bs=1k
count=128k
}
above config can't boot normal, reboot immediately.

create a equal 100MB or equal 99MB of image (image for ramdisk, mfs root)
The loader.rc {
load kernel  // The kernel used 6.2 GENERIC
load -t mfs_root /image  // dd if=/dev/zero of=/image bs=1k
count=100k (or count=99k)
}
above config can't boot normal, kernel panic.


[TEST] system up normally [GENERIC KERNEL]:

My Step:

   1. dd if=/dev/zero of=/image bs=1k count=128k
   2. mdconfig -a -t vnode -f /image -u 0
   3. bsdlabel -Bw /dev/md0 auto
   4. newfs /dev/md0a
   5. mount /dev/md0a /mnt

df -h

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad0s1a 23G1.5G 20G 7%/
devfs  1.0K1.0K  0B   100%/dev
/dev/md0a  124M4.0K114M 0%/mnt

system not panic.

but config loader.rc, add load -t mfs_root /image or load -t md_image
/image will panic.
I tried configuring the kernel, change MD_ROOT_SIZE and
MAXDSIZ=(1024UL*1024*1024); MAXSSIZ=(512UL*1024*1024);
DFLDSIZ=(1024UL*1024*1024), panic still.

Can I use 128MB mddisk?
Who can help me~~
Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


md_image image size limit

2008-02-12 Thread Xinyu Dong
I have 1G physical memory,when I created 100MB image that is okay,but I
created 128MB image,system reboot or kernel panic.
How to solve it ?
Thanks

example:

  dd if=/dev/zero of=bsdimage bs=1k count=128k

  /boot/loader.rc
  load /boot/kernel/kernel
  load -t mfs_root /bsdimage
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


The disk memory size restrictions

2008-02-08 Thread Xinyu Dong
Hello:
RAM disk to root file system.
I would like to use in embedded FreeBSD, and the creation of a 64 MB memory
disk, and all normal, but 128 MB RAM disk at the time of always
automatically restart.
Loader in the configuration file, use or use md_image mfs_root?
How to resolve this problem, thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RAM disk size limit

2008-02-08 Thread Xinyu Dong
Hello:
RAM disk to root file system.
I would like to use in embedded FreeBSD, and the creation of a 64 MB memory
disk, and all normal, but 128 MB RAM disk at the time of always
automatically restart.
Loader in the configuration file, use or use md_image mfs_root?
How to resolve this problem, thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]