linux pkgbuild and update explanations
This commit is contained in:
parent
c0d43bc699
commit
a56ee4ffb9
1 changed files with 22 additions and 3 deletions
25
README.md
25
README.md
|
@ -95,9 +95,28 @@ There are two possibilities:
|
|||
|
||||
TODO: adapt pacman sources such that the pkgs `linux` and `linux-headers` are installed from the local sources in `linux-pkgs`.
|
||||
|
||||
In order to install the linux headers needed to build modules from other packages you need to compile the kernel directly on the arm cpu. Boot into the system and clone the [main line kernel repository](https://github.com/torvalds/linux.git). Checkout the latest releas tag, copy corresponding config and apply corresponding patches.
|
||||
In order to install the linux headers needed to build modules from other packages you need to compile the kernel directly on the arm cpu. Boot into the system and clone the [main line kernel repository](https://github.com/torvalds/linux.git). Checkout the latest release tag. Create a link to the linux repository and run makepkg:
|
||||
|
||||
```bash
|
||||
|
||||
cd kernel-pkgs
|
||||
mkdir src
|
||||
ln -s /path/to/linux/repo src/linux
|
||||
makepkg
|
||||
```
|
||||
|
||||
If everything finishes successfully install the created packages. Before that, backup original zImage and dtbs files!
|
||||
|
||||
```bash
|
||||
sudo cp /boot/zImage /boot/zImage.orig
|
||||
sudo cp /boot/dtbs/mt7623n-bananapi-bpi-r2.dtb /boot/dtbs/mt7623n-bananapi-bpi-r2.orig.dtb
|
||||
sudo pacman -U linux-armv7-${version}-armv7h.pkg.tar.xz
|
||||
sudo pacman -U linux-armv7-headers-${version}-armv7h.pkg.tar.xz
|
||||
```
|
||||
|
||||
Advise pacman to ignore these two packages. Otherwise it will update them from the official mirrors, which will probably not work:
|
||||
|
||||
```bash
|
||||
# /etc/pacman.conf
|
||||
|
||||
IgnorePkg = linux-armv7 linux-armv7-headers
|
||||
```
|
||||
...!!!
|
||||
|
|
Loading…
Reference in a new issue