yashsingh1/xdaforums huggingface dataset:
[Android Stick & Console AMLogic based Computers] (dylanger):
I haven't looked at that yet, I don't really have any expirence playing with AMLogic SoCs, you can boot via USB? This would actually work if you can as I have boot.img and system...
[Android Stick & Console AMLogic based Computers] gyb001:
Thanks.

unfortunatelly i haven't img.

But i find intresting things :D

once#usb start

(Re)start USB...

USB0: USB3.0 XHCI init start

Register 2000140 NbrPorts 2

Starting the controller

USB XHCI 1.00

This box have usb3? :)

Do you know how can i make full backup from emmc?

I think we can run somehow twrp with this env:

recovery_from_udisk=if fatload usb 0 ${loadaddr} aml_autoscript; then autoscr ${loadaddr}; fi;if fatload usb 0 ${loadaddr} recovery.img; then if fatload usb 0 ${dtb_mem_addr} dtb.img; then echo udisk dtb.img loaded; fi;bootm ${loadaddr};fi;
[Android Stick & Console AMLogic based Computers] gyb001:
I won :D

amlogic login: root

Password:

Last login: Sat Nov 4 12:30:06 UTC 2017 on ttyS0

/etc/update-motd.d/30-sysinfo: line 37: read: read error: 0: Invalid argument

/etc/update-motd.d/30-sysinfo: line 38: [: -le: unary operator expected

____ ___

/ ___|/ _ \__ ____ ____ __

\___ \ (_) \ \/ /\ \/ /\ \/ /

___) \__, |> < > < > <

|____/ /_//_/\_\/_/\_\/_/\_\

Welcome to ARMBIAN 5.34 user-built Debian GNU/Linux 9 (stretch) 3.14.29

System load: 0.44 0.12 0.04 Up time: 0 min

Memory usage: 4 % of 1790MB IP:

Usage of /: 18% of 7.1G storage/: 56% of 128M

root@amlogic:~# ls

fstab install.sh

root@amlogic:~# uname -a

Linux amlogic 3.14.29 #108 SMP PREEMPT Sat Nov 4 14:50:04 MSK 2017 aarch64 GNU/Linux

root@amlogic:~# cat /proc/cpuinfo

Processor : AArch64 Processor rev 4 (aarch64)

processor : 0

processor : 1

processor : 2

processor : 3

Features : fp asimd evtstrm aes pmull sha1 sha2 crc32

CPU implementer : 0x41

CPU architecture: AArch64

CPU variant : 0x0

CPU part : 0xd03

CPU revision : 4

Hardware : Amlogic

Serial : 210a82005fb86cbf061167e2b0552e2f

Revision : 020a
[Android Stick & Console AMLogic based Computers] (dylanger):
Woot! Nice work! So you've managed to boot into a Debian build? Damn nice work! Do you know if its possible to do that without having access to Android in the first place?

Like from UBOOT?
[Android Stick & Console AMLogic based Computers] gyb001:
Yes i used to uart.

Write this command to uboot:

I'm not sure it necessary, but i set the selinux disabled.

Download and write the image to usb drive

https://yadi.sk/d/srrtn6kpnsKz2/Linux/ARMBIAN
[Android Stick & Console AMLogic based Computers] venioni:
Can we use this image with Amlogic usb burning tool ?
[Android Stick & Console AMLogic based Computers] gyb001:
No, the image will not pass the burning tool vertify.

I think you can use the amlogic burning tool only with uart. In uboot write "update" command.
[Android Stick & Console AMLogic based Computers] venioni:
Can you help me to unbrick my mind that box 3 international?

is totally bricked,no boot to recovery mode.
[Android Stick & Console AMLogic based Computers] gyb001:
Unfortunately i don't know how its possibile, but That sure, you have to use u boot.

