API Reference: Libraries

Top

# mkboot

#### NAME

> mkboot - program to make a bootable device (fd, ata, tffs)

#### ROUTINES

> mkbootAhci( ) - create a boot AHCI disk from a specified file
> mkMbrAhci( ) - create MasterBootRecord on sector 0 of the specified hard disk

#### DESCRIPTION

> This library creates a boot diskette or disk.

> mkbootFd( ) creates a boot floppy disk. mkbootAta( ) creates a boot IDE/ATA disk. mkbootAhci( ) creates a boot vxBus AHCI disk.

> mkMbr( ) creates MasterBootRecord on sector 0 of IDE/ATA disk. mkMbrAhci( ) creates MasterBootRecord on sector 0 of vxBus AHCI disk.

#### INCLUDE FILES

> none

API Reference: Routines

Top

# mkbootAhci( )

#### NAME

> mkbootAhci( ) - create a boot AHCI disk from a specified file

#### SYNOPSIS

>     STATUS mkbootAhci
>         (
>         int  ctrl,    /* controller number:   (0 - 6), most board only have one controller */
>         int  drive,   /* drive number:        (0 - 32) */
>         char *in      /* name of file to read: "bootrom.bin" */
>         )

#### DESCRIPTION

> This command creates a AHCI boot disk from a specified file Note that the disk should have a FAT16 or a FAT12 volume. FAT32 volumes are not supported.

#### EXAMPLES

> The following example makes a bootable hard disk from the file named bootrom.bin to the AHCI ctrl 0, drive 0: "c:" drive.

>         -> mkbootAhci 0, 0, "bootrom.bin"

#### RETURNS

> OK, or ERROR if there is an error copying from in to the disk.

#### ERRNO

> Not Available

#### SEE ALSO

> mkboot

API Reference: Routines

Top

# mkMbrAhci( )

#### NAME

> mkMbrAhci( ) - create MasterBootRecord on sector 0 of the specified hard disk

#### SYNOPSIS

>     STATUS mkMbrAhci
>         (
>         int ctrl,   /* controller number:   (0 - 1)          */
>         int drive   /* drive number:        (0 - 1)          */
>         )

#### DESCRIPTION

> This command creates an MBR (FreeBSD version) on sector 0 of the specified hard drive. This will allow partitioning and booting of vxWorks images from within a vxWorks application. The hard disk will not have to be first "fdisk'd" on a DOS type platform.

#### EXAMPLE

> The following example places the MBR on sector 0 of the hard disk

>         -> mkMbrAhci 0, 0

#### RETURNS

> OK, or ERROR if there is an error copying from in to the disk.

#### ERRNO

> Not Available

#### SEE ALSO

> mkboot