Embedded

如何解壓U-boot鏡像?

  • November 14, 2020

我的 U-boot 映像名為:

rootfs.13cy.initramfs.bzip2.uboot

我想看看裡面有什麼。什麼 dumpimage cmd 向我顯示:

dumpimage -l rootfs.13cy.initramfs.bzip2.uboot
Image Name:   Ramdisk Image
Created:      Sun Oct 25 00:39:27 2020
Image Type:   ARM Linux RAMDisk Image (bzip2 compressed)
Data Size:    1251896 Bytes = 1222.55 KiB = 1.19 MiB
Load Address: 00000000
Entry Point:  00000000

什麼 binwalk cmd 向我顯示:

binwalk rootfs.13cy.initramfs.bzip2.uboot


DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             uImage header, header size: 64 bytes, 
header CRC: 0x98E059B1, created: 2020-10-24 22:39:27, image size: 1251896 bytes,
Data Address: 0x0, Entry Point: 0x0, data CRC: 0x9F716869, OS: Linux, CPU: ARM,
image type: RAMDisk Image, compression type: bzip2, image name: "Ramdisk Image"

所以它是一個 RAMDisk 映像,看起來它不是核心,我可以看看它的內部嗎?任何想法,請

您可以使用 解壓縮圖像bzip2。閱讀man bzip2

您可以使用’選項讀取mount未壓縮的圖像,讀取.mount``-o loop``man mount

引用自:https://unix.stackexchange.com/questions/619631