Home
last modified time | relevance | path

Searched refs:boot (Results 1 – 25 of 294) sorted by relevance

12345678910>>...12

/openbsd-src/sbin/fsck_msdos/
H A Dboot.c41 readboot(int dosfs, struct bootblock *boot) in readboot() argument
81 memset(boot, 0, sizeof *boot); in readboot()
82 boot->ValidFat = -1; in readboot()
85 boot->BytesPerSec = block[11] + (block[12] << 8); in readboot()
86 if (boot->BytesPerSec == 0 || boot->BytesPerSec != secsize) { in readboot()
87 pfatal("Invalid sector size: %u\n", boot->BytesPerSec); in readboot()
90 boot->SecPerClust = block[13]; in readboot()
91 if (boot->SecPerClust == 0 || !powerof2(boot->SecPerClust)) { in readboot()
92 pfatal("Invalid cluster size: %u\n", boot->SecPerClust); in readboot()
95 boot->ResSectors = block[14] + (block[15] << 8); in readboot()
[all …]
H A Dfat.c45 checkclnum(struct bootblock *boot, int fat, cl_t cl, cl_t *next) in checkclnum() argument
47 if (*next >= (CLUST_RSRVD&boot->ClustMask)) in checkclnum()
48 *next |= ~boot->ClustMask; in checkclnum()
50 boot->NumFree++; in checkclnum()
54 boot->NumBad++; in checkclnum()
58 || (*next >= boot->NumClusters && *next < CLUST_EOFS)) { in checkclnum()
62 *next&boot->ClustMask); in checkclnum()
76 readfat(int fs, struct bootblock *boot, int no, struct fatEntry **fp) in readfat() argument
84 boot->NumFree = boot->NumBad = 0; in readfat()
85 fat = calloc(boot->NumClusters, sizeof(struct fatEntry)); in readfat()
[all …]
H A Dcheck.c51 struct bootblock boot; in checkfilesys() local
87 if (readboot(dosfs, &boot) != FSOK) { in checkfilesys()
93 if (boot.ValidFat < 0) in checkfilesys()
99 mod |= readfat(dosfs, &boot, boot.ValidFat >= 0 ? boot.ValidFat : 0, &fat); in checkfilesys()
105 if (boot.ValidFat < 0) in checkfilesys()
106 for (i = 1; i < boot.FATs; i++) { in checkfilesys()
108 mod |= readfat(dosfs, &boot, i, &currentFat); in checkfilesys()
116 mod |= comparefat(&boot, fat, currentFat, i); in checkfilesys()
128 mod |= checkfat(&boot, fat); in checkfilesys()
136 mod |= writefat(dosfs, &boot, fat); /* delay writing fats? XXX */ in checkfilesys()
[all …]
H A Ddir.c211 resetDosDirSection(struct bootblock *boot, struct fatEntry *fat) in resetDosDirSection() argument
216 b1 = boot->RootDirEnts * 32; in resetDosDirSection()
217 b2 = boot->SecPerClust * boot->BytesPerSec; in resetDosDirSection()
226 if (boot->flags & FAT32) { in resetDosDirSection()
227 if (boot->RootCl < CLUST_FIRST || boot->RootCl >= boot->NumClusters) { in resetDosDirSection()
229 boot->RootCl); in resetDosDirSection()
232 if (fat[boot->RootCl].head != boot->RootCl) { in resetDosDirSection()
237 fat[boot->RootCl].flags |= FAT_USED; in resetDosDirSection()
238 rootDir->head = boot->RootCl; in resetDosDirSection()
281 delete(int f, struct bootblock *boot, struct fatEntry *fat, cl_t startcl, in delete() argument
[all …]
/openbsd-src/sys/arch/hppa/stand/boot/
H A DMakefile3 MAN= boot.8
6 CLEANFILES+= boot.gdb boot.map boot.lif
9 PROG= boot
12 .PATH: ${S}/stand/boot
13 SRCS+= bootarg.c boot.c vars.c cmd.c
25 LDFLAGS+=-T ${.CURDIR}/ld.script -Map boot.map
31 LINKS= ${BINDIR}/boot.lif ${BINDIR}/sdboot \
32 ${BINDIR}/boot.lif ${BINDIR}/stboot \
33 ${BINDIR}/boot.lif ${BINDIR}/xxboot
38 all: boot.lif
[all …]
/openbsd-src/distrib/notes/loongson/
H A Dinstall6 The easiest way to boot into the OpenBSD installer is to copy the miniroot
7 image to a USB stick using dd(1) and boot bsd.rd from the PMON prompt:
9 PMON> boot -k /dev/fs/ext2@usb0/bsd.rd
18 Another way to boot into the OpenBSD installer is to copy the bsd.rd
19 installation kernel to the main Linux partition, and boot from it.
21 Assuming the installation kernel has been copied to /boot/bsd.rd on the
24 PMON> boot -k /dev/fs/ext2@wd0/boot/bsd.rd
28 PMON> load /dev/fs/ext2@usbg0/boot/bsd.rd
34 dnl you can boot the kernel from an usb key with:
36 dnl PMON> boot /dev/fs/fat@usb0:/bsd.rd
[all …]
/openbsd-src/gnu/usr.sbin/mkhybrid/src/
H A DREADME.eltorito5 be formatted such that you can directly boot from it.
26 LILO boot disk, for example, to simply be used as is.
28 It is simple then to make a bootable CD. First create a file, say "boot.img"
29 which is an exact image of the boot floppu currently in use. There is
31 floppy handy, you can make a boot image with the command
33 dd if=/dev/fd0 of=boot.img bs=10k count=144
38 for the iso9660 filesystem. It is a good idea to put all boot related
39 files in their own directory ("boot/" under the root of the iso9660 fs,
42 One caveat - Your boot floppy MUST load any initial ramdisk via LILO,
48 The "El Torito" specification requires a "boot catalog" to be created as
[all …]
H A DREADME.hfs_boot12 then be used with the -boot-hfs-file option. See below for usage.
17 For a partition to be bootable, it must have it's "boot block" set. The boot
19 the boot block is full of zeros. Normally, when a System file is copied to
20 partition on a Mac disk, the boot block is filled with a number of required
21 settings - unfortunately I don't know the full spec for the boot block ...
25 Therefore, the utility "apple_driver" also extracts the boot block from the
29 To extract the driver and boot block:
47 A hybrid CD is made using the option "-boot-hfs-file" e.g.
49 mkhybrid -boot-hfs-file HFS_driver_file -o hfs.raw src_files/
51 The -boot-hfs-file implies the -hfs option.
/openbsd-src/distrib/notes/luna88k/
H A Dprep8 interface, in order to be able to boot the installation media and, later,
9 specify the correct boot parameters.
11 Setting up the boot device and filename:
16 LUNA-88K systems can only boot from SCSI devices. The boot device type
18 ``boot_device'' variable. The SCSI id of the boot device is specified
19 by the ``boot_unit'' NVRAM variable, and the boot partition on said
21 ``boot_filename'' variable stores the name of the file to boot, and
22 defaults to ``vmunix''. To boot OpenBSD, this variable should be
23 changed to ``boot'', as in:
25 0> nvram boot_filename boot
[all …]
H A Dinstall29 Copy the OpenBSD/MACHINE boot loader on one of the first 8 partitions
34 b sd(n,p) boot
36 to boot the OpenBSD bootloader from the specified disk and partition.
44 controller, add 10 to this number. For example, to boot from a disk drive
47 b sd(10,0)boot
49 Once the OpenBSD bootloader starts, at the ``boot>'' prompt, enter:
51 boot sd(n,p)bsd.rd
53 to boot the installation kernel from the same partition.
67 to boot the OpenBSD bootloader from the swap partition.
69 Once the OpenBSD bootloader starts, at the ``boot>'' prompt, enter:
[all …]
/openbsd-src/distrib/notes/armv7/
H A Dprep13 You will need to enter the following at the ``boot>'' prompt:
15 boot> set tty fb0
18 file is required to boot. In most cases this is provided by images of
41 Note: By default the BeagleBone Black will boot from the internal emmc.
42 In order to make it boot from the micro SD card, you will need to hold down
44 Once you have done this the board will boot from the SD card as the default.
49 be loaded by placing bootarm.efi into /efi/boot/bootarm.efi on a FAT
57 => load mmc 0:1 ${kernel_addr_r} efi/boot/bootarm.efi
67 To do so first install the u-boot-arm and dtb packages. Write one of the
82 cp /usr/local/share/u-boot/board/{MLO,u-boot.img} /mnt/
[all …]
/openbsd-src/sys/arch/alpha/stand/
H A Dinstallboot.c62 char *boot, *proto, *dev; variable
134 boot = argv[optind]; in main()
139 (void)printf("boot: %s\n", boot); in main()
159 if (stat(boot, &bootsb) == -1) in main()
160 err(1, "stat: %s", boot); in main()
162 errx(1, "%s must be a regular file", boot); in main()
165 errx(1, "%s must be somewhere on %s", boot, dev); in main()
182 (void)printf("%s partition offset = 0x%llx\n", boot, partoffset); in main()
190 if (loadblocknums(boot, devfd, DL_SECTOBLK(&dl, partoffset)) != 0) in main()
318 loadblocknums(char *boot, int devfd, unsigned long partoffset) in loadblocknums() argument
[all …]
/openbsd-src/distrib/notes/macppc/
H A Dprep2 To be able to boot the OpenBSD/MACHINE installation program, you will
19 To continue booting, type "mac-boot" and press return
36 dnl XXX Move the boot commands to install in sections (booting from network,
40 boot cd:,ofwboot /OSREV/MACHINE/bsd.rd
41 (boot from an appropriately prepared
44 boot enet:,ofwboot /bsd.rd
51 boot ide1:,ofwboot /bsd
52 (After installation, boot /bsd from the slave
55 mac-boot (boot into Mac OS)
64 etc. To boot to an alternative device, you may substitute them
[all …]
/openbsd-src/distrib/arm64/iso/
H A DMakefile23 NEWFS_ARGS_msdos=-L boot -c1 -F16
27 PUBOOT= /usr/local/share/u-boot
28 PRPI= /usr/local/share/raspberrypi-firmware/boot
55 mkdir -p ${MOUNT_POINT}/efi/boot
56 cp ${RELDIR}/BOOTAA64.EFI ${MOUNT_POINT}/efi/boot/bootaa64.efi
57 echo bootaa64.efi > ${MOUNT_POINT}/efi/boot/startup.nsh
76 cp ${PUBOOT}/rpi_arm64/u-boot.bin ${MOUNT_POINT}/u-boot.bin
77 mkdir -p ${MOUNT_POINT}/efi/boot
78 cp /usr/mdec/BOOTAA64.EFI ${MOUNT_POINT}/efi/boot/bootaa64.efi
79 echo bootaa64.efi > ${MOUNT_POINT}/efi/boot/startup.nsh
[all …]
/openbsd-src/sys/arch/powerpc64/stand/boot/
H A DMakefile29 cd $@.d/dev && sh ${DESTDIR}/dev/MAKEDEV boot
32 boot: mr.fs target
33 cp bsd boot
34 rdsetroot boot mr.fs
36 realinstall: boot
37 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 boot ${DESTDIR}/usr/mdec
40 rm -f boot bsd mr.fs rdboot
/openbsd-src/sys/arch/octeon/stand/boot/
H A DMakefile29 cd $@.d/dev && sh ${DESTDIR}/dev/MAKEDEV boot
32 boot: mr.fs target
33 cp bsd boot
34 rdsetroot boot mr.fs
36 realinstall: boot
37 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 boot ${DESTDIR}/usr/mdec
40 rm -f boot bsd mr.fs rdboot
/openbsd-src/sys/arch/amd64/stand/boot/
H A DMakefile4 MAN?= boot.8
16 PROG?= boot
24 .PATH: ${S}/stand/boot
25 SRCS+= boot.c bootarg.c cmd.c vars.c
59 boot.bin: boot
60 objcopy -v -O binary ${PROG} boot.bin
68 @perl ${SADIR}/boot/check-boot.pl ${PROG}.new
84 CPPFLAGS+=-DHEAP_LIMIT=${HEAP_LIMIT} -I${S}/stand/boot #-DCOMPAT_UFS
/openbsd-src/sys/arch/i386/stand/boot/
H A DMakefile4 MAN?= boot.8
16 PROG?= boot
25 .PATH: ${S}/stand/boot
26 SRCS+= boot.c bootarg.c cmd.c vars.c
63 boot.bin: boot
64 objcopy -v -O binary ${PROG} boot.bin
72 @perl ${SADIR}/boot/check-boot.pl ${PROG}.new
88 CPPFLAGS+=-DHEAP_LIMIT=${HEAP_LIMIT} -I${S}/stand/boot #-DCOMPAT_UFS
/openbsd-src/distrib/notes/sparc64/
H A Dcontents10 This floppy image will boot on some SBus-based
15 floppyB{:--:}OSrev.img Another MACHINE boot and installation floppy;
17 This floppy image will boot on some PCI-based
37 bootblk The OpenBSD/MACHINE boot block.
38 ofwboot The OpenBSD/MACHINE secondary boot loader.
39 ofwboot.net The OpenBSD/MACHINE network boot loader.
46 The kernel and boot images are provided for net booting installations.
H A Dprep4 OpenBSD first; if it can't boot or fails mysteriously, you might need to
15 have an initial specific factory setup of the boot ROM, in order to start up
16 Solaris WebStart at the first boot; the boot-device variable is set to
17 disk:f. Make sure you reset the boot device to its default value:
19 ok set-default boot-device
24 To disable automatic boot use the following command:
26 ok setenv auto-boot? false
30 ok setenv auto-boot? true
34 # eeprom 'auto-boot?=true'
39 If OpenBSD does not boot or install properly on your machine, it might need
[all …]
/openbsd-src/distrib/arm64/ramdisk/
H A DMakefile14 NEWFS_ARGS_msdos=-L boot -c1 -F16
18 PUBOOT= /usr/local/share/u-boot
19 PRPI= /usr/local/share/raspberrypi-firmware/boot
52 mkdir -p ${MOUNT_POINT}/efi/boot
53 cp /usr/mdec/BOOTAA64.EFI ${MOUNT_POINT}/efi/boot/bootaa64.efi
54 echo bootaa64.efi > ${MOUNT_POINT}/efi/boot/startup.nsh
73 cp ${PUBOOT}/rpi_arm64/u-boot.bin ${MOUNT_POINT}/u-boot.bin
74 mkdir -p ${MOUNT_POINT}/efi/boot
75 cp /usr/mdec/BOOTAA64.EFI ${MOUNT_POINT}/efi/boot/bootaa64.efi
76 echo bootaa64.efi > ${MOUNT_POINT}/efi/boot/startup.nsh
[all …]
/openbsd-src/distrib/notes/alpha/
H A Dcontents20 bootxx, boot The OpenBSD/MACHINE first and second-level boot
21 loaders; useful to update your boot loader if you want
23 boot loader is too old to load bsd.rd correctly.
25 netboot The OpenBSD/MACHINE network boot loader, for bootp
28 netboot.mop The OpenBSD/MACHINE network boot loader, for MOP
/openbsd-src/distrib/amd64/iso/
H A DMakefile35 mkdir -p ${MOUNT_POINT}/efi/boot
36 cp ${EFIBOOT} ${MOUNT_POINT}/efi/boot
40 objcopy -S -R .comment ${DESTDIR}/usr/mdec/boot ${MOUNT_POINT}/boot
42 ${DESTDIR}/usr/mdec/biosboot ${MOUNT_POINT}/boot
45 echo "set image /${OSREV}/${MACHINE}/bsd.rd" > ${MOUNT_POINT}/etc/boot.conf
62 mkdir -p ${.OBJDIR}/eficdboot-dir/efi/boot
63 cp ${EFIBOOT} ${.OBJDIR}/eficdboot-dir/efi/boot
71 echo "set image /${OSREV}/${MACHINE}/bsd.rd" > ${.OBJDIR}/cd-dir/etc/boot.conf
89 -b ${OSREV}/${MACHINE}/cdbr -c ${OSREV}/${MACHINE}/boot.catalog \
/openbsd-src/distrib/loongson/ramdisk/
H A Dinstall.md39 mkdir -p /mnt2/boot
40 cp /mnt/usr/mdec/boot /mnt2/boot/boot
41 cp /mnt/bsd /mnt2/boot/bsd
47 echo "You will not be able to boot OpenBSD from ${_disk}."
97 to boot OpenBSD. Neither partition will overlap any other partition.
99 The OpenBSD MBR partition will have an id of 'A6' and the boot MBR
100 partition will have an id of '83' (Linux files). The boot partition will be
138 Once the machine has rebooted use PMON to boot into OpenBSD, as
140 To load the OpenBSD bootloader, use 'boot /dev/fs/ext2@wd0/boot/boot',
141 where wd0 is the PMON name of the boot disk.
/openbsd-src/distrib/armv7/miniroot/
H A DMakefile.inc14 PUBOOT= /usr/local/share/u-boot
23 newfs -O 1 -t msdos -L boot /dev/r`cat vnd`i
30 cp ${PUBOOT}/${UBOOT}/{MLO,u-boot.img} ${MOUNT_POINT}/
34 ${.CURDIR}/../boot.cmd ${MOUNT_POINT}/6x_bootscript
38 dd if=${PUBOOT}/${UBOOT}/u-boot.img of=/dev/r`cat vnd`c \
42 mkdir -p ${MOUNT_POINT}/efi/boot
43 cp /usr/mdec/BOOTARM.EFI ${MOUNT_POINT}/efi/boot/bootarm.efi

12345678910>>...12