Commit Graph

99 Commits

Author SHA1 Message Date
dongqing.li 4f5ec8d880 ramdump: Use RAMDUMP_TEXTOFFSET to integrate text modifications [1/1]
PD#SWPL-182182
PD#SWPL-190334

Problem:
TEXTOFFSET was changed from 0x00208000 to 0x02008000, causing some
devices to fail to start.
1. t5d Android U upgrade project, ko becomes build, uImage size
increases to 36MB. It is too big to relocate.
2. There is only 48MB in 0x020080000~0x5000000 area, and cannot
open kasan.

Solution:
1. use new config CONFIG_AMLOGIC_RAMDUMP_TEXTOFFSET instead of
CONFIG_AMLOGIC_RAMDUMP. And TEXTOFFSET is 0x00208000 default.
2. Use a new solution instead of modifying TEXT. Specifically,
during kernel panic, move 0-24MB to a higher address. Reboot to
uboot and then copy back.

Verify:
T5D

Change-Id: Ifcbf7883969161ff2872d3300ee9b756dc949917
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-11-07 23:12:35 -08:00
yiting.deng 5afc832897 clk: optimize pll driver to adapts 32bit and 64bit [1/1]
PD#SWPL-188367

Problem:
1. Optimized pll clk_ops for 32bit and 64bit compatibility
2. use the integrated pll clk_ops to adapt supported chips

Solution:
1. already integrated into pll clk_ops
2. supported chips already adapted.

Verify:
sc2

Change-Id: Ie202432ea962135c000d63eb254e9a5e100d2ab0
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-10-27 23:09:23 -07:00
dongqing.li 71fc39c31f ramdump: support arm32/arm64 for ker6.12 [1/1]
PD#SWPL-188348

Problem:
ker6.12 souce code is old. And ramdump
is not working properly.

Solution:
1. sync ramdump.c from ker5.15.
2. enable CONFIG_AMLOGIC_RAMDUMP
3. modify TEXTOFFSET=0X0200800 for ker 32bit

Verify:
SC2_AH212

Change-Id: Id19ba0ef1302e9cf4cdf379d10c625519a8eef36
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-10-25 02:08:07 -07:00
Jianxiong Pan 450465a0a7 mm: aml_smmu: move aml_smmu ko to memory_ext directory. [1/1]
PD#SWPL-188508

Problem:
optee depends to aml_smmu ko.

Solution:
make aml_smmu independent.

Verify:
sc2.

Change-Id: Ief77a87d7862ebfacacaaa92e971b19b0e5e9ba0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-10-24 00:27:10 -07:00
Dezhen Wang 0a9b1d164d scripts: 6.6 mv common_drivers to up dir fix bug [1/1]
PD#SWPL-189685

Problem:
not change mk_smarthome32.sh

Solution:
change path in mk_smarthome32.sh

Verify:
local

Change-Id: I4ef61d4224e91fd2cf166b980b6aa112b927ae42
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
(cherry picked from commit 4e3efd7be9db7da1260a6b25b324e193e1043fea)
2024-10-20 23:58:24 -07:00
Dezhen Wang 5c4980155c scripts: 6.12 mv common_drivers to up dir [1/1]
PD#SWPL-188894

Problem:
common_drivers dir is not normal position. move it out of common dir.

Solution:
move it out of common dir

Verify:
local

Change-Id: I949688e2e86d687ef205030a646975065860950a
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-10-17 00:11:25 -07:00
Yu Tu 75d44dfe97 pcie: sc2 pcie bringup kernel6.12 [1/1]
PD#SWPL-188391

Problem:
sc2 pcie bringup kernel6.12

Solution:
sc2 pcie bringup kernel6.12

Verify:
sc2_ah212

Change-Id: Ie220eb341e98bf27f51b7311afa0c06eaa9b00ee
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-10-16 04:58:46 -07:00
Dezhen Wang 1443bc6622 upgrade: smarthome need to remove debug info [1/1]
PD#SWPL-160380

Problem:
smarthome ko have debug info

Solution:
remove the debug info

Verify:
Detail info

Change-Id: I61b1cc53b6a3168263fce523e63185745443d437
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-06-27 12:13:48 +00:00
Dezhen Wang bfd440bead scripts: support closed source modules build to Independent folder [1/2]
PD#SWPL-158464

Problem:
support closed source modules build to Independent folder and copy
to android output folder

Solution:
add closed source modules list to blacklist

Verify:
local

Change-Id: Ibd9be1c7e8e7eb1b043fd10e96436cb1d96f78a1
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-03-22 04:24:16 -07:00
haotian.qu 0685ce90ac fdtoverlay: fdtoverlay support delete dts node. [1/1]
PD#SWPL-150301

Problem:
Fdtoverlay cann't support remove unnecessary dts node.

Solution:
Add __removenode__ key work to support the function.

Verify:
local

Change-Id: Ia586fdd02b9be1d227ab527c3bbf363ab1ff4604
Signed-off-by: haotian.qu <haotian.qu@amlogic.com>
2024-03-22 00:12:38 -07:00
Junyi Zhao ebbcd363d6 i2c: no i2c in recovery mode [1/1]
PD#SWPL-161849

Problem:
no i2c in recovery mode

Solution:
add ko to load in recovery mode

Verify:
T7c an400

Change-Id: I14ab19508a45da0d0538c9ed95b75d266ce98046
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-03-20 23:42:38 -07:00
Dezhen Wang 3bf41c9833 scripts: support building command SKIP_RM_OUTDIR=1 for smarthome [1/2]
PD#SWPL-161245

Problem:
building command SKIP_RM_OUTDIR=1 will fail because last build remain
the staging dir

Solution:
remove staging dir in last build

Verify:
local

Change-Id: I057b5d33def309197b43627ff88976a86580ce4a
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-03-20 07:57:01 -07:00
Wanwei Jiang 05ed255586 upgrade: android15-6.6 in 2024/03 [2/2]
PD#SWPL-160463

Problem:
record merge upstream information

Solution:
AML_KERNEL_VERSION      4
UPSTREAM_VERSION        "23e5041bd90d"
AML_PATCH_VERSION       "23e5041bd90d"
MERGE_DATE              "2024-03-13"

Verify:
a4/a5

Change-Id: I9e5545565e80832b588add194e1b22b1101cbfe4
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-03-14 19:02:50 +08:00
hongyu.chen1 c20fac41a4 spinlock: porting spinlock to kernel 6.6. [1/1]
PD#SWPL-157145

Problem:
kernel6.6 need support bak spinlock

Solution:
1.Migrate the driver to ensure normal functions.
2.Add the mbox communication configuration address

Verify:
ba400 and av400

Change-Id: I35f29a83aacb6f8366aa226abd60d4dfea41f8b2
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-03-07 17:53:11 +08:00
Dezhen Wang 17548f36a0 kernel6.6: support clang build for a4 and a5 [1/1]
PD#SWPL-156726

Problem:
support clang build for a4 and a5

Solution:
fix build error

Verify:
a4 a5

Change-Id: I9aa3e06010344c9a313365d3dcdf1b10b4f75904
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-02-21 04:05:40 -07:00
Jianxiong Pan ea5f9fa169 mm: move aml_smmu ko to memory_debug directory. [1/1]
PD#SWPL-150034

Problem:
reduce the ko number.

Solution:
move aml_smmu ko to memory_debug directory.

Verify:
local.

Change-Id: If537a6a6493a9944319caa344ad8e3a73c294179
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-01-19 03:11:39 -07:00
Dezhen Wang aad9926071 kernel6.6: upgrade up gcc to 13.2 and fix build error [1/1]
PD#SWPL-150393

Problem:
bring up kernel6.6 gcc

Solution:
upgrade gcc and fix build error

Verify:
a4

Test:
local

Change-Id: I246d6f45fa024cb9bda601e9289ffa3d84d27ce0
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-01-12 08:55:56 +00:00
Dezhen Wang b9ca09ab85 kernel6.6: support building dtbs for smarthome. [1/1]
PD#SWPL-151768

Problem:
there are some problem in building dtb

Solution:
fix the function for building dtbs for smarthome

Verify:
local

Change-Id: I6a8b943504eeaa2174cb8a03bb3e729d222bf8bf
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-01-01 23:07:47 -07:00
Wanwei Jiang b5524e8e6c kernel6.6: bring up to console for a4 and a5 [1/1]
PD#SWPL-149306

Problem:
bring up to console

Solution:
1. poritng dts from kernel5.4
2. modify build script for kernel6.6

Verify:
local

Change-Id: I41748eedb1592c01b54c0b7c4a96623df99fa5ec
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-15 18:34:04 +08:00
Wanwei Jiang 43461aec82 kernel6.6: bring up [1/1]
PD#SWPL-145682

Problem:
bring up kernel6.6

Solution:
1. porting kernel6.6
2. compatible with different kernel versions
3. bring up kernel6.6

Verify:
sc2 c2 a4 a5

Test:
None

Change-Id: Ie22af0abc8ea96261e8a8cc7804b58565aedd904
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-12-14 16:55:55 +08:00
Yu Tu 6c9238f81c pci: fixed fake smmu question [1/1]
PD#SWPL-142366

Problem:
fake smmu for GKI2.0 cause problems

Solution:
modified load modules_sequence_list

Verify:
S5 and Sc2

Change-Id: I74f81c48437a5fab4e99c158ac350b3d05c856ee
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-10-12 20:54:34 -07:00
donghui.wang 84674ae270 ldim: remove ldim_fw.ko from modules load list [1/1]
PD#SWPL-131721

Problem:
remove ko from modules load list

Solution:
remove ko from modules load list

Verify:
t3

Change-Id: Ib925b3c7b13c1d7e64de9946b0142b7a1f42e429
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-08-26 22:03:35 -07:00
Dezhen Wang ad3fffe07e scripts: separate the code for building android 32bit from 64bit [1/1]
PD#SWPL-134884

Problem:
the script is not clear

Solution:
separate the code for building android 32bit from 64bit.

Verify:
local

Change-Id: I116fd122061abf059f0134c94c09198f822b5c0a
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-08-25 20:03:35 -07:00
donghui.wang 7e1e3fb48e ldim: add ldim panel type for linux dts [1/1]
PD#SWPL-131721

Problem:
miss ldim panel type

Solution:
add panel type for ldim

Verify:
t3

Change-Id: I1efb09c2e080297529aea351a474f36286d367bb
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-08-17 06:14:33 -07:00
Dezhen Wang a61ab1ee3d script: optimize script mk_zapper32.sh [1/1]
PD#SWPL-136789

Problem:
optimize script mk_c3_min.sh

Solution:
1. support --savedefconfig
2. optimize script mk_zapper32.sh

Verify:
local

Change-Id: I3f8e578bed3459cd5ca4c46c538f97c3f9678eec
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-08-17 00:19:08 -07:00
yao zhang1 b26b66acf9 config: Add zapper extra defconfig. [1/1]
PD#SWPL-133035

Problem:
Need some debug configs & modules verification.

Solution:
Add zapper extra defconfig.

Verify:
s1a bg201/bg209

Change-Id: I3e99dd9473ac7ae8e79086ebeab686c67e8efc33
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2023-08-15 10:36:50 +08:00
qi duan bd99c3aa78 USBNET: config usbnet to m [1/1]
PD#SWPL-134706

Problem:
usbnet can not use

Solution:
android defconfig change CONFIG_USBNET to m
and ko need to add list

Verify:
an400

Change-Id: I4e2e03b93b6a6f4ef750d31249da38ec7502f90e
Signed-off-by: qi duan <qi.duan@amlogic.com>
2023-08-08 08:09:27 -07:00
qinglin.li eb684e8e7c script: typo issue [1/1]
PD#SWPL-134886

Problem:
typo issue

Solution:
fix typo issue

Verify:
c3

Change-Id: I586aeda313c287861fa10a357b1d882cc1ed721b
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-08-04 04:53:11 -07:00
Wanwei Jiang 444c670bb6 script: optimize script mk_c3_min.sh [1/1]
PD#SWPL-134886

Problem:
optimize script mk_c3_min.sh

Solution:
1. support --savedefconfig
2. optimize script mk_c3_min.sh

Verify:
c3

Change-Id: I6c6921ec09693cc4720f0d8e0ec4fc13a42ba370
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-08-04 02:29:11 -07:00
Dezhen Wang 42c6bf81f1 script: adjust the build script for 32bit [1/1]
PD#SWPL-132031

