Skip to content

Instantly share code, notes, and snippets.

@cyring
Created July 16, 2023 11:14
Show Gist options
  • Save cyring/51a43d71e1dc0ec736c0055b08f438ba to your computer and use it in GitHub Desktop.
Save cyring/51a43d71e1dc0ec736c0055b08f438ba to your computer and use it in GitHub Desktop.
linux-orangepi
linux-orangepi
@cyring
Copy link
Author

cyring commented Nov 10, 2023

cd
git clone -b orange-pi-5.10-rk35xx git@github.com:orangepi-xunlong/linux-orangepi.git

cd /tmp
wget https://raw.githubusercontent.com/armbian/build/master/patch/misc/headers-debian-byteshift.patch

cd ; cd linux-orangepi
make -j8 bindeb-pkg

cd ; ls *.deb
linux-image-_5.10.160+-3_arm64.deb  linux-headers-_5.10.160+-3_arm64.deb
linux-dtb-_5.10.160+-3_arm64.deb
sudo dpkg -i linux-image-_5.10.160+-3_arm64.deb linux-headers-_5.10.160+-3_arm64.deb linux-dtb-_5.10.160+-3_arm64.deb
Preparing to unpack linux-image-_5.10.160+-3_arm64.deb ...
Unpacking linux-image- (5.10.160+-3) over (5.10.110+-2) ...
Preparing to unpack linux-headers-_5.10.160+-3_arm64.deb ...
Unpacking linux-headers- (5.10.160+-3) over (5.10.110+-2) ...
Setting up linux-image- (5.10.160+-3) ...
dkms: running auto installation service for kernel 5.10.160+.
dkms: autoinstall for kernel: 5.10.160+.
update-initramfs: Generating /boot/initrd.img-5.10.160+
update-initramfs: Converting to u-boot format
Remove unused generated file: /boot/initrd.img-5.10.110+
Free space after deleting the package linux-image- in /boot: 942.1M
Setting up linux-headers- (5.10.160+-3) ...
Compiling headers - please wait ...
Preparing to unpack linux-dtb-_5.10.160+-3_arm64.deb ...
Unpacking linux-dtb- (5.10.160+-3) over (5.10.110+-2) ...
Setting up linux-dtb- (5.10.160+-3) ...
  • Reboot
sudo /sbin/shutdown -r now
  • Cleaning-up
sudo dpkg -l |grep 5.10.110
ii  linux-dtb-legacy-rockchip-rk3588   1.0.6                          arm64        Linux DTB, version 5.10.110-rockchip-rk3588
ii  linux-image-legacy-rockchip-rk3588 1.0.6                          arm64        Linux kernel, version 5.10.110-rockchip-rk3588
sudo dpkg -P linux-dtb-legacy-rockchip-rk3588 linux-image-legacy-rockchip-rk3588
  • Loader
sudo nano /boot/orangepiEnv.txt
verbosity=1
bootlogo=false
extraargs=cma=128M
overlay_prefix=rk3588
fdtfile=rockchip/rk3588-orangepi-5-plus.dtb
rootdev=UUID=xxxx-xxxx-xxxx-xxxx-xxxx
rootfstype=ext4
docker_optimizations=off
verbosity=3
extraargs=nokaslr audit=0 nowatchdog efi=noruntime disable_ipv6=1 carrier_timeout=1 netpoll.carrier_timeout=1
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment