mirror of
https://github.com/ps5-linux/ps5-linux-patches.git
synced 2026-07-16 14:20:40 +00:00
Compare commits
4 Commits
feature/ci
...
kernel-7.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2c40a90d5 | ||
|
|
042599e9f5 | ||
|
|
fe852d3cdb | ||
|
|
3da1ba3610 |
2
.config
2
.config
@@ -1,6 +1,6 @@
|
||||
#
|
||||
# Automatically generated file; DO NOT EDIT.
|
||||
# Linux/x86 7.0.5 Kernel Configuration
|
||||
# Linux/x86 7.0.8 Kernel Configuration
|
||||
#
|
||||
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0"
|
||||
CONFIG_CC_IS_GCC=y
|
||||
|
||||
93
.github/workflows/build-kernel.yml
vendored
Normal file
93
.github/workflows/build-kernel.yml
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
name: Build Kernel
|
||||
run-name: Build Kernel
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
format:
|
||||
description: 'Package format'
|
||||
default: 'all'
|
||||
type: choice
|
||||
options: [deb, arch, 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: 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"
|
||||
|
||||
- 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
|
||||
retention-days: 7
|
||||
|
||||
- name: Compute checksums
|
||||
id: sha
|
||||
run: |
|
||||
{
|
||||
echo 'sums<<SHAEOF'
|
||||
sha256sum image/linux-bin/*.deb image/linux-bin/*.pkg.tar.zst | 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
|
||||
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
|
||||
@@ -30,8 +30,6 @@ sudo mkinitcpio -k "$(make kernelrelease)" -g /boot/initrd.img-$(make kernelrele
|
||||
If you are updating Linux on your external USB SSD or if you are directly booting into M.2 SSD, i.e. if you use `-m2` in `cmdline.txt`, then you have to update the files on the FAT32 partition of your USB drive:
|
||||
|
||||
```bash
|
||||
sudo mv /boot/efi/bzImage /boot/efi/bzImage.old
|
||||
sudo mv /boot/efi/initrd.img /boot/efi/initrd.img.old
|
||||
sudo cp /boot/vmlinuz /boot/efi/bzImage
|
||||
sudo cp /boot/initrd.img /boot/efi/initrd.img
|
||||
```
|
||||
@@ -44,7 +42,6 @@ If you are updating Linux on your M.2 SSD, but you do not directly boot into it,
|
||||
- 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
|
||||
|
||||
@@ -18,7 +18,7 @@ index fe106da41ae5..6fd78cbfe1d6 100644
|
||||
bool "ScaleMP vSMP"
|
||||
select HYPERVISOR_GUEST
|
||||
diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h
|
||||
index 92bb6b2f778e..0a02f339b98a 100644
|
||||
index 4efbbf9d117b..403d5ff74ef0 100644
|
||||
--- a/arch/x86/include/asm/msr-index.h
|
||||
+++ b/arch/x86/include/asm/msr-index.h
|
||||
@@ -26,6 +26,7 @@
|
||||
@@ -1143,7 +1143,7 @@ index 000000000000..7acb030a4976
|
||||
+obj-y += spcie.o tpcie.o hdmi.o mp1.o
|
||||
diff --git a/drivers/ps5/hdmi.c b/drivers/ps5/hdmi.c
|
||||
new file mode 100644
|
||||
index 000000000000..a24459de573a
|
||||
index 000000000000..78ffc4f80a6d
|
||||
--- /dev/null
|
||||
+++ b/drivers/ps5/hdmi.c
|
||||
@@ -0,0 +1,1237 @@
|
||||
@@ -2026,8 +2026,8 @@ index 000000000000..a24459de573a
|
||||
+
|
||||
+static void setHdmiVideoConfigFlava3(const struct drm_display_mode *mode)
|
||||
+{
|
||||
+ configParamFlava3Pre();
|
||||
+ configLinkTrainingFlava3();
|
||||
+ // configParamFlava3Pre();
|
||||
+ // configLinkTrainingFlava3();
|
||||
+ setHdmiBasicVideoConfigFlava3(mode);
|
||||
+ initHdmiPhyForFlava3_1st();
|
||||
+ initHdmiPhyForFlava3_2nd();
|
||||
|
||||
Reference in New Issue
Block a user