Skip to content

Commit 3ce88a5

Browse files
committed
labsi: build script for u-boot.scr to boot Linux
1 parent e81a690 commit 3ce88a5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
# Compiles the U-Boot script
3+
4+
set -eo pipefail
5+
SRC_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../" && pwd)"
6+
source "$SRC_DIR/lib/common.sh"
7+
8+
DIST_DIR="$SRC_DIR/dist"
9+
"$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"
10+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs
2+
# set decompression zone in RAM at 400MB, 64MB in size
3+
setenv kernel_comp_addr_r 0x19000000
4+
setenv kernel_comp_size 0x04000000
5+
fatload mmc 0:1 ${kernel_addr_r} vmlinuz-6.1.61-rpi+
6+
booti ${kernel_addr_r} - ${fdt_addr}
7+

0 commit comments

Comments
 (0)