【文件属性】:
文件名称:initramfs-image-maker:使用busybox制作initramfs图像的简单脚本
文件大小:489KB
文件格式:ZIP
更新时间:2021-05-18 07:10:44
Shell
initramfs图像制作器
使用busybox制作initramfs图像的简单脚本。
建立Linux映像
获取资源
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
编译Linux
进行默认配置
复制当前配置
cp /boot/config- uname -r * .config
make menuconfig :使.config与上游相遇
或进行默认配置,其中可能没有您当前正在使用的选项。 跑步
make defconfig
更改配置
如果您需要对配置进行任何更改,则可以运行
make menuconfig
构建内核。 从头开始需要1到2分钟。
make -j80
make -j80 modules
make bzImage
创建initramfs
运行> initram
【文件预览】:
initramfs-image-maker-master
----initramfs_make(106B)
----initramfs()
--------init(1KB)
--------bin()
--------etc()
----README.md(990B)