Magicsee N5 Max, can not restore Android

Hello @Portish thank you for everything you do. I have a Magicsee N5 Max 2gb16gb box that I cannot get to boot. I’ve tried shorting pin 4 and pin 5 of the emmc and still cannot get the microsd to write to the chip. I’m hoping you can give me some guidance. I’ve tried everything I can think of. Here is a copy of the serial log:


U-Boot 2015.01 (Jul 02 2019 - 16:56:18)

DRAM:  2 GiB
Relocation Offset is: 76e63000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 0000000077f3fcc8
NAND:  get_sys_clk_rate_mtd() 270, clock setting 200!
NAND device id: 0 ff ff ff ff ff
No NAND device found!!!
nand init failed: -6
get_sys_clk_rate_mtd() 270, clock setting 200!
NAND device id: 0 ff ff ff ff ff
No NAND device found!!!
nand init failed: -6
MMC:   aml_priv->desc_buf = 0x0000000073e53710
aml_priv->desc_buf = 0x0000000073e55a50
SDIO Port B: 0, SDIO Port C: 1
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 40000000
aml_sd_retry_refix[982]:delay = 0x0,gadjust =0x2000
[mmc_startup] mmc refix success
[mmc_init] mmc init success
      Amlogic multi-dtb tool
      Cannot find legal dtb!
start dts,buffer=0000000073e582c0,dt_addr=0000000073e582c0
check_valid_dts: FDT_ERR_BADMAGIC
get_partition_from_dts() 71: ret -9
get_partition_from_dts() 74: ret -9
get_ptbl_from_dtb()-269: get partition table from dts faild
mmc_device_init()-1251: get partition table from dtb failed
get_ptbl_rsv()-491: magic faild MPT,
mmc_device_init()-1278: dtb&rsv are not exist, no LPT source
_find_partition_by_name()-198: do not find match in table env
get partition info failed !!
Using default environment

In:    serial
Out:   serial
Err:   serial
reboot_mode=cold_boot
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-2755: calc 0, store 0
update_dtb_info()-2863: cpy 1 is not valid
_verify_dtb_checksum()-2755: calc 0, store 0
update_dtb_info()-2863: cpy 0 is not valid
dtb_read()-2972: total valid 0
emmc - EMMC sub system

Usage:
emmc dtb_read addr size
emmc dtb_write addr size
emmc erase dtb
emmc erase key
emmc fastboot_read addr size
emmc fastboot_write addr size

      Amlogic multi-dtb tool
      Cannot find legal dtb!
[store]Err:do_store_dtb_ops,L343:Fail in fdt check header
board_late_init(): [store dtb read $dtb_mem_addr] fail
load dtb to 1000000
[store]To run cmd[emmc dtb_read 1000000 0x40000]
_verify_dtb_checksum()-2755: calc 0, store 0
update_dtb_info()-2863: cpy 1 is not valid
_verify_dtb_checksum()-2755: calc 0, store 0
update_dtb_info()-2863: cpy 0 is not valid
dtb_read()-2972: total valid 0
emmc - EMMC sub system

Usage:
emmc dtb_read addr size
emmc dtb_write addr size
emmc erase dtb
emmc erase key
emmc fastboot_read addr size
emmc fastboot_write addr size

      Amlogic multi-dtb tool
      Cannot find legal dtb!
[store]Err:do_store_dtb_ops,L343:Fail in fdt check header
board_late_init(): store dtb read 1000000 fail
[KM]Error:f[keymanage_dts_parse]L287:not a fdt at 0x0000000001000000
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters
vpu: clk_level = 7
vpu: vpu_power_on
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpp: vpp_init
vpp: g12a/b osd1 matrix rgb2yuv ..............
vpp: g12a/b osd2 matrix rgb2yuv..............
vpp: g12a/b osd3 matrix rgb2yuv..............
cvbs: cpuid:0x28
card in
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 25000000
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
Device: SDIO Port B
Manufacturer ID: 3
OEM: 5344
Name: SU04G
Tran Speed: 25000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 3.7 GiB
mmc clock: 25000000
Bus Width: 4-bit
[MSG]ini sz 0x248B
[fat]Filesize is 0x248B[0M]
[fat]0x:leftSz 248 < BPS 1000, gotSz 248

