导航菜单
首页 >  RK3399快速熟悉基于AIO  > PVE内核在ARM64下安装及编译

PVE内核在ARM64下安装及编译

以下命令在Linux root下进行

1.apt-getinstall gnupg2 wget –y

2.加入Proxmox 软件包源

wget -qO -http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg | sudo apt-key add echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription " | sudotee /etc/apt/sources.list.d/buster-pvetest.list

3.apt-getupdate

4.安装编译环境

apt-get install build-essentialasciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzipzlib1g-dev libc6-dev subversion flex uglifyjs p7zip p7zip-full msmtp libssl-devtexinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automakelibtool autopoint device-tree-compiler screen

apt-get install python3-dev  python3-sphinx lintian bc bison libdw-devlibiberty-dev libnuma-dev libslang2-dev lz4 rsync  libpve-common-perl dh-make docbook5-xml

若是出现libncurses5-dev安装依赖错误,用aptitude安装即可解决

5. Git pve内核源码

git clonegit://git.proxmox.com/git/pve-kernel.git

6. 修改Makefile文件

23行内容 KERNEL_ARCH=x86和之后 修改成如下图所示:

7.  在pve-kernel/debian/rules.d文件目录下生成文件arm64.mk,内容如下

KERNEL_BUILD_ARCH       = arm64

KERNEL_HEADER_ARCH   = $(KERNEL_BUILD_ARCH)

KERNEL_BUILD_IMAGE     = Image

KERNEL_IMAGE_PATH =arch/$(KERNEL_BUILD_ARCH)/boot/${KERNEL_BUILD_IMAGE}

KERNEL_INSTALL_FILE       = vmlinuz

8.  修改pve-kernel/debian/rules文件,将rysnc中的tools修改成source,修改结果如下图所示

9.  Make all

10.最终编译成功后会生成四个文件包,使用dpkg -i命令安装四个deb包,即可完成pve内核的安装。

linux-tools-{KERNEL_VER}_arm64.deb

linux-tools-5.0-dbgsym_{KERNEL_VER}_arm64.deb

pve-headers-{KERNEL_VER}_arm64.deb

pve-kernel-{KERNEL_VER}_arm64.deb

相关推荐: