|
| 1 | +# Proxmox Port Kernel |
| 2 | + |
| 3 | +I forked a kernel project: |
| 4 | + |
| 5 | + `https://github.com/jiangcuo/pve-port-kernel.git` |
| 6 | + |
| 7 | +The pre-build kernel file of this project is stored in the repo: |
| 8 | + |
| 9 | +`deb https://global.mirrors.apqa.cn/proxmox/debian/kernel sid port` |
| 10 | + |
| 11 | +Currently, there are two architectures: LoongArch64 and ARM64. |
| 12 | + |
| 13 | +The config in the kernel selects all arm64 devices and can theoretically be used for all. |
| 14 | + |
| 15 | +## 1. How to install the kernel |
| 16 | + |
| 17 | +### 1.1 Use apt |
| 18 | + |
| 19 | +```bash |
| 20 | +#add repo |
| 21 | +$ echo "deb https://global.mirrors.apqa.cn/proxmox/debian/kernel sid port" >> /etc/apt/sources.list.d/pveport.list |
| 22 | + |
| 23 | +#fresh |
| 24 | +$ apt update |
| 25 | + |
| 26 | +#Lists the available kernels |
| 27 | +$ apt search pve-kernel |
| 28 | + |
| 29 | +#install latest kernel by metapackage |
| 30 | +$ apt install pve-kernel-6.1-generic |
| 31 | +``` |
| 32 | + |
| 33 | +### 1.2 Use dpkg |
| 34 | + |
| 35 | +download kernel package form project releases or repo, use |
| 36 | +`dpkg -i pve-kernel-*` to install. |
| 37 | + |
| 38 | +### 1.3 Boot from new kernel |
| 39 | + |
| 40 | +A PC booted with should automatically set the latest kernel as the first boot kernel. You just need reboot to apply. |
| 41 | + |
| 42 | +If you encounter a failure with a new kernel ,reboot to grub, select Advanced, and in the next options, select the previous kernel. |
| 43 | + |
| 44 | + |
| 45 | +### 1.3 uboot devices |
| 46 | + |
| 47 | +The uboot device will read the `/{boot_partition}/extlinux/extlinux.conf` file on the boot. |
| 48 | + |
| 49 | +```bash |
| 50 | +# if your boot_partition is /dev/mmcblk0p3 |
| 51 | +$ mount /dev/mmcblk0p3 /opt |
| 52 | +# if pve kernel vmlinuz is vmlinuz-6.1.60-generic |
| 53 | +$ cp /boot/vmlinuz-6.1.60-generic /opt |
| 54 | +$ sync |
| 55 | +``` |
| 56 | + |
| 57 | + |
| 58 | +You can edit your extlinux.conf. |
| 59 | +```bash |
| 60 | +$ nano /opt/extlinux/extlinux.conf |
| 61 | +``` |
| 62 | +``` |
| 63 | +default l0 |
| 64 | +menu title QuartzPro64 Boot Menu |
| 65 | +prompt 0 |
| 66 | +timeout 50 |
| 67 | +
|
| 68 | +# create a new item with new kernel. |
| 69 | +label l0 |
| 70 | +menu label Boot Linux Kernel SDMMC |
| 71 | +linux /vmlinuz-6.1.60-generic |
| 72 | +fdt /rk3588-quartzpro64.dtb |
| 73 | +append earlycon=uart8250,mmio32,0xfeb50000 console=ttyS2,1500000n8 root=/dev/mmcblk1p5 rw rootwait |
| 74 | +
|
| 75 | +# backup old boot item |
| 76 | +label 20 |
| 77 | +menu label Boot Linux Kernel SDMMC Backup |
| 78 | +linux /Image |
| 79 | +fdt /rk3588-quartzpro64.dtb |
| 80 | +append earlycon=uart8250,mmio32,0xfeb50000 console=ttyS2,1500000n8 root=/dev/mmcblk1p5 rw rootwait |
| 81 | +``` |
| 82 | + |
| 83 | +The kernel package has compiled the DTB file, if you need it, you can go to the "/boot/dtbs/{kernel_version}/" folder. |
| 84 | + |
| 85 | +!!! NOTE |
| 86 | + |
| 87 | +*** Make sure you can access your device using the serial port. If your changes are wrong, you may not be able to boot the system, so you have a serial port that you can debug again. *** |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | +## 2. Manual build |
| 92 | + |
| 93 | +See https://github.com/jiangcuo/pve-port-kernel readme.md |
| 94 | + |
| 95 | + |
0 commit comments