aml-flash-tool on Linux #30
Merged
Merged
Conversation
Background: This is useful for installing *.zip packages, such as LineageOS. This allows you to bypass some installation steps (connecting the keyboard to the device, ADB and recovery steps, etc.). In other words, after flashing the <aml_install_package>, the final installation is performed entirely via the fastboot terminal.
Contributor
|
@bumerc77 The utils: aml-flash-tool: Fix awk warnings on Ubuntu 24.04 commit should no longer be required now that we have merged another PR. Could you please rebase and revise the PR to only include the fastboot change? |
Contributor
Author
|
@viraniac Sure |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test: OS: Ubuntu 24.04
Currently, this instruction
utils/aml-flash-tool/flash-tool
Line 443 in 1022f00
is not valid.
Debug
#!/bin/bash
set -x
trap read debug
...
++ uname -o
++ read
++ uname -m
++ grep -i x86
host_machine=x86_64
++ read
'[' '!' -z GNU/Linux ']'
++ read
'[' GNU/Linux = Darwin ']'
++ read
'[' '!' -z x86_64 ']'
++ read
SYSTEM=linux-x86
++ read
EXE=
++ read
print_debug 'host_os = GNU/Linux'
[[ 1 == 1 ]]
echo -e '\033[0;33mhost_os = GNU/Linux\033[m'
host_os = GNU/Linux
++ read
...
++ read
++ awk '/sub_type="platform"/{gsub("file=","",$1); gsub(/"/,"",$1); print $1}' /tmp/aml-flash-tool-8b4y/image.cfg
awk: cmd. line:1: warning: regexp escape sequence `"' is not a known regexp operator
...
Debug
[ $host_os != Darwin ] solves it.
otherwise
uname -sshould be used for Linux.