Commit Graph

100 Commits

Author SHA1 Message Date
dongqing.li 11a74ef66f 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: I1c9c086b89129893e5542676b54228e03b4e34c2
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-11-07 23:05:20 -08:00
dongqing.li 8846993503 ramdump: set TEXT_OFFSET=0x02008000 for ker5.15-u32 [1/1]
PD#SWPL-182182

Problem:
The .text addr of Kernel 32bit is 0. When enabling the
ramdump, it needs to be offset to 24MB+.

Solution:
1. modify textofs-y := 0x02008000, LOADADDR=0x02008000
2. enable for .ko link error: CONFIG_ARM_MODULE_PLTS
3. disable AUTO_ZRELADDR (less than 128MB, not necessary)
4. enable for crash debug: CONFIG_AMLOGIC_RAMDUMP, CONFIG_KALLSYMS,
CONFIG_KALLSYMS_ALL, CONFIG_DEBUG_INFO, CONFIG_FRAME_POINTER,
CONFIG_DEBUG_KERNEL
5. add trace_android_vh_ipi_stop() for ker 32bit IPI_STOP.

Verify:
sc2, T5D, T5W, TXHD2, S4D

Change-Id: I22fff913a9550c029baef93933fea240bf58bbc0
Signed-off-by: dongqing.li <dongqing.li@amlogic.com>
2024-10-23 21:46:04 -07:00
tuan zhang 11088458d6 defconfig: Rename gcc64_deconfig [1/1]
PD#SWPL-187694

Problem:
Wrong name of gcc64_deconfig

Solution:
Rename from amlogic_gcc64_deconfig to amlogic_gcc64_defconfig

Verify:
compile pass with mk_gx64.sh

Change-Id: Iaaf8cac59ae9e3bf275a41506956e1661f480335
Signed-off-by: tuan zhang <tuan.zhang@amlogic.com>
2024-10-08 04:20:40 -07:00
Tao Zeng 187ca993ca t6d: amfc: use device config and compress uImage
PD#SWPL-181954

Problem:
uImage not decompressed by AMFC

Solution:
1, change zstd tools to append size at end of uImage;
2, change scripts to support uImage decomperss by AMFC

Verify:
t6d

Change-Id: I2f2465a2247085c150a1c7f42ede688011745071
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-08-22 14:40:36 +08:00
Xingxing Wang 69025f28c9 thermal: load thermal ko before mmc ko [1/1]
PD#SWPL-177584

Problem:
mmc ko need to read temperature to init

Solution:
load thermal ko before mmc ko

Verify:
sc2

Change-Id: Ic61ea462045435985d76bfc6050b310f1f3e97f2
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-07-30 00:40:42 -07:00
honghai.song 34b7c6260c scripts: support closed source modules build to Independent folder [3/3]
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: Ie6bed0f23802ef3b812218251a6641dc150027f6
Signed-off-by: honghai.song <honghai.song@amlogic.com>
2024-07-07 21:47:05 -07:00
Yu Tu 6a27313b4c pcie: s6 pcie bringup [1/1]
PD#SWPL-172979

Problem:
need support pcie on s6

Solution:
s6 pcie silicon bringup

Verify:
s6_s905x5_bl208

Change-Id: Id806003e2c49b3af7406de2f79cd565729069cd3
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2024-07-05 10:44:46 +08:00
Tao Zeng 1ca8311a90 amfc: add aml erofs ko to suppor hardware [1/2]
PD#SWPL-173093

Problem:
build in erofs do not support amfc hardware

Solution:
add aml erofs ko to support it

Verify:
s7d bm201

Change-Id: I89ef060fabaca2f4d7cbaf26b552ba147c73f539
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-06-24 20:04:09 -07:00
yiting.deng f61d85fdf5 clk: clean scmi related config [1/1]
PD#SWPL-170472

Problem:
scmi macro configuration is improper. For 64-bit only
need to configure CONFIG_COMMON_CLK_SCMI and for 32-bit
need to configure CONFIG_ARM_SCMI_PROTOCOL=y to
a32_base_defconfig

