Commit Graph

84 Commits

Author SHA1 Message Date
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
Jianxiong Pan 1ff6652c7d zapper: add zapper defconfig. [1/1]
PD#SWPL-116862

Problem:
add zapper defconfig.

Solution:
get from mk_gx32.sh

Verify:
build pass.

Change-Id: Ibaaf4095617e825d36d9657404ee7c6e897f6133
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-04-04 00:39:56 -07:00
Dezhen Wang 45dfcb0c98 Script: add function of insmod ko according to need of service loaded [2/11]
PD#SWPL-111103

Problem:
Need to add the function of insmod ko by service itself when it is loaded

Solution:
copy the files from service_module to modules to support the function.
adding new function in amlogic_utils.sh script and add the interface in
Android code

Verify:
sc2

Change-Id: Ifd5220abe93eae44d274ac7ab1678acf7b476f60
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-03-09 21:20:42 -08:00
qinglin.li dba324feb1 script: recovery mode load all module [1/1]
PD#SWPL-113626

Problem:
1.recovery mode load all module
2.t7c usb not work in fastboot

Solution:
1.add control when RECOVERY_MODULES_LOAD_LIST is NULL
2.t7c usb need dwc_otg driver

Verify:
local

Change-Id: Ie3165280d3d89c600f4c4d591b3f6fb4565d5da1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-03-03 04:12:57 -08:00
qinglin.li 8d41aaf6f1 gki_20: modify break gki_20 [3/3]
PD#SWPL-101048

Problem:
add gki 2.0 check kernel build parameter

Solution:
add gki 2.0 check kernel build parameter

Verify:
local

Change-Id: I6f718c36848f39801f6eb9ec43212fbca706d986
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-02-28 06:10:50 -08:00
Wanwei Jiang 0c2b2004db auto_patch: bring up androidu with common14-5.15 [1/1]
PD#SWPL-109858

Problem:
support auto patch

Solution:
modify scripts to support auto patch

Verify:
sc2

Change-Id: Ibb247019844dcbdcd3311af6e640ff637061c8c2
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-02-23 05:46:02 -08:00
Wanwei Jiang e9412eceb6 auto_patch: bring up androidu with common14-5.15 [2/3]
PD#SWPL-109858

Problem:
support auto patch

Solution:
modify scripts to support auto patch

Verify:
sc2

Change-Id: If99091e1a24bb36f58415b228d8b302087c21d09
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-02-12 22:40:26 +08:00
Dezhen Wang 124ad7da4d Script: add manual insmod function in mk_smarthome_common.sh and mk.sh [1/1]
PD#SWPL-110696

Problem:
there is no manual insmod ko function in mk_smarthome_common.sh and mk.sh

Solution:
adding new manual insmod ko function in amlogic_utils.sh
mk_smarthome_common.sh and mk.sh

Verify:
s4d_s805c3_t215_512m S905X4-AH212

Change-Id: I3c555c50a072036f70a8309976bd91e4b6dff045
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-02-11 03:45:06 -08:00
yanmei.yang 34871d2b56 yocto: fix wrong config filename in gcc 32 scripts [1/1]
PD#SWPL-93910

Problem:
wrong config filename in gcc32 scripts

Solution:
fix wrong config filename in gcc32 scripts

Verify:
Local

Change-Id: I1371a5500115b3601953f1987581b49fadde5c95
Signed-off-by: yanmei.yang <yanmei.yang@amlogic.com>
2023-02-07 01:43:22 -08:00
yanmei.yang be948b271c yocto: remove unnecessary gcc compile option for ARCH arm [1/1]
PD#SWPL-93910

Problem:
remove unnecessary gcc compile option for ARCH arm

Solution:
remove unnecessary gcc compile option for ARCH arm

Verify:
Local

Signed-off-by: yanmei.yang <yanmei.yang@amlogic.com>
Change-Id: Ie254a1465b01f70ba77b985e4ca727681dac3b69
2023-02-03 03:11:13 -08:00
qinglin.li 77dd0867cb usb: load usb ko in first stage [1/1]
PD#SWPL-107415

Problem:
NTFS usb connect reboot

Solution:
load usb ko in first stage

Verify:
T3

Change-Id: Iea8c505a3ba5f3a9f31230676cf3f8fe0b44ea50
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-01-12 14:56:50 +08:00
qinglin.li 2f20b456a1 usb: load usb ko second stage first [1/1]
PD#SWPL-107415

Problem:
NTFS usb connect reboot

Solution:
load usb ko first in second stage

Verify:
T3

Change-Id: I6380d8c633b7d80858b3224b60b719a685808bd1
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2023-01-11 03:29:21 -08:00
Ao Xu 739dc2ae9b drm: rename drm driver name to aml_drm [1/1]
PD#SWPL-106737

Problem:
5.4 module name is not same with 5.15
user app cannot find the module parameter file.

Solution:
rename drm driver name to aml_drm

Verify:
ah212

Test:
DRM-OSD-31

Change-Id: I71cf2a9c3e85157b63fc30b14702b8d3b640315a
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-01-04 20:11:38 -08:00
bo.li a5b52569c0 wifi: adjust the insmod order of pcie and wireless drivers [1/1]
PD#SWPL-106037

Problem:
w2 pcie enumeration failed

Solution:
adjust the insmod order of pcie and wireless drivers

Verify:
t210(s905x4+w2 Revb)

Change-Id: I6ed78f66a10de5314f7e7e272c77efb8cf3da1cb
Signed-off-by: bo.li <bo.li@amlogic.com>
2023-01-04 06:16:02 -08:00
Wanwei Jiang 571dde66c3 script: optimize android driver loading [1/2]
PD#SWPL-101063

Problem:
android starts slowly

Solution:
1. add the recovery driver array, and make recovery's modules.order
2. put the necessary drivers in the first stage, the android start faster

Verify:
sc2

Change-Id: I00276ff6b9d4e38b4bb31c5f5b09dfd76317c994
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-12-24 00:21:47 -08:00
Lei Zhang b1e8999415 riscv: initial commit for C3 PXP [3/3]
PD#SWPL-94239

Problem:
initial commit for C3 PXP

Solution:
initial commit for C3 PXP

Verify:
on PXP

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: I9ae658e27f152702d221e29ec6ed9283acb1b7ec
2022-12-02 08:48:00 -07:00