Commit Graph

52 Commits

Author SHA1 Message Date
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
qinglin.li 4cd82cccfc module: update module list [1/1]
PD#SWPL-95684

Problem:
module list should be update after module merge

Solution:
update module list

Verify:
sc2

Change-Id: I37fab9ca3d6701283af6d46321af9f65d2656e13
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-09 06:16:21 -07:00
yao zhang1 4f1f7a6f25 config: Enable CC_OPTIMIZE_FOR_SIZE & fix mk_c3_min compile .config not exist. [1/1]
PD#SWPL-98567

Problem:
1, kernel size need optimize
2, .config not exist

Solution:
1, Enable CONFIG_CC_OPTIMIZE_FOR_SIZE & close CONFIG_AMLOGIC_VMAP
before:uImage size: 2643KB/2.6M Image size: 11027KB/11MB
after: uImage size: 2347KB/2.3M Image size: 9977KB/9.6MB
uImage reduce 300KB, Image reduce 1,049KB
2, Do not export KCONFIG_CONFIG
3, Fix savedefconfig issue

Verify:
c3 pass

Change-Id: I84f63d2399461a12be368699ddb6f3451471c5ae
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2022-11-07 20:16:12 -07:00
qinglin.li ee9ad095d8 script: .config not exit when gx64 compile [1/1]
PD#SWPL-97112

Problem:
.config not exit

Solution:
not export KCONFIG_CONFIG

Verify:
SC2

Change-Id: Ia20a6827e81e31538b14f1b3ce16d72cfebd1590
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-01 22:15:03 -07:00
yao zhang1 d8207836f9 config: Add C3_debug_defconfig to enable USB adb. [1/1]
PD#SWPL-95000

Problem:
Need to enable USB adb

Solution:
Add C3_debug_defconfig to enable USB adb.
uImage increase 101KB

Verify:
c3 pass

Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
Change-Id: I49ed3e8b44ea60f4fc92b3fd9cd04e0b58d1e5fe
2022-10-28 18:00:50 -07:00
Wanwei Jiang bf119d2c23 scripts: fix build error [1/1]
PD#SWPL-96062

Problem:
build error "depmod: WARNING:" when creating initramfs

Solution:
the data of system_dlkm_modules which from modules.order is error

Verify:
sc2

Change-Id: Iecd0452932ff36bd36580b7b2152bf6d24b59834
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-10-27 00:25:17 -07:00
qinglin.li d111ada7c5 sc2: add gcc compile with arm64 [2/2]
PD#SWPL-97112

Problem:
add gcc compile with arm64

Solution:
fix gcc code style check error
build gcc arm64

Verify:
sc2

Test:
scripts/amlogic/mk_gx64.sh

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I7a70623bb91217f4a09b9e4624cc9cf82af09684
2022-10-24 20:05:38 +08:00
Hanjie Lin e6d82ef16c debug: fix gki10 break issue [2/3]
PD#SWPL-94447

Problem:
debug break gki10

Solution:
1, support amlogic_debug build to module, amlogic_debug module
   includes debug_lockup, cpu_mhz and meson_atrace for now.
2, amlogic_debug some function still build in kernel but not break
   gki10, for example: irq_check function on builtin kernel code,
   module_debug, workqueue debug etc.
3, new config CONFIG_AMLOGIC_HARDLOCKUP_DETECTOR still builtin but
   not break gki.
4, other functions for example iotrace still under developing

Verify:
sc2

Signed-off-by: Hanje Lin <hanjie.lin@amlogic.com>
Change-Id: I9c11465e3e879f999ae6fd13dc12c044efd2417a
2022-10-14 16:53:03 -07:00
yao zhang1 37365df098 config: C3 Kernel size optimize. [1/1]
PD#SWPL-95000

Problem:
Kernel size is too big

Solution:
Remove some CONFIGs

Verify:
c3 pass

Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
Change-Id: I13303e5e1e967961c6d1cc32a67465c423816276
Signed-off-by: yongbing.he <yongbing.he@amlogic.com>
2022-09-29 19:58:15 +08:00
qinglin.li 6dbd19f6c4 module_list: optimization load list [1/1]
PD#SWPL-89845

Problem:
i2c need to before dvb-extern
rng load first can optimization 1.6s time

Solution:
fix i2c before dvb-extern
optimization time

