[haiku-development] Writing a boot loader in Haiku

  • From: Michael Pfeiffer <michael.w.pfeiffer@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 6 Apr 2008 11:57:23 +0200

Hi!

For bootman the bootman boot loader stage 1 is written into the MBR sector and stage 2 is written to one sector after the MBR sector using /dev/disk/ata/0/master/raw with a single write(...) operation (about 950 bytes). After the write operation completes however only the first 512 bytes have been written. Is /dev/disk/ata/0/master/raw limited to the MBR sector only?

- Michael


Other related posts: