选择皮肤
jiang
2023-10-06 14:43:50
jiang\n楼主
N1盒子刷系统在Ubuntu/archlinux系统刷机是非常方便的,完全不用考虑什么驱动程序的问题。一般接上就可以使用命令adb connect, fastboot reboot.
关于USB刷入安卓电视系统,原版系统,推荐大家使用
Linux version of Amlogic USB Burning Tool

首先准备一个linux x86 PC,然后打开终端输入:
git clone https://github.com/Stane1983/aml-linux-usb-burn.git
正克隆到 'aml-linux-usb-burn'...
remote: Enumerating objects: 32, done.
remote: Total 32 (delta 0), reused 0 (delta 0), pack-reused 32
展开对象中: 100% (32/32), 完成.
~ ls
公共   视频   文档   音乐   aml-linux-usb-burn   baidunetdisk           etcher               'WeChat Files'
模板   图片   下载   桌面   Applications         baidunetdiskdownload   hc_5d28554f00000065
~ cd aml-linux-usb-burn
aml-linux-usb-burn [master] ls
aml-flash  README.md  tools
aml-linux-usb-burn [master] ls -l
总用量 36
-rwxr-xr-x 1 billy billy 27418  7月 15 12:52 aml-flash
-rw-r--r-- 1 billy billy  1470  7月 15 12:52 README.md
drwxr-xr-x 2 billy billy  4096  7月 15 12:52 tools
aml-linux-usb-burn [master] ./aml-flash
Missing --img argument
Usage      : ./aml-flash --img=/path/to/aml_upgrade_package.img> --parts=<all|none|bootloader|dtb|logo|recovery|boot|system|..> [--wipe] [--reset=<y|n>] [--soc=<m8|axg|gxl|txlx>] [efuse-file=/path/to/file/location] [bootloader|dtb|logo|boot|...-file=/path/to/file/partition] [--password=/path/to/password.bin]
Version    : 4.7.1 (modified by Stane1983)
Parameters : --img        => Specify location path to aml_upgrade_package.img
             --parts      => Specify which partition to burn
             --wipe       => Destroy all partitions
             --reset      => Force reset mode at the end of the burning
             --soc        => Force soc type (gxl=S905/S912,axg=A113,txlx=T962,m8=S805/A111)
             --efuse-file => Force efuse OTP burn, use this option carefully
             --*-file     => Force overload of partition files
             --password   => Unlock usb mode using password file provided
             --destroy    => Erase the bootloader and reset the board
             --no-wait    => Do not wait for device to be pluged in
aml-linux-usb-burn [master]
具体使用方式就不科普了,网上教材多。
jiang
2023-10-06 15:04:01
jiang\n楼主

Warning: Undefined array key 1 in D:\blog\Blog\www\Blog.php on line 440

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in D:\blog\Blog\www\Blog.php on line 440

Warning: Undefined array key 1 in D:\blog\Blog\www\Blog.php on line 440

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in D:\blog\Blog\www\Blog.php on line 440

Linux version of Amlogic USB Burning Tool


This is just "copy" of files that can be found on Amlogic Openlinux [website][amlTools].

Installation

Create new u-dev rule for Amlogic devices (in /etc/udev/rules.d). My file is called 70-persistent-usb-amlogic.rules
Content of file is:
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="1b8e", ATTR{idProduct}=="c003", MODE:="0666", SYMLINK+="worldcup"

When you created your rule either reload udev rules or reboot your machine. Make sure that root folder of this repository is in your PATH variable (I simply put it inside my ~/bin folder) so I can call it from anywhere without specifying path.

And this tool depends on libusb and libusb-compat, you must install those tools first.

How to use

Connect your device and put it to USB burning mode, open terminal and navigate to folder where your amlupgradepackage.img is and issue command:
aml-flash --img=aml_upgrade_package.img --soc=gxl --wipe --reset=n --parts=all
For more options, just issue aml-flash command.
soc paremeter can be gxl (S905, S905X and S912), axg (A113 audio SoC), txlx (TV SoC - T962), m8 (S802, S805 and S812)
I tested this tool with sucess on S812, S905, S905X and S912.

Note

This tool is for x64 Linux only. File aml_image_v2_packer is 32bit but update binary (inside tools folder) is 64bit so...

[amlTools]: