/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);
|
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}
|
Makefile | 16 .if !defined(KERNEL) 17 kernel: target 18 @echo set KERNEL first! 28 kernel: smallnet.elf target 29 ./${PROG} ${KERNEL} ${.ALLSRC}
|
/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.");
|
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...] |
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...] |
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...] |
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...] |
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"
|
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"
|
/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...] |
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...] |