Is it possible to get MM to completely boot locally? I tried to adapt one of versions of the generated images (RAM, NFS) in order to have the whole filesystem on a local disk and boot from there but with no success. Is there any way to do this?
Right know the NFS, CRAMFS and SQUASHFS are compiled into the kernel. Therefore, if you want to do something other than loading the entire file system into memory, you will either need to create an initrd with the appropriate file system driver (MniMytn include EXT3, Windows file systems (FAT, VFAT, and MSDOS) and CD/DVD file formats.) or compile the appropriate file system driver into the kernel.
Once that is done, you should be able to follow the directions for creating a NFS root directory except create it on a local disk partition.
After that you will need to create a /boot directory on partition and put the kernel in it.
Finally, you will want a separate partition labeled 'minimyth' in which you will put you read-only and read-write minimyth configureation directories.
Of course, I don't want the filesystem in RAM. I was trying the way you suggested by adapting the NFS image. However, I was trying to avoid an initrd and simply enable all the necessary support in the kernel and just add root=/dev/sdaX to the boot line. I tried that in a virtual machine (VMWare) and didn't work (kernel panic. the kernel was unable to mount the partition). Can you provide me more info on how to make a working initrd for MM?
MiniMyth is designed for network boot with the entire image loaded in RAM. The image takes 92M of memory, which costs very little. In addition, it makes it easy to change MiniMyth versions.
I added support for NFS network boot in order to ease my MiniMyth development. It required very little change. Since I added it, I made it available to others.
I added support for local boot because I needed to use it once on a network where I did not have control the DHCP server. It required very little change because even though it boots locally, it loads the entire image into memory. Since I added it, I made it available to others who had the same problem.
For the more traditional booting that you want, there are good alternatives to MiniMyth. Is there some reason that you do not use one of them?
Are you booting from a ATA/SATA disk or a USB disk?Spulit wrote:Pablo, there are NO alternatives to Minimyth!! MM is simpy great! I recompiled the kernel with all the necessary support (I suppose...) and also tried with an initramfs. I was able to load the kernel and the initram image, but then I do not know how to mount the disk partition and continue booting from there, where the NFS image is located. I will try a bit more and check if the kernel is really detecting the disk and the partition on VMWare. I guess so, since I was already able to get MM running on a virtual machine with a MM RAM image.
By compiling USB support, SCSI disk support and ext3 support into the kernel, I was able to boot from a USB flash drive using the NFS image installed on the flash drive.
By the way the NFS image is in the download directory with the RAM image.
My initial thought was also to take the NFS image, and convert it to local boot. I'm thinking along the line of mounting the root as RO, and have all the configuration done from the server, so the conf. is still in a central location on the network.
All is done in order to increase the WAF/KAF of minimyth.
For an even faster boot-from-scratch, I have thought about implementing tux-on-ice in a kiosk mode, and maybe changing the bios on my epia board for coreboot.
(KAF = Kidds Acceptance Factor)
So I wan't to skip the load-in-to-ram step, just having everything on an EXT3 partition.
Anyway, this is not going to happen the next couple of months. With a newborn son, and summer comming up, I have my hands full.
I have beed having hard time with mblast remote. The system becomes really unstable when I use it.
I would like to muild my own image and try it out. I use local boot at the moment (cf2ide adapter and cf-card).
I have no control over dhcp server, so what is the best way to use custom build ?
I dont think I should try to make my own local installation, but could configure minimyth, just to boot from CF and then retrieve the image from server ? I was thinking using MM_MINIMYTH_BOOT_URL parameter for that but the documentation seems to talk only about the configuration files in that case.
Or what would be the easiest way ? I have limited time to do these so not really keen on studying lots of stuff.
I got my image to CF using the mm_local_install script and gave it the image dir as a parameter. I had to manually copy the conf directory tho. Might also work by changing the url in the script to local web server which contains the dir.
Was almost too easy ..
Only bad thing is that it did not help and my mplay still do not work well. Well .. Maybe I have to buy mce-remote.
As I said in my previous post in this thread, I was able to do local boot using the NFS image without loading the root filesystem to RAM! I just needed Extlinux as boot loader and in the kernel append line I have just added root=/dev/XXX. The contents of rootfs.tar.gz in the NFS image is the root filesystem that should in the local disk.