Changes between Version 1 and Version 2 of linux/initramfs


Ignore:
Timestamp:
02/23/2024 10:09:56 PM (9 months ago)
Author:
Tim Harvey
Comment:

added additional uboot notes about ramdisks

Legend:

Unmodified
Added
Removed
Modified
  • linux/initramfs

    v1 v2  
    1212
    1313== external initramfs ==
    14 This is a {{{cpio.gz}}} that you pass to the kernel when booting. If doing this with U-Boot its the 2nd (middle) arg to bootm/booti/bootz. Note that {{{bootm}}} expects a uImage and uramdisk which have U-Boot wrappers (created with the {{{mkimage}}} tool from the {{{u-boot-tools}}} package) around the images.
     14This is a ramdisk image (cpio, or compressed cpio if you have enabled ramdisk compression in your kernel) that you pass to the kernel when booting. If doing this with U-Boot its the 2nd (middle) arg to bootm/booti/bootz.
     15
     16Note that {{{bootm}}} expects a uImage and uramdisk which have U-Boot wrappers (created with the {{{mkimage}}} tool from the {{{u-boot-tools}}} package) around the images. U-Boot must have CONFIG_LEGACY_IMAGE_FORMAT enabled for this. Note that arm64 does not support compressed kernel Images so you must use booti for arm64 (or bootm with a FIT image).
     17
     18Note that {{{booti}}} requires passing the size of the ramdisk by specifying <rdaddr>:<filesize and U-Boot must have CONFIG_SUPPORT_RAW_INITRD enabled. You can also use a uramdisk with booti as long as you have CONFIG_LEGACY_IMAGE_FORMAT enabled.
    1519
    1620The benefit of using an external initramfs is that you do not have to rebuild the kernel to update the root filesystem.