自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 资源 (5)
  • 收藏
  • 关注

原创 Android compile_command.json

Compdb (compile_commands.json) GeneratorSoong can generate compdb files. This is intended for use with editing tools such as YouCompleteMe and other libclang based completers.compdb file generation is enabled via environment variable:$ export SOONG_GEN_CO

2023-07-19 10:04:51 617

原创 uboot脚本启动

uboot 脚本启动

2022-10-10 11:19:57 865

原创 vscode+clangd解析内核

一、配置{"clangd.path": "/home/xxx/.local/clangd_12.0.1/bin/clangd","clangd.arguments": ["--background-index","--header-insertion=never","--limit-results=0","--compile-commands-dir=${workspaceFolder}/out","--completion-style=detailed","-log=i

2022-05-23 14:10:18 2350

原创 qemu-system-aarch64 virt添加sdhci

static void create_sdhci(const VirtMachineState *vms, MemoryRegion *mem){ MachineState *ms = MACHINE(vms); SysBusDevice *busdev; DeviceState *dev; DeviceState *carddev; BlockBackend *blk; DriveInfo *di; hwaddr base = ...

2022-05-11 15:31:15 538

原创 导出进程内核栈dump ps,跟踪僵尸进程

#include <linux/types.h>#include <linux/module.h>#include <linux/debugfs.h>#include <linux/slab.h>#include <linux/sched/debug.h>#include <linux/sched/task.h>#include <linux/sched/signal.h>struct den

2022-04-20 11:03:08 556

原创 LD链接时指定符号的绝对地址

1. 从被调用的固件elf中导出符号地址,保存为symbols.txt,如下格式:PROVIDE(putchar = 0x7d90);PROVIDE(mdelay = 0xfd0);PROVIDE(printf = 0x84b0);PROVIDE(log = 0x7f0);......2.链接时ld命令行加入--just-symbols=symbols.txt...

2021-10-18 17:13:54 755

原创 qemu arm添加QXL显卡

default-configs/arm-softmmu.mak@@ -3,6 +3,7 @@CONFIG_PCI=yCONFIG_PCI_DEVICES=yCONFIG_PCI_TESTDEV=y+CONFIG_QXL=yCONFIG_VGA=yCONFIG_NAND=yCONFIG_ECC=y

2021-04-07 16:28:36 1728

原创 gcc禁止使用指定的寄存器

-ffixed-regTreat the register named reg as a fixed register; generated code should neverrefer to it (except perhaps as a stack pointer, frame pointer or in some otherfixed role).reg must be the name of a register. The register names accepted are machin

2021-03-11 10:10:52 602

原创 查看qemu的外设地址

qemu 模拟的Machine的外设地址需要通过qemu提供的devicetree来查看。1,代码中查看QEMU supports two types of guest image boot forvirt, and the way for the guest code to locate the dtb binary differs:For guests using the Linux kernel boot protocol (this means any non-ELF file pas.

2021-03-09 10:10:32 711

原创 gcc控制对齐的数据访问

-munaligned-access-mno-unaligned-access-mstrict-align-mno-strict-align

2021-03-05 14:04:50 1573

原创 FATAL:kernel too old

buildroot做的镜像init进程起不来,出现kernel too old错误。经查,是glibc的错误log。错误原因,编glibc使用的内核头文件比实际运行的内核版本新,init加载动态库时出现该错误。解决:升级运行时内核或者降低编glibc时内核版本。...

2020-10-21 20:57:20 1895

原创 gdb调试qemu上运行的内核时,出现Cannot access memory at address错误

(gdb) lx-psPython Exception <class 'gdb.MemoryError'> Cannot access memory at address 0xffffffff81c15b98:Error occurred in Python: Cannot access memory at address 0xffffffff81c15b98(gdb)...

2019-07-19 19:19:11 8867

原创 gnome锁屏时屏蔽切换用户按钮

使用如下命令添加gconf配置选项:gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /desktop/gnome/lockdown/disable_user_switching true参考:https://www.suse.c...

2019-06-27 18:26:50 575

转载 How can I autologin to desktop with systemd?

This is described in the Arch Wiki:Create a new service file similar to [email protected] by copying it to /etc/systemd/system/cp /usr/lib/systemd/system/[email protected] /etc/systemd/system/au

2017-07-31 17:48:52 479

转载 Android Loadable Module Signing

点击打开链接Recently, there have been several questions posted to Customer Support (https://www.intrinsyc.com/contact-support/) here at Intrinsyc that asks how one signs a Linux loadable module

2017-02-08 09:56:32 737

原创 Source Insight解析Linux内核的c.tom文件内容

在C:\Documents and Settings\XXXX\My Documents\Source Insight目录下的C.tom文件中增加如下内容(需要不断完善,碰到不能解析的宏时添加进来)。添加后,关闭SourceInsight工程,重新打开,重新同步。共享出来,共同完善!;For Linux Kernel CodeSYSCALL_DEFINE0(name) lo

2015-06-14 00:32:39 5558

原创 搭建qemu windows编译环境

准备使用qemu的vexpress平台调试学习arm linux平台。vexpress是cortex-A9四核结构,支持vexpress平台的qemu要1.0后的版本。windows平台较新的qemu版本比较难找,准备自己下载源代码编译。本文记录环境的搭建过程与qemu的编译。1. 安装MinGWwww.mingw.org下载mingw-get-setup.exe工具,运行,选择安装目录(

2014-01-02 21:36:51 9805 2

原创 为vexpress制作根文件系统

qemu的vexpress支持SD卡,准备以SD卡做为根文件系统启动vexpress。1,准备SD的映像文件使用dd命令制作一个128M的空文件2,将映像文件格式化成ext2文件系统格式3,将格式化好后的映像文件挂载到制定目录下,查看是否格式化成功如果能挂载成功,并且挂载的目录下有lost+found目录,说明文件系统格式化成功。4,下载编译busybox首

2014-01-01 23:06:28 1035

原创 去掉编译内核的优化选项

在使用gdb或者其他工具调试默认优化选项的内核时,内核的反汇编代码与原来的C语言代码对应很乱。如果切换到C语言模式,使用单步调试时会看到执行顺序在C语言源代码里面跳来跳去,甚是紊乱。    这一切都是GCC对代码进行了优化造成的,优化后的代码执行顺序与源代码的顺序就有出入了。GCC优化代码,提高运行效率与代码紧凑度,但对于调试学习内核就不友好了。    通过下面的方法去掉内核编译时

2013-12-31 20:42:02 6185

houdini.7z

Android-X86官方下载: houdini9_y.sfs houdini7_x.sfs houdini7_y.sfs houdini7_z.sfs

2020-07-06

7yuv_2.5_amd64.tar.gz

7yuv linux 2.5版本。安装参考压缩包中的debian/install文件,将相应文件拷贝到对应目录即可。 未破解,每次使用的时候点击一下"Try It"可正常使用。

2019-07-02

Mastering CMake

Mastering CMake,英文扫描版,手动添加书签目录。

2018-09-03

Intel汇编语言程序设计(第四版PDF).part1.rar

Intel汇编语言程序设计,PDF版。太大分两次上传。第一部分

2009-11-01

Intel汇编语言程序设计(第四版PDF).part2.rar

Intel汇编语言程序设计,PDF版。太大分两次上传。第二部分

2009-11-01

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除