forked from niflostancu/rpi-debian-build-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
labsi: build script for u-boot.scr to boot Linux
- Loading branch information
1 parent
e81a690
commit 3ce88a5
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
# Compiles the U-Boot script | ||
|
||
set -eo pipefail | ||
SRC_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../" && pwd)" | ||
source "$SRC_DIR/lib/common.sh" | ||
|
||
DIST_DIR="$SRC_DIR/dist" | ||
"$UBOOT_DEST/tools/mkimage" -A arm64 -T script -C none -n "Boot script" -d "$CUSTOM_CONFIG_DIR/files/uboot-script.txt" "$DIST_DIR/labsi-rpi4/boot.scr" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs | ||
# set decompression zone in RAM at 400MB, 64MB in size | ||
setenv kernel_comp_addr_r 0x19000000 | ||
setenv kernel_comp_size 0x04000000 | ||
fatload mmc 0:1 ${kernel_addr_r} vmlinuz-6.1.61-rpi+ | ||
booti ${kernel_addr_r} - ${fdt_addr} | ||
|