(still did not receive the 5.5 cd btw) I built a bsd.rd with a bigger ramdisk, MINIROOT is 35840 (0x8C00).
i do make bsd.rd and everythings build fine, but the kernel does not boot i have just time to see the first number of loading [xxxxx] and instant reboot, i have no COM output on this machine and <pause> does not help to see the very last message. Is there a maximum size for the ramdisk ? i have 4 gig ram... I cannot solve this by myself :-( i can only try to reduce the size and hope, a bit of help ? Best regards, -- Feedback: * fsck -o space is undocumented even in mount, it removes the warning if -m 0 (instead of default 5%) is used but i am not sure it is the only effect. * Could the RAMDISK conf file inherit the ramdisk file size to set the MINIROOT define , or push the MINIROOT through the call of make ? * Missleading behavior, creating a mr.fs with file in it but it was a badly shaped one. With this diff i finally found out the ramdisk was too small, yet the copy worked and it is rdsetroot who detect the error, all the creation of mr.fs was sucessfull but somehow wrong. dd if=/dev/zero of=/var/tmp/image.1002 bs=512 count=8960 8960+0 records in 8960+0 records out 4587520 bytes transferred in 0.157 secs (29083532 bytes/sec) vnconfig -v -c vnd0 /var/tmp/image.1002 vnd0: 4587520 bytes on /var/tmp/image.1002 disklabel -w vnd0 rdrootbig newfs -m 0 -o space -i 4096 /dev/rvnd0a newfs: block size 512 is too small, minimum is 4096 disktab : rdroot|ramdiskroot|RAM-disk root FS image:\ :ty=ramdisk:se#512:nt#2:ns#140:nc#16:\ :pa#4480:oa#0:ta=4.2BSD:ba#4480:fa#512:\ :pb#0:ob#0:tb=swap:\ :pc#4480:oc#0: rdrootbig|BIGRAM-disk root FS image:\ :ty=ramdisk:se#512:nt#2:ns#140:nc#32:\ :pa#8960:oa#0:ta=4.2BSD:ba#8900:fa#512:\ :pb#0:ob#0:tb=swap:\ :pc#8960:oc#0: then i replace 515 with 4096 and : newfs: fragment size 512 is too small, minimum is 4096 so i replace fa to 4096 Why other disktab has 512 in and yet are working ? And now i am a bit stuck: cp bsd bsd.rd /usr/src/distrib/amd64/ramdiskA/rdsetroot bsd.rd mr.fs ramdisk too small 0x2300000 0x460000 *** Error 1 in /usr/src/distrib/amd64/ramdiskA (../common/Makefile.inc:65 'bsd.rd') # ls -lh ./mr.fs -rw-r--r-- 1 root wsrc 35.0M May 5 17:53 ./mr.fs But i did change the RAMDISK size in RAMDISK kernel conf. so i suppose i did something very wrong. (here is the diff i made in src tree) diff -bru /home/src/distrib/amd64/common/Makefile.inc /usr/src/distrib/amd64/common/Makefile.inc --- /home/src/distrib/amd64/common/Makefile.inc Sun Mar 2 10:57:34 2014 +++ /usr/src/distrib/amd64/common/Makefile.inc Mon May 5 16:35:29 2014 @@ -49,8 +49,8 @@ cp ${REALIMAGE} ${FS} rm ${REALIMAGE} -DISKTYPE?= rdroot -NBLKS?= 4480 +DISKTYPE?= rdrootbig #/usr/src/etc/etc.amd64/disktab +NBLKS?= 8960 #4480 # minfree, opt, b/i trks, sects, cpg NEWFSARGS= -m 0 -o space -i 4096 diff -bru /home/src/distrib/amd64/common/list /usr/src/distrib/amd64/common/list --- /home/src/distrib/amd64/common/list Mon Mar 3 02:40:34 2014 +++ /usr/src/distrib/amd64/common/list Mon May 5 15:58:59 2014 @@ -82,3 +82,11 @@ SCRIPT ${CURDIR}/../../miniroot/install.sh install SCRIPT ${CURDIR}/../../miniroot/install.sub install.sub SPECIAL chmod 755 install upgrade + +#custom program in ramdisk +COPY ${CURDIR}/../common/ssh usr/bin/ssh +COPY ${CURDIR}/../common/libz.so.5.0 usr/lib/libz.so.5.0 +COPY ${CURDIR}/../common/libcrypto.so.23.0 usr/lib/libcrypto.so.23.0 +COPY ${CURDIR}/../common/libutil.so.12.0 usr/lib/libutil.so.12.0 +COPY ${CURDIR}/../common/libc.so.73.1 usr/lib/libc.so.73.1 + diff -bru /home/src/distrib/miniroot/mtree.conf /usr/src/distrib/miniroot/mtree.conf --- /home/src/distrib/miniroot/mtree.conf Fri Feb 21 14:14:23 2014 +++ /usr/src/distrib/miniroot/mtree.conf Mon May 5 15:57:56 2014 @@ -91,6 +91,9 @@ # ./usr/share .. +# ./usr/lib +lib + # ./usr .. diff -bru /home/src/etc/etc.amd64/disktab /usr/src/etc/etc.amd64/disktab --- /home/src/etc/etc.amd64/disktab Sun Mar 2 10:42:47 2014 +++ /usr/src/etc/etc.amd64/disktab Mon May 5 16:34:21 2014 @@ -33,3 +33,9 @@ :pa#4480:oa#0:ta=4.2BSD:ba#4480:fa#512:\ :pb#0:ob#0:tb=swap:\ :pc#4480:oc#0: + +rdrootbig|BIGRAM-disk root FS image:\ + :ty=ramdisk:se#512:nt#2:ns#140:nc#16:\ + :pa#8960:oa#0:ta=4.2BSD:ba#8960:fa#512:\ + :pb#0:ob#0:tb=swap:\ + :pc#4480:oc#0: diff -bru /home/src/sys/arch/amd64/conf/RAMDISK /usr/src/sys/arch/amd64/conf/RAMDISK --- /home/src/sys/arch/amd64/conf/RAMDISK Fri Nov 15 14:42:20 2013 +++ /usr/src/sys/arch/amd64/conf/RAMDISK Mon May 5 16:02:16 2014 @@ -26,7 +26,7 @@ option BOOT_CONFIG # boot-time kernel config option RAMDISK_HOOKS -option MINIROOTSIZE=4480 +option MINIROOTSIZE=8960 #4480 config bsd root on rd0a swap on rd0b and wd0b and sd0b -- --------------------------------------------------------------------------------------------------------------------- () ascii ribbon campaign - against html e-mail /\