Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
45ab43d0
Commit
45ab43d0
authored
Sep 18, 2023
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arm-rpi4: copy dtb from vendor broadcom dir, if exists
In the future, on aarch64, symlinks on dtb in vendor directories will be removed.
parent
d45fcf36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
98-bootstrap-boot-by-firmware
...in/arm-rpi4/image-scripts.d/98-bootstrap-boot-by-firmware
+15
-5
No files found.
features.in/arm-rpi4/image-scripts.d/98-bootstrap-boot-by-firmware
View file @
45ab43d0
...
...
@@ -21,18 +21,28 @@ cp /usr/share/raspberrypi-firmware/*.{bin,dat,elf} /boot/efi/
/boot/efi/uboot-rpi_4_32b.bin
# copy actualy dtb's for default kernel
cp
/boot/dtb/bcm27
*
-rpi-
*
.dtb /boot/efi/
||
:
if
[
-d
/boot/dtb/broadcom
]
;
then
DTB_DIR
=
/boot/dtb/broadcom
elif
[
-d
/boot/dtb
]
;
then
DTB_DIR
=
/boot/dtb
else
echo
"Error: /boot/dtb/broadcom or /boot/dtb is not exists!!!"
>
&2
exit
1
fi
cp
"
$DTB_DIR
"
/bcm27
*
-rpi-
*
.dtb /boot/efi/
||
:
[
-f
/boot/efi/bcm2710-rpi-3-b.dtb
]
||
cp
/boot/dtb
/bcm2837-rpi-3-b.dtb
\
cp
"
$DTB_DIR
"
/bcm2837-rpi-3-b.dtb
\
/boot/efi/bcm2710-rpi-3-b.dtb
||
:
[
-f
/boot/efi/bcm2710-rpi-3-b-plus.dtb
]
||
cp
/boot/dtb
/bcm2837-rpi-3-b-plus.dtb
\
cp
"
$DTB_DIR
"
/bcm2837-rpi-3-b-plus.dtb
\
/boot/efi/bcm2710-rpi-3-b-plus.dtb
||
:
[
-f
/boot/efi/bcm2710-rpi-cm3.dtb
]
||
cp
/boot/dtb
/bcm2837-rpi-cm3-io3.dtb
\
cp
"
$DTB_DIR
"
/bcm2837-rpi-cm3-io3.dtb
\
/boot/efi/bcm2710-rpi-cm3.dtb
||
:
[
-f
/boot/efi/bcm2711-rpi-cm4.dtb
]
||
cp
/boot/dtb
/bcm2711-rpi-cm4-io.dtb
\
cp
"
$DTB_DIR
"
/bcm2711-rpi-cm4-io.dtb
\
/boot/efi/bcm2711-rpi-cm4.dtb
||
:
[
-d
/boot/dtb/overlays
]
&&
cp
-r
/boot/dtb/overlays /boot/efi/
||
:
...
...
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