Skip to content

migrate flash scripts from edl to qdl.js#544

Merged
adeebshihadeh merged 4 commits intocommaai:masterfrom
greatgitsby:migrate-flash-scripts-to-qdljs
Mar 8, 2026
Merged

migrate flash scripts from edl to qdl.js#544
adeebshihadeh merged 4 commits intocommaai:masterfrom
greatgitsby:migrate-flash-scripts-to-qdljs

Conversation

@greatgitsby
Copy link
Copy Markdown
Contributor

@greatgitsby greatgitsby commented Mar 8, 2026

Summary

  • Migrate flash_kernel.sh and flash_system.sh from tools/edl to bunx --bun commaai/qdl.js
  • Auto-install bun if not present

Test plan

trey@puter:~/os/agnos-builder$ ./flash_kernel.sh 
Checking active slot...
Active slot: a
Flashing boot_a...
[gpt] Partition entries CRC32 mismatch: expected -1601197897, actual -1278134695
[qdl] LUN 4: Primary and backup GPT part entries are inconsistent, using primary
[qdl] Flashing boot_a
[==========================================================================================================] 100%
Flashed boot_a!
trey@puter:~/os/agnos-builder$ ./flash_system.sh 
Checking active slot...
Active slot: a
Flashing system_a...
[qdl] Flashing system_a
[==========================================================================================================] 100%
[firehose] Reset succeeded
Flashed system_a!

fresh install

trey@puter:~/os/agnos-builder$ ./flash_kernel.sh 
Checking active slot...
Installing bun...
######################################################################## 100.0%
bun was installed successfully to ~/.bun/bin/bun 
Run 'bun --help' to get started
Active slot: a
Flashing boot_a...
[gpt] Partition entries CRC32 mismatch: expected -1601197897, actual -1278134695
[qdl] LUN 4: Primary and backup GPT part entries are inconsistent, using primary
[qdl] Flashing boot_a
[============================================================================================================] 100%
Flashed boot_a!

flash all

trey@puter:~/os/agnos-builder$ ./flash_all.sh 
[gpt] Partition entries CRC32 mismatch: expected -1601197897, actual -1278134695
[qdl] LUN 4: Primary and backup GPT part entries are inconsistent, using primary
[qdl] Flashing aop_a
[============================================================================================================] 100%
[gpt] Partition entries CRC32 mismatch: expected -1601197897, actual -1278134695
[qdl] LUN 4: Primary and backup GPT part entries are inconsistent, using primary
[qdl] Flashing aop_b
[============================================================================================================] 100%
[gpt] Partition entries CRC32 mismatch: expected -1601197897, actual -1278134695
[qdl] LUN 4: Primary and backup GPT part entries are inconsistent, using primary
[qdl] Flashing abl_a
[============================================================================================================] 100%
[gpt] Partition entries CRC32 mismatch: expected -1601197897, actual -1278134695
[qdl] LUN 4: Primary and backup GPT part entries are inconsistent, using primary
[qdl] Flashing abl_b
[============================================================================================================] 100%
[qdl] Flashing xbl_a
[============================================================================================================] 100%
[qdl] Flashing xbl_b
[============================================================================================================] 100%
[qdl] Flashing xbl_config_a
[============================================================================================================] 100%
[qdl] Flashing xbl_config_b
[============================================================================================================] 100%
[gpt] Partition entries CRC32 mismatch: expected -1601197897, actual -1278134695
[qdl] LUN 4: Primary and backup GPT part entries are inconsistent, using primary
[qdl] Flashing devcfg_a
[============================================================================================================] 100%
[gpt] Partition entries CRC32 mismatch: expected -1601197897, actual -1278134695
[qdl] LUN 4: Primary and backup GPT part entries are inconsistent, using primary
[qdl] Flashing devcfg_b
[============================================================================================================] 100%
Checking active slot...
Active slot: a
Flashing boot_a...
[gpt] Partition entries CRC32 mismatch: expected -1601197897, actual -1278134695
[qdl] LUN 4: Primary and backup GPT part entries are inconsistent, using primary
[qdl] Flashing boot_a
[============================================================================================================] 100%
Flashed boot_a!
Checking active slot...
Active slot: a
Flashing system_a...
[qdl] Flashing system_a
[============================================================================================================] 100%
[firehose] Reset succeeded
Flashed system_a!

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@adeebshihadeh
Copy link
Copy Markdown
Contributor

My favorite part of edl is the progress bar; do we still have that here?

@greatgitsby
Copy link
Copy Markdown
Contributor Author

yes but for kernel it's so fast it's almost useless lol

trey@puter:~/os/agnos-builder$ time ./flash_kernel_qdljs.sh 
Checking active slot...
Active slot: a
Flashing boot_a...
[gpt] Partition entries CRC32 mismatch: expected -1601197897, actual -1278134695
[qdl] LUN 4: Primary and backup GPT part entries are inconsistent, using primary
[qdl] Flashing boot_a
[==========================================================================================================] 100%
Flashed boot_a!

real	0m1.374s
user	0m0.217s
sys	0m0.089s

@greatgitsby greatgitsby marked this pull request as ready for review March 8, 2026 19:31
@adeebshihadeh adeebshihadeh merged commit 2c80f55 into commaai:master Mar 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants