
Now: Does anyone know of a Bochs image containing a Linux including gcc? Or how to make a Bochs image out of an existing installation?
Hmm... but... how... {scratching head} Now that's a very bad sign, if I can't even get the question right... I think I have to ponder all the alternatives for a while...Curufir wrote: A more sensible plan would be to create your disk image first, then use your host system (Linux for preference) to cross-compile for i586 and build LFS on that disk image (Loopback mounted of course).
If I weren't, I wouldn't be here among people writing their own operating systems, now would I?Oh, I did mention you're insane, didn't I? ;D
Isn't that like plug&play? Make partition of 1GB, install Linux using normal install procedure (no fancy ones, just debian or slackware something), and then point bochs to your own harddisk as secondary harddisk (ps: you might want it as hdb). Then, use some image as hda for LFS.Solar wrote: Or how to make a Bochs image out of an existing installation?
The obvious answer is just as weird: dd if=/dev/hda of=harddisk-imageSolar wrote: Erm... last time I looked, Bochs didn't support using *real* hard drives...?!?!
Sure it does, at least on Windows NT/2000/XP. \\.\PHYSICALDRIVEn refers the the n'th hard disk. \\.\C: refers to the partition mounted as drive C, although this is likely to be wrong, as drive C will start with a boot sector and not an MBR/partition table. A: works fine for the floppy drive.Solar wrote: Erm... last time I looked, Bochs didn't support using *real* hard drives...?!?!
There's nothing insane in installing a LFS. I'm using an LFS as my main linux system, and it didn't took me more than one night to build it.Curufir wrote: Ok, just to point out that you do know you're insane don't you ;D.
...
After that you can pretty much follow the book. Get back to us next year and tell us how it went (Compiling glibc under bochs....eww).
...
Oh, I did mention you're insane, didn't I? ;D
I didn't mean installing LFS was insane (I built a Linux system based loosely on LFS for my dev system), what I meant was that building an LFS system under BOCHS is mildly insane. GLibc took some 3-4 hours to compile on my little k6-2 333hz box. Consider that even on a fairly quick computer BOCHS is struggling to emulate 50hz and you'll rapidly come to the same conclusion.pini wrote: There's nothing insane in installing a LFS. I'm using an LFS as my main linux system, and it didn't took me more than one night to build it.