上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 70 下一页
摘要: 1 partition table 这里的分析以经典的MBR为例。 在MBR里面有partition table,每一项对应一个逻辑的块设备,partion table中的每一项是16个字节。 第一个字节:标志该分区是不是active、是不是bootable。 第二到第四个字节:该partition 阅读全文
posted @ 2017-12-31 21:45 PhoenixTree(梧桐树) 阅读(529) 评论(0) 推荐(0)
摘要: 1 命令格式 switch_root newroot init 跳转到另外一个文件系统,并且把newroot作为新的mount tree,并且执行init程序。 2 特殊要求 newroot必须是一个文件系统的挂载点,也就是说,必须是该文件系统当初挂载的那个目录,子目录是不行的。 例子: mount 阅读全文
posted @ 2017-12-31 11:09 PhoenixTree(梧桐树) 阅读(2518) 评论(0) 推荐(1)
该文被密码保护。 阅读全文
posted @ 2017-12-29 20:10 PhoenixTree(梧桐树) 阅读(8) 评论(0) 推荐(0)
摘要: 1 原因 “Note that other tutorials also add a "-S" parameter so QEMU starts the kernel stopped, however this is ommitted deliberately. The "-S" parameter 阅读全文
posted @ 2017-12-29 20:01 PhoenixTree(梧桐树) 阅读(2535) 评论(0) 推荐(0)
摘要: ramfs, rootfs and initramfs October 17, 2005 Rob Landley <rob@landley.net> What is ramfs? Ramfs is a very simple filesystem that exports Linux's disk 阅读全文
posted @ 2017-12-29 15:24 PhoenixTree(梧桐树) 阅读(629) 评论(0) 推荐(0)
摘要: 1 制作最简单的initramfs 1.1 创建init #include <stdio.h> int main() { printf ("\n"); printf ("hello world from %s!\n", __FILE__); while (1) {} return 0; } gcc 阅读全文
posted @ 2017-12-29 14:24 PhoenixTree(梧桐树) 阅读(498) 评论(0) 推荐(0)
摘要: 1 gzip gzip -<压缩率> 压缩率用数字(1-9)来表示,越大,则压缩率越大。 2 bz2 解压bz2 bzip2 -d filename.bz2 阅读全文
posted @ 2017-12-29 14:19 PhoenixTree(梧桐树) 阅读(320) 评论(0) 推荐(0)
摘要: 1 find命令的标准格式 find path [expression] find 递归的遍历path目录树下的每个文件,然后为每个文件执行expression操作。 比如find . -print0 这个就是遍历当前目录下的所有的文件,在每个文件的路径名后面加上“\0”,也就是形成标准的字符串,然 阅读全文
posted @ 2017-12-29 14:03 PhoenixTree(梧桐树) 阅读(320) 评论(0) 推荐(0)
摘要: 1 将busybox设置为静态链接,放在文件系统中使用 make menuconfig的时候,Busybox Settings --> Build Options --> Build Busybox as a static binary (no shared libs) 阅读全文
posted @ 2017-12-29 09:58 PhoenixTree(梧桐树) 阅读(484) 评论(0) 推荐(0)
摘要: 1 获取qemu启动linux kernel的log qemu-system-x86_64 -nographic -kernel xxx -initrd xxx -append "console=ttyS0" 2 qemu可以进行gdb远程调试的原理 qemu里面支持gdb server,所以,可以 阅读全文
posted @ 2017-12-29 09:38 PhoenixTree(梧桐树) 阅读(185) 评论(0) 推荐(0)
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 70 下一页