linxml2編譯
❶ 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