making cd image
making cd image
i have my little kernel but my question is... how can i put grub on a CD along with my kernel?
on the other hand... is it possible for grub to network boot a kernel from my dev machine?
I'd also like to thank Candy, frank, Alboin, AJ, JamesM, Combuster, and everyone else who helped me with my cross-compiler problems
on the other hand... is it possible for grub to network boot a kernel from my dev machine?
I'd also like to thank Candy, frank, Alboin, AJ, JamesM, Combuster, and everyone else who helped me with my cross-compiler problems
chik'n
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: making cd image
If you have a working floppy image with grub and kernel, you can use El Torito emulation to build the corresponding Bootable CDMeshounah wrote:i have my little kernel but my question is... how can i put grub on a CD along with my kernel?
Grub can be installed natively to CD as well. IIRC a quick howto is in their documentation.
Grub seems to support network booting as well but its tricky. Google revealed a promising document
To make a bootable CD using grub, just make a directory (mines called iso) which holds what you want on the cd. You must have a boot/grub directory within this iso directory, which contains a menu.lst and the file stage2_eltorito from grub (it's somewhere on the hard drive with most linux distros).
Then run the following command from the parent of the iso directory:
This will produce a file named mycd.iso which should be bootable.
If you're using windows, I have no idea
Edit:
Looks like mkisofs is available for windows too: http://smithii.com/cdrtools
Then run the following command from the parent of the iso directory:
Code: Select all
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o mycd.iso iso
If you're using windows, I have no idea
Edit:
Looks like mkisofs is available for windows too: http://smithii.com/cdrtools
GRUB's netboot is not tricky in the slightest.
Make sure your dev machine has atftpd (trivial FTP daemon) installed.
Then when grub boots on your test machine, type 'c' for a console and:
Dead easy. There are guides on the internet about it. You can put all those commands into your menu.lst and let it do it automagically.
JamesM
Make sure your dev machine has atftpd (trivial FTP daemon) installed.
Code: Select all
/sbin/atftpd --daemon /path/to/dev/directory
Code: Select all
dhcp (get an ip address)
tftpserver 192.my.server.ip
kernel (nd)/kernel.bin (assuming kernel.bin is your kernel, in your dev dir)
module (nd)/initrd.bin (I would do this, depends if you have any modules to load)
boot
JamesM
I always used Rawwrite when I was working in Windows. (He also appears to have a win version of dd on his site as well.)Meshounah wrote:winimage is not free... the "dd" command is not listed in cygwin download app
C8H10N4O2 | #446691 | Trust the nodes.