Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
付燕斌
android-image-pack-tool
Commits
7e2aaa23
Commit
7e2aaa23
authored
Sep 13, 2024
by
fuyanbin
Browse files
读取固件获取rockchip 芯片信息
parent
607e77ca
Pipeline
#55414
passed with stages
in 2 minutes and 44 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
pack-ci.sh
View file @
7e2aaa23
...
@@ -360,71 +360,9 @@ __pack_super_img() {
...
@@ -360,71 +360,9 @@ __pack_super_img() {
}
}
__get_chip_from_parameter
()
{
__get_chip_from_parameter
()
{
local
parameter_file
local
chip
local
chip
parameter_file
=
"
$1
"
chip
=
$(
rkChipInfo
"
$IMAGE_FILE
"
|
awk
'{print $1}'
)
chip
=
$(
grep
"MACHINE:"
"
$parameter_file
"
|
grep
-i
-P
-o
"rk
\d
+"
)
printf
"RK%s"
"
$chip
"
if
[[
-z
"
$chip
"
]]
then
chip
=
$(
grep
"MACHINE_MODEL:"
"
$parameter_file
"
|
grep
-i
-P
-o
"rk
\d
+"
)
fi
chip
=
${
chip
^^
}
case
$chip
in
PX30
|
RK3358
)
parameter
=
"RKPX30"
;;
RK1808
|
RK3399PRO_NPU
)
parameter
=
"RK180A"
;;
RK3036
)
parameter
=
"RK303A"
;;
RK3126
|
RK3128
)
parameter
=
"RK312A"
;;
RK3128H
)
parameter
=
"RK312X"
;;
RK3229
)
parameter
=
"RK3229"
;;
RK3288
)
parameter
=
"RK320A"
;;
RK3308
)
parameter
=
"RK3308"
;;
RK3326
)
parameter
=
"RK3326"
;;
RK3318
)
parameter
=
"RK322H"
;;
RK3328
)
parameter
=
"RK322H"
;;
RK3399
)
parameter
=
"RK330C"
;;
RK3568
)
parameter
=
"RK3568"
;;
RK3566
)
parameter
=
"RK3568"
;;
RK3562
)
parameter
=
"RK3562"
;;
RK3588
)
parameter
=
"RK3588"
;;
RV1126
)
parameter
=
"RK1126"
;;
*
)
echo
"Bad MACHINE_MODEL:
$chip
in parameter.txt"
esac
printf
"%s"
"
$parameter
"
}
}
__is_sparse_system
()
{
__is_sparse_system
()
{
...
...
tools/rockchip_tool/rkChipInfo
0 → 100755
View file @
7e2aaa23
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment