A root filesystem loading method and related apparatus
By using a ROMFS image file as the root file system, the virtual address corresponding to the initial physical address is directly used as the starting address of the block device, reducing copy operations and solving the problem of excessively long kernel startup time under the RAMDISK mechanism, thus achieving fast kernel startup.
CN122412005APending Publication Date: 2026-07-17HUAWEI TECH CO LTD
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2025-01-17
- Publication Date
- 2026-07-17
AI Technical Summary
Technical Problem
Existing technologies, under the RAMDISK mechanism, result in excessively long boot times due to multiple image file copying operations during kernel startup, failing to meet the requirements for fast startup.
Method used
By using the ROMFS image file as the root file system, the virtual address corresponding to the initial physical address is directly used as the starting address of the block device, reducing copy operations and enabling fast kernel startup.
Benefits of technology
By reducing copy operations, kernel startup time is shortened, especially in read-only applications that require fast startup, significantly improving kernel startup speed.
✦ Generated by Eureka AI based on patent content.
Smart Images

Figure CN122412005A_ABST
Abstract
本申请实施例公开了一种根文件系统加载方法及相关装置,该方法通过将一部分虚拟内存模拟为块设备使用的虚拟内存盘RAMDISK机制,首先,获取初始物理地址上的只读内存文件系统ROMFS镜像文件,然后,直接将ROMFS镜像文件的初始物理地址所对应的虚拟地址作为块设备的起始地址,使得将前述ROMFS镜像文件拷贝至块设备的拷贝操作在该初始物理地址上执行,实现对块设备的格式化。之后,内核便可以通过将块设备中ROMFS镜像文件挂载为根文件系统,以实现内核的启动。通过使用ROMFS镜像文件作为根文件系统并且减少启动过程中的拷贝操作,使得在只读且需要快速启动的应用场景中,缩短内核的启动时间,实现内核的快速启动。
Need to check novelty before this filing date? Find Prior Art