Linux 是否可以装载包含在FIT映像中的文件系统?
我正在运行一个嵌入式板,U-Boot作为引导加载程序。我创建了一个基本的FIT映像,它用设备树和RootFS映像引导Linux内核。 目前,我使用命令Linux 是否可以装载包含在FIT映像中的文件系统?,linux,u-boot,device-tree,Linux,U Boot,Device Tree,我正在运行一个嵌入式板,U-Boot作为引导加载程序。我创建了一个基本的FIT映像,它用设备树和RootFS映像引导Linux内核。 目前,我使用命令tftpboot boot.itb&&bootm引导我的FIT映像,这将成功引导默认配置。内核启动后不久,我想在RAM中安装一个额外的只读分区。这将在Linux中作为装载点公开(例如,/mnt/image)。该分区将嵌入FIT映像本身,而不是存储在闪存上 这可能吗?使用U-Boot时,我的默认配置设置为使用我的标准RootFS作为ramdisk,但
tftpboot boot.itb&&bootm
引导我的FIT映像,这将成功引导默认配置。内核启动后不久,我想在RAM中安装一个额外的只读分区。这将在Linux中作为装载点公开(例如,/mnt/image
)。该分区将嵌入FIT映像本身,而不是存储在闪存上
这可能吗?使用U-Boot时,我的默认配置设置为使用我的标准RootFS作为ramdisk,但是我是否可以有“两个”ramdisk,一个用于引导,另一个用于装载
/dts-v1/;
/ {
description = "FIT Image";
#address-cells = <1>;
images {
kernel@0 {
description = "Linux Kernel";
data = /incbin/("./vmlinux.bin.gz");
type = "kernel";
arch = "ppc";
os = "linux";
compression = "gzip";
load = <0x00000000>;
entry = <0x00000000>;
hash@1 {
algo = "sha1";
};
};
fdt@0 {
description = "Flattened Device Tree blob";
data = /incbin/("./devicetree.dtb");
type = "flat_dt";
arch = "ppc";
compression = "none";
hash@1 {
algo = "sha1";
};
};
ramdisk@0 {
description = "ramdisk";
data = /incbin/("./rootfs.cpio.gz");
type = "ramdisk";
arch = "ppc";
os = "linux";
compression = "gzip";
hash@1 {
algo = "sha1";
};
};
};
configurations {
default = "conf@1";
conf@1 {
description = "Boot Linux kernel with FDT blob + ramdisk";
kernel = "kernel@0";
fdt = "fdt@0";
ramdisk = "ramdisk@0";
hash@1 {
algo = "sha1";
};
};
};
};
/dts-v1/;
/ {
description=“适合图像”;
#地址单元=;
图像{
kernel@0 {
description=“Linux内核”;
data=/incbin/(“/vmlinux.bin.gz”);
type=“kernel”;
arch=“ppc”;
os=“linux”;
compression=“gzip”;
负荷=;
条目=;
hash@1 {
algo=“sha1”;
};
};
fdt@0 {
description=“展平设备树blob”;
数据=/incbin/(“/devicetree.dtb”);
type=“flat_dt”;
arch=“ppc”;
压缩=“无”;
hash@1 {
algo=“sha1”;
};
};
ramdisk@0 {
description=“ramdisk”;
data=/incbin/(“/rootfs.cpio.gz”);
type=“ramdisk”;
arch=“ppc”;
os=“linux”;
compression=“gzip”;
hash@1 {
algo=“sha1”;
};
};
};
配置{
默认值=”conf@1";
conf@1 {
description=“使用FDT blob+ramdisk引导Linux内核”;
内核=”kernel@0";
fdt=”fdt@0";
ramdisk=”ramdisk@0";
hash@1 {
algo=“sha1”;
};
};
};
};