sony-falconss: new device (MR 3995)
[ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
72b944c1fc
commit
3e09569982
13 changed files with 3713 additions and 0 deletions
31
device/testing/device-sony-falconss/APKBUILD
Normal file
31
device/testing/device-sony-falconss/APKBUILD
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-sony-falconss
|
||||
pkgdesc="Sony Xperia E1"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="armv7"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base linux-sony-falconss mkbootimg"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="Wifi firmware"
|
||||
depends="firmware-sony-falconss"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
4f7861578fae318d981405dfc2e9b4449860cc43d1685ff782ce3108f90f26e9db1a2e3a1132e3e2374cfc3eea7dc0682010fd0f1b788f07ee3e8dbdd55b1fef deviceinfo
|
||||
"
|
29
device/testing/device-sony-falconss/deviceinfo
Normal file
29
device/testing/device-sony-falconss/deviceinfo
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Sony Xperia E1"
|
||||
deviceinfo_manufacturer="Sony"
|
||||
deviceinfo_codename="sony-falconss"
|
||||
deviceinfo_year="2014"
|
||||
deviceinfo_arch="armv7"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="480"
|
||||
deviceinfo_screen_height="800"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_kernel_cmdline="androidboot.hardware=qcom user_debug=23 maxcpus=2 msm_rtb.filter=0x3F ehci-hcd.park=3 msm_rtb.enable=0 lpj=192598 dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y androidboot.bootdevice=msm_sdcc.1 androidboot.selinux=permissive buildvariant=userdebug"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_bootimg_qcdt="true"
|
||||
deviceinfo_bootimg_mtk_mkimage="false"
|
||||
deviceinfo_bootimg_dtb_second="false"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_flash_offset_base="0x00000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x02000000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x01e00000"
|
25
device/testing/firmware-sony-falconss/APKBUILD
Normal file
25
device/testing/firmware-sony-falconss/APKBUILD
Normal file
|
@ -0,0 +1,25 @@
|
|||
pkgname=firmware-sony-falconss
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
_commit="06718622b21c54666c76d89876d3e5f9aac9109b"
|
||||
pkgdesc="Firmware files for Sony Xperia E1"
|
||||
url="https://postmarketos.org"
|
||||
arch="armv7"
|
||||
license="proprietary"
|
||||
depends="wcnss-wlan"
|
||||
source="$pkgname-$_commit.tar.gz::https://github.com/exkc/android_vendor_sony_falconss_pmos/archive/$_commit.tar.gz"
|
||||
options="!strip !check !archcheck !spdx !tracedeps pmb:cross-native"
|
||||
builddir="$srcdir/android_vendor_sony_falconss_pmos-$_commit"
|
||||
|
||||
package() {
|
||||
_files="wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06 wcnss.b07
|
||||
wcnss.b08 wcnss.b09 wcnss.mdt"
|
||||
for _i in $_files; do
|
||||
install -D -m644 wifi/"$_i" \
|
||||
"$pkgdir"/lib/firmware/postmarketos/"$_i"
|
||||
done
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
ee6651686db0332f6aad8fe91acf7255ee4199b638bcc9d3b43dc3b35c2b3172193b506270f1ef7ff57df78d598fa218779b4e66a543c2bc768b0d720abc22b8 firmware-sony-falconss-06718622b21c54666c76d89876d3e5f9aac9109b.tar.gz
|
||||
"
|
|
@ -0,0 +1,49 @@
|
|||
From aeea3592a13bf12861943e44fc48f1f270941f8d Mon Sep 17 00:00:00 2001
|
||||
From: Behan Webster <behanw@converseincode.com>
|
||||
Date: Wed, 24 Sep 2014 01:06:46 +0100
|
||||
Subject: [PATCH] ARM: 8158/1: LLVMLinux: use static inline in ARM ftrace.h
|
||||
|
||||
With compilers which follow the C99 standard (like modern versions of gcc and
|
||||
clang), "extern inline" does the wrong thing (emits code for an externally
|
||||
linkable version of the inline function). In this case using static inline
|
||||
and removing the NULL version of return_address in return_address.c does
|
||||
the right thing.
|
||||
|
||||
Signed-off-by: Behan Webster <behanw@converseincode.com>
|
||||
Reviewed-by: Mark Charlebois <charlebm@gmail.com>
|
||||
Acked-by: Steven Rostedt <rostedt@goodmis.org>
|
||||
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
|
||||
---
|
||||
arch/arm/include/asm/ftrace.h | 2 +-
|
||||
arch/arm/kernel/return_address.c | 5 -----
|
||||
2 files changed, 1 insertion(+), 6 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/include/asm/ftrace.h b/arch/arm/include/asm/ftrace.h
|
||||
index 39eb16b0066f2..bfe2a2f5a644e 100644
|
||||
--- a/arch/arm/include/asm/ftrace.h
|
||||
+++ b/arch/arm/include/asm/ftrace.h
|
||||
@@ -45,7 +45,7 @@ void *return_address(unsigned int);
|
||||
|
||||
#else
|
||||
|
||||
-extern inline void *return_address(unsigned int level)
|
||||
+static inline void *return_address(unsigned int level)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
diff --git a/arch/arm/kernel/return_address.c b/arch/arm/kernel/return_address.c
|
||||
index fafedd86885dd..f6aa84d5b93c9 100644
|
||||
--- a/arch/arm/kernel/return_address.c
|
||||
+++ b/arch/arm/kernel/return_address.c
|
||||
@@ -63,11 +63,6 @@ void *return_address(unsigned int level)
|
||||
#warning "TODO: return_address should use unwind tables"
|
||||
#endif
|
||||
|
||||
-void *return_address(unsigned int level)
|
||||
-{
|
||||
- return NULL;
|
||||
-}
|
||||
-
|
||||
#endif /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) / else */
|
||||
|
||||
EXPORT_SYMBOL_GPL(return_address);
|
|
@ -0,0 +1,47 @@
|
|||
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
|
||||
index ed543c49..f6199747 100644
|
||||
--- a/drivers/mmc/card/block.c
|
||||
+++ b/drivers/mmc/card/block.c
|
||||
@@ -1277,6 +1277,18 @@ static inline void mmc_blk_reset_success(struct mmc_blk_data *md, int type)
|
||||
md->reset_done &= ~type;
|
||||
}
|
||||
|
||||
+int mmc_access_rpmb(struct mmc_queue *mq)
|
||||
+{
|
||||
+ struct mmc_blk_data *md = mq->data;
|
||||
+ /*
|
||||
+ * If this is a RPMB partition access, return ture
|
||||
+ */
|
||||
+ if (md && md->part_type == EXT_CSD_PART_CONFIG_ACC_RPMB)
|
||||
+ return true;
|
||||
+
|
||||
+ return false;
|
||||
+}
|
||||
+
|
||||
static int mmc_blk_issue_discard_rq(struct mmc_queue *mq, struct request *req)
|
||||
{
|
||||
struct mmc_blk_data *md = mq->data;
|
||||
diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c
|
||||
index e072f654..8dcff0eb 100644
|
||||
--- a/drivers/mmc/card/queue.c
|
||||
+++ b/drivers/mmc/card/queue.c
|
||||
@@ -51,7 +51,7 @@ static int mmc_prep_request(struct request_queue *q, struct request *req)
|
||||
return BLKPREP_KILL;
|
||||
}
|
||||
|
||||
- if (mq && mmc_card_removed(mq->card))
|
||||
+ if (mq && (mmc_card_removed(mq->card) || mmc_access_rpmb(mq)))
|
||||
return BLKPREP_KILL;
|
||||
|
||||
req->cmd_flags |= REQ_DONTPREP;
|
||||
diff --git a/drivers/mmc/card/queue.h b/drivers/mmc/card/queue.h
|
||||
index d1fe01c1..f850c067 100644
|
||||
--- a/drivers/mmc/card/queue.h
|
||||
+++ b/drivers/mmc/card/queue.h
|
||||
@@ -70,4 +70,6 @@ extern void mmc_queue_bounce_post(struct mmc_queue_req *);
|
||||
|
||||
extern void print_mmc_packing_stats(struct mmc_card *card);
|
||||
|
||||
+extern int mmc_access_rpmb(struct mmc_queue *);
|
||||
+
|
||||
#endif
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/drivers/video/msm/mdss/mdp3_ctrl.c b/drivers/video/msm/mdss/mdp3_ctrl.c
|
||||
index f9f55138..ccaebcb6 100644
|
||||
--- a/drivers/video/msm/mdss/mdp3_ctrl.c
|
||||
+++ b/drivers/video/msm/mdss/mdp3_ctrl.c
|
||||
@@ -1832,7 +1832,7 @@ int mdp3_ctrl_init(struct msm_fb_data_type *mfd)
|
||||
splash_mismatch = 1;
|
||||
|
||||
mdp3_interface->on_fnc = mdp3_ctrl_on;
|
||||
- mdp3_interface->off_fnc = mdp3_ctrl_off;
|
||||
+ mdp3_interface->off_fnc = NULL;
|
||||
mdp3_interface->do_histogram = NULL;
|
||||
mdp3_interface->cursor_update = NULL;
|
||||
mdp3_interface->dma_fnc = mdp3_ctrl_pan_display;
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/drivers/video/msm/mdss/mdss_fb.c b/drivers/video/msm/mdss/mdss_fb.c
|
||||
index 53112ca6..69673017 100644
|
||||
--- a/drivers/video/msm/mdss/mdss_fb.c
|
||||
+++ b/drivers/video/msm/mdss/mdss_fb.c
|
||||
@@ -569,7 +569,7 @@ static int mdss_fb_probe(struct platform_device *pdev)
|
||||
mfd->bl_level = 0;
|
||||
mfd->bl_scale = 1024;
|
||||
mfd->bl_min_lvl = 30;
|
||||
- mfd->fb_imgType = MDP_RGBA_8888;
|
||||
+ mfd->fb_imgType = MDP_RGB_888;
|
||||
|
||||
mfd->pdev = pdev;
|
||||
if (pdata->next)
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/drivers/video/msm/mdss/mdss_fb.c b/drivers/video/msm/mdss/mdss_fb.c
|
||||
index 53112ca6..4c430624 100644
|
||||
--- a/drivers/video/msm/mdss/mdss_fb.c
|
||||
+++ b/drivers/video/msm/mdss/mdss_fb.c
|
||||
@@ -1421,7 +1421,7 @@ static int mdss_fb_register(struct msm_fb_data_type *mfd)
|
||||
var->left_margin = panel_info->lcdc.h_back_porch;
|
||||
var->right_margin = panel_info->lcdc.h_front_porch;
|
||||
var->hsync_len = panel_info->lcdc.h_pulse_width;
|
||||
- var->pixclock = panel_info->clk_rate / 1000;
|
||||
+ var->pixclock = 1000000 / 60;
|
||||
|
||||
/* id field for fb app */
|
||||
|
91
device/testing/linux-sony-falconss/APKBUILD
Normal file
91
device/testing/linux-sony-falconss/APKBUILD
Normal file
|
@ -0,0 +1,91 @@
|
|||
# Kernel config based on: arch/arm/configs/msm8610_defconfig
|
||||
|
||||
pkgname=linux-sony-falconss
|
||||
pkgver=3.4.0
|
||||
pkgrel=0
|
||||
pkgdesc="Kernel for Sony Xperia E1"
|
||||
arch="armv7"
|
||||
_carch="arm"
|
||||
_flavor="sony-falconss"
|
||||
url="https://github.com/Caio99BR-Deprecated/FalconSSKernel.git"
|
||||
license="GPL2"
|
||||
options="!strip !check !tracedeps pmb:cross-native"
|
||||
makedepends="perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev dtbtool lz4 gcc4"
|
||||
|
||||
# Compiler: this kernel was only tested with GCC4. Feel free to make a merge
|
||||
# request if you find out that it is booting working with newer GCCs as
|
||||
# well. See <https://postmarketos.org/vendorkernel> for instructions.
|
||||
if [ "${CC:0:5}" != "gcc4-" ]; then
|
||||
CC="gcc4-$CC"
|
||||
HOSTCC="gcc4-gcc"
|
||||
CROSS_COMPILE="gcc4-$CROSS_COMPILE"
|
||||
fi
|
||||
|
||||
# Source
|
||||
_repository="FalconSSKernel"
|
||||
_commit="0d2aaffd3f7c37537da0cc900c11bffd8dcfe8c2"
|
||||
_config="config-$_flavor.armv7"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/Caio99BR-Deprecated/$_repository/archive/$_commit.tar.gz
|
||||
$_config
|
||||
timeconst.pl-Eliminate-Perl-warning.patch
|
||||
00_fix_return_address.patch
|
||||
03_avoid_rpmb_read_during_boot.patch
|
||||
05_fix_mdp3_ctrl_off.patch
|
||||
06_fix_mdss_fb_rgb_mode.patch
|
||||
07_fix_mdss_fb_refresh_rate.patch
|
||||
linux3.4-vfs-Fix-proc-tid-fdinfo-fd-file-handling.patch
|
||||
gcc10-extern_YYLOC_global_declaration.patch
|
||||
"
|
||||
builddir="$srcdir/$_repository-$_commit"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
. downstreamkernel_prepare
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
CONFIG_NO_ERROR_ON_MISMATCH=y \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||
|
||||
# the 'no-pic' flag is necessary to avoid the
|
||||
# error 'Unknown symbol _GLOBAL_OFFSET_TABLE_ (err 0)' when loading the module
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" CFLAGS_MODULE="-fno-pic" \
|
||||
CONFIG_NO_ERROR_ON_MISMATCH=y \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" \
|
||||
modules
|
||||
|
||||
# Generate master DTB
|
||||
dtbTool -s 2048 -p "scripts/dtc/" -o "arch/arm/boot/dt.img" "arch/arm/boot/"
|
||||
}
|
||||
|
||||
package() {
|
||||
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
||||
|
||||
# Master DTB
|
||||
install -Dm644 "$builddir/arch/arm/boot/dt.img" \
|
||||
"$pkgdir/boot/dt.img"
|
||||
|
||||
# Modules
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
CONFIG_NO_ERROR_ON_MISMATCH=y \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1))-postmarketOS" \
|
||||
INSTALL_MOD_PATH="$pkgdir" INSTALL_MOD_STRIP=1 \
|
||||
modules_install
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
bb1018e2d486f75f375e1b695ee4de56c482a0faf379c85db6e31d7bf7b950572d991e083c497193d2c68120ea792d617502e94afd57a9b5fa7c3874f4c4a895 linux-sony-falconss-0d2aaffd3f7c37537da0cc900c11bffd8dcfe8c2.tar.gz
|
||||
c8bf6f8ad558f01a6c131dc086bb324148a2b333c5d6c348d1dcf82f6e662746dde88e39edf98b8d93f22da5c1b87b3d61885aaa9f72f053c3a0918cb75bae72 config-sony-falconss.armv7
|
||||
1fcfb5f06a2bfdcc55d53054ca80d1b989599a39a5379d057a0724fc405187d74da4309a650e70b9c79d39444e81923cfc5c9199ed8c0a77c83dcd7998446bb7 timeconst.pl-Eliminate-Perl-warning.patch
|
||||
ea1d3b5a234fa565e3c1a792de48f4fc4e6023d281d303c8e319c7ef28edc5739ab0e4dea0139a41f0a5c7d03e27921ccaa214fd0ac5c72245a094ce60128864 00_fix_return_address.patch
|
||||
760fdff79df31754ebed59839f34fc8c5a61750471614ac93a01b1e13b2535e7ca1f879c0cad3e83ad92946586c91679ba853eac4fe454d7e948317c84d81941 03_avoid_rpmb_read_during_boot.patch
|
||||
fbc61e379403990167853f4c4fbdfa22d7e9661a7eedecf2a75eec2a8008991a82d0a61be844ab4b1c88383f3fa79b43eff10b1039e44ad5a758a173cbf6386b 05_fix_mdp3_ctrl_off.patch
|
||||
384ae0bf2f5d7e15b0b60655693fd600b52c0f5bfcaa4ba7336d0ebeb224e84b99b597f77d26a1249e14a4e7bbc1629be00556b393bb9dd2266cb4bd67c3cfea 06_fix_mdss_fb_rgb_mode.patch
|
||||
1f743d3e7f4ac7401167ea35edc7d7e113bd80824c4d53631d7500f33557ff486163f8244786c16506b2e21db6ccbcd8a0f7b26fcf4937efee50b62c074f9a22 07_fix_mdss_fb_refresh_rate.patch
|
||||
5e81c20b0b30c1ab09bd59f1e1b77fcce945a27de8144c68617ddc5e8f10e1f6fa8b1e4cd5d63e43511d61dace46fb26b14a6227a667b9718d44c8b81dbe6100 linux3.4-vfs-Fix-proc-tid-fdinfo-fd-file-handling.patch
|
||||
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
|
||||
"
|
3399
device/testing/linux-sony-falconss/config-sony-falconss.armv7
Normal file
3399
device/testing/linux-sony-falconss/config-sony-falconss.armv7
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1 @@
|
|||
../../.shared-patches/linux/gcc10-extern_YYLOC_global_declaration.patch
|
|
@ -0,0 +1 @@
|
|||
../../.shared-patches/linux/linux3.4-vfs-Fix-proc-tid-fdinfo-fd-file-handling.patch
|
|
@ -0,0 +1 @@
|
|||
../../.shared-patches/linux/timeconst.pl-Eliminate-Perl-warning.patch
|
Loading…
Reference in a new issue