Lines Matching defs:image
3 Simple utility to make a single-image install kernel with initial ramdisk
26 * as PROM looks for a.out image only.
65 /* fs_img.gz is an image of initial ramdisk. */
67 fprintf(stderr, "\tKernel image will be modified in place.\n");
159 die("Calculated a negative offset, probably elftoaout generated an invalid image. Did you use a recent elftoaout ?");
184 int image, tail;
198 if ((image = open(argv[2], O_RDWR)) < 0)
200 if (read(image, buffer, 512) != 512)
210 * in the image a little before the gokernel symbol.
214 offset = get_hdrs_offset(image, argv[2]);
218 if (lseek(image, offset, 0) < 0)
226 * sparc_ramdisk_size = size of image
233 if (write(image, buffer + 2, 14) != 14)
239 if (lseek(image, 4, 0) < 0)
248 if (write(image, buffer, 12) != 12)
252 /* seek page aligned boundary in the image file and add boot image */
253 if (lseek(image, AOUT_TEXT_OFFSET - start + align(end + 32), 0) < 0)
258 if (write(image, buffer, i) != i)
260 if (close(image) < 0)