Hello,
I hope someone can help me.
I want to update my V3 with the firmware of the first page.
All steps work except the last "upg usb be all" step.
I tested many different usb drives and computer but without success.
Does anyone know where the issue is?
Here the log:
preloader_v.35156
[t:0x317063]
[PLL] mt_pll_init.
[PLL] mt_pll_init done.
[nand] u4flag=0x0
[nand] ckgen=0x0, _fgUsingDMA:0x0
after setting :*NFI_ACCCON : 0x31c08222 , *NFI_CLK_SEL:0x1051000
[fgBootLoaderHeaderVerification] read page correcte able and read success
r_adv_boot_cfg:
u4HeadSig HDMI_DBG Tray_type FastEject Dram_Size AcOnStby EnL2 DramChAuto HighPhysOffset CoreOffStr DrmkOnlyOff LGFEJMICOM u4EndSig
0x95175346 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000001 0x00000000 0x00000000 0x00000001 0x0009e000 0x00000000 0x78945612
Set PIN RTC_SDA High For MT8581
CFG = 0x1 : 0
[0x0009e000] [0xfb010000]
Should switch some SRAM to normal access...
DDR_Initialize start
u4BLDramCfg= 0x0, u4Tmp = 0x0
[PLL] mempll_init
[PLL] target freq = 900
SSC DOWN : 0x1e901e9 , 0x9
SSC -1.5%
[PLL] mempll_cali
[dram] mpll = 55 MHz
[mempll] mempll2 ref = 55 MHz
[mempll] mempll2 fbk = 55 MHz
[mempll] mempll2 vco = 1787 MHz
[mempll] mempll3 ref = 55 MHz
[mempll] mempll3 fbk = 55 MHz
[mempll] mempll3 vco = 1788 MHz
[mempll] mempll4 ref = 55 MHz
[mempll] mempll4 fbk = 55 MHz
[mempll] mempll4 vco = 1786 MHz
[Check]mt_get_mdl_number 0x2
[EMI] MDL number = 2
[EMI][channel 0]PCDDR3 init start
[EMI][channel 0]PCDDR3 init end
[EMI][channel 1]PCDDR3 init start
[EMI][channel 1]PCDDR3 init end
[EMI][channel 2]PCDDR3 init start
[EMI][channel 2]PCDDR3 init end
CHA_SIZE:512
CHB_SIZE:512
CHC_SIZE:512
824:0x333
CHA_SIZE:512,CHB_SIZE:512,CHC_SIZE:512
CHSEL:04
DRAM Channel_A Pass
DRAM Channel_B Pass
DRAM Channel_C Pass
DDR_Initialize end
dram resize: channel A = 0x20000000, channel B = 0x20000000
Should switch SRAM to security only access...
[nand] u4flag=0x1
[nand] ckgen=0x333, _fgUsingDMA:0x1
before setting :u1DevID[0] : 0x98
after setting :*NFI_ACCCON : 0x10401122 , *NFI_CLK_SEL:0x1041000
NSBC
ARM = 1300MHz 0x1813
PLL1 = 1728MHz 0x2000
PLL2 = 1188MHz 0x1600
LDI
new RSA
u4BlockSize is 0x40000, u4Sz: 0x1000
aMTD Found at 0x400000
RD
Fnr:3
flag:15, inf:37301
version_info not changed!
FLG
F1
N
adjust u4_initrd_size size to :0x3270fe
TZ 13:03:54
U-Boot-2009.08 (Apr 17 2017 - 12:04:03)
I2C: ready
DRAM: 1.5G
NAND: uboot: u1DevID[0] : 0x98
uboot: after setting :*NFI_ACCCON : 0x10401122 , *NFI_CLK_SEL:0x1041110
[nand] read id: 0x98 0xdc 0x90 0x26 0x76 0x16
Nand ECC INFO : 8bit_ecc/512 byte
Nand ID: 98 dc 90 26
512 MiB
u-boot adaptive mtd mechanism applied.
[_i_find_part_tbl] begin to read!!
test here~
return current version .
[_i_find_part_tbl]Part tbl info passed from preloader
pit format is 1~
part number is 0x18.
r_tbl->pc_name: 09679fa8, enc_unit_size:0x0, id:0x40, info: 0x18, no_enc_unit_size:0x0, offset:0x0, size: 0x0~
r_tbl->pc_name: 09679fd0, enc_unit_size:0x0, id:0x1, info: 0x18, no_enc_unit_size:0x0, offset:0x100000, size: 0x200000~
r_tbl->pc_name: 09679ff8, enc_unit_size:0x0, id:0x2, info: 0x38, no_enc_unit_size:0x0, offset:0x300000, size: 0x300000~
r_tbl->pc_name: 0967a020, enc_unit_size:0x0, id:0x3, info: 0x20, no_enc_unit_size:0x0, offset:0x600000, size: 0x300000~
r_tbl->pc_name: 0967a048, enc_unit_size:0x0, id:0x4, info: 0x48, no_enc_unit_size:0x0, offset:0x900000, size: 0x200000~
r_tbl->pc_name: 0967a070, enc_unit_size:0x0, id:0x5, info: 0x58, no_enc_unit_size:0x0, offset:0xB00000, size: 0x200000~
r_tbl->pc_name: 0967a098, enc_unit_size:0x0, id:0x6, info: 0x68, no_enc_unit_size:0x0, offset:0xD00000, size: 0x200000~
r_tbl->pc_name: 0967a0c0, enc_unit_size:0x0, id:0x7, info: 0x78, no_enc_unit_size:0x0, offset:0xF00000, size: 0x200000~
r_tbl->pc_name: 0967a0e8, enc_unit_size:0x0, id:0x8, info: 0x88, no_enc_unit_size:0x0, offset:0x1100000, size: 0x400000~
r_tbl->pc_name: 0967a110, enc_unit_size:0x0, id:0x9, info: 0x98, no_enc_unit_size:0x0, offset:0x1500000, size: 0x400000~
r_tbl->pc_name: 0967a138, enc_unit_size:0x0, id:0xA, info: 0xA8, no_enc_unit_size:0x0, offset:0x1900000, size: 0x400000~
r_tbl->pc_name: 0967a160, enc_unit_size:0x0, id:0xB, info: 0xB8, no_enc_unit_size:0x0, offset:0x1D00000, size: 0x400000~
r_tbl->pc_name: 0967a188, enc_unit_size:0x0, id:0xC, info: 0xC8, no_enc_unit_size:0x0, offset:0x2100000, size: 0x400000~
r_tbl->pc_name: 0967a1b0, enc_unit_size:0x0, id:0xD, info: 0xD8, no_enc_unit_size:0x0, offset:0x2500000, size: 0x800000~
r_tbl->pc_name: 0967a1d8, enc_unit_size:0x0, id:0xE, info: 0xE0, no_enc_unit_size:0x0, offset:0x2D00000, size: 0x1600000~
r_tbl->pc_name: 0967a200, enc_unit_size:0x0, id:0xF, info: 0xF8, no_enc_unit_size:0x0, offset:0x4300000, size: 0x400000~
r_tbl->pc_name: 0967a228, enc_unit_size:0x0, id:0x10, info: 0x2108, no_enc_unit_size:0x0, offset:0x4700000, size: 0xC800000~
r_tbl->pc_name: 0967a250, enc_unit_size:0x800, id:0x11, info: 0x2118, no_enc_unit_size:0x0, offset:0x10F00000, size: 0x200000~
r_tbl->pc_name: 0967a278, enc_unit_size:0x0, id:0x12, info: 0x128, no_enc_unit_size:0x0, offset:0x11100000, size: 0x200000~
r_tbl->pc_name: 0967a2a0, enc_unit_size:0x0, id:0x13, info: 0x138, no_enc_unit_size:0x0, offset:0x11300000, size: 0x300000~
r_tbl->pc_name: 0967a2c8, enc_unit_size:0x0, id:0x14, info: 0x148, no_enc_unit_size:0x0, offset:0x11600000, size: 0x200000~
r_tbl->pc_name: 0967a2f0, enc_unit_size:0x0, id:0x15, info: 0x158, no_enc_unit_size:0x0, offset:0x11800000, size: 0x80000~
r_tbl->pc_name: 0967a318, enc_unit_size:0x0, id:0x16, info: 0x168, no_enc_unit_size:0x0, offset:0x11880000, size: 0x80000~
r_tbl->pc_name: 0967a340, enc_unit_size:0x0, id:0x17, info: 0x3178, no_enc_unit_size:0x0, offset:0x11900000, size: 0xD380000~
r_tbl->pc_name: 0967a368, enc_unit_size:0x0, id:0x18, info: 0x574188, no_enc_unit_size:0x0, offset:0x11900000, size: 0xB400000~
[_i_find_part_tbl] version is 1!!
[_i_get_upg_status_in_nand]upg status passed from preloader
[relocate_env]
Using default environment
u-boot init PT6302 VFD start.!
u-boot VFD say:HELLO !
In: serial
Out: serial
Err: serial
0r_args_to_uboot:
head sig : 0xa0b0ead1
version : 1
boot type : 0
dram ch1 : 0x20000000
dram ch2 : 0x20000000
kern addr : 0x060fffc0
initrd addr : 0x04300000
initrd size : 0x003270fe
enable bim two way write.
Bootloader version 24558
/
0Hit any key to stop autoboot: 0
0
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base #
mt8581_base # +
Unknown command '+' - try 'help'
mt8581_base #
mt8581_base #
mt8581_base # upg usb be all
[UPG]JIG:0 UBI:0
u-boot VFD say:upg BE !
[UPG]upgBEImage loadImage u4ImgStartAddr=0x0, u4ImgSize=0x0
freeLoadImageStartAddr u4pImgStartAddr=0x9668f5c
freeLoadImageStartAddr 2 u4pImgStartAddr=0x9668f5c
[UPG]upg_usb.c call cmd: usb start
(Re)start USB...
USB0: mt8581 EVB board Vbus power on
USB: USB PHY Port 0
USB PHY@0xF0048868 = 0x02044000
USB PHY Port 0
USB PHY@0xF0048868 = 0x02040000
USB PHY Port 0
USB PHY@0xF0048868 = 0x02040000
USB PHY Port 0
USB PHY@0xF004886C = 0x00000000
USB PHY Port 0
USB PHY@0xF0048820 = 0x0000001A
USB PHY Port 0
USB PHY@0xF0048818 = 0x00100482
USB PHY Port 0
USB PHY@0xF0048800 = 0x0000146E
USB PHY Port 0
USB PHY@0xF0048868 = 0x02040008
USB PHY Port 0
USB PHY@0xF004886C = 0x00003E2C
USB PHY Port 0
USB PHY@0xF0048810 = 0x00044414
USB PHY Port 0
USB PHY@0xF0048814 = 0x10A05000
USB PHY Port 0
USB PHY@0xF0048800 = 0x2000146E
USB PHY Port 0
USB PHY@0xF0048804 = 0x44A44403
USB PHY Port 0
USB PHY@0xF0048810 = 0x00045513
USB PHY Port 0
USB PHY@0xF0048818 = 0x001C0482
USB PHY Port 0
USB PHY@0xF0048818 = 0x001C0482
USB PHY Port 0
USB PHY@0xF0048800 = 0x2000146E
USB: pBase = 0xF000E000 init ok.
USB: Init Port0 OK.
USB PHY Port 1
USB PHY@0xF0049868 = 0x02044000
USB PHY Port 1
USB PHY@0xF0049868 = 0x02040000
USB PHY Port 1
USB PHY@0xF0049868 = 0x02040000
USB PHY Port 1
USB PHY@0xF004986C = 0x00000000
USB PHY Port 1
USB PHY@0xF0049820 = 0x0000001A
USB PHY Port 1
USB PHY@0xF0049818 = 0x00100482
USB PHY Port 1
USB PHY@0xF0049800 = 0x0000146E
USB PHY Port 1
USB PHY@0xF0049868 = 0x02040008
USB PHY Port 1
USB PHY@0xF004986C = 0x00003E2C
USB PHY Port 1
USB PHY@0xF0049810 = 0x00044414
USB PHY Port 1
USB PHY@0xF0049814 = 0x10A05000
USB PHY Port 1
USB PHY@0xF0049800 = 0x2000146E
USB PHY Port 1
USB PHY@0xF0049804 = 0x44A44403
USB PHY Port 1
USB PHY@0xF0049810 = 0x00045513
USB PHY Port 1
USB PHY@0xF0049818 = 0x001C0482
USB PHY Port 1
USB PHY@0xF0049818 = 0x001C0482
USB PHY Port 1
USB PHY@0xF0049800 = 0x2000146E
USB: pBase = 0xF000F000 init ok.
USB: Init Port1 OK.
USB: Detected device on port1!
USB: HS device.
scanning bus for devices on port 1...
msd found
1 USB Device(s) found
usb started on port 1.
(0) scanning bus for storage devices...
usb_max_devs(1), usb_max_lun(1)
1 Storage Device(s) found
[UPG]startUSB run_command:usb start ret:1
[UPG]loadImage full path:UPG/MAIN20XCN.bin
reading UPG/MAIN20XCN.bin
** Unable to read "UPG/MAIN20XCN.bin" from usb 0:1 **
[UPG]loadFile run_command:fatload usb 0 0x10000000 UPG/MAIN20XCN.bin ret:-1
[UPG_ERROR]call cmd: fatload usb 0 0x10000000 UPG/MAIN20XCN.bin failed
** Can't read from device 1 **
** Unable to use usb 1:1 for fatload **
[UPG]loadFile run_command:fatload usb 1 0x10000000 UPG/MAIN20XCN.bin ret:-1
[UPG_ERROR]call cmd: fatload usb 1 0x10000000 UPG/MAIN20XCN.bin failed
** Can't read from device 2 **
** Unable to use usb 2:1 for fatload **
[UPG]loadFile run_command:fatload usb 2 0x10000000 UPG/MAIN20XCN.bin ret:-1
[UPG_ERROR]call cmd: fatload usb 2 0x10000000 UPG/MAIN20XCN.bin failed
[UPG_ERROR]loadFile failed
[UPG]loadImage after usbGetImage u4pImgStartAddr:0x10000000, u4pImgSize=0x0
[UPG_ERROR] loadBEImage from USB failed
[UPG]reloadBE loadImage u4ImgStartAddr=0x10000000, u4ImgSize=0x0
[UPG_ERROR]reloadBE loadImage failed
freeLoadImageStartAddr u4pImgStartAddr=0x9668f5c
freeLoadImageStartAddr 2 u4pImgStartAddr=0x9668f5c
[UPG]upgBEImage loadImage u4ImgStartAddr=0x0, u4ImgSize=0x0
[UPG_ERROR] upgBEImage loadImage failed
freeLoadImageStartAddr u4pImgStartAddr=0x9668f5c
freeLoadImageStartAddr 2 u4pImgStartAddr=0x9668f5c
u-boot VFD say:upg BE fail!
[UPG]Upgrade image failed
u-boot VFD say:upg BE fail!