There's no such thing as a stupid question, but they're the easiest to answer.


Search Search
Search for:
Tech Support Guy > > >

boot loader code


cyjoyp's Avatar
cyjoyp cyjoyp is offline
Junior Member with 1 posts.
Join Date: Apr 2009
27-Apr-2009, 07:36 AM #1
boot loader code
hello guys,
I am trying to create partitions on hard drive and boot from that hard drive programatically.
. I m using IOCTL_DISK_SET_DRIVE_LAYOUT to create partitions and IOCTL_DISK_CREATE_DISK to write the signature of the hard drive (32 bytes). I am able to create the partition successfully but the executable code (boot loader code), the first 300 bytes in the mbr is not written to the disk.I find these bytes empty.
I find no solution to write the executable code to the 0th sector of the hard drive and also the boot sector of the partition as well.

Does any one know how to do it.???

Last edited by cyjoyp; 28-Apr-2009 at 01:08 AM..
Elvandil's Avatar
Computer Specs
Member with 51,991 posts.
Join Date: Aug 2003
Location: Vermont
04-May-2009, 07:58 AM #2
Originally Posted by HELMA View Post
USB PIC Bootloader is a resident bootloader for PIC18 series of Enhanced Flash USB Microcontrollers. It allows you to program a new firmware application image into the chip using the standard USB connectivity of your device.
  • USB PIC Bootloader fully complies with USB Specification for Human Input Devices (HID) and all interfacing is done via standard HID driver from Microsoft.
  • XTEA encryption algorithm is used to protect privacy of firmware application updated with USB PIC Bootloader.
  • USB PIC Bootloader code is write-protected and cannot be overwritten by firmware.
  • Firmware update or user mode is selected by SW and/or HW switch.

USB PIC Bootloader is a small program that stays in the first 2,048 bytes of the program memory of the Microchip PIC Microcontroller. Bootloader runs at the boot time (when the processor has just been reset) and is capable of loading a complete application program into a processor's memory. With the USB PIC Bootloader loaded, there are two distinct modes of operation: firmware update mode and user mode. USB PIC Bootloader uses the EEPROM mark and/or hardware switch to determine which mode to run in.
Copied word for word from here:

please read the rules.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

You Are Using: Server ID
Trusted Website Back to the Top ↑