Skip to content
Snippets Groups Projects
Commit ba003e92 authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

scripts: use aports rpi bootloader

parent 877412fb
No related branches found
No related tags found
No related merge requests found
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";;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment