| /kernel/linux/linux-5.10/arch/um/kernel/ |
| H A D | initrd.c | 8 #include <linux/initrd.h> 14 static char *initrd __initdata = NULL; 23 if (initrd == NULL) in read_initrd() 26 err = os_file_size(initrd, &size); in read_initrd() 35 printk(KERN_ERR "\"%s\" is a zero-size initrd\n", initrd); in read_initrd() 43 if (load_initrd(initrd, area, size) == -1) in read_initrd() 53 initrd = line; in uml_initrd_setup() 57 __uml_setup("initrd=", uml_initrd_setup, 58 "initrd [all...] |
| /kernel/linux/linux-6.6/drivers/firmware/efi/libstub/ |
| H A D | efi-stub-helper.c | 213 STR_WITH_SIZE("Linux initrd") 460 * for the firmware or bootloader to expose the initrd data directly to the stub 462 * very easy to implement. It is a simple Linux initrd specific conduit between 464 * kernel) in charge of where and when to load the initrd, while leaving it up 487 * efi_load_initrd_dev_path() - load the initrd from the Linux initrd device path 488 * @initrd: pointer of struct to store the address where the initrd was loaded 489 * and the size of the loaded initrd 490 * @max: upper limit for the initrd memor 500 efi_load_initrd_dev_path(struct linux_efi_initrd *initrd, unsigned long max) efi_load_initrd_dev_path() argument 538 efi_load_initrd_cmdline(efi_loaded_image_t *image, struct linux_efi_initrd *initrd, unsigned long soft_limit, unsigned long hard_limit) efi_load_initrd_cmdline() argument 566 struct linux_efi_initrd initrd, *tbl; efi_load_initrd() local [all...] |
| /kernel/linux/linux-5.10/arch/arm/boot/bootp/ |
| H A D | init.S | 7 * "Header" file for splitting kernel + initrd. Note that we pass 24 bl move @ move the initrd 27 * Setup the initrd parameters to pass to the kernel. This can only be 30 ldmia r13, {r5-r9} @ get size and addr of initrd 33 @ r7 = initrd start 34 @ r8 = initrd end 56 mov r5, #4 @ Size of initrd tag (4 words) 76 data: .word initrd_start @ source initrd address 77 .word initrd_phys @ destination initrd address 78 .word initrd_size @ initrd siz [all...] |
| /kernel/linux/linux-6.6/arch/arm/boot/bootp/ |
| H A D | init.S | 7 * "Header" file for splitting kernel + initrd. Note that we pass 24 bl move @ move the initrd 27 * Setup the initrd parameters to pass to the kernel. This can only be 30 ldmia r13, {r5-r9} @ get size and addr of initrd 33 @ r7 = initrd start 34 @ r8 = initrd end 56 mov r5, #4 @ Size of initrd tag (4 words) 76 data: .word initrd_start @ source initrd address 77 .word initrd_phys @ destination initrd address 78 .word initrd_size @ initrd siz [all...] |
| H A D | Makefile | 22 # guess an initrd location if possible 33 PHONY += initrd 34 initrd: 47 targets := bootp init.o kernel.o initrd.o 49 # Note that bootp.lds picks up kernel.o and initrd.o 50 $(obj)/bootp: $(src)/bootp.lds $(addprefix $(obj)/,init.o kernel.o initrd.o) FORCE 53 # kernel.o and initrd.o includes a binary image using 58 $(obj)/initrd.o: initrd $(INITRD) FORCE
|
| /kernel/linux/linux-6.6/arch/um/kernel/ |
| H A D | initrd.c | 8 #include <linux/initrd.h> 16 static char *initrd __initdata = NULL; 23 if (!initrd) in read_initrd() 26 area = uml_load_file(initrd, &size); in read_initrd() 37 initrd = line; in uml_initrd_setup() 41 __uml_setup("initrd=", uml_initrd_setup, 42 "initrd=<initrd image>\n" 43 " This is used to boot UML from an initrd image. The argument is the\n"
|
| /kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
| H A D | efi-stub-helper.c | 517 * for the firmware or bootloader to expose the initrd data directly to the stub 519 * very easy to implement. It is a simple Linux initrd specific conduit between 521 * kernel) in charge of where and when to load the initrd, while leaving it up 544 * efi_load_initrd_dev_path() - load the initrd from the Linux initrd device path 545 * @load_addr: pointer to store the address where the initrd was loaded 546 * @load_size: pointer to store the size of the loaded initrd 547 * @max: upper limit for the initrd memory allocation 550 * * %EFI_SUCCESS if the initrd was loaded successfully, in which 552 * * %EFI_NOT_FOUND if no LoadFile2 protocol exists on the initrd devic 557 efi_load_initrd_dev_path(struct linux_efi_initrd *initrd, unsigned long max) efi_load_initrd_dev_path() argument 595 efi_load_initrd_cmdline(efi_loaded_image_t *image, struct linux_efi_initrd *initrd, unsigned long soft_limit, unsigned long hard_limit) efi_load_initrd_cmdline() argument 624 struct linux_efi_initrd initrd, *tbl; efi_load_initrd() local [all...] |
| /kernel/linux/linux-6.6/arch/powerpc/boot/ |
| H A D | Makefile | 277 # args (to if_changed): 1 = (this rule), 2 = platform, 3 = dts 4=dtb 5=initrd 378 initrd- := $(patsubst zImage%, zImage.initrd%, $(image-)) 379 initrd-y := $(patsubst zImage%, zImage.initrd%, \ 380 $(patsubst dtbImage%, dtbImage.initrd%, \ 381 $(patsubst simpleImage%, simpleImage.initrd%, \ 382 $(patsubst treeImage%, treeImage.initrd%, $(image-y))))) 383 initrd-y := $(filter-out $(image-y), $(initrd [all...] |
| H A D | wrapper | 6 # This script takes a kernel binary and optionally an initrd image 13 # -i initrd specify initrd file 41 initrd= 69 echo 'Usage: wrapper [-o output] [-p platform] [-i initrd]' >&2 108 initrd="$1" 249 isection=.kernel:initrd 296 isection=initrd 335 isection=.kernel:initrd 473 # obs600 wants a multi image with an initrd, s [all...] |
| H A D | zImage.ps3.lds.S | 18 .kernel:initrd : { *(.kernel:initrd) }
|
| H A D | main.c | 108 printf("Attached initrd image at 0x%p-0x%p\n\r", in prep_initrd() 117 /* If there's no initrd at all, we're done */ in prep_initrd() 122 * If the initrd is too low it will be clobbered when the in prep_initrd() 129 printf("Allocating 0x%lx bytes for initrd ...\n\r", in prep_initrd() 135 printf("Relocating initrd 0x%lx <- 0x%p (0x%lx bytes)\n\r", in prep_initrd() 140 printf("initrd head: 0x%lx\n\r", *((unsigned long *)initrd_addr)); in prep_initrd() 142 /* Tell the kernel initrd address via device tree */ in prep_initrd() 143 setprop_val(chosen, "linux,initrd-start", (u32)(initrd_addr)); in prep_initrd() 144 setprop_val(chosen, "linux,initrd-end", (u32)(initrd_addr+initrd_size)); in prep_initrd() 229 struct addr_range vmlinux, initrd; in start() local [all...] |
| H A D | zImage.lds.S | 72 .kernel:initrd : 75 *(.kernel:initrd)
|
| /kernel/linux/linux-5.10/arch/powerpc/boot/ |
| H A D | wrapper | 6 # This script takes a kernel binary and optionally an initrd image 13 # -i initrd specify initrd file 39 initrd= 65 echo 'Usage: wrapper [-o output] [-p platform] [-i initrd]' >&2 104 initrd="$1" 228 isection=.kernel:initrd 275 isection=initrd 314 isection=.kernel:initrd 445 # obs600 wants a multi image with an initrd, s [all...] |
| H A D | zImage.ps3.lds.S | 18 .kernel:initrd : { *(.kernel:initrd) }
|
| H A D | main.c | 108 printf("Attached initrd image at 0x%p-0x%p\n\r", in prep_initrd() 117 /* If there's no initrd at all, we're done */ in prep_initrd() 122 * If the initrd is too low it will be clobbered when the in prep_initrd() 129 printf("Allocating 0x%lx bytes for initrd ...\n\r", in prep_initrd() 135 printf("Relocating initrd 0x%lx <- 0x%p (0x%lx bytes)\n\r", in prep_initrd() 140 printf("initrd head: 0x%lx\n\r", *((unsigned long *)initrd_addr)); in prep_initrd() 142 /* Tell the kernel initrd address via device tree */ in prep_initrd() 143 setprop_val(chosen, "linux,initrd-start", (u32)(initrd_addr)); in prep_initrd() 144 setprop_val(chosen, "linux,initrd-end", (u32)(initrd_addr+initrd_size)); in prep_initrd() 229 struct addr_range vmlinux, initrd; in start() local [all...] |
| H A D | zImage.lds.S | 64 .kernel:initrd : 67 *(.kernel:initrd)
|
| /kernel/linux/linux-5.10/arch/x86/boot/ |
| H A D | genimage.sh | 54 mcopy "$FDINITRD" a:initrd.img 66 mcopy "$FDINITRD" v:initrd.img 78 mcopy "$FDINITRD" w:initrd.img 115 cp "$FDINITRD" $tmp_dir/initrd.img
|
| /kernel/linux/linux-5.10/arch/arm/boot/ |
| H A D | Makefile | 93 $(obj)/bootp/bootp: $(obj)/zImage initrd FORCE 99 PHONY += initrd install zinstall uinstall 100 initrd:
|
| /kernel/linux/linux-5.10/arch/parisc/kernel/ |
| H A D | kexec_file.c | 17 unsigned long kernel_len, char *initrd, in elf_load() 44 if (initrd != NULL) { in elf_load() 45 kbuf.buffer = initrd; in elf_load() 54 pr_debug("Loaded initrd at 0x%lx\n", kbuf.mem); in elf_load() 16 elf_load(struct kimage *image, char *kernel_buf, unsigned long kernel_len, char *initrd, unsigned long initrd_len, char *cmdline, unsigned long cmdline_len) elf_load() argument
|
| /kernel/linux/linux-5.10/arch/powerpc/kexec/ |
| H A D | elf_64.c | 27 unsigned long kernel_len, char *initrd, in elf64_load() 91 if (initrd != NULL) { in elf64_load() 92 kbuf.buffer = initrd; in elf64_load() 102 pr_debug("Loaded initrd at 0x%lx\n", initrd_load_addr); in elf64_load() 26 elf64_load(struct kimage *image, char *kernel_buf, unsigned long kernel_len, char *initrd, unsigned long initrd_len, char *cmdline, unsigned long cmdline_len) elf64_load() argument
|
| /kernel/linux/linux-6.6/arch/powerpc/kexec/ |
| H A D | elf_64.c | 28 unsigned long kernel_len, char *initrd, in elf64_load() 91 if (initrd != NULL) { in elf64_load() 92 kbuf.buffer = initrd; in elf64_load() 102 pr_debug("Loaded initrd at 0x%lx\n", initrd_load_addr); in elf64_load() 27 elf64_load(struct kimage *image, char *kernel_buf, unsigned long kernel_len, char *initrd, unsigned long initrd_len, char *cmdline, unsigned long cmdline_len) elf64_load() argument
|
| /kernel/linux/linux-6.6/arch/parisc/kernel/ |
| H A D | kexec_file.c | 17 unsigned long kernel_len, char *initrd, in elf_load() 44 if (initrd != NULL) { in elf_load() 45 kbuf.buffer = initrd; in elf_load() 54 pr_debug("Loaded initrd at 0x%lx\n", kbuf.mem); in elf_load() 16 elf_load(struct kimage *image, char *kernel_buf, unsigned long kernel_len, char *initrd, unsigned long initrd_len, char *cmdline, unsigned long cmdline_len) elf_load() argument
|
| /kernel/linux/linux-6.6/arch/arm/mm/ |
| H A D | init.c | 16 #include <linux/initrd.h> 57 phys_initrd_start = __virt_to_phys(tag->u.initrd.start); in parse_tag_initrd() 58 phys_initrd_size = tag->u.initrd.size; in parse_tag_initrd() 66 phys_initrd_start = tag->u.initrd.start; in parse_tag_initrd2() 67 phys_initrd_size = tag->u.initrd.size; in parse_tag_initrd2() 185 /* Register the kernel text, kernel data and initrd with memblock. */ in arm_memblock_init() 486 free_reserved_area((void *)start, (void *)end, -1, "initrd"); in free_initrd_mem()
|
| /kernel/linux/linux-6.6/arch/arm64/kernel/ |
| H A D | machine_kexec_file.c | 85 * Tries to add the initrd and DTB to the image. If it is not possible to find 92 char *initrd, unsigned long initrd_len, in load_other_segments() 134 /* load initrd */ in load_other_segments() 135 if (initrd) { in load_other_segments() 136 kbuf.buffer = initrd; in load_other_segments() 151 pr_debug("Loaded initrd at 0x%lx bufsz=0x%lx memsz=0x%lx\n", in load_other_segments() 89 load_other_segments(struct kimage *image, unsigned long kernel_load_addr, unsigned long kernel_size, char *initrd, unsigned long initrd_len, char *cmdline) load_other_segments() argument
|
| /kernel/linux/linux-5.10/arch/arm/mm/ |
| H A D | init.c | 16 #include <linux/initrd.h> 57 phys_initrd_start = __virt_to_phys(tag->u.initrd.start); in parse_tag_initrd() 58 phys_initrd_size = tag->u.initrd.size; in parse_tag_initrd() 66 phys_initrd_start = tag->u.initrd.start; in parse_tag_initrd2() 67 phys_initrd_size = tag->u.initrd.size; in parse_tag_initrd2() 180 * This allows us to detect whether the pages overlapping the initrd in arm_initrd_init() 189 pr_err("INITRD: 0x%08llx+0x%08lx is not a memory region - disabling initrd\n", in arm_initrd_init() 195 pr_err("INITRD: 0x%08llx+0x%08lx overlaps in-use memory region - disabling initrd\n", in arm_initrd_init() 202 /* Now convert initrd to virtual addresses */ in arm_initrd_init() 226 /* Register the kernel text, kernel data and initrd wit in arm_memblock_init() [all...] |