View previous topic :: View next topic |
Author |
Message |
.maverick Apprentice
Joined: 29 Jan 2004 Posts: 159 Location: Bonn
|
Posted: Tue Jun 08, 2010 1:32 pm Post subject: Booting without filesystem |
|
|
I'm trying to build a minimal operating system and I don't see any reason to use more than an embedded initramfs (as there won't be changes to the data anyway). Is there a bootloader minimal enough to just be a mbr that boots the bzImage lying at some specific sector? Is that possible with lilo somehow? |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Jun 08, 2010 2:07 pm Post subject: |
|
|
I think you're making it harder for yourself than you need to. Grub supports a number of filesystems; if all you're doing is loading a kernel with embedded initramfs, then, okay, but why create additional work for yourself? Just create an ext2 filesystem sufficiently large to hold the kernel image. Leave the rest of the hard drive unparitioned if you like.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
.maverick Apprentice
Joined: 29 Jan 2004 Posts: 159 Location: Bonn
|
Posted: Tue Jun 08, 2010 7:01 pm Post subject: |
|
|
Hmm, but is there a program or script to do this? I have the bzImage ready with an embedded initramfs, but I don't know how to (easily) make a hd-image from that. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jun 09, 2010 11:56 am Post subject: |
|
|
Again, you're making this too hard. The bzImage is ready to be loaded by grub and requires no tranformation. Just copy it with cp or any other method you like. Do you need explicit step-by-step instructions? If so, tell me a little more about the build environment. Also, please state what device (/dev/hd* or /dev/sd*) the boot hard drive is on your build machine.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
|