Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
boot-deploy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
boot-deploy
Merge requests
!67
support boot DHTB devices
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Imported
support boot DHTB devices
boot-dhtb
into
master
Overview
23
Commits
1
Pipelines
0
Changes
1
Merged
Imported
Administrator
requested to merge
boot-dhtb
into
master
8 months ago
Overview
22
Commits
1
Pipelines
0
Changes
1
Expand
for devices need DHTB header. like
gtexswifi
Edited
8 months ago
by
Administrator
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
44661263
1 commit,
8 months ago
1 file
+
9
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
boot-deploy-functions.sh
+
9
−
0
Options
@@ -14,6 +14,7 @@ deviceinfo_bootimg_dtb_second=""
deviceinfo_bootimg_mtk_label_kernel
=
""
deviceinfo_bootimg_mtk_label_ramdisk
=
""
deviceinfo_bootimg_mtk_mkimage
=
""
deviceinfo_bootimg_prepend_dhtb
=
""
deviceinfo_bootimg_pxa
=
""
deviceinfo_bootimg_qcdt
=
""
deviceinfo_bootimg_qcdt_type
=
""
@@ -156,6 +157,7 @@ validate_deviceinfo() {
for
_e
in
\
deviceinfo_append_dtb
\
deviceinfo_arch
\
deviceinfo_bootimg_prepend_dhtb
\
deviceinfo_bootimg_append_seandroidenforce
\
deviceinfo_bootimg_blobpack
\
deviceinfo_bootimg_dtb_second
\
@@ -800,6 +802,13 @@ create_bootimg() {
log_arrow
"initramfs: appending 'SEANDROIDENFORCE' to boot.img"
printf
"SEANDROIDENFORCE"
>>
"
$_bootimg
"
fi
if
[
"
${
deviceinfo_bootimg_prepend_dhtb
}
"
=
"true"
]
;
then
printf
'DHTB'
|
dd
of
=
dhtb_header
bs
=
1
count
=
4
conv
=
notrunc
dd
if
=
/dev/zero
bs
=
1
count
=
508
>>
dhtb_header
log_arrow
"initramfs: prepending 'DHTB' to boot.img"
+1
cat
dhtb_header
$_bootimg
>
boot.temp
+10
mv
boot.temp
$_bootimg
fi
additional_files
=
"
$additional_files
$(
basename
"
$_bootimg
"
)
"
}
Loading