Problem:
have not build android_overlay_dt.dtbo

Solution:
adjust the build targets

Verify:
planck_32bit

Change-Id: Iab2b2ffbcf4bee0e97fe2bb69fc92212d0a008f3
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-08-02 22:28:46 -07:00
Wanwei Jiang 7c582c0027 customer: support customized modules loading sequence [1/3]
PD#SWPL-132930

Problem:
support customized modules loading sequence

Solution:
1. priority of module loading order files:
${MODULES_SEQUENCE_LIST} > scripts/amlogic/modules_sequence_list
2. solving the problem of bazel output directory
3. export GKI_MODULES_LIST

Verify:
ohm planck

Change-Id: I31951289377e880017fd49b245641c14e001ffe3
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-07-27 23:05:10 -07:00
Dezhen Wang 0c1f3906ad script: export the branch parameter for vts test [1/1]
PD#SWPL-132039

Problem:
vts test planck have not kernel version

Solution:
export the branch information

Verify:
planck_32bit

Change-Id: I6375f9642618c808ab8ea856bf184264f03afaec
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-07-25 05:57:22 -07:00
Dezhen Wang 1176fad163 Script: support build 32bit android kernel without build.sh [1/1]
PD#SWPL-126348

Problem:
build.sh file will remove in the future kernel version. we can not use
it to build with 32bit

Solution:
support build 32bit android kernel with clang of gcc

Verify:
local

Change-Id: I0774fc57aaac2555b8ddc99c74997204ba6763a9
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-06-30 01:50:48 -07:00
pengzhao.liu a923dea38d kernel: Remove Makefile autoreview script [1/2]
PD#SWPL-128588

Problem:
Cannot copy files when compiling

Solution:
Remove Makefile autoreview script

Verify:
no

Change-Id: Icdbe276ef2a5c2aefe0173c0b8457c09a3b40e4b
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
2023-06-27 01:17:25 -07:00
Dezhen Wang a6806c5ce6 Script: integrate the config in fragment for 32bit kernel [1/1]
PD#SWPL-127665

Problem:
the config in 32bit is unnecessary

Solution:
integrate the config in fragment for 32bit kernel

Verify:
local

Change-Id: I139a2753d1e5c0c018ffa6d6ef610e4f335e0d06
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-06-16 05:34:21 -07:00
Dezhen Wang 850c0d2b01 Script: optimize the structure for build script [1/1]
PD#SWPL-124723

Problem:
build script mk.sh is too redundant

Solution:
optimize the structure for mk.sh and extract some command to functions in
amlogic_utils.sh

Verify:
local

Change-Id: If5c5ecfc651013169922d65128ffec88347d3ad2
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-06-07 05:18:27 -07:00
qinglin.li afa7927a1f upgrade: kernel upgrade by May [1/1]
PD#SWPL-124098

Problem:
kernel upgrade by May

Solution:
kernel upgrade by May

Verify:
local

Change-Id: I19aa4e7ca1d6e43703f1752e3e46f8bdcaf8c08b
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-05-24 04:48:18 -07:00
hongyu.chen1 0da7333732 T3X: add hwspinlock. [3/3]
PD#SWPL-111606

Problem:
add hwspinlock driver

Solution:
add hwspinlock driver

Verify:
mimic

Change-Id: I517b1a2a9b8500d7131c48afe47332e0ea3f56e7
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-05-18 21:08:38 +08:00
Wanwei Jiang 475245b5b3 system_dlkm: gki modules white list [1/2]
PD#SWPL-122842

Problem:
support gki modules white list

Solution:
support gki modules white list

Verify:
sc2

Change-Id: Iaea1035136a4000189d2aac4316e01884d8d2d0e
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-05-15 00:25:12 -07:00
Dezhen Wang 7a4a7a9d50 scripts: detect the kernel version automatically in build [1/1]
PD#SWPL-121365

Problem:
build parameters is too much

Solution:
detect the kernel version automatically in build.config.constants

Verify:
local

