摘要: # vmlinux 的链接 ## 0. 脚本 ```shell scripts/link_vmlinux.sh # final build of init/ ${MAKE} -f "${srctree}/scripts/Makefile.build" obj=init need-builtin=1 阅读全文
posted @ 2023-08-27 15:22 chumoath 阅读(19) 评论(0) 推荐(0)
摘要: # objcopy ```shell -S --strip-all Do not copy relocation and symbol information from the source file. Also deletes debug sections. # 去除某个段: -R .commen 阅读全文
posted @ 2023-08-27 02:30 chumoath 阅读(24) 评论(0) 推荐(0)
摘要: # 生成 compile_commands.json ```shell # 否则会报 wrapper: failed with: gRPC call failed: Socket closed export no_proxy=localhost bear -- make ARCH=arm CROSS 阅读全文
posted @ 2023-08-25 01:48 chumoath 阅读(358) 评论(0) 推荐(0)
摘要: # bear 报错 ```shell # 初次安装bear时由于提前使用了 $ export https_proxy=http://127.0.0.1:8889 命令,导致了该问题。使用如下命令可以解决: export no_proxy=localhost ``` 阅读全文
posted @ 2023-08-25 01:42 chumoath 阅读(75) 评论(0) 推荐(0)
摘要: # 前 ```shell # 文件数 find . -type f | wc -l 77922 # 目录数 find . -type d | wc -l 5001 # 行数 find . -type f -name "*.[ch]" | xargs wc -l | grep total 728628 阅读全文
posted @ 2023-08-25 01:29 chumoath 阅读(13) 评论(0) 推荐(0)
摘要: # 命令 ```shell ctrl + a + x => 退出 qemu ctrl + a + c => 进入 monitor ``` # monitor 命令 ```shell info roms => 可查看加载位置 => -bios 选项,会放在 NorFlash 中,-kernel 会放在 阅读全文
posted @ 2023-08-25 00:41 chumoath 阅读(1194) 评论(0) 推荐(0)
摘要: # 网络 ```shell Net: smc911x: Invalid chip endian 0x00000000 No ethernet found. # 解决办法 -net nic -net tap,ifname=tap0,script=0 ``` ```shell qemu-system-a 阅读全文
posted @ 2023-08-25 00:39 chumoath 阅读(122) 评论(0) 推荐(0)
摘要: # 下载 https://sourceforge.net/projects/stripcc/files/ # 编译 make && make install # 使用 ```shell # 进入源码目录 time make # 去掉预编译宏 time stripcc -c "make" ``` # 阅读全文
posted @ 2023-08-25 00:36 chumoath 阅读(26) 评论(0) 推荐(0)
摘要: ```shell # 打印 pretty 结构体 # 通过 help print 查看到 set print pretty on # 多线程/多进程 # 单线程调试 set scheduler-locking on ``` 阅读全文
posted @ 2023-08-24 23:06 chumoath 阅读(6) 评论(0) 推荐(0)
摘要: ```shell # -I {} 表示将 每行输入视为一个参数 qemu-system-aarch64 -M help | awk '{ print $1 }' | xargs -I {} sh -c "qemu-system-aarch64 -M {} -cpu help" | grep a55 阅读全文
posted @ 2023-08-18 00:23 chumoath 阅读(5) 评论(0) 推荐(0)