/openbmc/linux/Documentation/translations/zh_CN/admin-guide/ |
H A D | bootconfig.rst | 152 用引导配置引导内核有两种方法:将引导配置附加到initrd镜像或直接嵌入内核中。 154 *initrd: initial RAM disk,初始内存磁盘* 156 将引导配置附加到initrd 159 由于默认情况下引导配置文件是用initrd加载的,因此它将被添加到initrd(initramfs) 162 [initrd][bootconfig][padding][size(le32)][checksum(le32)][#BOOTCONFIG\n] 166 当引导配置被加到initrd镜像时,整个文件大小会对齐到4字节。空字符( ``\0`` ) 169 Linux内核在内存中解码initrd镜像的最后部分以获取引导配置数据。由于这种“背负式” 170 的方法,只要引导加载器传递了正确的initrd文件大小,就无需更改或更新引导加载器 175 可以用它从initrd镜像中删除或追加配置文件。你可以用以下命令来构建它:: 179 要向initrd镜像添加你的引导配置文件,请按如下命令操作(旧数据会自动移除):: [all …]
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | initrd.rst | 1 Using the initial RAM disk (initrd) 8 initrd provides the capability to load a RAM disk by the boot loader. 11 from a different device. The previous root (from initrd) is then moved 14 initrd is mainly designed to allow system startup to occur in two phases, 16 where additional modules are loaded from initrd. 18 This document gives a brief overview of the use of initrd. A more detailed 25 When using initrd, the system typically boots as follows: 28 2) the kernel converts initrd into a "normal" RAM disk and 29 frees the memory used by initrd 33 4) root device is mounted. if it is ``/dev/ram0``, the initrd image is [all …]
|
H A D | efi-stub.rst | 50 The "initrd=" option 54 multiple initrd files using the "initrd=" option. This is the only EFI 58 The path to the initrd file must be an absolute path from the 66 initrd-large.img 69 initrd-small.img 70 initrd-medium.img 72 to boot with the initrd-large.img file if the current working 75 fs0:\Kernels> bzImage.efi initrd=\Kernels\initrd-large.img 99 "dtb=" is processed in the same manner as the "initrd=" option that is
|
/openbmc/qemu/tests/functional/ |
H A D | test_linux_initrd.py | 49 with tempfile.NamedTemporaryFile() as initrd: 50 initrd.seek(max_size) 51 initrd.write(b'\0') 52 initrd.flush() 53 self.vm.add_args('-kernel', kernel_path, '-initrd', initrd.name, 73 with tempfile.NamedTemporaryFile() as initrd: 74 initrd.seek(max_size) 75 initrd.write(b'\0') 76 initrd.flush() 82 '-initrd', initrd.name,
|
/openbmc/linux/tools/testing/selftests/rcutorture/doc/ |
H A D | initrd.txt | 1 The rcutorture scripting tools automatically create an initrd containing 7 userspace environments, you might wish to press an existing initrd 12 zcat /initrd.img > /tmp/initrd.img.zcat 13 mkdir initrd 14 cd initrd 15 cpio -id < /tmp/initrd.img.zcat 16 # Manually verify that initrd contains needed binaries and libraries.
|
/openbmc/linux/drivers/firmware/efi/libstub/ |
H A D | efi-stub-helper.c | 508 efi_status_t efi_load_initrd_dev_path(struct linux_efi_initrd *initrd, in efi_load_initrd_dev_path() argument 527 initrd->size = 0; in efi_load_initrd_dev_path() 528 status = efi_call_proto(lf2, load_file, dp, false, &initrd->size, NULL); in efi_load_initrd_dev_path() 532 status = efi_allocate_pages(initrd->size, &initrd->base, max); in efi_load_initrd_dev_path() 536 status = efi_call_proto(lf2, load_file, dp, false, &initrd->size, in efi_load_initrd_dev_path() 537 (void *)initrd->base); in efi_load_initrd_dev_path() 539 efi_free(initrd->size, initrd->base); in efi_load_initrd_dev_path() 547 struct linux_efi_initrd *initrd, in efi_load_initrd_cmdline() argument 556 &initrd->base, &initrd->size); in efi_load_initrd_cmdline() 574 struct linux_efi_initrd initrd, *tbl; in efi_load_initrd() local [all …]
|
/openbmc/linux/arch/arm/boot/bootp/ |
H A D | init.S | 24 bl move @ move the initrd 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 size
|
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/ |
H A D | isoimage-isohybrid.py | 150 initrd = get_bitbake_var("INITRD_LIVE") or get_bitbake_var("INITRD") 151 if not initrd: 169 initrd = files[0] 171 if not initrd or not os.path.exists(initrd): 173 initrd = "%s/initrd.cpio.gz" % cr_workdir 197 return initrd 276 initrd = source_params['initrd'] 279 cp_cmd = "cp %s/%s %s" % (deploy_dir, initrd, cr_workdir) 283 initrd = "%s/initrd" % deploy_dir 284 if not os.path.isfile(initrd): [all …]
|
H A D | bootimg-efi.py | 38 def _copy_additional_files(cls, hdddir, initrd, dtb): argument 43 if initrd: 44 initrds = initrd.split(';') 77 initrd = source_params.get('initrd') 80 cls._copy_additional_files(hdddir, initrd, dtb) 107 if initrd: 108 initrds = initrd.split(';') 157 initrd = source_params.get('initrd') 160 cls._copy_additional_files(hdddir, initrd, dtb) 196 if initrd: [all …]
|
/openbmc/linux/arch/um/kernel/ |
H A D | initrd.c | 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()
|
/openbmc/openbmc/poky/meta/classes-recipe/ |
H A D | live-vm-common.bbclass | 62 if [ -f "$iso_dir/initrd" ] ; then 63 cp $iso_dir/initrd ${EFIIMGDIR} 78 # Install bzImage, initrd, and rootfs.img in DEST for all loaders to use. 86 # initrd is made of concatenation of multiple filesystem images 88 rm -f $dest/initrd 92 cat $fs >> $dest/initrd 94 bbfatal "$fs is invalid. initrd image creation failed." 97 chmod 0644 $dest/initrd
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | README | 2 To extract the kernel vmlinux, System.map, .config or initrd from the zImage binary: 7 objcopy -j .kernel:initrd -O binary zImage.initrd initrd.gz
|
H A D | Makefile | 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-y)) 384 targets += $(image-y) $(initrd-y) 390 $(addprefix $(obj)/, $(initrd-y)): $(obj)/ramdisk.image.gz 395 $(obj)/zImage.initrd.%: vmlinux $(wrapperbits) FORCE 402 $(obj)/dtbImage.initrd.%: vmlinux $(wrapperbits) $(obj)/dts/%.dtb FORCE [all …]
|
H A D | wrapper | 41 initrd= 108 initrd="$1" 249 isection=.kernel:initrd 296 isection=initrd 335 isection=.kernel:initrd 475 if [ -n "$initrd" ]; then 476 real_rd="$initrd" 483 if [ -z "$initrd" ]; then 504 if [ -n "$initrd" ]; then 505 addsec $tmp "$initrd" $isection
|
/openbmc/linux/Documentation/power/ |
H A D | swsusp-dmcrypt.rst | 13 You did read Documentation/admin-guide/initrd.rst and know how an initrd works. 14 You know how to create or how to modify an initrd. 19 an initrd that does your current crypto setup already. 25 or an usb stick prior to resume. So you need an initrd, that sets 31 always the same major/minor within the initrd as well as 43 Prepare your boot loader to use the initrd you will create or 48 initrd=/boot/initrd.gz 52 Finally you need to create or modify your initrd. Lets assume 53 you create an initrd that reads the required dm-crypt setup 57 named "swapkey". /etc/fstab of your initrd contains something [all …]
|
/openbmc/qemu/hw/core/ |
H A D | guest-loader.c | 71 } else if (s->initrd) { in loader_insert_platform_data() 85 char *file = s->kernel ? s->kernel : s->initrd; in guest_loader_realize() 89 if (s->kernel && s->initrd) { in guest_loader_realize() 92 } else if (!s->kernel && !s->initrd) { in guest_loader_realize() 118 DEFINE_PROP_STRING("initrd", GuestLoaderState, initrd),
|
/openbmc/qemu/tests/multiboot/ |
H A D | run_test.sh | 64 run_qemu modules.elf -initrd module.txt 65 run_qemu modules.elf -initrd "module.txt argument" 66 run_qemu modules.elf -initrd "module.txt argument,,with,,commas" 67 run_qemu modules.elf -initrd "module.txt,module.txt argument,module.txt"
|
H A D | modules.out | 9 === Running test case: modules.elf -initrd module.txt === 16 === Running test case: modules.elf -initrd module.txt argument === 23 === Running test case: modules.elf -initrd module.txt argument,,with,,commas === 30 === Running test case: modules.elf -initrd module.txt,module.txt argument,module.txt ===
|
/openbmc/u-boot/arch/sh/lib/ |
H A D | bootm.c | 31 #define GET_INITRD_START(initrd, linux) (initrd - linux + CONFIG_SH_SDRAM_OFFSET) argument 33 #define GET_INITRD_START(initrd, linux) (initrd - linux) argument
|
/openbmc/qemu/tests/migration/ |
H A D | meson.build | 14 'initrd-stress.img', 15 output: 'initrd-stress.img', 17 command: [find_program('initrd-stress.sh'), '@OUTPUT@', '@INPUT@']
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/plymouth/ |
H A D | plymouth_24.004.60.bb | 43 PACKAGECONFIG ??= "initrd freetype pango udev ${PLYMOUTH_THEMES} ${@bb.utils.filter('DISTRO_FEATURE… 50 PACKAGECONFIG[initrd] = ",," 76 if ! ${@bb.utils.contains('PACKAGECONFIG', 'initrd', 'true', 'false', d)}; then 84 PACKAGES =. "${@bb.utils.contains('PACKAGECONFIG', 'initrd', '${PN}-initrd ', '', d)}" 87 FILES:${PN}-initrd = "${libexecdir}/plymouth/*" 97 RDEPENDS:${PN}-initrd = "bash dracut"
|
/openbmc/u-boot/doc/uImage.FIT/ |
H A D | command_syntax_extensions.txt | 55 kernel and a ramdisk, respectively. The kernel is booted with initrd loaded 61 | (kernel, initrd) | (kernel, initrd, fdt) | 66 Ad. 4. Similar to case 3, but the kernel is booted without initrd. Second 70 Ad. 5. Boot kernel image located at <addr1> with initrd loaded with ramdisk 76 booted with initrd loaded with ramdisk from the image at <addr2>. 80 a FDT binary blob. Kernel is booted without initrd. 97 at <addr1> with initrd loaded with ramdisk <subimg2> from the image at 102 at <addr1> with initrd loaded with ramdisk <subimg2> from the image at 111 at <addr1>, without initrd, and pass FDT blob <subimg3> from the image at 151 - boot "kernel-1" from a new uImage at 200000 with initrd "ramdisk-2" found in [all …]
|
/openbmc/linux/Documentation/translations/zh_CN/devicetree/ |
H A D | usage-model.rst | 147 时和配置数据,如内核参数字符串和initrd镜像的位置。 153 initrd-start = <0xc8000000>; 154 initrd-end = <0xc8200000>; 157 bootargs属性包含内核参数,initrd-\*属性定义initrd blob的地址和大小。注 158 意initrd-end是initrd映像后的第一个地址,所以这与结构体资源的通常语义不一
|
/openbmc/qemu/tests/functional/qemu_test/ |
H A D | linuxkernel.py | 20 def launch_kernel(self, kernel, initrd=None, dtb=None, console_index=0, argument 24 if initrd: 25 self.vm.add_args('-initrd', initrd)
|
/openbmc/openbmc/poky/scripts/pybootchartgui/ |
H A D | NEWS | 51 + better check for initrd (Riccardo Magliocchetti) 116 + add rdinit support for very early initrd tracing 135 + if run inside an initrd detect when /dev is writable 153 + fix initrd sanity check to use the right proc path 158 + even simpler initrd setup 167 be present (also in the initrd) [ with a kmsg 191 + initrd portability & fixes (Federic Crozat) 195 + improved initrd detection / jail tagging 197 + implement a built-in usleep to help initrd deps (Michael) 200 + fix initrd bug
|