You should buy uart usb device. I have cp2102
[Android Stick & Console AMLogic based Computers] venioni:
If i buy this uart usb device cp 2102 can you make a tutorial how can i use this to unbrick my mi tv box3 and what firmwares i need to do all this?
[Android Stick & Console AMLogic based Computers] gyb001:
Now, i can boot only Armbian. :(
[Android Stick & Console AMLogic based Computers] gyb001:
Stock rom img file

https://mega.nz/#F!BDRG3J4B!VZqB0qJ9fseMhy4Y8anIaA
[Android Stick & Console AMLogic based Computers] venioni:
Can we flash this stock rom image with Almogic burning tool for unbrick mi tv box 3 ?
[Android Stick & Console AMLogic based Computers] gyb001:
No.

You have to use uboot
[Android Stick & Console AMLogic based Computers] venioni:
Do you know how can i use uboot? because my mi tv box 3 can not boot to recovery mode.
[Android Stick & Console AMLogic based Computers] mr0187:
I need tutorial also my walmart mibox is bricked also. I have uart but don't know what to do.
[Android Stick & Console AMLogic based Computers] (dylanger):
I can't seem to interrupt uboot when booting, do you know if Xaomi changed the uboot interrupt key?
[Android Stick & Console AMLogic based Computers] venioni:
Can you make a tutorial how we can create a uboot for mi tv box 3 international,and what image we need for uboot ?
[Android Stick & Console AMLogic based Computers] vincentanzalone:
Ctrl + C should do it for you
[Android Stick & Console AMLogic based Computers] venioni:
Can someone tell me how can i flash official recovery.img and bootloader on mi tv box 3 with usb cp 2102 or with j-link and what programms i need to do?
[Android Stick & Console AMLogic based Computers] bomber4:
How to run armbian on mibox ?

I already flashed usb pendrive with armbian image
[Android Stick & Console AMLogic based Computers] Abzal:
Same problem, Mi Box not power on, only red led when power on

May help repair it via Amlogic USB Burning Tool
[Android Stick & Console AMLogic based Computers] bomber4:
Is there a way to run Debian without accessing uart?
[Android Stick & Console AMLogic based Computers] jrs007:
How do I create full backup nandroid in IMG file ???
[Android Stick & Console AMLogic based Computers] jrs007:
I've created a firmware for MDZ-16-AB

https://xdaforums.com/android-stick...-mdz-16-aa-t3502992/post76969742#post76969742
[Android Stick & Console AMLogic based Computers] jrs007:
how did you manage to create these files? need root ?
[Android Stick & Console AMLogic based Computers] andybz:
I followed some of the information on here and managed to get (only) ARMBIAN 5.34 builds booting from USB on my MDZ-16-AB. It's the only thing I've managed to get working so far.

I'm a bit surprised actually. I had expected the locked bootloader to prevent me from doing this.
[Android Stick & Console AMLogic based Computers] domengd:
here's emmc pinout

emmc pinout are already tested using easyjtag. to those who had advance emmc tool and mibox mdz-16-ab on hand, please share your emmc full dump here

[IMG="mdz-16-ab emmc pinout by domengdunlocker"]https://i.imgur.com/qMTp72o.png[/IMG]

[IMG="easyjtag logs"]https://i.imgur.com/rK8Rd0g.png[/IMG]
[Android Stick & Console AMLogic based Computers] bzz11g:
May be it useful for someone

https://mega.nz/#F!wJdEyJyS!K_gJPFHHJDLeAxuA17zhBw

this is link for Amlogic Image customization tool and manual how to use
[Android Stick & Console AMLogic based Computers] ilkz:
Dear sir, can you share the image readed from emmc? I have similar problem: i resolder emmc but forgot to save working image (((( At now i have a clear flash emmc soldered on board and cant do anything with it.... Trying flashing thru USB Burning Tool will have not effect becoz i have DDR error problem as many peoples here. Please help me. Thanks.
[Android Stick & Console AMLogic based Computers] bamster89:
hi there friend can you clarify what is the model number of the EMMC Toshiba so i will know what type of BGA to buy i want to replace mine with the higher capacity like 16 gb or 32 gb because default capcity 8GB sucks it always propt me low storage!

ihave reworks station but of course fist things first
[Android Stick & Console AMLogic based Computers] ilkz:
THGBMHG6C1LBAIL

Dont forgot to make flash dump and write image to new chip before resoldering ))) You need to make low-lewel NAND dump (thru EasyJTAG or HDDRawCopy, or eMMCRAW tool, or other same tools), not just files copy.

And, if you can read the image, please share them to us. Thanks.
[Android Stick & Console AMLogic based Computers] domengd:
any bga 169 is i think possible,

try to get emmc from samsung note 2 or s3. you must configure the write boot size and rpmb size.

please also share your full emmc dump here.
[Android Stick & Console AMLogic based Computers] venioni:
What tool i need to read memory and flash stock img files ?

Στάλθηκε από το ONEPLUS A5000 μου χρησιμοποιώντας Tapatalk
[Android Stick & Console AMLogic based Computers] ilkz:
HDD RAW copy, EMMC RAW Tool, or just "dd" (in linux)
[Android Stick & Console AMLogic based Computers] venioni:
How can i use these tools on my bricked mi box 3 , do i need any usb uart for all this to make work?

Στάλθηκε από το ONEPLUS A5000 μου χρησιμοποιώντας Tapatalk
[Android Stick & Console AMLogic based Computers] ilkz:
You need to desolder the emmc chip and plug him to as sdcard in PC. But you must be extra-carefully. For example, yesterday i lose my emmc chip when trying to make this )))

Read this

https://ripitapart.com/2016/10/28/e...g-my-own-64gb-memory-card-with-a-6-emmc-chip/

and this:

https://www.blackhat.com/docs/us-17/wednesday/us-17-Etemadieh-Hacking-Hardware-With-A-$10-SD-Card-Reader-wp.pdf
[Android Stick & Console AMLogic based Computers] venioni:
I dont have usb adapter to do that, the only usb adapter who i have are the usb uart 2102 , usb uart CH340G and the usb J- link adapter.

Now my other question is why my putty.exe can not read the uart from my mi box 3 mdz what make wrong putty.exe can not read uart why? see the pics
[Android Stick & Console AMLogic based Computers] ilkz:
Set speed 115200.

Try solder wires direct to TX/RX pins on CP2102 board.

Run PuTTY, open connection to CP2102 then power-up the tvbox. Then you must see some info in console.

If not, try to change UART TX/RX pins.

If still not, try to connect tvbox via male-male USB cable to PC and re-power-up the box. Now you must see some info in console.
[Android Stick & Console AMLogic based Computers] venioni:
Nothing, the same as before
[Android Stick & Console AMLogic based Computers] venioni:
Can someone build flashable rom.img for mi box 3 international from Armbian almogic arm rom.img?

Στάλθηκε από το ONEPLUS A5000 μου χρησιμοποιώντας Tapatalk
[Android Stick & Console AMLogic based Computers] elliwigy:
hmm.. i take it this should work if i use an rs232, pl2303 and/or an arduino pro?

Which route would be easiest?

Solder some wires on mibox tx/rx then run to tx/rx onto ftdi rs232 breakout board then from there usb to pc?

i assume i should not connect the power from the ftdi, so only connect tx/rx?

or i also have a serial to usb adapter board that is pl2303.. pretty much same setup..

i feel the arduino pro would be overkill lol

but so i dont brick my box (doesnt matter as ive replaced it with a nvidia shield tv) are these the steps:

1) solder two wires to tx/rx on mibox board

2) connect other ends to tx/rx on either ftdi breakout or pl2303 board

3) connect usb from board to pc, set baud 115200 8BN1 with no flow control

4) open putty and connect to my serial com port

5) plug in power to mibox

6) press ctrl+c to interrupt boot

that sound about right?

my box is not bricked so i can pull whatever if i get it going.. my goal is to try and unlock the bootloader or at least disable dmv/selinux to enable root/custom firmware

if i brick it oh well lol its just collecting dust
[Android Stick & Console AMLogic based Computers] domengd:
use z3x easyjtag tool, it can read and back up the whole thing,

---------- Post added at 10:12 AM ---------- Previous post was at 10:07 AM ----------

no need to remove the emmc, all you need is the best soldering skill. just connect the magnetic wires from the isp adapter to emmc isp pinout of the board.
[Android Stick & Console AMLogic based Computers] venioni:
Can someone tell me what's going on here, i connect usb uart 2102 on mi box 3 and take this.