Change-Id: Ia29f10ead028f858809bb250511fe6d601a2ee59
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-05-14 20:42:16 -07:00
Jian Hu 301e4276c1 scripts: let aoclk insmod earlier than saradc [1/1]
PD#SWPL-121025

Problem:
saradc deferred probe panic after insmod
amlogic-adc.ko

Solution:
let aoclk insmod earlier than saradc

Verify:
t5w at301

Change-Id: I8ba994cab0a9cc2a7d5f82f5ff551a86925fda6a
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2023-04-24 00:43:05 -07:00
song.han 29925ebc8a debug: iotrace driver follow gki 2.0 [2/2]
PD#SWPL-109963

Problem:
iotrace driver need follow gki 2.0

Solution:
iotrace driver build to ko

Verify:
sc2_ah212

Change-Id: I472bc63b6594c58d7c94f74e1bf1a070978b20fd
Signed-off-by: song.han <song.han@amlogic.com>
2023-04-20 06:15:21 -07:00
Wentao.Sun df3426ef7e module sequence: change optee sequence [1/1]
PD#RSP-5169

Problem:
tee protect gpu memory failed

Solution:
change optee sequence

Verify:
Android T + sc2_ah212

Change-Id: Iac9d626383a87ee959815a9593440462240a4937
Signed-off-by: Wentao.Sun <wentao.sun@amlogic.com>
2023-04-16 22:35:08 -07:00
chengbing.wu 29655631ae pmic: a1 k5.15 pmic and sub driver porting [1/1]
PD#SWPL-112358

Problem:
ad403 is missing pmic6b driver in kernel5.15.

Solution:
base Yu Tu 76117 and 78726;
base Jian yi 189702 and 192916,216774;
and yao jie 216898;

Verify:
A113L-AD401 #1 +Battery.
all driver use ko;

Change-Id: I911ca92dbe6f8c0f623e32fd14bdcf23a6318861
Signed-off-by: chengbing wu <chengbing.wu@amlogic.com>
2023-04-16 22:32:09 -07:00
Yu Tu 77b03370e5 pcie: pcie module name not match [1/1]
PD#SWPL-115979

Problem:
pcie module name not match

Solution:
modified to init name

Verify:
t7

Change-Id: I873fbc2215de21ed5d64f2ba26ae82e7ec26ff46
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-04-15 08:59:04 +08:00
Yu Tu 908927c13e pcie: add pcie driver for s5 [1/1]
PD#SWPL-108762

Problem:
need bringup s5 pcie

Solution:
add s5 pcie driver

Verify:
s5_208

Change-Id: Ifc3430a5b01486faab24ef4222fb74ccaa3fd0ec
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-04-15 08:59:03 +08:00
hongyu.chen1 8bdf6c54a3 S5: add hwspinlock. [1/1]
PD#SWPL-108727

Problem:
need hwspinlock.

Solution:
add hwspinlock.

Verify:
ax201

Change-Id: Ibb3970f9f4bbc325548d35e0401bd135dbf8da5a
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-04-15 08:55:56 +08:00
junwei.ma 69cacc04bf ISP: G12B & SM1 Bringup - Kernel - Display - mipi camera of SM1 [1/1]
PD#SWPL-108141

Problem:
5. 15 no camera driver

Solution:
porting camera driver to kernel-5.15

Verify:
ok

Change-Id: I92789c946a8f2456f6bb68adc52ece77cd730f81
Signed-off-by: junwei.ma <junwei.ma@amlogic.com>
2023-04-04 19:48:16 +08:00
hongyu.chen1 f38f2c2a81 sm1: add power domain. [1/1]
PD#SWPL-104278

Problem:
add power domain.

Solution:
add power domain.

Verify:
sm1

Change-Id: I0aab1e2e3b65d279a4194095ded67b063cdfb7f7
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2023-04-04 19:35:44 +08:00
Wanwei Jiang ebd7f802c5 module: auto patch with mk_smarthome [1/1]
PD#SWPL-109858

Problem:
auto patch with mk_smarthome
ls: cannot access '*.patch': No such file or directory

Solution:
auto patch with mk_smarthome
using find instead of ls command

Verify:
sc2

Change-Id: I76a156cc1f556e9361e809f2d4de59b62d2260b6
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-04-04 04:20:50 -07:00