Verify:
sc2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I058b9f75e90903ee0b0e2f61e0b85e5a2c329b53
2022-09-07 20:15:59 +08:00
Wanwei Jiang 26bf5410a1 script: build linux kernel fail [1/1]
PD#SWPL-91666

Problem:
build linux kernel fail

Solution:
modify script

Verify:
sc2/a1

Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
Change-Id: I4e225d26ff9e3d5d491f5ef8e4f1ad64d6bcf0c9
2022-09-07 20:06:44 +08:00
qinglin.li 37caac235a scripts: fix fastboot update failed [1/1]
PD#SWPL-92909

Problem:
fastboot update failed

Solution:
add usb_otg.ko

Verify:
sc2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I070c2279f054a18f82f0e46c6b19c4aa9acbd67f
2022-09-07 20:06:44 +08:00
qinglin.li 4ea4809eb6 module: optimisation list of modules launched first [2/2]
PD#SWPL-89845

Problem:
optimisation list of modules launched first

Solution:
optimisation list of modules launched first

Verify:
sc2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I49fe2dc30588c5118540b378ae9ab26d6148f25e
2022-09-07 20:06:44 +08:00
wanwei.jiang 6ea233338e serial: change the build mode of serial driver [1/1]
PD#SWPL-89180

Problem:
change the build mode of serial driver

Solution:
1. --gki: don't build early console, build uart driver as module,
for android gki
2. --gi_user: buildin early console, build uart drvier as module,
for android
3. --gki_userdebug: buildin early console, buildin uart driver,
for fatloader

Verify:
sc2

Change-Id: I610c954d7b413265d7aa15f0ee5ca670895bacb5
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-09-07 20:06:43 +08:00
wanwei.jiang 0612e5e386 scrip: fix the problem of missing signature [1/1]
PD#SWPL-80766

Problem:
module verification failed: signature and/or required key missing - tainting kernel

Solution:
strip when make INSTALL_MOD_STRIP=1

Verify:
s4d && c2

Change-Id: I15d9210a0686e306138a69a62eb2892f3383f390
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-09-07 20:06:42 +08:00
pengzhao.liu 53a564385c auto sh: Increase the parameters for compiling dtb [1/1]
PD#SWPL-85831

Problem:
Increase the parameters for compiling dtb

Solution:
Increase the parameters for compiling dtb

Verify:
auto sh

Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
Change-Id: Ie99225febac0909f0580e7bb17870c6c812d0009
2022-06-30 20:28:03 -07:00
wanwei.jiang 907b44918e script: follow the rule of gki dtb build [1/2]
PD#SWPL-80766

Problem:
modify kernel to build dtb

Solution:
1. remove the patch of the kernel modified for DTB compilation
2. modify the script to support DTB compilation

Verify:
s4d and a1

Change-Id: Ia45992f2e6b13adcb089469fa3daf5c8e2d00874
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-05-18 02:44:57 -07:00
wanwei.jiang 8d4a513de8 script: optimize compilation scripts [1/1]
PD#SWPL-64232

Problem:
compile failed when the driver directory
is above the compilation directory

Solution:
add a link for compile

Verify:
s4d and c2

Change-Id: I2d2f98061e9112919dded5d47317f9ce6e06277c
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-05-05 17:16:19 +08:00
wanwei.jiang 5c861ae1c1 script: support ext module [1/1]
PD#SWPL-64232

Problem:
support ext module

Solution:
support ext module

Verify:
s4d c2 local build

Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
Change-Id: Ie4630b795fe0364e96cd07ed9c2a28f4630a31a8
2022-04-25 00:39:18 -07:00
wanwei.jiang 67a191d817 script: optimize compilation scripts [1/1]
PD#SWPL-78980

Problem:
optimize compilation scripts

Solution:
1. use clang compile without gcc tool
2. copy warning error

Verify:
c2 AF400

Change-Id: Id8c8e2437d8739ab9c4d50ca962744f0c6e8c0fe
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-04-18 21:27:00 +08:00
wanwei.jiang 50759e133a script: optimize output [1/1]
PD#SWPL-64232

Problem:
ramdisk and vendor related scripts and modules
are in the "modules" folder

Solution:
1. create a ramdisk and vendor folder
2. put the file in the corresponding path

Verify:
s4d and C2 AF400

Change-Id: Id65df11fb6ecd922904c4ea6bd3db2cbf1980c30
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-03-23 22:21:20 -07:00
wanwei.jiang 0a8d6ee32d script: modules sequence list [1/1]
PD#SWPL-64232

