这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
|
jaysnote:ramfs_rootfs_initramfs [2018/11/19 15:18] jaylee |
jaysnote:ramfs_rootfs_initramfs [2021/06/22 23:14] (当前版本) |
||
|---|---|---|---|
| 行 125: | 行 125: | ||
| ## Contents of initramfs: | ## Contents of initramfs: | ||
| - | An initramfs archive is a complete self-contained root filesystem for Linux. | + | An initramfs archive is a complete self-contained root filesystem for Linux.If you don't already understand what shared libraries, devices, and path you need to get a minimal root filesystem up and running, here are som references: |
| - | If you don't already understand what shared libraries, devices, and path ou need to get a minimal root filesystem up and running, here are som eferences: | + | |
| * http:// | * http:// | ||
| 行 134: | 行 133: | ||
| * http:// | * http:// | ||
| - | The " | + | The " |
| - | I use uClibc (http:// | + | I use uClibc (http:// |
| - | myself. | + | |
| - | In theory you could use glibc, but that's not well suited for small embedde | + | In theory you could use glibc, but that's not well suited for small embedde |
| - | A good first step is to get initramfs to run a statically linked "hello world" | + | A good first step is to get initramfs to run a statically linked "hello world" program as init, and test it under an emulator like qemu (www.qemu.org) |
| - | program as init, and test it under an emulator like qemu (www.qemu.org) | + | |
| ```c | ```c | ||
| 行 162: | 行 159: | ||
| ``` | ``` | ||
| - | When debugging a normal root filesystem, it's nice to be able to boot with " | + | When debugging a normal root filesystem, it's nice to be able to boot with " |
| ## Why cpio rather than tar? | ## Why cpio rather than tar? | ||