From owner-freebsd-hackers Fri Aug 18 15:13:28 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from modemcable127.61-201-24.mtl.mc.videotron.net (modemcable211.226-201-24.mtl.mc.videotron.net [24.201.226.211]) by hub.freebsd.org (Postfix) with SMTP id 30BD437B424 for ; Fri, 18 Aug 2000 15:13:25 -0700 (PDT) Received: (qmail 91345 invoked from network); 18 Aug 2000 22:13:24 -0000 Received: from patrak.local.mindstep.com (HELO PATRAK) (192.168.10.4) by jacuzzi.local.mindstep.com with SMTP; 18 Aug 2000 22:13:24 -0000 Message-ID: <04e801c00961$84bf2150$040aa8c0@local.mindstep.com> From: "Patrick Bihan-Faou" To: "Johan Kruger" Cc: References: Subject: Re: Bootable CD... Date: Fri, 18 Aug 2000 18:13:20 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Now I am trying to use the boot.flp image that comes with the 4.1-Release CD. My alteration on that boot.flp is to replace the kernel.gz with my own (it contains a different set of binaries in the mfsroot. Now when my CD boots, the PC just goes into an endless reboot cycle. If I stop the boot process when "loader" is loaded and try to load my kernel manually (load kernel.gz) the loader answers with a "don't know how to load module /kernel.gz" error. If I do a lsmod, there is nothing loaded. I am getting really confused and frustrated... Good thing that I have a rewritable CD available :) Also on a side note, I think that it would be a great feature to have "mount_cd9660" as part of the binaries compiled in the fixit and/or install floppies. At least this way I could mount my CD after booting from a floppy... ohwell... Patrick. "Johan Kruger" wrote in message news:XFMail.000818184610.jkruger@oskar.dev.nanoteq.co.za... > Ok, here's what i did ( busy building a custom CD installation ) > After the 'make release' , i took the boot.flp image 2.88 Meg and > mounted it. I deleted everything except for /boot/boot0-2 an the > bootforth loader. Then i made my own kernel allowing a MFS of 2048 x 512 > blocks, giving me 1.44 Meg in the filesystem. > In this i crunched 72 Megs of binary's , one of them 'chroot' > I compiled init as not to look for 'rc' ( check the Makefile, define part > that's specifically for a release ) > After this i use the write_mfs_in_kernel script and umount it ( remember to > compress the kernel after the mfs write > > sh -e doFS.sh -s mfsroot ./ /mnt 2880 johan's_mfsfd_root_dir/ 8000 minimum2 > ./write_mfs_in_kernel kernel mfsroot > gzip -9vc kernel > kernel.gz > vnconfig /dev/vn0 boot.flp > mount /dev/vn0 /mnt > rm /mnt/kernel.gz > cp kernel.gz /mnt/kernel.gz > umount /mnt > vnconfig -u /dev/vn0 > > Now your boot.flp is ready for mkisofs > > Basically what happens now , i copy my complete live filesystem with > installed apps to the CD's root dir, and when i do mkisofs, i use my new > bootimage. After boot , since it can not find rc, it executes .profile in > the MFS filesystem in the kernel- BUT ONLY if you compiled init for the > crunch with in /usr/src/sbin/init/Makefile > > #CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP -DCOMPAT_SYSV_INIT > CFLAGS+=-DSECURE -DLOGIN_CAP -DCOMPAT_SYSV_INIT > > > In .profile i put 'mount_cd9660 /dev/acd0a /cdrom' ( /cdrom an extra dir i put > in my filesystem ) and 'chroot /cdrom /setup' , where setup is my prog, and > this works perfectly , i even load my own modules before the chroot and so on. > > The release i built is 5.0-CURRRENT , and if you want the boot.flp i can > attach it for you. Just mail me. Right now i'm going home - it's Friday - at > last > GOOD LUCK > *;-) > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message