mirror of
https://github.com/ps5-linux/ps5-linux-patches.git
synced 2026-07-17 02:50:40 +00:00
Compare commits
67 Commits
v1.0
...
kernel-7.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c363690546 | ||
|
|
5236127a9e | ||
|
|
c404a24cbf | ||
|
|
cb839ab600 | ||
|
|
1926418e4e | ||
|
|
c445e9adf3 | ||
|
|
e81e281f38 | ||
|
|
050704a2f5 | ||
|
|
bf16f7e8b7 | ||
|
|
8fbb1b2057 | ||
|
|
935dc3e322 | ||
|
|
9ee33721e4 | ||
|
|
a57d783d89 | ||
|
|
07f9d7f847 | ||
|
|
6cfe53c6d3 | ||
|
|
06e7cbf7bd | ||
|
|
498b83a4a5 | ||
|
|
a2c666ba29 | ||
|
|
06bb2bb268 | ||
|
|
2ee68463af | ||
|
|
76db3a464b | ||
|
|
9fec3c7729 | ||
|
|
e00c8a7d38 | ||
|
|
45c3a2ec19 | ||
|
|
61eb7c0f71 | ||
|
|
5b0dc56c1b | ||
|
|
bcf718f3d5 | ||
|
|
52b956d985 | ||
|
|
e9424efb51 | ||
|
|
a833df9c73 | ||
|
|
ba4f29d40c | ||
|
|
2c46113af9 | ||
|
|
50cf28acb1 | ||
|
|
643e214d7b | ||
|
|
3c05c6140a | ||
|
|
e6fb93f866 | ||
|
|
7d5d7976dd | ||
|
|
d44cfeb934 | ||
|
|
99e816eccb | ||
|
|
f2c40a90d5 | ||
|
|
042599e9f5 | ||
|
|
fe852d3cdb | ||
|
|
3da1ba3610 | ||
|
|
874c43ebb6 | ||
|
|
d8d6674e74 | ||
|
|
59bb64ec34 | ||
|
|
e18eb668c7 | ||
|
|
7169870a21 | ||
|
|
c6571488b6 | ||
|
|
640bb1a4e3 | ||
|
|
f221a7b224 | ||
|
|
23375e091c | ||
|
|
c1ecd51139 | ||
|
|
e2f07ba332 | ||
|
|
520ccf7787 | ||
|
|
fb8321d25d | ||
|
|
d2a2f89d50 | ||
|
|
0a043f6e76 | ||
|
|
e366fdf3f6 | ||
|
|
81a51f9750 | ||
|
|
59dce27dca | ||
|
|
bb79008922 | ||
|
|
dd041dcac0 | ||
|
|
1f493df000 | ||
|
|
dc2ee1ce8c | ||
|
|
639992e81d | ||
|
|
ae12c3982c |
110
.github/workflows/build-kernel.yml
vendored
Normal file
110
.github/workflows/build-kernel.yml
vendored
Normal file
@@ -0,0 +1,110 @@
|
||||
name: Build Kernel
|
||||
run-name: Build Kernel
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
format:
|
||||
description: 'Package format'
|
||||
default: 'all'
|
||||
type: choice
|
||||
options: [deb, arch, rpm, all]
|
||||
patches_ref:
|
||||
description: 'Patches branch/tag/SHA (empty = default)'
|
||||
default: ''
|
||||
type: string
|
||||
workflow_call:
|
||||
inputs:
|
||||
patches_ref:
|
||||
type: string
|
||||
default: ''
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
timeout-minutes: 120
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
env:
|
||||
CCACHE_DIR: /home/opc/ccache
|
||||
|
||||
steps:
|
||||
- name: Clean image workspace
|
||||
# Docker containers write to image/linux-bin/ as root; actions/checkout's
|
||||
# git clean runs as the runner user and skips root-owned files, so stale
|
||||
# .deb / .pkg.tar.zst from prior kernel versions leak into the release.
|
||||
run: sudo rm -rf image
|
||||
- name: Checkout image builder
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
repository: ps5-linux/ps5-linux-image
|
||||
path: image
|
||||
ref: main
|
||||
|
||||
- name: Build kernel
|
||||
run: |
|
||||
FORMAT="${{ inputs.format || github.event.client_payload.format || 'all' }}"
|
||||
PATCHES_REF="${{ inputs.patches_ref || '' }}"
|
||||
bash image/build_image.sh --kernel-only \
|
||||
--distro "$FORMAT" \
|
||||
--patches-ref "$PATCHES_REF"
|
||||
# --distro all skips the rpm packager. Call the packager container
|
||||
# directly against the already-staged kernel (image/linux-bin/staging/)
|
||||
# instead of re-running build_image.sh, which wipes outputs and
|
||||
# rebuilds the kernel — that doubled CI time. This step is ~1 minute.
|
||||
if [ "$FORMAT" = "all" ]; then
|
||||
docker build -t ps5-kernel-packager-rpm \
|
||||
-f image/docker/kernel-builder-rpm/Dockerfile image/
|
||||
docker run --rm -v "$PWD/image/linux-bin":/out \
|
||||
ps5-kernel-packager-rpm
|
||||
fi
|
||||
|
||||
- name: Read kernel and patches version
|
||||
id: version
|
||||
run: |
|
||||
psha=$(git -C image/work/ps5-linux-patches rev-parse --short HEAD)
|
||||
kver=$(cat image/linux-bin/VERSION)
|
||||
ts=$(date -u +%Y%m%d-%H%M%S)
|
||||
echo "kver=$kver" >> "$GITHUB_OUTPUT"
|
||||
echo "psha=$psha" >> "$GITHUB_OUTPUT"
|
||||
echo "ts=$ts" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: kernel-${{ steps.version.outputs.kver }}-${{ steps.version.outputs.psha }}
|
||||
path: |
|
||||
image/linux-bin/*.deb
|
||||
image/linux-bin/*.pkg.tar.zst
|
||||
image/linux-bin/*.rpm
|
||||
retention-days: 7
|
||||
|
||||
- name: Compute checksums
|
||||
id: sha
|
||||
run: |
|
||||
{
|
||||
echo 'sums<<SHAEOF'
|
||||
sha256sum image/linux-bin/*.deb image/linux-bin/*.pkg.tar.zst image/linux-bin/*.rpm 2>/dev/null | sed 's|image/linux-bin/||'
|
||||
echo 'SHAEOF'
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Create or update release
|
||||
if: github.event_name != 'pull_request' && github.event_name != 'pull_request_target'
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
tag_name: kernel-${{ steps.version.outputs.kver }}-${{ steps.version.outputs.psha }}
|
||||
name: Kernel ${{ steps.version.outputs.kver }} (${{ steps.version.outputs.psha }})
|
||||
body: |
|
||||
PS5 Linux kernel packages for **${{ steps.version.outputs.kver }}**.
|
||||
|
||||
Patches: [`${{ steps.version.outputs.psha }}`](https://github.com/ps5-linux/ps5-linux-patches/commit/${{ steps.version.outputs.psha }})
|
||||
|
||||
```
|
||||
${{ steps.sha.outputs.sums }}
|
||||
```
|
||||
files: |
|
||||
image/linux-bin/*.deb
|
||||
image/linux-bin/*.pkg.tar.zst
|
||||
image/linux-bin/*.rpm
|
||||
make_latest: true
|
||||
19
.github/workflows/trigger-build.yml
vendored
Normal file
19
.github/workflows/trigger-build.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: deploy
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request_target:
|
||||
types: [labeled]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
kernel:
|
||||
if: github.event.label.name == 'run-ci' || github.event_name != 'pull_request_target'
|
||||
permissions:
|
||||
contents: write
|
||||
uses: ./.github/workflows/build-kernel.yml
|
||||
with:
|
||||
patches_ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
secrets: inherit
|
||||
23
README.md
23
README.md
@@ -1,22 +1,29 @@
|
||||
# ps5-linux-patches
|
||||
|
||||
## Compile
|
||||
## Compilation
|
||||
|
||||
```bash
|
||||
git clone https://github.com/ps5-linux/ps5-linux-patches
|
||||
git clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
|
||||
cd linux
|
||||
git checkout tags/v7.0.2
|
||||
git apply ~/ps5-linux-patches/linux.patch
|
||||
cp ~/ps5-linux-patches/.config .config
|
||||
make -j16
|
||||
git checkout "tags/v$(grep -m1 "^# Linux/" ../ps5-linux-patches/.config | awk '{print $3}')"
|
||||
git apply ../ps5-linux-patches/linux.patch
|
||||
cp ../ps5-linux-patches/.config .config
|
||||
make -j$(nproc)
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
||||
In the same `linux` folder after compilation, do:
|
||||
|
||||
```bash
|
||||
sudo make modules_install
|
||||
sudo make install
|
||||
```
|
||||
|
||||
## TODO
|
||||
|
||||
- amdgpu smu driver to show correct gpu frequency and temperature
|
||||
- ethernet driver for (mediatek?) 0x104d:0x9104
|
||||
- xhci driver adjustment for 0x104d:0x9108 to enable bluetooth
|
||||
- wlan driver marvell 1b4b:2b56 (https://github.com/nxp-imx/mwifiex)
|
||||
- hdmi converter improvments: hdr, rgb range, 120hz
|
||||
|
||||
## Bugs
|
||||
|
||||
8117
linux.patch
8117
linux.patch
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user