Στάλθηκε από το ONEPLUS A5000 μου χρησιμοποιώντας Tapatalk
[Android Stick & Console AMLogic based Computers] pnum:
my 2 year old mi box stopped working, this it the output i get from the uart it just keeps rebooting in a loop. is the emmc dead?

GXL:BL1:9ac50e:a1974b;FEAT:BDFD71BC;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 755558

BL2 Built : 13:27:37, Oct 25 2017. gxl g56b77aa - xiaobo.gu@droid12

_vcc5_power_init
rn5t567_power_init
Board ID = 1
CPU clk: 1200MHz
DQS-corr enabled
DDR scramble enabled
DDR3 chl: Rank0+1 @ 912MHz
bist_test rank: 0 18 02 2f 2a 15 40 17 00 2f 31 1c 46 1c 05 33 2f 17 48 17 00 2e 2f 17 48 660 rank: 1 19 03 2f 2a 15 40 17 00 2f 31 1c 47 17 02 2c 2f 18 46 16 02 2b 2c 14 45 660 - PASS

Rank0: 1024MB(auto)-2T-13

Rank1: 1024MB(auto)-2T-13
AddrBus test pass!
-s
emmc switch 3 ok
Authentication key not yet programmed
emmc_rpmb_key_is_programmed: error 0x00000007
emmc switch 0 ok
Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x00004000
sd/emmc cmd 18 arg 0x00000061 status 03ff3000
sdio read data fail
aml log : R1024 check pass!
New fip structure!
Load bl30 from eMMC, src: 0x00010200, des: 0x01700000, size: 0x0000d600
sd/emmc cmd 18 arg 0x00000081 status 03ff3000
sdio read data fail
aml log : R1024 check fail with ERR = 85
aml log : SIG CHK : 85 for address 0x01700000
Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x00004000
emmc switch 1 ok
[Android Stick & Console AMLogic based Computers] venioni:
How you take output of uart usb? How connected ?

Στάλθηκε από το ONEPLUS A5000 μου χρησιμοποιώντας Tapatalk
[Android Stick & Console AMLogic based Computers] pnum:
do you have the right rate?(115200) also do you have a ground wire connected? i got garbage output until i connected the ground wire, the pad just below the rx/tx pads is ground.
[Android Stick & Console AMLogic based Computers] venioni:
Can you send me a pic with your connections.

Στάλθηκε από το ONEPLUS A5000 μου χρησιμοποιώντας Tapatalk
[Android Stick & Console AMLogic based Computers] pnum:
i connected just like in the first post

https://dl.xda-developers.com/4/3/2/7/1/4/6/UART.jpg?key=9QjE3Nxenn5QcSj6NWWETg&ts=1543176187

but connected the ground wire of my USB-TTL adpter to the pad under the RXD on the picture
[Android Stick & Console AMLogic based Computers] venioni:
I cant open the pic.

Στάλθηκε από το ONEPLUS A5000 μου χρησιμοποιώντας Tapatalk
[Android Stick & Console AMLogic based Computers] pnum:
https://imgur.com/a/vtAbaHp
[Android Stick & Console AMLogic based Computers] venioni:
What emulator you use?

Στάλθηκε από το ONEPLUS A5000 μου χρησιμοποιώντας Tapatalk
[Android Stick & Console AMLogic based Computers] pnum:
i used putty
[Android Stick & Console AMLogic based Computers] venioni:
Finally i can read logs on my mi box 3 mdz .

can someone tell me what problem has my mi box ?

Στάλθηκε από το ONEPLUS A5000 μου χρησιμοποιώντας Tapatalk
[Android Stick & Console AMLogic based Computers] pnum:
yours doesn't seem to be doing anything. i think your emmc might be fully dead or erased? mine seems to be able to load the BL2 but fails the signature check on BL3.(due to corruption?)
[Android Stick & Console AMLogic based Computers] ilkz:
Anybody done reading the the rom image?
[Android Stick & Console AMLogic based Computers] venioni:
Can you send me a link with the necessary tools who i need to read the rom.img and where can i buying it?
[Android Stick & Console AMLogic based Computers] ilkz:
You can try three ways to read:

1. Solder simple scheme and connect flash as SD-card to PC. In this case you can read flash by many standart tools like dd. But you have big risk of totally bricking flash (like me, for example).

2. Using EasyJTAG. In this case you need to buy EasyJTAG programmer and tools.

3. Give flash to any mobile service center that have EasyJTAG or other tools for dumping flash. It is easiest way, but charges some cash.
[Android Stick & Console AMLogic based Computers] venioni:
Can you showing me the first example with pics to do that ?

Στάλθηκε από το ONEPLUS A5000 μου χρησιμοποιώντας Tapatalk
[Android Stick & Console AMLogic based Computers] bigtalker:
You can install nougat beta build 1028 which supports adb root and cli access to entire file system as it is userebug version

If you are on Oreo, sorry, no userdebug version available
[Android Stick & Console AMLogic based Computers] ilkz:
Use this manual: https://www.blackhat.com/docs/us-17/wednesday/us-17-Etemadieh-Hacking-Hardware-With-A-$10-SD-Card-Reader-wp.pdf

and this one: https://ripitapart.com/2016/10/28/e...g-my-own-64gb-memory-card-with-a-6-emmc-chip/
[Android Stick & Console AMLogic based Computers] ilkz:
Any news about getting ROM image, guys?
[Android Stick & Console AMLogic based Computers] bigtalker:
Not without Xiaomi's private encoding/decoding key, IOW Never...
[Android Stick & Console AMLogic based Computers] ilkz:
I mean flash chip dump.

Maybe without key.
[Android Stick & Console AMLogic based Computers] pnum:
Xiaomi sent me this file, which is an amlogic burn package. I tried to flash my MiBox with USB_Burning_Tool_v2.1.6 but it fails with [0x32030201]Uboot/Get result/DiskInitial error which i think means my eMMC is just done. Maybe one of you guys can try flashing it to your dead MDZ-16-ABs

https://drive.google.com/file/d/1Cx1pkPvjqGxJ-ypC04dfgSa-YtwjxkpB/view?usp=sharing
[Android Stick & Console AMLogic based Computers] DubelBoom:
I think this is for another model (I think the new intl' one, didn't really check it through) bc the codename is 'oneday' and not 'once'.
[Android Stick & Console AMLogic based Computers] pnum:
you might be right i think it may be for the MiBox S but the hardware is very similar so maybe it works?
[Android Stick & Console AMLogic based Computers] domengd:
to those who live in the philippines that has mibox mdz-16-ab, contact me, you can ship your mibox to me and i will read the dump using easyjtag.
[Android Stick & Console AMLogic based Computers] DubelBoom:
I've tried flashing it bc I have nothing to lose, but I get a USB error or something like that.

I'm not sure if there is a real problem with my USB cable, or something else is causing it.

I saw online people solving this issue using a toothpick in the reset button and similar workarounds, but I couldn't get it to work..
[Android Stick & Console AMLogic based Computers] pnum:
curious what error you got in usb burn tool? you can find them in C:\Program Files (x86)\Amlogic\USB_Burning_Tool\log
[Android Stick & Console AMLogic based Computers] recrof:
Mi Box S (MDZ-22-AB)

Hi guys. trying to find UART contact points on my Mi Box S. if someone found them, please let me know. I have opened the box and tried to connect to various points on the board during boot process, but unfortuately did not get any console output.

here is the board with majority of contact points:
[Android Stick & Console AMLogic based Computers] elliwigy:
im extremely late to reply but my post/questions you quoted literaly had no questions about userdebug firmware as i am fully aware there wasnt a oreo userdebug at the time lol i was more interested in uart console.. i actually still have it haha, i just got a shield tv i have been messin with
[Android Stick & Console AMLogic based Computers] venioni:
With this oneday img can flash with almogic burning tool my bricked mi box 3 mdz 16-ab only 30% is the only img who can flash to much all the others modified img show error from the beginning of the flash , i believe if someone have dev knowledge and modify this rom we can make a system img for mi box 3international mdz 16-ab

Στάλθηκε από το ONEPLUS A5000 μου χρησιμοποιώντας Tapatalk
[Android Stick & Console AMLogic based Computers] bigtalker:
This image is designed for mdz22ab which has a decidedly different partition structure compared to mdz16ab.

