Quote from SlayingDragons on November 19, 2011, 23:36
I've seen and have been particularly interested in doing LFS on the raspi, but are the steps and components the same for making LFS for ARM as they are for x86? As in I can follow the book except just cross-compile for ARM instead of x86 and use an arm kernel?
I have never read the LFS docs, but my advice is avoid.
There is a huge amount of work required to compile from scratch and it has all been done before, it is a waste of time reinventing the wheel.
If you want to compile a specialised distro try gentoo.org (I have never used but I think would be your best first call?).
If you just want to learn about the internals of programming an OS tryminix3.org
If you just want an easy way to start ARM compiling and simulation try one of the virtual machines mentioned before (I hoped to look at them this weekend but have not yet, so dont know what they are like).
If you want to help make a compilable distro then maybe try adding some scripts to
http://www.angstrom-distribution.org/ so that their auto build system can handle a Rpi build??
I think size is not so important these days for the OS, I think boot to X11 image should be easy to get under 1mb for ARM with a little work maybe kernel and root with busybox could be under 300kb?
Would be nice if there was some VM image that had a running Rpi ARM VM system that included all the source and compilation tools required to create itself.
I would imagine such a system could be under 50mb as a compressed VM image???
Minix is similar in this concept, and also http://soundproofingforum.co.u.....oofing.htm 2diskxwin has similar VM build system for tiny i386 linux (27mb rar ), though does not include the source code to compile the gcc compiler
As an irellevant side note:
I also remember someone actually created a real time compiled version of linux where the boot loader loaded tcc (tiny c compiler) the compiler then loaded and compiled the entire linux operating system from scratch at boot time.