Problem:
ramdisk modules sequence list
vendor modules sequence list

Solution:
1. ramdisk modules sequence list
2. vendor modules sequence list
3. delete needn't modules
4. delete other chip modules

Verify:
s4d and C2 AF400

Change-Id: Ibb5aed6509b7b18a920e58d507337d3b56f5af32
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-03-23 05:22:35 -07:00
Qianggui Song 928e4e320b Pinctrl: fix wrong dtsi error and enable driver loading [1/1]
PD#SWPL-74259

Problem:
1. driver does not load in install scripts
2. dt bindings use c2 need

Solution:
1. Enable driver loading in install scripts
2. use c3 gpio dt-bindings and uncomment c2 GPIO

Verify:
C3_PTM

Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
Change-Id: I00b1535c2dcd24ff2f3f6b936f1aeda17436de7d
2022-03-23 15:29:34 +08:00
Lei Zhang 41daf8dd14 build: optimize build script [1/1]
PD#SWPL-71742

Problem:
auto sh depend on build result

Solution:
return value to auto sh if build error

Verify:
on C2 AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: I3c8778c0dfd54750756f7a567cc40ce91a8fecee
2022-03-22 18:45:59 -07:00
Lei Zhang dec4b28dd1 build: update toolchain to 10.3 [1/1]
PD#SWPL-71742

Problem:
update toolchain to 10.3

Solution:
update toolchain to 10.3

Verify:
on C2_AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: I757dbccb24e970764134a038d934e6db97ab1733
2022-03-17 01:06:42 -07:00
wanwei.jiang 27dd203d5a usb: reading USB stuck [1/1]
PD#SWPL-74824

Problem:
reading USB stuck

Solution:
adjust module loading sequence

Verify:
C2 AF400

Change-Id: Ic30872380a4f671537334a975dbafd97e99e1fa2
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-03-16 21:16:43 +08:00
Jianxiong Pan 49f5c2ebbe mm: arm32: enable kasan. [1/1]
PD#SWPL-73890

Problem:
enable kasan on arm32.

Solution:
enable CONFIG_KASAN config.

Verify:
local.

Change-Id: I39c3459736c46b45f37c48d120b4e173fc614bdf
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-03-10 04:37:14 -07:00
Lei Zhang b6ffc36c78 build: optimize build script for c2 [1/1]
PD#SWPL-71742

Problem:
optimize build script for c2

Solution:
optimize build script for c2

Verify:
on C2_AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: Idc350f2c524f1f5f04440464fafd77f0760a72ab
2022-03-10 03:54:50 -07:00
qinglin.li 54fd189947 build: add 32&&64bit clang build scripts[1/1]
PD#SWPL-71749

Problem:
add 32&&64bit clang build scripts

Solution:
add 32&&64bit clang build scripts

Verify:
c2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I3ead5c153f29c5b0e4889d8968537bda38906f41
2022-03-03 03:39:29 -07:00
Lei Zhang 475c17bd11 build: enable ko build [1/1]
PD#SWPL-72345

Problem:
enable ko build

Solution:
enable ko build

Verify:
on C2_AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: Iddfa3274867396fbbf72a600ec86ea57a719b1e7
2022-03-03 13:59:44 +08:00
Lei Zhang 3faeb77a5a aarch32: bring up c2 for aarch32 [2/2]
PD#SWPL-71725

Problem:
bring up c2 for aarch32

Solution:
bring up c2 for aarch32

Verify:
on C2_AF400

Signed-off-by: Lei Zhang <lei.zhang@amlogic.com>
Change-Id: I762a2066d07a0aae120524e2f5be6a5be59fe10a
2022-02-23 04:16:01 -07:00
wanwei.jiang 95a63652bd build: savedefconfig [1/1]
PD#SWPL-72981

Problem:
add savedefconfig function to script

Solution:
add savedefconfig function to script

Verify:
c2

Change-Id: I383b139ec58c40018f699fccec9af1ef766fd8b3
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-02-22 03:31:33 -07:00
wanwei.jiang 7ef5fd4983 build: directory customization [1/3]
PD#SWPL-72631

Problem:
common, build and common_drivers directories are not under the same directory

Solution:
common, build and common_drivers directories customization

Verify:
s4d and C2 AF400

Change-Id: I8e29737a0a791d58454691e922dda949098595bb
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-02-22 11:00:37 +08:00