-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/tachyon flash config blob #791
Conversation
32e0630
to
b62a363
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good with some small tweaks.
async _flash({ files, skipFlashingOs, output }) { | ||
|
||
const packagePath = files[0]; | ||
|
||
const question = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this question be asked if --load_config
is passed? Remember the goal of load config is to have a setup without a single question. Andrew will use this in the Tachyon CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will still ask the question. Let me fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this. There is another question about product. Is this something we want to put in the config file as well?
src/cmd/flash.js
Outdated
const dir = await unzip.Open.file(zipPath); | ||
const firehoseFile = dir.files.find(file => file.path.includes('firehose')); | ||
if (!firehoseFile) { | ||
throw new Error('Unable to find firehose file'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic to find the firehose file is already present in _extractFlashFilesFromZip
and is more precise: open the zip, load the manifest JSON, get the field for the firehose loader.
Call _extractFlashFilesFromZip
and get the loader filename from the first element of the returned files
. Then load that file from the zip.
0d19988
to
d4fdf2e
Compare
d4fdf2e
to
9034d4f
Compare
Description
skip-reset
command--skip_fashing_os
command but flashing only the config.xml filesave_config
will save json file with config params exceptregistration_code
load_config
loads the config file and adds the then generatedregistration_code
to create the config blob~
in ssh pathqlril-app
withparticle-ril
How to Test
Related Issues / Discussions
Completeness