=========sdc_burn_paras=====>>>
[common]
erase_bootloader = 1
erase_flash      = 1
reboot           = 0x1
key_overwrite    = 0x0

[burn_ex]
package          = Aidan.img
media            =

[burn_parts]
burn_num         = 0

<<<<=====sdc_burn_paras======

[fat]Filesize is 0x4b94f02cB[1209M]
[fat]0x:leftSz c40 < BPS 1000, gotSz 6c40
[MSG]image version [0x00000002]
[fat]Seek 0x1338b0 from 0x6c40
[MSG]itemSizeNotAligned 0x750
[MSG]align 4 mmc read...        [fat]0x:leftSz b0 < BPS 1000, gotSz 25800
[MSG]Down(mem) part(dtb) sz(0x25800) fmt(normal)
[MSG]Burn Start...
[MSG]load dt.img to 0x0000000001000000, sz=0x25800
[MSG]Burn complete
Err imgread(L700):Logo header err.
_find_partition_by_name()-198: do not find match in table logo
Cannot find dev.
amlmmc cmd <NULL> failed

store - STORE sub-system

Usage:
store init flag
store read name addr off|partition size
    read 'size' bytes starting at offset 'off'
    to/from memory address 'addr', skipping bad blocks.
store write name addr off|partition size
    write 'size' bytes starting at offset 'off'
    to/from memory address 'addr', skipping bad blocks.
store rom_write add off size.
        write uboot to the boot device
store erase boot/data:
        erase the area which is uboot or data
store erase partition <partition_name>:
        erase the area which partition in u-boot
store erase dtb
store erase key
store disprotect key
store rom_protect on/off
store scrub off|partition size
        scrub the area from offset and size
store dtb iread/read/write addr <size>
        read/write dtb, size is optional
store key read/write addr <size>
        read/write key, size is optional
store mbr addr
   update mbr/partition table by dtb

[burnup]Err:store_read_ops,L64:cmd failed, ret=1, [store  read logo 0x3720000  x0  0x100000]
Err imgread(L438):Fail to read 0x100000B from part[logo] at offset 0
[MSG]Use upgrade res in pkg
[WRN]Can't find item [logo, aml_sdc_burn]
[MSG]logo for sdc UPGRADE[PARTITION]
[fat]Seek 0xb968f4 from 0x1590b0
[MSG]itemSizeNotAligned 0x70c
[MSG]align 4 mmc read...        [fat]0x:leftSz 5f4 < BPS 1000, gotSz 106d00
[MSG]echo video prepare for upgrade
hpd_state=1
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]set initrd_high: 0x3d800000
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=3840, height=2160
cvbs: outputmode[1080p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 16
config HPLL = 5940000 frac_rate = 1
HPLL: 0x3b3a04f7
HPLL: 0x1b3a04f7
HPLLv1: 0xdb3a04f7
config HPLL done
j = 6  vid_clk_div = 1
hdmitx phy setting done
hdmitx: set enc for VIC: 16
enc_vpu_bridge_reset[1225]
rx version is 1.4 or below  div=10
[OSD]osd_hw.free_dst_data: 0,1919,0,1079
[OSD]osd1_update_disp_freescale_enable
[MSG]dw,dh[1920, 1080]
[MSG]w,h[4,14]
[MSG]Exit before re-init
command:        store  exit
      Amlogic multi-dtb tool
      Multi dtb detected
DDR size: 0x80000000, multi-dt support
      Multi dtb tool version: v2 .
      Support 2 dtbs.
        aml_dt soc: g12a platform: s905x2 variant: 2g
        dtb 0 soc: g12a   plat: s905x2   vari: 2g
        dtb 1 soc: g12a   plat: s905x2   vari: 4g
      Find match dtb: 0
start dts,buffer=0000000001000000,dt_addr=0000000001000800
get_partition_from_dts() 71: ret 0
      Amlogic multi-dtb tool
      Multi dtb detected
DDR size: 0x80000000, multi-dt support
      Multi dtb tool version: v2 .
      Support 2 dtbs.
        aml_dt soc: g12a platform: s905x2 variant: 2g
        dtb 0 soc: g12a   plat: s905x2   vari: 2g
        dtb 1 soc: g12a   plat: s905x2   vari: 4g
      Find match dtb: 0
parts: 17
00:      logo   0000000000800000 1
01:  recovery   0000000001800000 1
02:      misc   0000000000800000 1
03:      dtbo   0000000000800000 1
04:  cri_data   0000000000800000 2
05:     param   0000000001000000 2
06:      boot   0000000001000000 1
set has_boot_slot = 0
07:       rsv   0000000001000000 1
08:  metadata   0000000001000000 1
09:    vbmeta   0000000000200000 1
10:       tee   0000000002000000 1
11:    vendor   0000000030000000 1
12:       odm   0000000008000000 1
13:    system   0000000050000000 1
14:   product   0000000008000000 1
15:     cache   0000000046000000 2
16:      data   ffffffffffffffff 4
XXXXXXX======enter EMMC boot======XXXXXX
co-phase 0x3, tx-dly 0, clock 40000000
co-phase 0x3, tx-dly 0, clock 40000000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 40000000
aml_sd_retry_refix[982]:delay = 0x0,gadjust =0x2000
[mmc_startup] mmc refix success
[mmc_init] mmc init success
get_ptbl_rsv()-491: magic faild MPT,
mmc_device_init()-1285: update rsv with dtb!
eMMC/TSD partition table have been checked OK!
check pattern failed,need to write
several 0x55aa55aa pattern blocks write OK
crc32_s:0x8b2a7ae8 == storage crc_pattern:0x1577dad!!!
check magic failed,need to write
several 0xff00ff pattern blocks write OK
crc32_s:0x8b2a7ae8 == storage crc_pattern:0xee152b83!!!
check random failed,need to write
several 0x52414e44 pattern blocks write OK
crc32_s:0x8b2a7ae8 == storage crc_pattern:0x7fd3b243!!!
switch to partitions #0, OK
mmc1(part 0) is current device
Device: SDIO Port C
Manufacturer ID: 90
OEM: 14a
Name: HAG2e
Tran Speed: 52000000
Rd Block Len: 512
MMC version 5.0
High Capacity: Yes
Capacity: 14.7 GiB
mmc clock: 40000000
Bus Width: 8-bit
[store]amlmmc erase 1emmckey_is_protected(): protect
start = 0,end = 57343
start = 221184,end = 30785535
Erasing blocks 0 to 8192 @ boot0
start = 0,end = 8191
Erasing blocks 0 to 8192 @ boot1
start = 0,end = 8191
      Amlogic multi-dtb tool
      Multi dtb detected
DDR size: 0x80000000, multi-dt support
      Multi dtb tool version: v2 .
      Support 2 dtbs.
        aml_dt soc: g12a platform: s905x2 variant: 2g
        dtb 0 soc: g12a   plat: s905x2   vari: 2g
        dtb 1 soc: g12a   plat: s905x2   vari: 4g
      Find match dtb: 0
[burn_parts]
burn_num         = 10
burn_part0       = _aml_dtb
burn_part1       = boot
burn_part2       = dtbo
burn_part3       = logo
burn_part4       = odm
burn_part5       = product
burn_part6       = recovery
burn_part7       = system
burn_part8       = vbmeta
burn_part9       = vendor


[MSG]=====>To burn part [_aml_dtb]
[MSG]itemSizeNotAligned 0x750
[MSG]Down(store) part(_aml_dtb) sz(0x25800) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 3
[MSG]itemSizeNotAligned 0x750, itemSizePreload 0x750
[fat]0x:leftSz b0 < BPS 1000, gotSz 50b0
[MSG]Burn Start...
[MSG]optimus_download_dtb_image:dataSzReceived=0x25800
start erase dtb......
dev # 1,  , several blocks erased OK
[store]To run cmd[emmc dtb_write 0x00000000013ff8b0 0x40000]
dtb_write()-3018: valid 0
dtb_write()-3038: new stamp 0, checksum 0xd4065533, version 1, magic A~D
      Amlogic multi-dtb tool
      Multi dtb detected
DDR size: 0x80000000, multi-dt support
      Multi dtb tool version: v2 .
      Support 2 dtbs.
        aml_dt soc: g12a platform: s905x2 variant: 2g
        dtb 0 soc: g12a   plat: s905x2   vari: 2g
        dtb 1 soc: g12a   plat: s905x2   vari: 4g
      Find match dtb: 0
start dts,buffer=0000000073e64aa0,dt_addr=0000000073e652a0
      Amlogic multi-dtb tool
      Multi dtb detected
DDR size: 0x80000000, multi-dt support
      Multi dtb tool version: v2 .
      Support 2 dtbs.
        aml_dt soc: g12a platform: s905x2 variant: 2g
        dtb 0 soc: g12a   plat: s905x2   vari: 2g
        dtb 1 soc: g12a   plat: s905x2   vari: 4g
      Find match dtb: 0
start dts,buffer=00000000013ff8b0,dt_addr=00000000014000b0
get_partition_from_dts() 71: ret 0
      Amlogic multi-dtb tool
      Multi dtb detected
DDR size: 0x80000000, multi-dt support
      Multi dtb tool version: v2 .
      Support 2 dtbs.
        aml_dt soc: g12a platform: s905x2 variant: 2g
        dtb 0 soc: g12a   plat: s905x2   vari: 2g
        dtb 1 soc: g12a   plat: s905x2   vari: 4g
      Find match dtb: 0
parts: 17
00:      logo   0000000000800000 1
01:  recovery   0000000001800000 1
02:      misc   0000000000800000 1
03:      dtbo   0000000000800000 1
04:  cri_data   0000000000800000 2
05:     param   0000000001000000 2
06:      boot   0000000001000000 1
set has_boot_slot = 0
07:       rsv   0000000001000000 1
08:  metadata   0000000001000000 1
09:    vbmeta   0000000000200000 1
10:       tee   0000000002000000 1
11:    vendor   0000000030000000 1
12:       odm   0000000008000000 1
13:    system   0000000050000000 1
14:   product   0000000008000000 1
15:     cache   0000000046000000 2
16:      data   ffffffffffffffff 4
get_ptbl_rsv()-491: magic faild MPT,
mmc_device_init()-1285: update rsv with dtb!
partition table success
[MSG]Burn complete
[store]To run cmd[emmc dtb_read 0x0000000001400000 0x40000]
dtb_read_shortcut()-2813: short cut in...
ERR(../drivers/usb/gadget/v2_burning/v2_common/optimus_download.c)L1066:failed:erify Failed with sha1sum, origin sum "cf0aac105cf652aaa3594a2ed1fe4ff24518c276 != gen sum "63a497994321f254b535a846ce89f076d4e378ee"
ERR(../drivers/usb/gadget/v2_burning/v2_sdc_burn/optimus_sdc_burn.c)L116:Fail wen verify
Fail in verify part(_aml_dtb)
ERR(../drivers/usb/gadget/v2_burning/v2_sdc_burn/optimus_sdc_burn.c)L280:Fail i burn part _aml_dtb
ERR(../drivers/usb/gadget/v2_burning/v2_sdc_burn/optimus_sdc_burn.c)L691:Fail wen burn partitions
[MSG]to close image
[MSG]=====Burn Failed!!!!!
[MSG]PLS long-press power key to shut down

@Portisch I failed to mention its a s905x2

Try another µSD or restore by USB tool.
It write Android on eMMC but the checksum failed.

Thank you @Portisch. I’m having trouble getting the USB tool to recognize the box. I’ve tried shorting pins 4&5 as well as holding the emmc voltage to ground as suggested in another forum. I’ve got one 4gb uSD that works but fails during recovery (obviously).

Do you have any other ideas? Any suggestions you have are greatly appreciated. Thank you for taking time to reply.

Hello @Portisch . I tried the different SD cards and firmware images but without success. I’m able to create burn cards with different uSDs that fail during update. The Amlogic USB burn tool fails at 9% with a 0x30405004.

I’ve tried every factory and custom firmware I can find for my box. I’m able to flash other Amlogic boxes with my setup but this one won’t.

Do you have any suggestions? Thank you so much for your help.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.