Updated:
2017-02-08: 补充download_files.sh脚本文件内容。
参考:
https://github.com/Linaro/documentation/blob/master/Reference-Platform/EECommon/Install-CentOS-7.md
https://github.com/Linaro/documentation/blob/master/Reference-Platform/EECommon/Install-Debian-Jessie.md
PXE服务器环境
BoardServer1 / BoardServer2: 192.168.1.107
TFTP根目录: /home/hisilicon/ftp
下载RP相应版本的映像文件
使用download.sh脚本进行文件下载
download.sh脚本内容如下(以latest版本为例):
具体的RP版本需要修改UEFI_VERSION、CENTOS_INSTALLER_VERSION、DEBIAN_INSTALLER_VERSION变量为相应的版本号。
上述download.sh脚本执行完成之后,在~/tftp/erp目录下可以看到以下目录文件:
进入相应目录,检查下载文件的完整性,例如检查centos-installer相关文件的完整性:
(网络安装部署不需要iso文件,因此文件下载时跳过以节省下载时间)
download_files.sh 脚本内容如下:
|
|
更新grubaa64.efi文件 (Centos)
|
|
更新UEFI
以D03为例(D05类似),文件准备:
重启单板至UEFI菜单,选择”Boot Manager” -> “Embedded Boot Loader (EBL)”进入”Embedded Boot Loader (EBL)”模式,命令窗口中使用biosupdate命令更新UEFI。
配置grub.cfg
修改~/grub.cfg,按如下参考配置进行修改:
(注:修改jarson为当前用户名,修改latest为具体的版本号)
PXE方式安装系统
- 重启单板至UEFI主菜单,在“Boot Manager”菜单中选择从“EFI Network 2”启动。
- 启动至Grub菜单,选择相应的安装启动项,例如“Install CentOS Linux 7 D03 –network”。
- 系统将实现自动安装。
系统初始用户名 / 密码:
Centos: root / injab0xn
Centos: linaro / linaro
Debian: root / root
Debian: linaro / linaro