Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,4 @@ qcom_xbl/

.vscode

edl_config.json
tools/edl_repo/

edk2_tici/
4 changes: 2 additions & 2 deletions flash_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR

for part in aop abl xbl xbl_config devcfg; do
tools/edl w ${part}_a $DIR/firmware/$part.img
tools/edl w ${part}_b $DIR/firmware/$part.img
tools/qdl flash ${part}_a $DIR/firmware/$part.img
tools/qdl flash ${part}_b $DIR/firmware/$part.img
done

./flash_kernel.sh
Expand Down
4 changes: 2 additions & 2 deletions flash_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR

echo "Checking active slot..."
ACTIVE_SLOT=$(tools/edl getactiveslot | grep "Current active slot:" | awk '{print $NF}')
ACTIVE_SLOT=$(tools/qdl getactiveslot)

if [[ "$ACTIVE_SLOT" != "a" && "$ACTIVE_SLOT" != "b" ]]; then
echo "Invalid active slot: '$ACTIVE_SLOT'"
Expand All @@ -14,6 +14,6 @@ fi

echo "Active slot: $ACTIVE_SLOT"
echo "Flashing boot_$ACTIVE_SLOT..."
tools/edl w boot_$ACTIVE_SLOT $DIR/output/boot.img
tools/qdl flash boot_$ACTIVE_SLOT $DIR/output/boot.img

echo "Flashed boot_$ACTIVE_SLOT!"
6 changes: 3 additions & 3 deletions flash_system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR

echo "Checking active slot..."
ACTIVE_SLOT=$(tools/edl getactiveslot | grep "Current active slot:" | awk '{print $NF}')
ACTIVE_SLOT=$(tools/qdl getactiveslot)

if [[ "$ACTIVE_SLOT" != "a" && "$ACTIVE_SLOT" != "b" ]]; then
echo "Invalid active slot: '$ACTIVE_SLOT'"
Expand All @@ -14,8 +14,8 @@ fi

echo "Active slot: $ACTIVE_SLOT"
echo "Flashing system_$ACTIVE_SLOT..."
tools/edl w system_$ACTIVE_SLOT $DIR/output/system.img
tools/qdl flash system_$ACTIVE_SLOT $DIR/output/system.img

tools/edl reset
tools/qdl reset

echo "Flashed system_$ACTIVE_SLOT!"
56 changes: 0 additions & 56 deletions tools/edl

This file was deleted.

15 changes: 15 additions & 0 deletions tools/qdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -e

if ! command -v bun &> /dev/null; then
echo "Installing bun..." >&2
curl -fsSL https://bun.sh/install | bash >&2
export PATH="$HOME/.bun/bin:$PATH"
fi

QDL="bunx --bun commaai/qdl.js"

# preload package so bunx output doesn't pollute stdout on first run
$QDL --help > /dev/null 2>&1 || true

exec $QDL "$@"