linux-image-legacy-sun50iw9_2.0.8_arm64.deb .
test@test:~/orangepi_build/output/debs/test$ ls
boot etc lib linux-image-legacy-sun50iw9_2.0.8_arm64.deb usr
b. The decompressed file is as follows
test@test:~/orangepi_build/output/debs/test$ tree -L 2
.
├── boot
│ ├── config-4.9.170-sun50iw9
│ ├── System.map-4.9.170-sun50iw9
│ └── vmlinuz-4.9.170-sun50iw9
├── etc
│ └── kernel
├── lib
│ └── modules
├── linux-image-legacy-sun50iw9_2.0.8_arm64.deb
└── usr
├── lib
└── share
8 directories, 4 files
8) When the orangepi-bulid build OS compiles the linux kernel source code, it first
synchronizes the linux kernel source code with the linux kernel source code of the
github server, so if you want to modify the source code of the linux kernel, you first
need to turn off the source code update function (you need to complete the
compilation once This function can only be turned off after the linux kernel
source code, otherwise it will be prompted that the source code of the linux
kernel cannot be found), otherwise the changes made will be restored.
Set the IGNORE_UPDATES variable in userpatches/config-default.conf to "no"
test@test:~/orangepi-build$ vim userpatches/config-default.conf
IGNORE_UPDATES="no"
9) If you modify the kernel, you can use the following methods to update the kernel
and kernel modules of the Linux OS on the development board
a. Upload the compiled linux deb package to the linux OS of the development board
test@test:~/orangepi-build$ cd output/debs
test@test:~/orangepi-build/output/debs$ scp \
linux-image-legacy-sun50iw9_2.0.8_arm64.deb root@192.168.1.207:/root
b. Then log in to the development board, uninstall the installed deb package of u-boot
root@orangepi:~# apt purge -y linux-image-legacy-sun50iw9
c. Install the new u-boot deb package just uploaded