Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
676
Issues
676
List
Boards
Labels
Service Desk
Milestones
Merge Requests
204
Merge Requests
204
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
ba003e92
Commit
ba003e92
authored
Jun 25, 2018
by
Carlo Landmeter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts: use aports rpi bootloader
parent
877412fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
scripts/mkimg.arm.sh
scripts/mkimg.arm.sh
+3
-10
No files found.
scripts/mkimg.arm.sh
View file @
ba003e92
build_rpi_blobs
()
{
build_rpi_blobs
()
{
local
fw
apk fetch
--quiet
--stdout
raspberrypi-bootloader |
tar
-C
"
${
DESTDIR
}
"
-zx
--strip
=
1 boot/
for
fw
in
bootcode.bin fixup.dat start.elf
;
do
curl
--remote-time
https://raw.githubusercontent.com/raspberrypi/firmware/
${
rpi_firmware_commit
}
/boot/
${
fw
}
\
--output
"
${
DESTDIR
}
"
/
${
fw
}
||
return
1
done
}
}
rpi_gen_cmdline
()
{
rpi_gen_cmdline
()
{
...
@@ -47,6 +43,7 @@ rpi_gen_config() {
...
@@ -47,6 +43,7 @@ rpi_gen_config() {
# uncomment line to enable serial on ttyS0 on rpi3
# uncomment line to enable serial on ttyS0 on rpi3
# NOTE: This fixes the core_freq to 250Mhz
# NOTE: This fixes the core_freq to 250Mhz
# enable_uart=1
# enable_uart=1
include usercfg.txt
EOF
EOF
;;
;;
esac
esac
...
@@ -58,9 +55,8 @@ build_rpi_config() {
...
@@ -58,9 +55,8 @@ build_rpi_config() {
}
}
section_rpi_config
()
{
section_rpi_config
()
{
[
-n
"
$rpi_firmware_commit
"
]
||
return
0
build_section rpi_config
$(
(
rpi_gen_cmdline
;
rpi_gen_config
)
| checksum
)
build_section rpi_config
$(
(
rpi_gen_cmdline
;
rpi_gen_config
)
| checksum
)
build_section rpi_blobs
"
$rpi_firmware_commit
"
build_section rpi_blobs
}
}
profile_rpi
()
{
profile_rpi
()
{
...
@@ -71,9 +67,6 @@ profile_rpi() {
...
@@ -71,9 +67,6 @@ profile_rpi() {
And much more..."
And much more..."
image_ext
=
"tar.gz"
image_ext
=
"tar.gz"
arch
=
"aarch64 armhf"
arch
=
"aarch64 armhf"
# check commit log for matching commit with current rpi kernel version at:
# https://github.com/raspberrypi/firmware/tree/master
rpi_firmware_commit
=
"eeaaf5e2b5aee29f31e989c0dddd186fb68b2144"
kernel_flavors
=
"rpi"
kernel_flavors
=
"rpi"
case
"
$ARCH
"
in
case
"
$ARCH
"
in
armhf
)
kernel_flavors
=
"
$kernel_flavors
rpi2"
;;
armhf
)
kernel_flavors
=
"
$kernel_flavors
rpi2"
;;
...
...
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