You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
四、x86 架构测试方案
4.1 测试原理
x86 架构开发板的引导程序(BIOS)各厂家通常差别较大,但是,他们一般都支持 PXE 功能。我们通过 PXE 来实现测试固件的加载。
PXE 规范:描述了一个标准化的 客户端 ↔ 服务器 环境,通信过程使用的是 UDP/IP、DHCP、TFTP 等多个标准互联网协议。
4.2 PXE 服务端架构
4.3 实施步骤
步骤 1:安装 DHCP 服务器
选项 A:使用 dnsmasq(推荐)
配置文件内容:
选项 B:使用 ISC DHCP Server
配置文件内容:
步骤 2:安装 TFTP 服务器
配置文件内容:
创建 TFTP 根目录:
步骤 3:准备启动镜像
下载 PXELINUX:
准备内核和 initrd:
创建 PXE 配置:
配置文件内容:
步骤 4:配置网络
路由器配置:
VLAN 配置(可选):
# 创建 VLAN sudo vconfig add eth0 100 sudo ifconfig eth0.100 192.168.1.10 up步骤 5:启动服务
步骤 6:测试验证
使用 QEMU 测试:
使用真实硬件测试:
4.4 常见问题
问题 1:PXE 启动失败,提示 "TFTP open timeout"
sudo systemctl status tftpd-hpasudo ufw allow 69/udpls -la /var/lib/tftpboot/问题 2:DHCP 不分配 IP
sudo systemctl status dnsmasqping 192.168.1.10sudo journalctl -u dnsmasq -f问题 3:不同 BIOS 的兼容性问题
4.5 自动化脚本示例
Beta Was this translation helpful? Give feedback.
All reactions