From f9c4db491e2eb170ac52808920d9cf599851f491 Mon Sep 17 00:00:00 2001 From: Jean Lucas Date: Sun, 18 Apr 2021 17:56:40 -0400 Subject: [PATCH] linux-postmarketos-rockchip: Enable SATA support (MR 2119) Enable SATA host support, the AHCI driver, and SCSI disk support so that some generic PCIe SATA cards will properly detect and mount SATA drives connected to them. Tested on a RockPro64 with 2 3.5" drives connected in RAID 0 to an Ableconn PEXSA115A 2-port PCIe x2 card (ASM1062). --- main/linux-postmarketos-rockchip/APKBUILD | 6 +++--- .../config-postmarketos-rockchip.aarch64 | 13 ++++++++----- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/main/linux-postmarketos-rockchip/APKBUILD b/main/linux-postmarketos-rockchip/APKBUILD index c65642991..a5ac7c98b 100644 --- a/main/linux-postmarketos-rockchip/APKBUILD +++ b/main/linux-postmarketos-rockchip/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Martijn Braam # This is seperate from linux-edge so we can control the release cycle better. -# If this kernel is updated and fails to boot it's quite hard to recover the +# If this kernel is updated and fails to boot it's quite hard to recover the # rk3399 devices due to the boot order. This kernel also has a kconfig that has # more modules built-in that are required for successfully booting on these # devices. @@ -11,7 +11,7 @@ pkgname=linux-postmarketos-rockchip pkgver=5.11.2 -pkgrel=0 +pkgrel=1 pkgdesc="Mainline kernel for rockchip devices" arch="aarch64" _carch="arm64" @@ -67,4 +67,4 @@ package() { sha512sums="16090ec6dea7a8c417ca7483b296902c9b55b423482ad8a881dffcaae76411806bc9502373efd6a51b0acefec3a44c19c5a7d42c5b76c1321183a4798a5959d3 linux-5.11.2.tar.xz -b399eaaa7121b93468432e9f0a6d544199caa7c85b835c084fa24af7627d3e148a4f0e88eb703c3902f18e2df8202bf4a1e6d058a5901d4819b3673ef407266a config-postmarketos-rockchip.aarch64" +25103c98349c1e91e2161b2cfe995f4fc376483d7660f47000cc67db2c0698bcd77cecda73379d9114a26c56d338bda1081f2a2faee63ee420d95434bda56138 config-postmarketos-rockchip.aarch64" diff --git a/main/linux-postmarketos-rockchip/config-postmarketos-rockchip.aarch64 b/main/linux-postmarketos-rockchip/config-postmarketos-rockchip.aarch64 index d9d0716dc..79c0fbd3b 100644 --- a/main/linux-postmarketos-rockchip/config-postmarketos-rockchip.aarch64 +++ b/main/linux-postmarketos-rockchip/config-postmarketos-rockchip.aarch64 @@ -2,10 +2,10 @@ # Automatically generated file; DO NOT EDIT. # Linux/arm64 5.11.2 Kernel Configuration # -CONFIG_CC_VERSION_TEXT="aarch64-alpine-linux-musl-gcc (Alpine 10.2.1_pre1) 10.2.1 20201203" +CONFIG_CC_VERSION_TEXT="aarch64-alpine-linux-musl-gcc (Alpine 10.3.1_git20210409) 10.3.1 20210409" CONFIG_CC_IS_GCC=y -CONFIG_GCC_VERSION=100201 -CONFIG_LD_VERSION=235010000 +CONFIG_GCC_VERSION=100301 +CONFIG_LD_VERSION=235020000 CONFIG_CLANG_VERSION=0 CONFIG_LLD_VERSION=0 CONFIG_CC_HAS_ASM_GOTO=y @@ -2368,7 +2368,7 @@ CONFIG_SCSI_PROC_FS=y # # SCSI support type (disk, tape, CD-ROM) # -# CONFIG_BLK_DEV_SD is not set +CONFIG_BLK_DEV_SD=y # CONFIG_CHR_DEV_ST is not set # CONFIG_BLK_DEV_SR is not set # CONFIG_CHR_DEV_SG is not set @@ -2444,16 +2444,19 @@ CONFIG_SCSI_LOWLEVEL=y CONFIG_HAVE_PATA_PLATFORM=y 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=y +CONFIG_SATA_MOBILE_LPM_POLICY=0 # CONFIG_SATA_AHCI_PLATFORM is not set # CONFIG_AHCI_CEVA is not set # CONFIG_AHCI_XGENE is not set