/src/lib/libutil/ |
getbootfile.c | 55 const char *kernel; local in function:getbootfile 57 kernel = _PATH_UNIX; 59 /* find real boot-kernel name */ 66 * path of the kernel with the leading slash stripped 71 kernel = name; 75 if (strcmp(kernel, _PATH_UNIX) != 0 && 76 secure_path(kernel) != 0) { 78 kernel = _PATH_UNIX; 83 return (kernel);
|
/src/sys/arch/pmax/stand/smallnet/setnetimage/ |
Makefile | 16 .if !defined(KERNEL) 17 kernel: target 18 @echo set KERNEL first! 28 kernel: smallnet.elf target 29 ./${PROG} ${KERNEL} ${.ALLSRC}
|
setnetimage.c | 81 const char *kernel, *bootfile; local in function:main 92 fprintf(stderr, "usage: %s kernel bootfile\n", getprogname()); 96 kernel = argv[1]; 99 if ((ifd = open(kernel, O_RDONLY)) < 0) 100 err(1, "%s", kernel); 134 errx(1, "No ELF header in %s", kernel); 141 err(1, "%s", kernel); 143 err(1, "%s", kernel); 177 err(1, "%s", kernel); 185 err(1, "%s", kernel); [all...] |
/src/sys/arch/evbsh3/stand/mesboot/src/ |
mesboot.c | 21 printf("%s [-h] [-0] [kernel binary image file]\n", progname); 28 char *kernel = NULL; local in function:main 39 if (kernel == NULL) { 40 kernel = argv[i]; 50 if (kernel == NULL) 51 kernel = "/mmc0/netbsd.bin"; 63 fd = open(kernel, OptRead); 66 printf("can't open %s\r\n", kernel); 89 printf("NetBSD kernel loading.");
|
/src/sys/arch/sgimips/stand/common/ |
boot.c | 81 * We won't go overboard with gzip'd kernel names. After all we can 82 * still boot a gzip'd kernel called "netbsd.sgimips" - it doesn't need 124 const char *kernel = NULL; local in function:main 158 * device we've booted from. Derive the install kernel name from 169 kernel = "ip3x"; 171 kernel = "ip2x"; 172 strcpy(ep + 1, kernel); 190 kernel = arcbios_GetEnvironmentVariable("OSLoadFilename"); 193 * argv[1] is assumed to contain the name of the kernel to boot, 199 kernel = argv[1] [all...] |
/src/sys/arch/mipsco/stand/common/ |
boot.c | 80 * We won't go overboard with gzip'd kernel names. After all we can 81 * still boot a gzip'd kernel called "netbsd.mipsco" - it doesn't need 106 char *name, **namep, *dev, *kernel; local in function:main 127 kernel = devsplit(argv[1], bootname); 130 if (*kernel) 137 kernel = NULL; 151 kernel = *namep; 153 strcat(bootpath, kernel); 161 if (!win || !kernel) 164 strncpy(bi_bpath.bootpath, kernel, BTINFO_BOOTPATH_LEN) [all...] |
/src/sys/arch/pmax/stand/common/ |
boot.c | 80 * We won't go overboard with gzip'd kernel names. After all we can 81 * still boot a gzip'd kernel called "netbsd.pmax" - it doesn't need 113 char *name, **namep, *dev, *kernel; local in function:main 139 if ((kernel = devname(bootname)) == NULL) { 151 kernel = *namep; 153 strcat(bootpath, kernel); 164 strncpy(bi_bpath.bootpath, kernel, BTINFO_BOOTPATH_LEN); 180 (void)printf("KERNEL RETURNED!\n"); 190 * bootpath including the kernel name. This code to do this 192 * Returns the kernel name, or NULL if no kernel name specified [all...] |
/src/sys/arch/arc/stand/boot/ |
boot.c | 87 * We won't go overboard with gzip'd kernel names. After all we can 88 * still boot a gzip'd kernel called "netbsd.arc" - it doesn't need 132 const char *kernel = NULL; local in function:main 182 kernel = firmware_getenv("OSLoadFilename"); 183 if (kernel == NULL) 184 kernel = arcbios_GetEnvironmentVariable("OSLoadFilename"); 186 DPRINTF("kernel = %s\n", kernel ? kernel : "<null>"); 189 * The first arg is assumed to contain the name of the kernel to boot [all...] |
/src/distrib/utils/embedded/conf/ |
rpi.conf | 7 kernel=$kerneldir/netbsd-RPI.bin key 49 rpi2_kernel="$(echo $kernel | sed -e 's/RPI/RPI2/g')" 65 # Default kernel for BCM2836 and later 66 kernel=/kernel7.img key 67 # Override kernel for BCM2835 based boards 69 kernel=/kernel.img key in section:pi0 71 kernel=/kernel.img key in section:pi0w 73 kernel=/kernel.im key in section:pi1 [all...] |
rpi_inst.conf | 7 kernel=$kerneldir/netbsd-RPI_INSTALL.img key 49 kernel=/kernel.img key 55 if [ ! -f ${kernel} ]; then 56 echo ${PROG}: Missing ${kernel} 1>&2 60 echo "${bar} installing kernel ${bar}" 61 case ${kernel} in 63 echo " ${kernel} uncompressed to kernel.img" 64 ${GZIP_CMD} -dc ${kernel} > ${mnt}/boot/kernel.im [all...] |
arm64mbr.conf | 31 # Rename kernel to netbsd.img 38 # Install kernel to root of the FFS partition 39 ${GZIP_CMD} -dnc ${kernel}/netbsd-${kernel_GENERIC64}.gz > "${mnt}/netbsd" 60 kernel=/netbsd.img key 76 echo "${bar} looking for kernel in ${kernel} ${bar}" 80 # .img kernel 81 f="${kernel}/netbsd-${k}.img.gz"
|
armv7.conf | 35 # Install GENERIC kernel to root of the FFS partition 36 ${GZIP_CMD} -dc ${kernel}/netbsd-${kernels_generic}.gz > "${mnt}/netbsd" 59 # The GENERIC .img kernel img is used for RPI2 72 kernel=/netbsd-GENERIC.img key 122 echo "${bar} looking for kernels in ${kernel} ${bar}" 126 f="${kernel}/netbsd-${k}.ub.gz" 131 f="${kernel}/netbsd-${k}.img.gz"
|
arm64.conf | 46 # Rename kernel to netbsd.img 53 # Install kernel to root of the FFS partition 54 ${GZIP_CMD} -dnc ${kernel}/netbsd-${kernel_GENERIC64}.gz > "${mnt}/netbsd" 75 kernel=/netbsd.img key 91 echo "${bar} looking for kernel in ${kernel} ${bar}" 95 # .img kernel 96 f="${kernel}/netbsd-${k}.img.gz"
|
x86.conf | 7 kernel=$src/sys/arch/${board}/compile/GENERIC/netbsd key 90 if [ ! -f ${kernel} ]; then 91 echo ${PROG}: Missing ${kernel} 1>&2 95 echo "${bar} installing kernel ${bar}" 96 cp ${kernel} ${mnt}/netbsd
|
/src/sys/arch/next68k/stand/boot/ |
boot.c | 60 char kernel[KNAMEN]; variable in typeref:typename:char[] 112 strcpy(kernel, boot_arg); 117 fd = loadfile(kernel, marks, LOAD_KERNEL); 122 printf("load of %s: %s\n", kernel, strerror(errno)); 124 kgets(kernel, sizeof(kernel)); 125 if (kernel[0] == '\0') 129 kernel_args = strchr(kernel, ')'); 131 kernel_args = kernel; 140 if (devparse(kernel, &dev, &count, &lun, &part, &file) == 0) [all...] |
/src/sys/arch/mmeye/stand/boot/ |
boot.c | 161 /* "wdXX:kernel" */ 167 /* "kernel" */ 187 char **namep, *dev, *kernel, *bi_addr; local in function:main 200 kernel = NULL; 212 get_bsdbootname(&dev, &kernel, &howto); 214 if (kernel != NULL) { 215 DPRINTF(("kernel: %s\n", kernel)); 216 kernelnames[0] = kernel; 219 DPRINTF(("kernel: NULL\n")) [all...] |
/src/sys/arch/emips/stand/common/ |
boot.c | 47 * We won't go overboard with gzip'd kernel names. After all we can 48 * still boot a gzip'd kernel called "netbsd.emips" - it doesn't need 82 char *name, **namep, *dev, *kernel; local in function:main 94 * That allows for a large kernel, and a 16MB configuration still works. 116 kernel = kernelnames[0]; 122 strcat(bootpath, kernel); 135 kernel = *namep; 137 strcat(bootpath, kernel); 147 strncpy(bi_bpath.bootpath, name/*kernel?*/, BTINFO_BOOTPATH_LEN); 158 (void)printf("KERNEL RETURNED!\n") [all...] |
/src/sys/arch/sparc/stand/boot/ |
boot.c | 70 * this list is used in sequence, to find a kernel. 168 loadk(char *kernel, u_long *marks) 176 if ((fd = open(kernel, 0)) < 0) 185 /* We want that leading 16K in front of the kernel image */ 190 * Extra space for bootinfo and kernel bootstrap. 193 * is enough for the kernel to work with. 213 /* XXX - to do: inspect kernel image and set compat mode */ 217 printf("%s: too large for compat mode\n", kernel); 243 char kernel[MAX_PROM_PATH]; local in function:main 265 * get default kernel [all...] |
/src/sys/arch/cobalt/stand/boot/ |
boot.c | 346 /* "wdXX:kernel" */ 352 /* "kernel" */ 405 * Parse PROM boot string, load the kernel and jump into it 410 char **namep, *dev, *kernel, *bi_addr; local in function:main 426 kernel = NULL; 440 get_bsdbootname(&dev, &kernel, &howto); 442 if (kernel != NULL) { 443 DPRINTF(("kernel: %s\n", kernel)); 444 kernelnames[0] = kernel; [all...] |
/src/sys/arch/sparc/stand/ofwboot/ |
boot.c | 74 * this list is used in sequence, to find a kernel. 119 bootoptions(const char *ap, char *loaddev, char *kernel, char *options) 126 *kernel = '\0'; 169 memcpy(kernel, start1, (end1 - start1)); 170 kernel[end1 - start1] = '\0'; 171 path = filename(kernel, &partition); 173 strcpy(loaddev, kernel); 174 kernel[0] = '\0'; 175 } else if (path != kernel) { 177 memcpy(loaddev, kernel, path-kernel) 450 char kernel[PROM_MAX_PATH]; local in function:main [all...] |
/src/usr.sbin/trpt/ |
trpt.c | 156 char *kernel, *core, *cp, errbuf[_POSIX2_LINE_MAX]; local in function:main 160 kernel = core = NULL; 193 kernel = optarg; 209 use_sysctl = (kernel == NULL && core == NULL); 222 kd = kvm_openfiles(kernel, core, NULL, O_RDONLY, errbuf); 227 errx(2, "%s: no namelist", kernel);
|
/src/sys/arch/x68k/stand/loadbsd/ |
loadbsd.c | 2 * Load and boot NetBSD kernel on Human68k 11 * -N do not actually execute kernel 14 * kernel options: 17 * -D enter kernel debugger 257 * encode device to be passed to kernel 284 * read kernel and create trampoline 287 * | kernel image | 424 \t-N do not execute kernel\n\ 428 kernel options:\n\ 431 \t-D enter kernel debugger\n 453 const char *kernel; local in function:main [all...] |
/src/sys/external/mit/xen-include-public/dist/xen/include/public/ |
xenoprof.h | 115 uint32_t kernel; member in struct:xenoprof_counter
|
/src/usr.bin/pmap/ |
main.c | 120 char *kmem, *kernel, *t; local in function:main 139 kmem = kernel = NULL; 188 kernel = optarg; 240 if ((kernel != NULL || kmem != NULL || address != 0 || 250 kd = kvm_openfiles(kernel, kmem, NULL, O_RDONLY, errbuf); 262 /* get "bootstrap" addresses from kernel */ 318 /* only root can print kernel mappings */ 346 printf("kernel:\n");
|
/src/sys/stand/efiboot/ |
boot.c | 207 const char *kernel = *fname ? fname : bootfile; local in function:command_boot 210 if (!kernel || !*kernel) 211 kernel = DEFFILENAME; 217 exec_netbsd(kernel, bootargs);
|