mirror of
https://github.com/ps5-linux/ps5-linux-patches.git
synced 2026-07-16 14:20:40 +00:00
Compare commits
14 Commits
feature/ci
...
kernel-7.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a833df9c73 | ||
|
|
ba4f29d40c | ||
|
|
2c46113af9 | ||
|
|
50cf28acb1 | ||
|
|
643e214d7b | ||
|
|
3c05c6140a | ||
|
|
e6fb93f866 | ||
|
|
7d5d7976dd | ||
|
|
d44cfeb934 | ||
|
|
99e816eccb | ||
|
|
f2c40a90d5 | ||
|
|
042599e9f5 | ||
|
|
fe852d3cdb | ||
|
|
3da1ba3610 |
103
.config
103
.config
@@ -1,6 +1,6 @@
|
||||
#
|
||||
# Automatically generated file; DO NOT EDIT.
|
||||
# Linux/x86 7.0.5 Kernel Configuration
|
||||
# Linux/x86 7.0.10 Kernel Configuration
|
||||
#
|
||||
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0"
|
||||
CONFIG_CC_IS_GCC=y
|
||||
@@ -2132,7 +2132,8 @@ CONFIG_SCSI_PROC_FS=y
|
||||
#
|
||||
CONFIG_BLK_DEV_SD=y
|
||||
# CONFIG_CHR_DEV_ST is not set
|
||||
# CONFIG_BLK_DEV_SR is not set
|
||||
CONFIG_CDROM=y
|
||||
CONFIG_BLK_DEV_SR=y
|
||||
CONFIG_CHR_DEV_SG=y
|
||||
CONFIG_BLK_DEV_BSG=y
|
||||
# CONFIG_CHR_DEV_SCH is not set
|
||||
@@ -2155,7 +2156,102 @@ CONFIG_SCSI_SCAN_ASYNC=y
|
||||
# CONFIG_SCSI_DH is not set
|
||||
# end of SCSI device support
|
||||
|
||||
# CONFIG_ATA is not set
|
||||
CONFIG_ATA=y
|
||||
CONFIG_SATA_HOST=y
|
||||
CONFIG_PATA_TIMINGS=y
|
||||
CONFIG_ATA_VERBOSE_ERROR=y
|
||||
CONFIG_ATA_FORCE=y
|
||||
CONFIG_ATA_ACPI=y
|
||||
# CONFIG_SATA_ZPODD is not set
|
||||
CONFIG_SATA_PMP=y
|
||||
|
||||
#
|
||||
# Controllers with non-SFF native interface
|
||||
#
|
||||
# CONFIG_SATA_AHCI is not set
|
||||
# CONFIG_SATA_AHCI_PLATFORM is not set
|
||||
# CONFIG_AHCI_DWC is not set
|
||||
CONFIG_AHCI_SALINA=y
|
||||
# CONFIG_SATA_INIC162X is not set
|
||||
# CONFIG_SATA_ACARD_AHCI is not set
|
||||
# CONFIG_SATA_SIL24 is not set
|
||||
CONFIG_ATA_SFF=y
|
||||
|
||||
#
|
||||
# SFF controllers with custom DMA interface
|
||||
#
|
||||
# CONFIG_PDC_ADMA is not set
|
||||
# CONFIG_SATA_QSTOR is not set
|
||||
# CONFIG_SATA_SX4 is not set
|
||||
CONFIG_ATA_BMDMA=y
|
||||
|
||||
#
|
||||
# SATA SFF controllers with BMDMA
|
||||
#
|
||||
# CONFIG_ATA_PIIX is not set
|
||||
# CONFIG_SATA_DWC is not set
|
||||
# CONFIG_SATA_MV is not set
|
||||
# CONFIG_SATA_NV is not set
|
||||
# CONFIG_SATA_PROMISE is not set
|
||||
# CONFIG_SATA_SIL is not set
|
||||
# CONFIG_SATA_SIS is not set
|
||||
# CONFIG_SATA_SVW is not set
|
||||
# CONFIG_SATA_ULI is not set
|
||||
# CONFIG_SATA_VIA is not set
|
||||
# CONFIG_SATA_VITESSE is not set
|
||||
|
||||
#
|
||||
# PATA SFF controllers with BMDMA
|
||||
#
|
||||
# CONFIG_PATA_ALI is not set
|
||||
# CONFIG_PATA_AMD is not set
|
||||
# CONFIG_PATA_ARTOP is not set
|
||||
# CONFIG_PATA_ATIIXP is not set
|
||||
# CONFIG_PATA_ATP867X is not set
|
||||
# CONFIG_PATA_CMD64X is not set
|
||||
# CONFIG_PATA_CYPRESS is not set
|
||||
# CONFIG_PATA_EFAR is not set
|
||||
# CONFIG_PATA_HPT366 is not set
|
||||
# CONFIG_PATA_HPT37X is not set
|
||||
# CONFIG_PATA_HPT3X2N is not set
|
||||
# CONFIG_PATA_HPT3X3 is not set
|
||||
# CONFIG_PATA_IT8213 is not set
|
||||
# CONFIG_PATA_IT821X is not set
|
||||
# CONFIG_PATA_JMICRON is not set
|
||||
# CONFIG_PATA_MARVELL is not set
|
||||
# CONFIG_PATA_NETCELL is not set
|
||||
# CONFIG_PATA_NINJA32 is not set
|
||||
# CONFIG_PATA_NS87415 is not set
|
||||
# CONFIG_PATA_OLDPIIX is not set
|
||||
# CONFIG_PATA_OPTIDMA is not set
|
||||
# CONFIG_PATA_PDC2027X is not set
|
||||
# CONFIG_PATA_PDC_OLD is not set
|
||||
# CONFIG_PATA_RADISYS is not set
|
||||
# CONFIG_PATA_RDC is not set
|
||||
# CONFIG_PATA_SCH is not set
|
||||
# CONFIG_PATA_SERVERWORKS is not set
|
||||
# CONFIG_PATA_SIL680 is not set
|
||||
# CONFIG_PATA_SIS is not set
|
||||
# CONFIG_PATA_TOSHIBA is not set
|
||||
# CONFIG_PATA_TRIFLEX is not set
|
||||
# CONFIG_PATA_VIA is not set
|
||||
# CONFIG_PATA_WINBOND is not set
|
||||
|
||||
#
|
||||
# PIO-only SFF controllers
|
||||
#
|
||||
# CONFIG_PATA_CMD640_PCI is not set
|
||||
# CONFIG_PATA_MPIIX is not set
|
||||
# CONFIG_PATA_NS87410 is not set
|
||||
# CONFIG_PATA_OPTI is not set
|
||||
# CONFIG_PATA_RZ1000 is not set
|
||||
|
||||
#
|
||||
# Generic fallback / legacy drivers
|
||||
#
|
||||
# CONFIG_PATA_ACPI is not set
|
||||
# CONFIG_ATA_GENERIC is not set
|
||||
# CONFIG_PATA_LEGACY is not set
|
||||
CONFIG_MD=y
|
||||
CONFIG_BLK_DEV_MD=y
|
||||
CONFIG_MD_BITMAP=y
|
||||
@@ -2402,6 +2498,7 @@ CONFIG_SMSC_PHY=m
|
||||
# CONFIG_DP83TG720_PHY is not set
|
||||
# CONFIG_VITESSE_PHY is not set
|
||||
# CONFIG_XILINX_GMII2RGMII is not set
|
||||
CONFIG_MTS=m
|
||||
CONFIG_FWNODE_MDIO=y
|
||||
CONFIG_ACPI_MDIO=y
|
||||
# CONFIG_MDIO_BITBANG is not set
|
||||
|
||||
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
|
||||
22
README.md
22
README.md
@@ -6,7 +6,7 @@
|
||||
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.5
|
||||
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)
|
||||
@@ -21,30 +21,10 @@ sudo make modules_install
|
||||
sudo make install
|
||||
```
|
||||
|
||||
If you use Arch Linux, then additionally do:
|
||||
|
||||
```bash
|
||||
sudo mkinitcpio -k "$(make kernelrelease)" -g /boot/initrd.img-$(make kernelrelease) || true
|
||||
```
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
If you are updating Linux on your M.2 SSD, but you do not directly boot into it, i.e. if you use `m2_exec.sh`, then you do need to do this step.
|
||||
|
||||
|
||||
## 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
|
||||
|
||||
4546
linux.patch
4546
linux.patch
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user