1. 简介
The Neoverse N1 System Development Platform (N1SDP) is an enterprise class reference board based on the Neoverse N1 core.
这篇文章将向大家介绍如何在N1SDP上安装发行版ubuntu和centos系统,目前N1SDP仅支持kernel 4.18或以上版本。
目前的方法是在现有的arm服务器的ubuntu或centos系统盘的基础上,使用4.18或以上版本的kernel源码包,打上N1SDP的补丁包,重新编译安装,然后将此系统盘直接安装在N1SDP上,启动系统。
2. 下载官方kernel源码包及补丁包
首先,从如下链接下载N1SDP的补丁包
https://git.linaro.org/landin...
- 0001-N1SDP-PCIe-Enablement-Quirks-for-N1SDP-PCie-controll.patch
对于ubuntu系统(我们用kernel 5.2.8举例):
从如下Linux kernel源码官网下载linux-5.2.8.tar.gz
https://www.kernel.org/pub/li...
从如下ubuntu kernel网站下载ubuntu补丁包
https://kernel.ubuntu.com/~ke...
Ubuntu补丁:
- 0001-base-packaging.patch
- 0002-UBUNTU-SAUCE-kbuild-add-fcf-protection-none-when-usi.patch
- 0003-UBUNTU-SAUCE-add-vmlinux.strip-to-BOOT_TARGETS1-on-p.patch
- 0004-UBUNTU-SAUCE-tools-hv-lsvmbus-add-manual-page.patch
- 0005-debian-changelog.patch
- 0006-configs-based-on-Ubuntu-5.2.0-11.12.patch
centos请参考ubuntu步骤。
3. 内核打补丁,编译
对于ubuntu系统:
# tar zxvf linux-5.2.8.tar.gz
# cd linux-5.2.8
# patch -p1 < ../0001-base-packaging.patch
# patch -p1 < ../0002-UBUNTU-SAUCE-kbuild-add-fcf-protection-none-when-usi.patch
# patch -p1 < ../0003-UBUNTU-SAUCE-add-vmlinux.strip-to-BOOT_TARGETS1-on-p.patch
# patch -p1 < ../0004-UBUNTU-SAUCE-tools-hv-lsvmbus-add-manual-page.patch
# patch -p1 < ../0005-debian-changelog.patch
# patch -p1 < ../0006-configs-based-on-Ubuntu-5.2.0-11.12.patch
# patch -p1 < ../0001-N1SDP-PCIe-Enablement-Quirks-for-N1SDP-PCie-controll.patch
# export ARCH=arm64
# cat debian.master/config/config.common.ubuntu debian.master/config/arm64/config.common.arm64 > .config
# make oldconfig
(Notes: set y for the newly added pcie N1SDP option.)
# sed -ie 's/CONFIG_DEBUG_INFO=y/# CONFIG_DEBUG_INFO is not set/' .config
# make -j 32
centos系统请参考ubuntu步骤。
4. 安装内核
# make modules_install
# make install
5. 更新grub配置
# grub-mkconfig -o /boot/grub/grub.cfg
6. 验证
重启系统从新内核启动,检查内核是否更换成功
# uname -a
# cat /lib/modules/$(uname -r)/build/.config