programble / bare-metal-tetris

Tetris for x86 in bad C. Succeeded by Tetrasm.
https://github.com/programble/tetrasm
60 stars 8 forks source link

Allow booting on real hardware from USB stick #3

Open cirosantilli opened 9 years ago

cirosantilli commented 9 years ago

Tried to dd the ISO there but does not work :-)

No one has CDs anymore.

causal-agent commented 9 years ago

The way to make an ISO bootable from a USB is to run isohybrid on it, iirc.

causal-agent commented 9 years ago

By the way running a real processor in a busy loop for any extended amount of time is probably a terrible idea.

cirosantilli commented 9 years ago

isohybrid tetris.iso fails with:

isohybrid: tetris.iso: boot loader does not have an isolinux.bin hybrid signature. Note that isolinux-debug.bin does not support hybrid booting

There has been some discussion at: http://serverfault.com/questions/10025/how-to-make-a-bootable-usb-drive-out-of-a-bootable-dvd-or-cd

I'll ping back if I learn how to do this.

cirosantilli commented 9 years ago

The kernel 4.2 uses isohybrid at: https://github.com/torvalds/linux/blob/64291f7db5bd8150a74ad2036f1037e6a0428df2/arch/x86/boot/Makefile#L177