Solution:
fix it

Verify:
s7

Change-Id: I2cd9750fc59a85b1fba1b561569400c812e2cd3d
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-05-23 08:05:54 -07:00
Tao Zeng c2ce371c4a amfc: add amfc driver support [1/1]
PD#SWPL-137614
PD#SWPL-163213

Problem:
No amfc driver

Solution:
add it:
1, basic driver for AMFC
2, EROFS support
3, kernel compressed by ZSTD support

Verify:
pxp

Change-Id: I45d2e308d209e35edba626619072aae93c4d0f56
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-05-15 02:28:22 -07:00
Huqiang Qin 6c878f646b saradc: s7d: support saradc [1/1]
PD#SWPL-163056

Problem:
S7D Silicon Bringup.

Solution:
Add a new SARADC driver.

Verify:
S7D/BM201

Change-Id: I5049a6f741bcc72691c931bc10830b30dc53913c
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-04-17 19:31:21 +08:00
Dezhen Wang 7a28cd68af scripts: fix building error remove staging dir last time [1/1]
PD#SWPL-163329

Problem:
building will fail because last build remain the staging dir

Solution:
remove staging dir in last build

Verify:
local

Change-Id: I5ca2751b70240afac2faff3fea1420f3fda3ad98
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2024-04-16 05:06:56 -07:00
Dezhen Wang 0a45329dfa 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:23:15 -07:00
haotian.qu f76dbc1a97 fdtoverlay: kernel add fdtoverlay delete dts node config [5/6]
PD#SWPL-150301

Problem:
Kernel add fdtoverlay delete dts node config.

Solution:
1.Add CONFIG_AMLOGIC_FDTO_REMOVE_NODE to support
enable fdtoverlay delete dts node.
2.Delete redundant dts files.

Verify:
local

Signed-off-by: haotian.qu <haotian.qu@amlogic.com>
Change-Id: Iabbbdb699e457c13124308eb0cb0e38356a66764
2024-03-22 00:12:21 -07:00
Junyi Zhao e08b41e579 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-21 03:51:01 -07:00
Dezhen Wang c7e8fdac79 scripts: support building command SKIP_RM_OUTDIR=1 for smarthome [1/1]
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 22:33:32 -07:00
shufei.zhao f7d89c37df autosh: check dtsi&dts [1/1]
PD#SWPL-157200

Problem:
Check whether the dts and dtsi
modifications of the same board are complete

Solution:
add the check rule

Verify:
auto-sh

Change-Id: I54af1b845f6c68444298d0c2bcf1fe2974c8bb9f
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2024-02-25 22:55:19 -07:00
Dezhen Wang 6256ce3548 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:46 -07:00
Jianxiong Pan 53afcf70d1 mm: userfault ko early loading. [1/1]
PD#SWPL-154394

Problem:
userfault load too late to print info.

Solution:
userfault early loading.

Verify:
local.

Change-Id: Icc654e4810be34e9ead575515a68a8491ace46a8
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-01-17 22:35:46 -07:00
qinglin.li 67127b1b77 dmc: tm2 dmc bring up [1/1]
PD#SWPL-143634

Problem:
tm2 dmc bring up
cpu info modules need to load earlier due to get cpu version

Solution:
tm2 dmc bring up
cpu info modules load earlier

Verify:
local

Change-Id: I0ce73c49a9c0aefb1d3beac3151eac20eec2b166
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-12-22 16:08:59 +08:00
Zhigang Yu 1fd8aed24e recovery: add gpio-regulator.ko for tfcard [1/1]
PD#SWPL-145798

Problem:
recovery can not load tfcard.

Solution:
add gpio-regulator.ko for ftcard.

Verify:
t7c

Change-Id: I059968f72f9011ab1df50eac3c706f772e218a95
Signed-off-by: Zhigang Yu <zhigang.yu@amlogic.com>
2023-12-13 20:59:05 -07: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