Also, the wifi/bluetooth hardware is different between the 2 devices.
[Android Stick & Console AMLogic based Computers] venioni:
Can you modified this img to try on my mi box 3 mdz 16-ab ?

Στάλθηκε από το ONEPLUS A5000 μου χρησιμοποιώντας Tapatalk
[Android Stick & Console AMLogic based Computers] bigtalker:
Would require monumental skillz, especially considering this new img file has invariably resulted in immediate death to every mdz22ab I have tried to flash.

Are you sure your real name isn't Don Quixote, since you have been pursuing this impossible dream for at least a year?:)
[Android Stick & Console AMLogic based Computers] venioni:
I think we need An "Alan Turing" for make-create a flashable system img for mi box mdz 16-ab.

Στάλθηκε από το ONEPLUS A5000 μου χρησιμοποιώντας Tapatalk
[Android Stick & Console AMLogic based Computers] pnum:
maybe you can try asking xiaomi for a "once" image? i explained my situation and they sent me those files to recover my mibox. turns out it seems the flash on mine is damaged(fails on partitioning with "oneday" image). xiaomi is repair/replace my mibox even though it is out of warranty.
[Android Stick & Console AMLogic based Computers] venioni:
I have asked so many times to give me a system img but nothing happens and it's wired who gives for the new model mdz 22.

Στάλθηκε από το ONEPLUS A5000 μου χρησιμοποιώντας Tapatalk
[Android Stick & Console AMLogic based Computers] pnum:
a mistake i guess, they did send a "once" recovery but that requires your mibox to be able to boot into recovery of course.
[Android Stick & Console AMLogic based Computers] ilkz:
Hi mans!

Anybody have a flash dump?
[Android Stick & Console AMLogic based Computers] ilkz:
I still have a this error when flashing any rom:

[17:08:29 707][HUB1-3][Inf]--Start burning...
[17:08:29 757][HUB1-3][Inf]--------------ERASE BOOTLOADER------------
[17:08:30 258][HUB1-3][Inf]--2-4-0-0
[17:08:30 258][HUB1-3][Inf]-------------Download DDR.USB-----------
[17:08:30 259][HUB1-3][Inf]--2-4-0-0
[17:08:30 259][HUB1-3][Inf]--Control write pll reg1 0xd9000000:0x000000b1
[17:08:30 760][HUB1-3][Inf]--Control write pll reg1 0xd9000000:0x00005183
[17:08:31 260][HUB1-3][Inf]--Control write pll reg1 0xd9000000:0x000000b1
[17:08:31 760][HUB1-3][Inf]--Control write pll reg1 0xd9000000:0x00005183
[17:08:32 260][HUB1-3][Inf]--Write initial succeed
[17:08:32 260][HUB1-3][Inf]--Upload encrypt at 0xc8100228
[17:08:32 260][HUB1-3][Inf]--ulValue = 0xbdfd71bc
[17:08:32 260][HUB1-3][Inf]--File change to DDR_ENC.USB
[17:08:32 260][HUB1-3][Inf]--Read encrypt value succeed
[17:08:32 260][Global][Err]--DDR_ENC.USB
[17:08:32 260][Global][Err]--DDR_ENC.USB
[17:08:32 260][HUB1-3][Err]--Read item data error, code -1
[17:08:32 260][Global][Err]--DDR_ENC.USB
[17:08:32 263][HUB1-3][Err]--[0x10103005]Romcode/Initialize DDR/Download buffer/Read item data failed
[17:08:32 263][HUB1-3][Inf]--Close device handle 0x00000550
[Android Stick & Console AMLogic based Computers] mibox_3s:
Can you tell me where is the GND?

Hello, Can you tell me where is the GND? Is this picture imgur.com/a/vtAbaHp

correct? I can not boot into ttl . I find nothing. My mi box is brick.
[Android Stick & Console AMLogic based Computers] elitecop:
contact

Hi Recrof,

Did you find any solution about contact points? , i have same issue
[Android Stick & Console AMLogic based Computers] oktay50000:
Did anyone get a dump finally?

if anyone got working pcb or emmc can send it to me ill read the dump and share it here