<?xml version='1.0' encoding='UTF-8'?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0"><channel><title>huangzy</title><link>https://huangzy-hub.github.io</link><description>hello</description><copyright>huangzy</copyright><docs>http://www.rssboard.org/rss-specification</docs><generator>python-feedgen</generator><image><url>https://avatars.githubusercontent.com/u/195115766?v=4</url><title>avatar</title><link>https://huangzy-hub.github.io</link></image><lastBuildDate>Sun, 28 Dec 2025 10:02:20 +0000</lastBuildDate><managingEditor>huangzy</managingEditor><ttl>60</ttl><webMaster>huangzy</webMaster><item><title>第一个驱动程序</title><link>https://huangzy-hub.github.io/post/di-yi-ge-qu-dong-cheng-xu.html</link><description># 第一个驱动程序
## 一、

```
linux-4.9/
├── arch/        # 架构专属代码（核心：arm/32位ARM、arm64/64位ARM64）
├── include/     # 全局头文件目录（驱动编译核心依赖，含linux/、asm/、asm-generic/）
│   ├── linux/   # 内核通用头文件（如module.h、init.h、types.h，驱动必包含）
│   ├── asm/     # 架构专属头文件（软链接，32位指向asm-arm，64位指向asm-arm64）
│   └── asm-generic/ # 跨架构通用头文件（兜底兼容，解决架构头文件缺失）
├── kernel/      # 内核核心功能代码（进程、调度等，驱动编译间接依赖）
└── scripts/     # 编译脚本、工具链（驱动编译的Makefile依赖此目录脚本）
```

## 三、Linux驱动核心框架（字符设备驱动，全文实操的驱动类型）
全文实现的是 **Linux最基础、最通用的字符设备驱动**，是嵌入式驱动开发入门核心框架，完整分层+核心要素如下：
### 1. 驱动整体分层（用户层 ↔ 内核层）
```
应用程序（APP） → 系统调用 → Linux内核 → 字符设备驱动 → 硬件
```
- 应用层：通过 `open/read/write/ioctl` 等标准接口操作驱动，无需关心硬件细节；
- 内核层：驱动作为内核模块，注册字符设备节点，承接应用层调用，实现硬件操作逻辑；
- 核心特点：**驱动与应用解耦、驱动与内核版本绑定、以模块（.ko）形式动态加载到内核**。</description><guid isPermaLink="true">https://huangzy-hub.github.io/post/di-yi-ge-qu-dong-cheng-xu.html</guid><pubDate>Sun, 28 Dec 2025 09:59:55 +0000</pubDate></item><item><title>Liunx共享文件夹设置&amp;交叉编译器安装</title><link>https://huangzy-hub.github.io/post/Liunx-gong-xiang-wen-jian-jia-she-zhi-%26-jiao-cha-bian-yi-qi-an-zhuang.html</link><description># 一、主机 ↔ 虚拟机 文本复制（剪贴板共享）相关命令与操作
## 1. 检查/安装VMware剪贴板共享工具
```bash
# 检查open-vm-tools是否已安装
sudo apt list --installed | grep open-vm-tools

# 未安装则执行安装（Ubuntu系统）
sudo apt update &amp;&amp; sudo apt install open-vm-tools open-vm-tools-desktop

# 重启工具服务（修复剪贴板失效）
sudo systemctl restart open-vm-tools

# 手动加载剪贴板模块（可选应急方案）
sudo vmware-user-suid-wrapper
```

## 2. 验证剪贴板功能
```bash
# 虚拟机内复制文本（示例：复制当前目录路径）
pwd | xclip -sel clip  # 需先安装xclip：sudo apt install xclip
# 主机粘贴即可；反之主机复制，虚拟机内执行以下命令粘贴
xclip -o sel clip
```

# 二、文件挂载相关命令（主机-虚拟机、开发板-虚拟机）
## （一）主机 ↔ 虚拟机 共享文件夹挂载（VMware共享文件夹）
```bash
# 虚拟机端检查共享文件夹是否挂载
vmware-hgfsclient

# 手动挂载共享文件夹
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
```
[参考视频地址](https://www.bilibili.com/video/BV1HwuczVEG4/?spm_id_from=333.337.search-card.all.click&amp;vd_source=3881e95a6111e5a025dbc0531ef2a219)


## （二）开发板 ↔ 虚拟机 NFS共享挂载（核心命令）
### 虚拟机端（NFS服务器配置）
```bash
# 1. 安装NFS服务
sudo apt update &amp;&amp; sudo apt install nfs-kernel-server

# 2. 创建共享目录
mkdir -p /mnt/hgfs/share  # 或 ~/nfs_share
sudo chmod -R 777 /mnt/hgfs/share

# 3. 配置NFS共享权限
sudo nano /etc/exports
# 在文件末尾添加（允许开发板网段访问，添加fsid=0适配NFSv4）
/mnt/hgfs/share 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash,fsid=0)

# 4. 重新加载NFS配置并重启服务
sudo exportfs -r
sudo systemctl restart nfs-kernel-server
sudo systemctl enable nfs-kernel-server  # 设置NFS服务开机自启

# 5. 验证NFS共享目录列表
showmount -e localhost
```

### 开发板端（NFS客户端挂载）
```bash
# 1. 创建本地挂载目录
mkdir -p /mnt/host_share

# 2. 手动挂载虚拟机NFS共享目录
mount -t nfs 192.168.1.221:/mnt/hgfs/share /mnt/host_share

# 3. 验证挂载是否成功
df -h | grep /mnt/host_share  # 查看挂载状态
ls /mnt/host_share  # 查看共享文件

# 4. 配置开机自动挂载（永久生效）
sudo nano /etc/fstab
# 在文件末尾添加
192.168.1.221:/mnt/hgfs/share /mnt/host_share nfs defaults 0 0

# 5. 验证自动挂载（重启后执行）
df -h | grep /mnt/host_share


# 6. open-vm-tools已运行，但可能缺少桌面环境依赖，执行以下命令安装完整组件：
bash
运行
sudo apt install open-vm-tools-desktop
```

### 总结
1.  主机与虚拟机文本复制核心依赖`open-vm-tools`，需确保服务正常运行+VMware剪贴板勾选；
2.  主机与虚拟机文件共享用VMware自带共享文件夹（挂载点`/mnt/hgfs`），开发板与虚拟机用NFS（虚拟机为服务端、开发板为客户端）；
3.  所有挂载需先创建本地目录，NFS需配置`/etc/exports`并重启服务，开机自动挂载需配置`/etc/fstab`；
4.  Ubuntu 24.04需替换过时软件包名（如`libbsd1.2-dev`→`libbsd-dev`、`openjdk-8-jdk`→`openjdk-17-jdk`），并启用32位架构




# 三、交叉编译器安装


搞了一个下午终于搞定了，不知道为什么虚拟机又进不了桌面，然后昨天设置好的共享目录为什么又突然不行了，差点给我整破防了。</description><guid isPermaLink="true">https://huangzy-hub.github.io/post/Liunx-gong-xiang-wen-jian-jia-she-zhi-%26-jiao-cha-bian-yi-qi-an-zhuang.html</guid><pubDate>Sat, 27 Dec 2025 14:24:22 +0000</pubDate></item><item><title>A133固件烧录&amp;嵌入式linux应用开发笔记</title><link>https://huangzy-hub.github.io/post/A133-gu-jian-shao-lu-%26-qian-ru-shi-linux-ying-yong-kai-fa-bi-ji.html</link><description>很久之前买的k5c全志A133今天终于成功烧录固件了，记录一下第一次用嵌入式liunx开发板刷机。</description><guid isPermaLink="true">https://huangzy-hub.github.io/post/A133-gu-jian-shao-lu-%26-qian-ru-shi-linux-ying-yong-kai-fa-bi-ji.html</guid><pubDate>Sat, 27 Dec 2025 14:23:46 +0000</pubDate></item><item><title>ida pro使用方法&amp;x64dbg使用方法&amp;汇编编译方法</title><link>https://huangzy-hub.github.io/post/ida%20pro-shi-yong-fang-fa-%26x64dbg-shi-yong-fang-fa-%26-hui-bian-bian-yi-fang-fa.html</link><description>## 一、笔记：ida pro使用

### 1. 查找字符串
- shift+Fn+f12。</description><guid isPermaLink="true">https://huangzy-hub.github.io/post/ida%20pro-shi-yong-fang-fa-%26x64dbg-shi-yong-fang-fa-%26-hui-bian-bian-yi-fang-fa.html</guid><pubDate>Sat, 27 Dec 2025 14:23:10 +0000</pubDate></item><item><title>汇编笔记基础（部分)</title><link>https://huangzy-hub.github.io/post/hui-bian-bi-ji-ji-chu-%EF%BC%88-bu-fen-%29.html</link><description>## 一、x86基础寄存器（逆向工程核心基础）
x86架构的寄存器是指令操作的核心载体，逆向中需精准掌握寄存器的用途、分类及数据流向，32位x86核心寄存器分为以下几类：

### 1. 通用寄存器（数据操作核心）
通用寄存器用于存储数据、地址、参数等，32位寄存器可拆分为16位/8位子寄存器（如EAX→AX→AH/AL），逆向中需关注子寄存器的操作（如单字节/双字节数据处理）。</description><guid isPermaLink="true">https://huangzy-hub.github.io/post/hui-bian-bi-ji-ji-chu-%EF%BC%88-bu-fen-%29.html</guid><pubDate>Sat, 27 Dec 2025 14:21:54 +0000</pubDate></item><item><title>CTF Pwn入门：checkin题解（栈溢出+ROP链构造详解）</title><link>https://huangzy-hub.github.io/post/CTF%20Pwn-ru-men-%EF%BC%9Acheckin-ti-jie-%EF%BC%88-zhan-yi-chu-%2BROP-lian-gou-zao-xiang-jie-%EF%BC%89.html</link><description>## 引言

Pwn题是CTF中的经典题型，核心考察二进制漏洞利用能力。</description><guid isPermaLink="true">https://huangzy-hub.github.io/post/CTF%20Pwn-ru-men-%EF%BC%9Acheckin-ti-jie-%EF%BC%88-zhan-yi-chu-%2BROP-lian-gou-zao-xiang-jie-%EF%BC%89.html</guid><pubDate>Sat, 27 Dec 2025 14:20:45 +0000</pubDate></item><item><title>逆向RC4加密算法题目</title><link>https://huangzy-hub.github.io/post/ni-xiang-RC4-jia-mi-suan-fa-ti-mu.html</link><description>## 引言

RC4（Rivest Cipher 4）是一种经典的流密码加密算法，因其实现简单、运行高效而被广泛应用于早期的网络安全场景中。</description><guid isPermaLink="true">https://huangzy-hub.github.io/post/ni-xiang-RC4-jia-mi-suan-fa-ti-mu.html</guid><pubDate>Sat, 27 Dec 2025 14:20:11 +0000</pubDate></item><item><title>CTF逆向RC4题目：勒索病毒题解（异或解密+RC4算法实战）</title><link>https://huangzy-hub.github.io/post/CTF-ni-xiang-RC4-ti-mu-%EF%BC%9A-le-suo-bing-du-ti-jie-%EF%BC%88-yi-huo-jie-mi-%2BRC4-suan-fa-shi-zhan-%EF%BC%89.html</link><description>## 引言

CTF逆向题目中，RC4加密算法常与异或、文件操作等场景结合，本题以“勒索病毒”为载体，将密钥验证与RC4加密隐藏在程序逻辑中。</description><guid isPermaLink="true">https://huangzy-hub.github.io/post/CTF-ni-xiang-RC4-ti-mu-%EF%BC%9A-le-suo-bing-du-ti-jie-%EF%BC%88-yi-huo-jie-mi-%2BRC4-suan-fa-shi-zhan-%EF%BC%89.html</guid><pubDate>Sat, 27 Dec 2025 14:12:54 +0000</pubDate></item><item><title>图片使用示例：如何在博客中插入图片</title><link>https://huangzy-hub.github.io/post/tu-pian-shi-yong-shi-li-%EF%BC%9A-ru-he-zai-bo-ke-zhong-cha-ru-tu-pian.html</link><description>## 引言

在博客文章中插入图片是非常重要的功能，它可以让你的内容更加生动和直观。</description><guid isPermaLink="true">https://huangzy-hub.github.io/post/tu-pian-shi-yong-shi-li-%EF%BC%9A-ru-he-zai-bo-ke-zhong-cha-ru-tu-pian.html</guid><pubDate>Sat, 27 Dec 2025 13:46:50 +0000</pubDate></item><item><title>Git + GitHub 实战指南：从仓库搭建到代码同步</title><link>https://huangzy-hub.github.io/post/Git%20%2B%20GitHub%20-shi-zhan-zhi-nan-%EF%BC%9A-cong-cang-ku-da-jian-dao-dai-ma-tong-bu.html</link><description>hello。</description><guid isPermaLink="true">https://huangzy-hub.github.io/post/Git%20%2B%20GitHub%20-shi-zhan-zhi-nan-%EF%BC%9A-cong-cang-ku-da-jian-dao-dai-ma-tong-bu.html</guid><pubDate>Sat, 27 Dec 2025 11:27:47 +0000</pubDate></item></channel></rss>