rk1808: improve update_tool with self-defined log dir
Change-Id: I242a8418caa497e786a50c82eb653f69a212fd3e Signed-off-by: Hertz Wang <wangh@rock-chips.com>
This commit is contained in:
10
rk1808/rk1808_compute_stick_tool/aarch64_release/config.ini
Normal file
10
rk1808/rk1808_compute_stick_tool/aarch64_release/config.ini
Normal file
@ -0,0 +1,10 @@
|
||||
firmware=update.img
|
||||
loader=loader.bin
|
||||
parameter=parameter
|
||||
misc=
|
||||
boot=boot.img
|
||||
kernel=kernel.img
|
||||
system=system.img
|
||||
recovery=recovery.img
|
||||
rockusb_id=
|
||||
msc_id=
|
||||
BIN
rk1808/rk1808_compute_stick_tool/aarch64_release/upgrade_tool
Executable file
BIN
rk1808/rk1808_compute_stick_tool/aarch64_release/upgrade_tool
Executable file
Binary file not shown.
@ -8,12 +8,22 @@ if [ $# -ne 4 ]; then
|
||||
exit -1
|
||||
fi
|
||||
|
||||
cat /proc/cpuinfo |grep Intel
|
||||
cat /proc/cpuinfo |grep -E "Intel|AMD"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "use arm version"
|
||||
UPGRADE_TOOL=$SCRIPT_ROOT/upgrade_tool_arm
|
||||
LOG_DIR=~/.rockchip/upgrade_tool/aarch64/log
|
||||
CONFIG_INI=$SCRIPT_ROOT/aarch64_release/config.ini
|
||||
UPGRADE_TOOL=$SCRIPT_ROOT/aarch64_release/upgrade_tool
|
||||
else
|
||||
UPGRADE_TOOL=$SCRIPT_ROOT/upgrade_tool_x86
|
||||
LOG_DIR=~/.rockchip/upgrade_tool/x64/log
|
||||
CONFIG_INI=$SCRIPT_ROOT/x64_release/config.ini
|
||||
UPGRADE_TOOL=$SCRIPT_ROOT/x64_release/upgrade_tool
|
||||
fi
|
||||
|
||||
mkdir -p $LOG_DIR
|
||||
grep log_dir $CONFIG_INI > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "log_dir=$(realpath $LOG_DIR)" >> $CONFIG_INI
|
||||
fi
|
||||
|
||||
LOADER=$1
|
||||
|
||||
Binary file not shown.
Binary file not shown.
10
rk1808/rk1808_compute_stick_tool/x64_release/config.ini
Normal file
10
rk1808/rk1808_compute_stick_tool/x64_release/config.ini
Normal file
@ -0,0 +1,10 @@
|
||||
firmware=update.img
|
||||
loader=loader.bin
|
||||
parameter=parameter
|
||||
misc=
|
||||
boot=boot.img
|
||||
kernel=kernel.img
|
||||
system=system.img
|
||||
recovery=recovery.img
|
||||
rockusb_id=
|
||||
msc_id=
|
||||
BIN
rk1808/rk1808_compute_stick_tool/x64_release/upgrade_tool
Executable file
BIN
rk1808/rk1808_compute_stick_tool/x64_release/upgrade_tool
Executable file
Binary file not shown.
Reference in New Issue
Block a user